/linux-6.3-rc2/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() 164 cmnd = devinfo->cmnd[i]; in uas_zap_pending() 229 if (!cmnd) in uas_free_unsubmitted_urbs() 257 scsi_done(cmnd); in uas_try_complete() 268 err = uas_submit_urbs(cmnd, cmnd->device->hostdata); in uas_xfer_data() 329 cmnd = devinfo->cmnd[idx]; in uas_stat_cmplt() 518 memcpy(iu->cdb, cmnd->cmnd, cmnd->cmd_len); in uas_alloc_cmd_urb() 647 (cmnd->cmnd[0] == ATA_12 || cmnd->cmnd[0] == ATA_16)) { in uas_queuecommand_lck() 651 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() 120 srb->cmnd[11] = save_cmnd[13]; /* device */ 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[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 | 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 | 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 | 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 …]
|
/linux-6.3-rc2/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() 140 scsi_dma_unmap(cmnd); in bfa_cb_ioim_abort() 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-6.3-rc2/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() 477 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash_id() 563 ins = srb->cmnd[3]; in spi_read_flash() 564 addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) in spi_read_flash() 566 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash() 656 ins = srb->cmnd[3]; in spi_write_flash() 657 addr = ((u32)(srb->cmnd[4]) << 16) | ((u32)(srb->cmnd[5]) in spi_write_flash() 659 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_write_flash() 828 ins = srb->cmnd[3]; in spi_erase_flash() [all …]
|
/linux-6.3-rc2/drivers/scsi/ |
A D | sd_trace.h | 18 TP_PROTO(struct scsi_cmnd *cmnd, sector_t lba, 21 TP_ARGS(cmnd, lba, wp_offset), 33 __entry->host_no = cmnd->device->host->host_no; 34 __entry->channel = cmnd->device->channel; 35 __entry->id = cmnd->device->id; 36 __entry->lun = cmnd->device->lun; 51 TP_ARGS(cmnd, rq_sector, wp_offset, good_bytes), 64 __entry->host_no = cmnd->device->host->host_no; 65 __entry->channel = cmnd->device->channel; 66 __entry->id = cmnd->device->id; [all …]
|
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()
|
A D | scsi_error.c | 1027 memcpy(ses->cmnd, scmd->cmnd, sizeof(ses->cmnd)); in scsi_eh_prep_cmnd() 1028 memset(scmd->cmnd, 0, sizeof(scmd->cmnd)); in scsi_eh_prep_cmnd() 1041 scmd->cmnd[0] = REQUEST_SENSE; in scsi_eh_prep_cmnd() 1046 if (cmnd) { in scsi_eh_prep_cmnd() 1048 memcpy(scmd->cmnd, cmnd, cmnd_size); in scsi_eh_prep_cmnd() 1056 scmd->cmnd[1] = (scmd->cmnd[1] & 0x1f) | in scsi_eh_prep_cmnd() 1080 memcpy(scmd->cmnd, ses->cmnd, sizeof(ses->cmnd)); in scsi_eh_restore_cmnd() 2045 scmd->cmnd[1] = 0; in scsi_eh_lock_door() 2046 scmd->cmnd[2] = 0; in scsi_eh_lock_door() 2047 scmd->cmnd[3] = 0; in scsi_eh_lock_door() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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, in csio_eh_lun_reset_handler() [all …]
|
/linux-6.3-rc2/drivers/scsi/aacraid/ |
A D | aachba.c | 2339 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in io_callback() 2431 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in aac_read() 2446 (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; in aac_read() 2449 (scsicmd->cmnd[12] << 8) | scsicmd->cmnd[13]; in aac_read() 2456 (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; in aac_read() 2459 (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; in aac_read() 2466 (scsicmd->cmnd[4] << 8) | scsicmd->cmnd[5]; in aac_read() 2529 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in aac_write() 2543 (scsicmd->cmnd[8] << 8) | scsicmd->cmnd[9]; in aac_write() 2545 (scsicmd->cmnd[12] << 8) | scsicmd->cmnd[13]; in aac_write() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
A D | scsi.h | 174 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 182 __entry->opcode = cmd->cmnd[0]; 189 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); 198 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), 199 __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len)) 221 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 230 __entry->opcode = cmd->cmnd[0]; 237 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); 271 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 280 __entry->opcode = cmd->cmnd[0]; [all …]
|
/linux-6.3-rc2/drivers/scsi/snic/ |
A D | snic_trc.h | 96 ((u64)sc->cmnd[0] << 56 | (u64)sc->cmnd[7] << 40 | \ 97 (u64)sc->cmnd[8] << 32 | (u64)sc->cmnd[2] << 24 | \ 98 (u64)sc->cmnd[3] << 16 | (u64)sc->cmnd[4] << 8 | \ 99 (u64)sc->cmnd[5])
|
/linux-6.3-rc2/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-6.3-rc2/drivers/scsi/lpfc/ |
A D | lpfc_scsi.c | 3605 ((cmnd->cmnd[0] == READ_10) || (cmnd->cmnd[0] == WRITE_10))) { in lpfc_send_scsi_error_event() 3864 cmnd->device->lun, cmnd->cmnd[0], in lpfc_handle_fcp_err() 3875 cmnd->device->lun, cmnd->cmnd[0], in lpfc_handle_fcp_err() 3922 scsi_get_resid(cmnd), fcpi_parm, cmnd->cmnd[0], in lpfc_handle_fcp_err() 3937 cmnd->cmnd[0]); in lpfc_handle_fcp_err() 3955 cmnd->cmnd[0], scsi_bufflen(cmnd), in lpfc_handle_fcp_err() 5266 cmnd->cmnd[0], scsi_get_prot_op(cmnd), in lpfc_queuecommand() 5352 cmnd->cmnd[0], in lpfc_queuecommand() 5355 (cmnd->cmnd[1]>>5)); in lpfc_queuecommand() 5364 cmnd->cmnd[0], in lpfc_queuecommand() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/drivers/usb/gadget/function/ |
A D | f_mass_storage.c | 257 u8 cmnd[MAX_COMMAND_SIZE]; member 605 if (common->cmnd[0] == READ_6) in do_read() 745 if (common->cmnd[0] == WRITE_6) in do_write() 961 if (common->cmnd[1] & ~0x10) { in do_verify() 1124 int pmi = common->cmnd[8]; in do_read_capacity() 1147 int pmi = common->cmnd[14]; in do_read_capacity_16() 1264 int mscmnd = common->cmnd[0]; in do_mode_sense() 1276 pc = common->cmnd[2] >> 6; in do_mode_sense() 1867 switch (common->cmnd[0]) { in do_scsi_command() 1926 i = common->cmnd[4]; in do_scsi_command() [all …]
|