Lines Matching refs:srb
223 usb_stor_access_xfer_buf(buffer, len, us->srb, in jumpshot_read_data()
279 usb_stor_access_xfer_buf(buffer, len, us->srb, in jumpshot_write_data()
376 struct scsi_cmnd * srb, in jumpshot_handle_mode_sense() argument
396 pc = srb->cmnd[2] >> 6; in jumpshot_handle_mode_sense()
397 page_code = srb->cmnd[2] & 0x3F; in jumpshot_handle_mode_sense()
467 usb_stor_set_xfer_buf(ptr, i, srb); in jumpshot_handle_mode_sense()
483 static int jumpshot_transport(struct scsi_cmnd *srb, struct us_data *us) in jumpshot_transport() argument
503 if (srb->cmnd[0] == INQUIRY) { in jumpshot_transport()
510 if (srb->cmnd[0] == READ_CAPACITY) { in jumpshot_transport()
528 usb_stor_set_xfer_buf(ptr, 8, srb); in jumpshot_transport()
533 if (srb->cmnd[0] == MODE_SELECT_10) { in jumpshot_transport()
538 if (srb->cmnd[0] == READ_10) { in jumpshot_transport()
539 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
540 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
542 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
549 if (srb->cmnd[0] == READ_12) { in jumpshot_transport()
552 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
553 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
555 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
556 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
563 if (srb->cmnd[0] == WRITE_10) { in jumpshot_transport()
564 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
565 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
567 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
574 if (srb->cmnd[0] == WRITE_12) { in jumpshot_transport()
577 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
578 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
580 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
581 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
589 if (srb->cmnd[0] == TEST_UNIT_READY) { in jumpshot_transport()
594 if (srb->cmnd[0] == REQUEST_SENSE) { in jumpshot_transport()
603 usb_stor_set_xfer_buf(ptr, 18, srb); in jumpshot_transport()
608 if (srb->cmnd[0] == MODE_SENSE) { in jumpshot_transport()
610 return jumpshot_handle_mode_sense(us, srb, 1); in jumpshot_transport()
613 if (srb->cmnd[0] == MODE_SENSE_10) { in jumpshot_transport()
615 return jumpshot_handle_mode_sense(us, srb, 0); in jumpshot_transport()
618 if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { in jumpshot_transport()
625 if (srb->cmnd[0] == START_STOP) { in jumpshot_transport()
634 srb->result = SUCCESS; in jumpshot_transport()
637 srb->result = SAM_STAT_CHECK_CONDITION; in jumpshot_transport()
643 srb->cmnd[0], srb->cmnd[0]); in jumpshot_transport()