Lines Matching defs:srb
152 freecom_readdata (struct scsi_cmnd *srb, struct us_data *us,
176 result = usb_stor_bulk_srb(us, ipipe, srb);
185 freecom_writedata (struct scsi_cmnd *srb, struct us_data *us,
209 result = usb_stor_bulk_srb(us, opipe, srb);
221 static int freecom_transport(struct scsi_cmnd *srb, struct us_data *us)
242 memcpy (fcb->Atapi, srb->cmnd, 12);
245 US_DEBUG(pdump (srb->cmnd, 12));
323 US_DEBUGP("SCSI requested %d\n", scsi_bufflen(srb));
326 switch (srb->cmnd[0]) {
334 length = scsi_bufflen(srb);
338 if (length > scsi_bufflen(srb)) {
339 length = scsi_bufflen(srb);
346 switch (us->srb->sc_data_direction) {
357 result = freecom_readdata (srb, us, ipipe, opipe, length);
386 result = freecom_writedata (srb, us, ipipe, opipe, length);
416 us->srb->sc_data_direction);