Lines Matching refs:srb
152 freecom_readdata (struct scsi_cmnd *srb, struct us_data *us, in freecom_readdata() argument
176 result = usb_stor_bulk_srb(us, ipipe, srb); in freecom_readdata()
185 freecom_writedata (struct scsi_cmnd *srb, struct us_data *us, in freecom_writedata() argument
209 result = usb_stor_bulk_srb(us, opipe, srb); in freecom_writedata()
221 static int freecom_transport(struct scsi_cmnd *srb, struct us_data *us) in freecom_transport() argument
242 memcpy (fcb->Atapi, srb->cmnd, 12); in freecom_transport()
245 US_DEBUG(pdump(us, srb->cmnd, 12)); in freecom_transport()
331 usb_stor_dbg(us, "SCSI requested %d\n", scsi_bufflen(srb)); in freecom_transport()
334 switch (srb->cmnd[0]) { in freecom_transport()
342 length = scsi_bufflen(srb); in freecom_transport()
346 if (length > scsi_bufflen(srb)) { in freecom_transport()
347 length = scsi_bufflen(srb); in freecom_transport()
357 switch (us->srb->sc_data_direction) { in freecom_transport()
370 result = freecom_readdata (srb, us, ipipe, opipe, length); in freecom_transport()
401 result = freecom_writedata (srb, us, ipipe, opipe, length); in freecom_transport()
431 us->srb->sc_data_direction); in freecom_transport()