• Home
  • Raw
  • Download

Lines Matching refs:srb

225 		usb_stor_access_xfer_buf(buffer, len, us->srb,  in jumpshot_read_data()
281 usb_stor_access_xfer_buf(buffer, len, us->srb, in jumpshot_write_data()
378 struct scsi_cmnd * srb, in jumpshot_handle_mode_sense() argument
398 pc = srb->cmnd[2] >> 6; in jumpshot_handle_mode_sense()
399 page_code = srb->cmnd[2] & 0x3F; in jumpshot_handle_mode_sense()
469 usb_stor_set_xfer_buf(ptr, i, srb); in jumpshot_handle_mode_sense()
485 static int jumpshot_transport(struct scsi_cmnd *srb, struct us_data *us) in jumpshot_transport() argument
505 if (srb->cmnd[0] == INQUIRY) { in jumpshot_transport()
512 if (srb->cmnd[0] == READ_CAPACITY) { in jumpshot_transport()
530 usb_stor_set_xfer_buf(ptr, 8, srb); in jumpshot_transport()
535 if (srb->cmnd[0] == MODE_SELECT_10) { in jumpshot_transport()
540 if (srb->cmnd[0] == READ_10) { in jumpshot_transport()
541 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
542 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
544 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
551 if (srb->cmnd[0] == READ_12) { in jumpshot_transport()
554 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
555 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
557 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
558 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
565 if (srb->cmnd[0] == WRITE_10) { in jumpshot_transport()
566 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
567 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
569 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
576 if (srb->cmnd[0] == WRITE_12) { in jumpshot_transport()
579 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport()
580 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport()
582 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
583 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport()
591 if (srb->cmnd[0] == TEST_UNIT_READY) { in jumpshot_transport()
596 if (srb->cmnd[0] == REQUEST_SENSE) { in jumpshot_transport()
605 usb_stor_set_xfer_buf(ptr, 18, srb); in jumpshot_transport()
610 if (srb->cmnd[0] == MODE_SENSE) { in jumpshot_transport()
612 return jumpshot_handle_mode_sense(us, srb, 1); in jumpshot_transport()
615 if (srb->cmnd[0] == MODE_SENSE_10) { in jumpshot_transport()
617 return jumpshot_handle_mode_sense(us, srb, 0); in jumpshot_transport()
620 if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { in jumpshot_transport()
627 if (srb->cmnd[0] == START_STOP) { in jumpshot_transport()
636 srb->result = SUCCESS; in jumpshot_transport()
639 srb->result = SAM_STAT_CHECK_CONDITION; in jumpshot_transport()
645 srb->cmnd[0], srb->cmnd[0]); in jumpshot_transport()