Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
scsiglue.c File Reference
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_devinfo.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include "usb.h"
#include "scsiglue.h"
#include "transport.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SPRINTF(args...)
 
#define US_FLAG(name, value)
 

Functions

void usb_stor_report_device_reset (struct us_data *us)
 
void usb_stor_report_bus_reset (struct us_data *us)
 
unsigned int usb_stor_access_xfer_buf (struct us_data *us, unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, unsigned int *offset, enum xfer_buf_dir dir)
 
void usb_stor_set_xfer_buf (struct us_data *us, unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, unsigned int dir)
 

Variables

struct scsi_host_template usb_stor_host_template
 
unsigned char usb_stor_sense_invalidCDB [18]
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 1 of file scsiglue.c.

#define SPRINTF (   args...)
Value:
do { \
if (pos < buffer+length) \
pos += sprintf(pos, ## args); \
} while (0)

Definition at line 232 of file scsiglue.c.

#define US_FLAG (   name,
  value 
)
Value:
do { \
if (us->fflags & value) \
pos += sprintf(pos, " " #name); \
} while (0);

Function Documentation

unsigned int usb_stor_access_xfer_buf ( struct us_data us,
unsigned char buffer,
unsigned int  buflen,
struct scsi_cmnd srb,
struct scatterlist **  sgptr,
unsigned int offset,
enum xfer_buf_dir  dir 
)

Definition at line 415 of file scsiglue.c.

void usb_stor_report_bus_reset ( struct us_data us)

Definition at line 216 of file scsiglue.c.

void usb_stor_report_device_reset ( struct us_data us)

Definition at line 200 of file scsiglue.c.

void usb_stor_set_xfer_buf ( struct us_data us,
unsigned char buffer,
unsigned int  buflen,
struct scsi_cmnd srb,
unsigned int  dir 
)

Definition at line 475 of file scsiglue.c.

Variable Documentation

struct scsi_host_template usb_stor_host_template

Definition at line 350 of file scsiglue.c.

unsigned char usb_stor_sense_invalidCDB[18]
Initial value:
= {
[0] = 0x70,
[7] = 0x0a,
[12] = 0x24
}

Definition at line 401 of file scsiglue.c.