Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
libsrp.c File Reference
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/kfifo.h>
#include <linux/scatterlist.h>
#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi_tgt.h>
#include <scsi/srp.h>
#include <scsi/libsrp.h>

Go to the source code of this file.

Macros

#define eprintk(fmt, args...)
 
#define dprintk(fmt, args...)
 

Enumerations

enum  srp_task_attributes { SRP_SIMPLE_TASK = 0, SRP_HEAD_TASK = 1, SRP_ORDERED_TASK = 2, SRP_ACA_TASK = 4 }
 

Functions

int srp_target_alloc (struct srp_target *target, struct device *dev, size_t nr, size_t iu_size)
 
 EXPORT_SYMBOL_GPL (srp_target_alloc)
 
void srp_target_free (struct srp_target *target)
 
 EXPORT_SYMBOL_GPL (srp_target_free)
 
struct iu_entrysrp_iu_get (struct srp_target *target)
 
 EXPORT_SYMBOL_GPL (srp_iu_get)
 
void srp_iu_put (struct iu_entry *iue)
 
 EXPORT_SYMBOL_GPL (srp_iu_put)
 
int srp_transfer_data (struct scsi_cmnd *sc, struct srp_cmd *cmd, srp_rdma_t rdma_io, int dma_map, int ext_desc)
 
 EXPORT_SYMBOL_GPL (srp_transfer_data)
 
int srp_cmd_queue (struct Scsi_Host *shost, struct srp_cmd *cmd, void *info, u64 itn_id, u64 addr)
 
 EXPORT_SYMBOL_GPL (srp_cmd_queue)
 
 MODULE_DESCRIPTION ("SCSI RDMA Protocol lib functions")
 
 MODULE_AUTHOR ("FUJITA Tomonori")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define dprintk (   fmt,
  args... 
)

Definition at line 47 of file libsrp.c.

#define eprintk (   fmt,
  args... 
)
Value:
do { \
printk("%s(%d) " fmt, __func__, __LINE__, ##args); \
} while (0)

Definition at line 42 of file libsrp.c.

Enumeration Type Documentation

Enumerator:
SRP_SIMPLE_TASK 
SRP_HEAD_TASK 
SRP_ORDERED_TASK 
SRP_ACA_TASK 

Definition at line 34 of file libsrp.c.

Function Documentation

EXPORT_SYMBOL_GPL ( srp_target_alloc  )
EXPORT_SYMBOL_GPL ( srp_target_free  )
EXPORT_SYMBOL_GPL ( srp_iu_get  )
EXPORT_SYMBOL_GPL ( srp_iu_put  )
EXPORT_SYMBOL_GPL ( srp_transfer_data  )
EXPORT_SYMBOL_GPL ( srp_cmd_queue  )
MODULE_AUTHOR ( "FUJITA Tomonori"  )
MODULE_DESCRIPTION ( "SCSI RDMA Protocol lib functions"  )
MODULE_LICENSE ( "GPL"  )
int srp_cmd_queue ( struct Scsi_Host shost,
struct srp_cmd cmd,
void info,
u64  itn_id,
u64  addr 
)

Definition at line 399 of file libsrp.c.

struct iu_entry* srp_iu_get ( struct srp_target target)
read

Definition at line 164 of file libsrp.c.

void srp_iu_put ( struct iu_entry iue)

Definition at line 182 of file libsrp.c.

int srp_target_alloc ( struct srp_target target,
struct device dev,
size_t  nr,
size_t  iu_size 
)

Definition at line 128 of file libsrp.c.

void srp_target_free ( struct srp_target target)

Definition at line 156 of file libsrp.c.

int srp_transfer_data ( struct scsi_cmnd sc,
struct srp_cmd cmd,
srp_rdma_t  rdma_io,
int  dma_map,
int  ext_desc 
)

Definition at line 324 of file libsrp.c.