/linux/drivers/usb/storage/ |
A D | uas.c | 115 cmnd = devinfo->cmnd[i]; in uas_do_work() 121 err = uas_submit_urbs(cmnd, cmnd->device->hostdata); in uas_do_work() 165 cmnd = devinfo->cmnd[i]; in uas_zap_pending() 231 if (!cmnd) in uas_free_unsubmitted_urbs() 259 scsi_done(cmnd); in uas_try_complete() 270 err = uas_submit_urbs(cmnd, cmnd->device->hostdata); in uas_xfer_data() 331 cmnd = devinfo->cmnd[idx]; in uas_stat_cmplt() 520 memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len); in uas_alloc_cmd_urb() 651 (cmnd->cmnd[0] == ATA_12 || cmnd->cmnd[0] == ATA_16)) { in uas_queuecommand_lck() 655 scsi_done(cmnd); in uas_queuecommand_lck() [all …]
|
A D | cypress_atacb.c | 77 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { in cypress_atacb_passthrough() 83 memset(srb->cmnd, 0, MAX_COMMAND_SIZE); in cypress_atacb_passthrough() 101 srb->cmnd[0] = 0x24; /* in cypress_atacb_passthrough() 108 srb->cmnd[3] = 0xff - 1; /* in cypress_atacb_passthrough() 135 srb->cmnd[11] = save_cmnd[8]; /* device */ in cypress_atacb_passthrough() 140 if ((srb->cmnd[12] == ATA_CMD_SET_FEATURES) in cypress_atacb_passthrough() 141 && (srb->cmnd[6] == SETFEATURES_XFER)) in cypress_atacb_passthrough() 144 if (srb->cmnd[12] == ATA_CMD_ID_ATA || srb->cmnd[12] == ATA_CMD_ID_ATAPI) in cypress_atacb_passthrough() 180 srb->cmnd = ses.cmnd; in cypress_atacb_passthrough() 181 srb->cmnd[2] = 1; in cypress_atacb_passthrough() [all …]
|
A D | jumpshot.c | 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() 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() 547 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); 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() 569 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport() 572 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in jumpshot_transport() [all …]
|
A D | datafab.c | 601 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport() 602 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport() 604 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport() 614 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport() 615 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport() 618 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in datafab_transport() 627 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport() 629 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport() 640 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport() 643 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in datafab_transport() [all …]
|
A D | shuttle_usbat.c | 1729 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in usbat_flash_transport() 1730 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport() 1732 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport() 1743 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in usbat_flash_transport() 1744 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport() 1747 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in usbat_flash_transport() 1756 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport() 1758 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport() 1770 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in usbat_flash_transport() 1773 ((u32)(srb->cmnd[8]) << 8) | ((u32)(srb->cmnd[9])); in usbat_flash_transport() [all …]
|
A D | realtek_cr.c | 372 cmnd[0] = 0xF0; in rts51x_read_mem() 373 cmnd[1] = 0x0D; in rts51x_read_mem() 403 cmnd[0] = 0xF0; in rts51x_write_mem() 404 cmnd[1] = 0x0E; in rts51x_write_mem() 432 cmnd[0] = 0xF0; in rts51x_read_status() 433 cmnd[1] = 0x09; in rts51x_read_status() 505 u8 cmnd[12] = {0}; in __do_config_autodelink() local 514 cmnd[0] = 0xF0; in __do_config_autodelink() 515 cmnd[1] = 0x0E; in __do_config_autodelink() 516 cmnd[2] = 0xfe; in __do_config_autodelink() [all …]
|
A D | protocol.c | 55 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command() 73 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command() 81 switch (srb->cmnd[0]) { in usb_stor_ufi_command() 85 srb->cmnd[4] = 36; in usb_stor_ufi_command() 90 srb->cmnd[7] = 0; in usb_stor_ufi_command() 91 srb->cmnd[8] = 8; in usb_stor_ufi_command() 96 srb->cmnd[4] = 18; in usb_stor_ufi_command()
|
A D | transport.c | 548 if (srb->cmnd[0] != READ_10 && srb->cmnd[0] != WRITE_10) in last_sector_hacks() 552 sector = (srb->cmnd[2] << 24) | (srb->cmnd[3] << 16) | in last_sector_hacks() 553 (srb->cmnd[4] << 8) | (srb->cmnd[5]); in last_sector_hacks() 594 if (srb->cmnd[0] != TEST_UNIT_READY) in last_sector_hacks() 682 if (unlikely((srb->cmnd[0] == ATA_16 || srb->cmnd[0] == ATA_12) && in usb_stor_invoke_transport() 686 !(srb->cmnd[2] & 0x20))) { in usb_stor_invoke_transport() 697 (srb->cmnd[0] == INQUIRY) || in usb_stor_invoke_transport() 842 srb->cmnd[0] == ATA_12) { in usb_stor_invoke_transport() 870 srb->cmnd[0] == READ_10)) { in usb_stor_invoke_transport() 1029 srb->cmnd[0] == INQUIRY) in usb_stor_CB_transport() [all …]
|
A D | sddr55.c | 805 if (srb->cmnd[0] == REQUEST_SENSE) { in sddr55_transport() 827 if (srb->cmnd[0] == INQUIRY) { in sddr55_transport() 860 if (srb->cmnd[0] == READ_CAPACITY) { in sddr55_transport() 895 if (srb->cmnd[0] == MODE_SENSE_10) { in sddr55_transport() 923 if (srb->cmnd[0] == READ_10 || srb->cmnd[0] == WRITE_10) { in sddr55_transport() 925 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr55_transport() 927 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in sddr55_transport() 928 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in sddr55_transport() 951 if (srb->cmnd[0] == WRITE_10) { in sddr55_transport() 965 if (srb->cmnd[0] == TEST_UNIT_READY) { in sddr55_transport() [all …]
|
A D | sddr09.c | 1580 if (srb->cmnd[0] == INQUIRY) { in sddr09_transport() 1656 if (srb->cmnd[0] == READ_10) { in sddr09_transport() 1658 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr09_transport() 1660 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in sddr09_transport() 1661 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in sddr09_transport() 1671 if (srb->cmnd[0] == WRITE_10) { in sddr09_transport() 1673 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr09_transport() 1675 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in sddr09_transport() 1676 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in sddr09_transport() 1699 srb->cmnd[srb->cmd_len] = 0; in sddr09_transport() [all …]
|
A D | isd200.c | 329 unsigned char cmnd[BLK_MAX_CDB]; member 488 srb->cmnd = info->cmnd; in isd200_action() 661 (srb->cmnd[0] == INQUIRY) || in isd200_invoke_transport() 662 (srb->cmnd[0] == MODE_SENSE) || in isd200_invoke_transport() 663 (srb->cmnd[0] == LOG_SENSE) || in isd200_invoke_transport() 1234 switch (srb->cmnd[0]) { in isd200_scsi_to_ata() 1311 blockCount = (unsigned long)srb->cmnd[7]<<8 | (unsigned long)srb->cmnd[8]; in isd200_scsi_to_ata() 1343 blockCount = (unsigned long)srb->cmnd[7]<<8 | (unsigned long)srb->cmnd[8]; in isd200_scsi_to_ata() 1376 srb->cmnd[4]); in isd200_scsi_to_ata() 1396 if ((srb->cmnd[4] & 0x3) == 0x2) { in isd200_scsi_to_ata() [all …]
|
A D | alauda.c | 1128 if (srb->cmnd[0] == INQUIRY) { in alauda_transport() 1140 if (srb->cmnd[0] == READ_CAPACITY) { in alauda_transport() 1162 if (srb->cmnd[0] == READ_10) { in alauda_transport() 1169 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in alauda_transport() 1171 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in alauda_transport() 1172 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in alauda_transport() 1179 if (srb->cmnd[0] == WRITE_10) { in alauda_transport() 1186 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in alauda_transport() 1188 page |= short_pack(srb->cmnd[5], srb->cmnd[4]); in alauda_transport() 1189 pages = short_pack(srb->cmnd[8], srb->cmnd[7]); in alauda_transport() [all …]
|
/linux/drivers/scsi/bfa/ |
A D | bfad_im.c | 60 cmnd->underflow) { in bfa_cb_ioim_done() 81 scsi_dma_unmap(cmnd); in bfa_cb_ioim_done() 99 scsi_done(cmnd); in bfa_cb_ioim_done() 113 scsi_dma_unmap(cmnd); in bfa_cb_ioim_good_comp() 127 scsi_done(cmnd); in bfa_cb_ioim_good_comp() 156 cmnd->SCp.ptr = NULL; in bfa_cb_tskim_done() 229 scsi_done(cmnd); in bfad_im_abort_handler() 1219 done(cmnd); in bfad_im_queuecommand_lck() 1228 done(cmnd); in bfad_im_queuecommand_lck() 1240 bfad->inst_no, cmnd, cmnd->cmnd[0]); in bfad_im_queuecommand_lck() [all …]
|
/linux/drivers/staging/rts5208/ |
A D | rtsx_scsi.c | 1100 len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; in read_eeprom() 1147 len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; in write_eeprom() 1202 addr = ((u16)srb->cmnd[2] << 8) | srb->cmnd[3]; in read_mem() 1203 len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; in read_mem() 1255 addr = ((u16)srb->cmnd[2] << 8) | srb->cmnd[3]; in write_mem() 1256 len = ((u16)srb->cmnd[4] << 8) | srb->cmnd[5]; in write_mem() 1746 addr = (srb->cmnd[5] << 8) | srb->cmnd[6]; in rw_mem_cmd_buf() 1810 len = ((u16)srb->cmnd[6] << 8) | srb->cmnd[7]; in read_phy_register() 1869 len = ((u16)srb->cmnd[6] << 8) | srb->cmnd[7]; in write_phy_register() 1971 len = ((u16)srb->cmnd[6] << 8) | srb->cmnd[7]; in read_eeprom2() [all …]
|
A D | spi.c | 456 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9]; in spi_set_parameter() 460 spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; in spi_set_parameter() 479 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash_id() 565 ins = srb->cmnd[3]; in spi_read_flash() 566 addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) in spi_read_flash() 568 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash() 658 ins = srb->cmnd[3]; in spi_write_flash() 659 addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) in spi_write_flash() 661 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_write_flash() 830 ins = srb->cmnd[3]; in spi_erase_flash() [all …]
|
/linux/drivers/scsi/csiostor/ |
A D | csio_scsi.c | 1631 " resid:0x%x\n", cmnd->cmnd[0], in csio_scsi_err_handler() 1632 scsi_bufflen(cmnd), scsi_get_resid(cmnd)); in csio_scsi_err_handler() 1641 cmnd->cmnd[0], scsi_bufflen(cmnd), in csio_scsi_err_handler() 1642 scsi_get_resid(cmnd), cmnd->device->lun, in csio_scsi_err_handler() 1652 cmnd->cmnd[0], in csio_scsi_err_handler() 1938 ioreq, cmnd, *((uint64_t *)cmnd->cmnd), rn->flowid, in csio_eh_abort_handler() 1995 cmnd->device->id, cmnd->device->lun, in csio_eh_abort_handler() 2001 cmnd->device->id, cmnd->device->lun, in csio_eh_abort_handler() 2170 cmnd->device->id, cmnd->device->lun); in csio_eh_lun_reset_handler() 2183 cmnd->device->id, cmnd->device->lun, cmnd->SCp.Status); in csio_eh_lun_reset_handler() [all …]
|
/linux/include/scsi/ |
A D | scsi_common.h | 22 scsi_command_size(const unsigned char *cmnd) in scsi_command_size() argument 24 return (cmnd[0] == VARIABLE_LENGTH_CMD) ? in scsi_command_size() 25 scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]); in scsi_command_size() 29 scsi_command_control(const unsigned char *cmnd) in scsi_command_control() argument 31 return (cmnd[0] == VARIABLE_LENGTH_CMD) ? in scsi_command_control() 32 cmnd[1] : cmnd[COMMAND_SIZE(cmnd[0]) - 1]; in scsi_command_control()
|
/linux/drivers/scsi/aacraid/ |
A D | aachba.c | 2335 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in io_callback() 2427 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in aac_read() 2442 (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; in aac_read() 2445 (scsicmd->cmnd[12] << 8) | scsicmd->cmnd[13]; in aac_read() 2452 (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; in aac_read() 2455 (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; in aac_read() 2462 (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; in aac_read() 2525 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in aac_write() 2539 (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; in aac_write() 2541 (scsicmd->cmnd[12] << 8) | scsicmd->cmnd[13]; in aac_write() [all …]
|
/linux/include/trace/events/ |
A D | scsi.h | 172 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 180 __entry->opcode = cmd->cmnd[0]; 185 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); 194 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), 195 __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len)) 215 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 224 __entry->opcode = cmd->cmnd[0]; 229 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); 260 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 269 __entry->opcode = cmd->cmnd[0]; [all …]
|
/linux/drivers/mmc/host/ |
A D | vub300.c | 342 union sd_command cmnd; member 482 vub300->cmnd.poll.header_size = 22; in send_irqpoll() 483 vub300->cmnd.poll.header_type = 1; in send_irqpoll() 484 vub300->cmnd.poll.port_number = 0; in send_irqpoll() 485 vub300->cmnd.poll.command_type = 2; in send_irqpoll() 490 , &vub300->cmnd, sizeof(vub300->cmnd) in send_irqpoll() 1066 vub300->cmnd.head.header_size = 20; in send_command() 1116 vub300->cmnd.head.command_type = in send_command() 1135 vub300->cmnd.head.command_type = in send_command() 1150 if (vub300->cmnd.head.block_size[0] || vub300->cmnd.head.block_size[1]) { in send_command() [all …]
|
/linux/drivers/scsi/lpfc/ |
A D | lpfc_scsi.c | 3772 ((cmnd->cmnd[0] == READ_10) || (cmnd->cmnd[0] == WRITE_10))) { in lpfc_send_scsi_error_event() 4031 cmnd->device->lun, cmnd->cmnd[0], in lpfc_handle_fcp_err() 4042 cmnd->device->lun, cmnd->cmnd[0], in lpfc_handle_fcp_err() 4089 scsi_get_resid(cmnd), fcpi_parm, cmnd->cmnd[0], in lpfc_handle_fcp_err() 4104 cmnd->cmnd[0]); in lpfc_handle_fcp_err() 4122 cmnd->cmnd[0], scsi_bufflen(cmnd), in lpfc_handle_fcp_err() 5623 cmnd->cmnd[0], scsi_get_prot_op(cmnd), in lpfc_queuecommand() 5708 cmnd->cmnd[0], in lpfc_queuecommand() 5711 (cmnd->cmnd[1]>>5)); in lpfc_queuecommand() 5720 cmnd->cmnd[0], in lpfc_queuecommand() [all …]
|
/linux/drivers/scsi/snic/ |
A D | snic_trc.h | 110 ((u64)sc->cmnd[0] << 56 | (u64)sc->cmnd[7] << 40 | \ 111 (u64)sc->cmnd[8] << 32 | (u64)sc->cmnd[2] << 24 | \ 112 (u64)sc->cmnd[3] << 16 | (u64)sc->cmnd[4] << 8 | \ 113 (u64)sc->cmnd[5])
|
/linux/drivers/scsi/elx/efct/ |
A D | efct_unsol.c | 185 switch (cmnd->fc_pri_ta & FCP_PTA_MASK) { in efct_get_flags_fcp_cmd() 199 if (cmnd->fc_flags & FCP_CFL_WRDATA) in efct_get_flags_fcp_cmd() 201 if (cmnd->fc_flags & FCP_CFL_RDDATA) in efct_get_flags_fcp_cmd() 343 struct fcp_cmnd *cmnd = NULL; in efct_dispatch_fcp_cmd() local 352 cmnd = seq->payload->dma.virt; in efct_dispatch_fcp_cmd() 358 lun = scsilun_to_int(&cmnd->fc_lun); in efct_dispatch_fcp_cmd() 381 if (cmnd->fc_tm_flags) { in efct_dispatch_fcp_cmd() 384 u32 flags = efct_get_flags_fcp_cmd(cmnd); in efct_dispatch_fcp_cmd() 386 if (cmnd->fc_flags & FCP_CFL_LEN_MASK) { in efct_dispatch_fcp_cmd() 394 efct_scsi_recv_cmd(io, lun, cmnd->fc_cdb, in efct_dispatch_fcp_cmd() [all …]
|
/linux/drivers/usb/gadget/function/ |
A D | f_mass_storage.c | 255 u8 cmnd[MAX_COMMAND_SIZE]; member 603 if (common->cmnd[0] == READ_6) in do_read() 743 if (common->cmnd[0] == WRITE_6) in do_write() 959 if (common->cmnd[1] & ~0x10) { in do_verify() 1122 int pmi = common->cmnd[8]; in do_read_capacity() 1145 int pmi = common->cmnd[14]; in do_read_capacity_16() 1215 int mscmnd = common->cmnd[0]; in do_mode_sense() 1227 pc = common->cmnd[2] >> 6; in do_mode_sense() 1818 switch (common->cmnd[0]) { in do_scsi_command() 1877 i = common->cmnd[4]; in do_scsi_command() [all …]
|
/linux/drivers/scsi/ |
A D | ps3rom.c | 88 unsigned char opcode = cmd->cmnd[0]; in ps3rom_atapi_request() 96 memcpy(&atapi_cmnd.pkt, cmd->cmnd, 12); in ps3rom_atapi_request() 150 return cmd->cmnd[2] << 24 | cmd->cmnd[3] << 16 | cmd->cmnd[4] << 8 | in srb10_lba() 151 cmd->cmnd[5]; in srb10_lba() 156 return cmd->cmnd[7] << 8 | cmd->cmnd[8]; in srb10_len() 212 opcode = cmd->cmnd[0]; in ps3rom_queuecommand_lck() 305 if (cmd->cmnd[0] == REQUEST_SENSE) { in ps3rom_interrupt()
|