Lines Matching refs:srb

214 		usb_stor_access_xfer_buf(buffer, len, us->srb,  in jumpshot_read_data()
270 usb_stor_access_xfer_buf(buffer, len, us->srb, in jumpshot_write_data()
367 struct scsi_cmnd * srb, in jumpshot_handle_mode_sense() argument
387 pc = srb->cmnd[2] >> 6; in jumpshot_handle_mode_sense()
388 page_code = srb->cmnd[2] & 0x3F; in jumpshot_handle_mode_sense()
458 usb_stor_set_xfer_buf(ptr, i, srb); in jumpshot_handle_mode_sense()
474 static int jumpshot_transport(struct scsi_cmnd *srb, struct us_data *us) in jumpshot_transport() argument
494 if (srb->cmnd[0] == INQUIRY) { in jumpshot_transport()
501 if (srb->cmnd[0] == READ_CAPACITY) { in jumpshot_transport()
519 usb_stor_set_xfer_buf(ptr, 8, srb); in jumpshot_transport()
524 if (srb->cmnd[0] == MODE_SELECT_10) { in jumpshot_transport()
529 if (srb->cmnd[0] == READ_10) { in jumpshot_transport()
530 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
531 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
533 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
540 if (srb->cmnd[0] == READ_12) { in jumpshot_transport()
543 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
544 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
546 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
547 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
554 if (srb->cmnd[0] == WRITE_10) { in jumpshot_transport()
555 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
556 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
558 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
565 if (srb->cmnd[0] == WRITE_12) { in jumpshot_transport()
568 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
569 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
571 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
572 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
580 if (srb->cmnd[0] == TEST_UNIT_READY) { in jumpshot_transport()
585 if (srb->cmnd[0] == REQUEST_SENSE) { in jumpshot_transport()
594 usb_stor_set_xfer_buf(ptr, 18, srb); in jumpshot_transport()
599 if (srb->cmnd[0] == MODE_SENSE) { in jumpshot_transport()
601 return jumpshot_handle_mode_sense(us, srb, 1); in jumpshot_transport()
604 if (srb->cmnd[0] == MODE_SENSE_10) { in jumpshot_transport()
606 return jumpshot_handle_mode_sense(us, srb, 0); in jumpshot_transport()
609 if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { in jumpshot_transport()
617 if (srb->cmnd[0] == START_STOP) { in jumpshot_transport()
630 srb->result = SUCCESS; in jumpshot_transport()
633 srb->result = SAM_STAT_CHECK_CONDITION; in jumpshot_transport()
639 srb->cmnd[0], srb->cmnd[0]); in jumpshot_transport()