Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
transport.h File Reference
#include <linux/blkdev.h>

Go to the source code of this file.

Macros

#define USB_STOR_XFER_GOOD   0 /* good transfer */
 
#define USB_STOR_XFER_SHORT   1 /* transferred less than expected */
 
#define USB_STOR_XFER_STALLED   2 /* endpoint stalled */
 
#define USB_STOR_XFER_LONG   3 /* device tried to send too much */
 
#define USB_STOR_XFER_ERROR   4 /* transfer died in the middle */
 
#define USB_STOR_TRANSPORT_GOOD   0 /* Transport good, command good */
 
#define USB_STOR_TRANSPORT_FAILED   1 /* Transport good, command failed */
 
#define USB_STOR_TRANSPORT_NO_SENSE   2 /* Command failed, no auto-sense */
 
#define USB_STOR_TRANSPORT_ERROR   3 /* Transport bad (i.e. device dead) */
 
#define US_CBI_ADSC   0
 

Functions

int usb_stor_CB_transport (struct scsi_cmnd *, struct us_data *)
 
int usb_stor_CB_reset (struct us_data *)
 
int usb_stor_Bulk_transport (struct scsi_cmnd *, struct us_data *)
 
int usb_stor_Bulk_max_lun (struct us_data *)
 
int usb_stor_Bulk_reset (struct us_data *)
 
void usb_stor_invoke_transport (struct scsi_cmnd *, struct us_data *)
 
void usb_stor_stop_transport (struct us_data *)
 
int usb_stor_control_msg (struct us_data *us, unsigned int pipe, u8 request, u8 requesttype, u16 value, u16 index, void *data, u16 size, int timeout)
 
int usb_stor_clear_halt (struct us_data *us, unsigned int pipe)
 
int usb_stor_ctrl_transfer (struct us_data *us, unsigned int pipe, u8 request, u8 requesttype, u16 value, u16 index, void *data, u16 size)
 
int usb_stor_bulk_transfer_buf (struct us_data *us, unsigned int pipe, void *buf, unsigned int length, unsigned int *act_len)
 
int usb_stor_bulk_transfer_sg (struct us_data *us, unsigned int pipe, void *buf, unsigned int length, int use_sg, int *residual)
 
int usb_stor_bulk_srb (struct us_data *us, unsigned int pipe, struct scsi_cmnd *srb)
 
int usb_stor_port_reset (struct us_data *us)
 

Macro Definition Documentation

#define US_CBI_ADSC   0

Definition at line 75 of file transport.h.

#define USB_STOR_TRANSPORT_ERROR   3 /* Transport bad (i.e. device dead) */

Definition at line 61 of file transport.h.

#define USB_STOR_TRANSPORT_FAILED   1 /* Transport good, command failed */

Definition at line 59 of file transport.h.

#define USB_STOR_TRANSPORT_GOOD   0 /* Transport good, command good */

Definition at line 58 of file transport.h.

#define USB_STOR_TRANSPORT_NO_SENSE   2 /* Command failed, no auto-sense */

Definition at line 60 of file transport.h.

#define USB_STOR_XFER_ERROR   4 /* transfer died in the middle */

Definition at line 52 of file transport.h.

#define USB_STOR_XFER_GOOD   0 /* good transfer */

Definition at line 48 of file transport.h.

#define USB_STOR_XFER_LONG   3 /* device tried to send too much */

Definition at line 51 of file transport.h.

#define USB_STOR_XFER_SHORT   1 /* transferred less than expected */

Definition at line 49 of file transport.h.

#define USB_STOR_XFER_STALLED   2 /* endpoint stalled */

Definition at line 50 of file transport.h.

Function Documentation

int usb_stor_Bulk_max_lun ( struct us_data )

Definition at line 554 of file transport.c.

int usb_stor_Bulk_reset ( struct us_data )

Definition at line 789 of file transport.c.

int usb_stor_bulk_srb ( struct us_data us,
unsigned int  pipe,
struct scsi_cmnd srb 
)

Definition at line 252 of file transport.c.

int usb_stor_bulk_transfer_buf ( struct us_data us,
unsigned int  pipe,
void buf,
unsigned int  length,
unsigned int act_len 
)

Definition at line 183 of file transport.c.

int usb_stor_bulk_transfer_sg ( struct us_data us,
unsigned int  pipe,
void buf,
unsigned int  length,
int  use_sg,
int residual 
)

Definition at line 267 of file transport.c.

int usb_stor_Bulk_transport ( struct scsi_cmnd ,
struct us_data  
)

Definition at line 580 of file transport.c.

int usb_stor_CB_reset ( struct us_data )

Definition at line 1300 of file transport.c.

int usb_stor_CB_transport ( struct scsi_cmnd ,
struct us_data  
)

Definition at line 917 of file transport.c.

int usb_stor_clear_halt ( struct us_data us,
unsigned int  pipe 
)

Definition at line 114 of file transport.c.

int usb_stor_control_msg ( struct us_data us,
unsigned int  pipe,
u8  request,
u8  requesttype,
u16  value,
u16  index,
void data,
u16  size,
int  timeout 
)

Definition at line 84 of file transport.c.

int usb_stor_ctrl_transfer ( struct us_data us,
unsigned int  pipe,
u8  request,
u8  requesttype,
u16  value,
u16  index,
void data,
u16  size 
)

Definition at line 328 of file transport.c.

void usb_stor_invoke_transport ( struct scsi_cmnd ,
struct us_data  
)

Definition at line 300 of file transport.c.

int usb_stor_port_reset ( struct us_data us)

Definition at line 800 of file transport.c.

void usb_stor_stop_transport ( struct us_data )

Definition at line 536 of file transport.c.