Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
transport.c File Reference
#include <linux/sched.h>
#include <linux/gfp.h>
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/usb/quirks.h>
#include <scsi/scsi.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_device.h>
#include "usb.h"
#include "transport.h"
#include "protocol.h"
#include "scsiglue.h"
#include "debug.h"
#include <linux/blkdev.h>
#include "../../scsi/sd.h"

Go to the source code of this file.

Macros

#define CB_RESET_CMD_SIZE   12
 

Functions

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)
 
 EXPORT_SYMBOL_GPL (usb_stor_control_msg)
 
int usb_stor_clear_halt (struct us_data *us, unsigned int pipe)
 
 EXPORT_SYMBOL_GPL (usb_stor_clear_halt)
 
int usb_stor_ctrl_transfer (struct us_data *us, unsigned int pipe, u8 request, u8 requesttype, u16 value, u16 index, void *data, u16 size)
 
 EXPORT_SYMBOL_GPL (usb_stor_ctrl_transfer)
 
int usb_stor_bulk_transfer_buf (struct us_data *us, unsigned int pipe, void *buf, unsigned int length, unsigned int *act_len)
 
 EXPORT_SYMBOL_GPL (usb_stor_bulk_transfer_buf)
 
int usb_stor_bulk_srb (struct us_data *us, unsigned int pipe, struct scsi_cmnd *srb)
 
 EXPORT_SYMBOL_GPL (usb_stor_bulk_srb)
 
int usb_stor_bulk_transfer_sg (struct us_data *us, unsigned int pipe, void *buf, unsigned int length_left, int use_sg, int *residual)
 
 EXPORT_SYMBOL_GPL (usb_stor_bulk_transfer_sg)
 
void usb_stor_invoke_transport (struct scsi_cmnd *srb, struct us_data *us)
 
void usb_stor_stop_transport (struct us_data *us)
 
int usb_stor_CB_transport (struct scsi_cmnd *srb, struct us_data *us)
 
 EXPORT_SYMBOL_GPL (usb_stor_CB_transport)
 
int usb_stor_Bulk_max_lun (struct us_data *us)
 
int usb_stor_Bulk_transport (struct scsi_cmnd *srb, struct us_data *us)
 
 EXPORT_SYMBOL_GPL (usb_stor_Bulk_transport)
 
int usb_stor_CB_reset (struct us_data *us)
 
 EXPORT_SYMBOL_GPL (usb_stor_CB_reset)
 
int usb_stor_Bulk_reset (struct us_data *us)
 
 EXPORT_SYMBOL_GPL (usb_stor_Bulk_reset)
 
int usb_stor_port_reset (struct us_data *us)
 

Macro Definition Documentation

#define CB_RESET_CMD_SIZE   12

Definition at line 1298 of file transport.c.

Function Documentation

EXPORT_SYMBOL_GPL ( usb_stor_control_msg  )
EXPORT_SYMBOL_GPL ( usb_stor_clear_halt  )
EXPORT_SYMBOL_GPL ( usb_stor_ctrl_transfer  )
EXPORT_SYMBOL_GPL ( usb_stor_bulk_transfer_buf  )
EXPORT_SYMBOL_GPL ( usb_stor_bulk_srb  )
EXPORT_SYMBOL_GPL ( usb_stor_bulk_transfer_sg  )
EXPORT_SYMBOL_GPL ( usb_stor_CB_transport  )
EXPORT_SYMBOL_GPL ( usb_stor_Bulk_transport  )
EXPORT_SYMBOL_GPL ( usb_stor_CB_reset  )
EXPORT_SYMBOL_GPL ( usb_stor_Bulk_reset  )
int usb_stor_Bulk_max_lun ( struct us_data us)

Definition at line 1025 of file transport.c.

int usb_stor_Bulk_reset ( struct us_data us)

Definition at line 1316 of file transport.c.

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

Definition at line 467 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 392 of file transport.c.

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

Definition at line 489 of file transport.c.

int usb_stor_Bulk_transport ( struct scsi_cmnd srb,
struct us_data us 
)

Definition at line 1054 of file transport.c.

int usb_stor_CB_reset ( struct us_data us)

Definition at line 1300 of file transport.c.

int usb_stor_CB_transport ( struct scsi_cmnd srb,
struct us_data us 
)

Definition at line 917 of file transport.c.

int usb_stor_clear_halt ( struct us_data us,
unsigned int  pipe 
)

Definition at line 236 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 194 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 srb,
struct us_data us 
)

Definition at line 599 of file transport.c.

int usb_stor_port_reset ( struct us_data us)

Definition at line 1329 of file transport.c.

void usb_stor_stop_transport ( struct us_data us)

Definition at line 893 of file transport.c.