Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Enumerations | Functions
libsrp.h File Reference
#include <linux/list.h>
#include <linux/kfifo.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_host.h>
#include <scsi/srp.h>

Go to the source code of this file.

Data Structures

struct  srp_buf
 
struct  srp_queue
 
struct  srp_target
 
struct  iu_entry
 

Typedefs

typedef intsrp_rdma_t )(struct scsi_cmnd *, struct scatterlist *, int, struct srp_direct_buf *, int, enum dma_data_direction, unsigned int)
 

Enumerations

enum  iue_flags { V_DIOVER, V_WRITE, V_LINKED, V_FLYING }
 

Functions

int srp_target_alloc (struct srp_target *, struct device *, size_t, size_t)
 
void srp_target_free (struct srp_target *)
 
struct iu_entrysrp_iu_get (struct srp_target *)
 
void srp_iu_put (struct iu_entry *)
 
int srp_cmd_queue (struct Scsi_Host *, struct srp_cmd *, void *, u64, u64)
 
int srp_transfer_data (struct scsi_cmnd *, struct srp_cmd *, srp_rdma_t, int, int)
 

Typedef Documentation

typedef int( srp_rdma_t)(struct scsi_cmnd *, struct scatterlist *, int, struct srp_direct_buf *, int, enum dma_data_direction, unsigned int)

Definition at line 54 of file libsrp.h.

Enumeration Type Documentation

enum iue_flags
Enumerator:
V_DIOVER 
V_WRITE 
V_LINKED 
V_FLYING 

Definition at line 10 of file libsrp.h.

Function Documentation

int srp_cmd_queue ( struct Scsi_Host ,
struct srp_cmd ,
void ,
u64  ,
u64   
)

Definition at line 399 of file libsrp.c.

struct iu_entry* srp_iu_get ( struct srp_target )
read

Definition at line 164 of file libsrp.c.

void srp_iu_put ( struct iu_entry )

Definition at line 182 of file libsrp.c.

int srp_target_alloc ( struct srp_target ,
struct device ,
size_t  ,
size_t   
)

Definition at line 128 of file libsrp.c.

void srp_target_free ( struct srp_target )

Definition at line 156 of file libsrp.c.

int srp_transfer_data ( struct scsi_cmnd ,
struct srp_cmd ,
srp_rdma_t  ,
int  ,
int   
)

Definition at line 324 of file libsrp.c.