Linux Kernel
3.7.1
|
#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 |
Enumerations | |
enum | xfer_buf_dir { TO_XFER_BUF, FROM_XFER_BUF, TO_XFER_BUF, FROM_XFER_BUF, TO_XFER_BUF, FROM_XFER_BUF, TO_XFER_BUF, FROM_XFER_BUF } |
#define US_CBI_ADSC 0 |
Definition at line 28 of file transport.h.
Definition at line 17 of file transport.h.
#define USB_STOR_TRANSPORT_FAILED 1 /* Transport good, command failed */ |
Definition at line 15 of file transport.h.
#define USB_STOR_TRANSPORT_GOOD 0 /* Transport good, command good */ |
Definition at line 14 of file transport.h.
Definition at line 16 of file transport.h.
Definition at line 11 of file transport.h.
#define USB_STOR_XFER_GOOD 0 /* good transfer */ |
Definition at line 7 of file transport.h.
Definition at line 10 of file transport.h.
#define USB_STOR_XFER_SHORT 1 /* transferred less than expected */ |
Definition at line 8 of file transport.h.
#define USB_STOR_XFER_STALLED 2 /* endpoint stalled */ |
Definition at line 9 of file transport.h.
enum xfer_buf_dir |
TO_XFER_BUF | |
FROM_XFER_BUF | |
TO_XFER_BUF | |
FROM_XFER_BUF | |
TO_XFER_BUF | |
FROM_XFER_BUF | |
TO_XFER_BUF | |
FROM_XFER_BUF |
Definition at line 48 of file transport.h.
Definition at line 427 of file transport.c.
unsigned int usb_stor_access_xfer_buf | ( | struct us_data * | , |
unsigned char * | buffer, | ||
unsigned int | buflen, | ||
struct scsi_cmnd * | srb, | ||
struct scatterlist ** | , | ||
unsigned int * | offset, | ||
enum xfer_buf_dir | dir | ||
) |
Definition at line 415 of file scsiglue.c.
Definition at line 554 of file transport.c.
Definition at line 789 of file transport.c.
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.
Definition at line 580 of file transport.c.
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.
Definition at line 300 of file transport.c.
Definition at line 800 of file transport.c.
void usb_stor_set_xfer_buf | ( | struct us_data * | , |
unsigned char * | buffer, | ||
unsigned int | buflen, | ||
struct scsi_cmnd * | srb, | ||
unsigned int | dir | ||
) |
Definition at line 475 of file scsiglue.c.
Definition at line 536 of file transport.c.