/linux-3.4.99/drivers/staging/rts5139/ |
D | rts51x_fop.c | 47 struct sd_direct_cmnd *cmnd) in rts51x_sd_direct_cmnd() argument 54 dir = (cmnd->cmnd[0] >> 3) & 0x03; in rts51x_sd_direct_cmnd() 55 cmd12 = (cmnd->cmnd[0] >> 2) & 0x01; in rts51x_sd_direct_cmnd() 56 standby = (cmnd->cmnd[0] >> 1) & 0x01; in rts51x_sd_direct_cmnd() 57 acmd = cmnd->cmnd[0] & 0x01; in rts51x_sd_direct_cmnd() 58 cmd_idx = cmnd->cmnd[1]; in rts51x_sd_direct_cmnd() 59 arg = ((u32) (cmnd->cmnd[2]) << 24) | ((u32) (cmnd->cmnd[3]) << 16) | in rts51x_sd_direct_cmnd() 60 ((u32) (cmnd->cmnd[4]) << 8) | cmnd->cmnd[5]; in rts51x_sd_direct_cmnd() 62 ((u32) (cmnd->cmnd[6]) << 16) | ((u32) (cmnd->cmnd[7]) << 8) | in rts51x_sd_direct_cmnd() 63 cmnd->cmnd[8]; in rts51x_sd_direct_cmnd() [all …]
|
D | rts51x_scsi.c | 53 switch (srb->cmnd[0]) { in scsi_show_command() 327 if (srb->cmnd[0] != TEST_UNIT_READY) in scsi_show_command() 332 RTS51X_DEBUGPN(" %02x", srb->cmnd[i]); in scsi_show_command() 549 if (srb->cmnd[1] == 1) in start_stop_unit() 552 switch (srb->cmnd[0x4]) { in start_stop_unit() 582 prevent = srb->cmnd[4] & 0x1; in allow_medium_removal() 715 pageCode = srb->cmnd[2] & 0x3f; in mode_sense() 719 if (srb->cmnd[0] == MODE_SENSE) { in mode_sense() 721 ms_mode_sense(chip, srb->cmnd[0], lun, buf, in mode_sense() 734 ms_mode_sense(chip, srb->cmnd[0], lun, buf, in mode_sense() [all …]
|
D | sd_cprm.c | 963 if ((0x53 != srb->cmnd[2]) || (0x44 != srb->cmnd[3]) 964 || (0x20 != srb->cmnd[4]) || (0x43 != srb->cmnd[5]) 965 || (0x61 != srb->cmnd[6]) || (0x72 != srb->cmnd[7]) 966 || (0x64 != srb->cmnd[8])) { 971 switch (srb->cmnd[1] & 0x0F) { 1015 cmd_idx = srb->cmnd[2] & 0x3F; 1016 if (srb->cmnd[1] & 0x02) 1018 if (srb->cmnd[1] & 0x01) 1021 arg = ((u32) srb->cmnd[3] << 24) | ((u32) srb->cmnd[4] << 16) | 1022 ((u32) srb->cmnd[5] << 8) | srb->cmnd[6]; [all …]
|
/linux-3.4.99/drivers/usb/storage/ |
D | cypress_atacb.c | 87 if (likely(srb->cmnd[0] != ATA_16 && srb->cmnd[0] != ATA_12)) { in cypress_atacb_passthrough() 92 memcpy(save_cmnd, srb->cmnd, sizeof(save_cmnd)); in cypress_atacb_passthrough() 93 memset(srb->cmnd, 0, MAX_COMMAND_SIZE); in cypress_atacb_passthrough() 111 srb->cmnd[0] = 0x24; /* bVSCBSignature : vendor-specific command in cypress_atacb_passthrough() 114 srb->cmnd[1] = 0x24; /* bVSCBSubCommand : 0x24 for ATACB */ in cypress_atacb_passthrough() 116 srb->cmnd[3] = 0xff - 1; /* features, sector count, lba low, lba med in cypress_atacb_passthrough() 118 srb->cmnd[4] = 1; /* TransferBlockCount : 512 */ in cypress_atacb_passthrough() 121 srb->cmnd[ 6] = save_cmnd[ 4]; /* features */ in cypress_atacb_passthrough() 122 srb->cmnd[ 7] = save_cmnd[ 6]; /* sector count */ in cypress_atacb_passthrough() 123 srb->cmnd[ 8] = save_cmnd[ 8]; /* lba low */ in cypress_atacb_passthrough() [all …]
|
D | uas.c | 48 struct scsi_cmnd *cmnd; member 76 static int uas_submit_urbs(struct scsi_cmnd *cmnd, 97 struct scsi_cmnd *cmnd = container_of(scp, in uas_do_work() local 99 err = uas_submit_urbs(cmnd, cmnd->device->hostdata, GFP_NOIO); in uas_do_work() 110 static void uas_sense(struct urb *urb, struct scsi_cmnd *cmnd) in uas_sense() argument 113 struct scsi_device *sdev = cmnd->device; in uas_sense() 127 memcpy(cmnd->sense_buffer, sense_iu->sense, len); in uas_sense() 130 cmnd->result = sense_iu->status; in uas_sense() 131 cmnd->scsi_done(cmnd); in uas_sense() 134 static void uas_sense_old(struct urb *urb, struct scsi_cmnd *cmnd) in uas_sense_old() argument [all …]
|
D | jumpshot.c | 398 pc = srb->cmnd[2] >> 6; in jumpshot_handle_mode_sense() 399 page_code = srb->cmnd[2] & 0x3F; in jumpshot_handle_mode_sense() 506 if (srb->cmnd[0] == INQUIRY) { in jumpshot_transport() 513 if (srb->cmnd[0] == READ_CAPACITY) { in jumpshot_transport() 536 if (srb->cmnd[0] == MODE_SELECT_10) { in jumpshot_transport() 541 if (srb->cmnd[0] == READ_10) { in jumpshot_transport() 542 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport() 543 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport() 545 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport() 551 if (srb->cmnd[0] == READ_12) { in jumpshot_transport() [all …]
|
D | datafab.c | 472 pc = srb->cmnd[2] >> 6; in datafab_handle_mode_sense() 473 page_code = srb->cmnd[2] & 0x3F; in datafab_handle_mode_sense() 580 if (srb->cmnd[0] == INQUIRY) { in datafab_transport() 587 if (srb->cmnd[0] == READ_CAPACITY) { in datafab_transport() 605 if (srb->cmnd[0] == MODE_SELECT_10) { in datafab_transport() 612 if (srb->cmnd[0] == READ_10) { in datafab_transport() 613 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport() 614 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport() 616 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport() 622 if (srb->cmnd[0] == READ_12) { in datafab_transport() [all …]
|
D | shuttle_usbat.c | 1591 data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7]; in usbat_hp8200e_transport() 1598 if (srb->cmnd[0] == TEST_UNIT_READY) in usbat_hp8200e_transport() 1618 } else if (srb->cmnd[0] == READ_10 || in usbat_hp8200e_transport() 1619 srb->cmnd[0] == GPCMD_READ_CD) { in usbat_hp8200e_transport() 1646 result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12, in usbat_hp8200e_transport() 1647 srb->cmnd[0] == GPCMD_BLANK ? 75 : 10, 0); in usbat_hp8200e_transport() 1695 if (srb->cmnd[0] == INQUIRY) { in usbat_flash_transport() 1702 if (srb->cmnd[0] == READ_CAPACITY) { in usbat_flash_transport() 1728 if (srb->cmnd[0] == MODE_SELECT_10) { in usbat_flash_transport() 1733 if (srb->cmnd[0] == READ_10) { in usbat_flash_transport() [all …]
|
D | protocol.c | 70 srb->cmnd[srb->cmd_len] = 0; in usb_stor_pad12_command() 87 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ufi_command() 95 switch (srb->cmnd[0]) { in usb_stor_ufi_command() 99 srb->cmnd[4] = 36; in usb_stor_ufi_command() 104 srb->cmnd[7] = 0; in usb_stor_ufi_command() 105 srb->cmnd[8] = 8; in usb_stor_ufi_command() 110 srb->cmnd[4] = 18; in usb_stor_ufi_command()
|
D | realtek_cr.c | 367 u8 cmnd[12] = { 0 }; in rts51x_read_mem() local 376 cmnd[0] = 0xF0; in rts51x_read_mem() 377 cmnd[1] = 0x0D; in rts51x_read_mem() 378 cmnd[2] = (u8) (addr >> 8); in rts51x_read_mem() 379 cmnd[3] = (u8) addr; in rts51x_read_mem() 380 cmnd[4] = (u8) (len >> 8); in rts51x_read_mem() 381 cmnd[5] = (u8) len; in rts51x_read_mem() 383 retval = rts51x_bulk_transport(us, 0, cmnd, 12, in rts51x_read_mem() 398 u8 cmnd[12] = { 0 }; in rts51x_write_mem() local 407 cmnd[0] = 0xF0; in rts51x_write_mem() [all …]
|
D | sddr55.c | 810 if (srb->cmnd[0] == REQUEST_SENSE) { in sddr55_transport() 827 if (srb->cmnd[0] == INQUIRY) { in sddr55_transport() 857 if (srb->cmnd[0] == READ_CAPACITY) { in sddr55_transport() 888 if (srb->cmnd[0] == MODE_SENSE_10) { in sddr55_transport() 894 if ( (srb->cmnd[2] & 0x3F) == 0x01 ) { in sddr55_transport() 899 } else if ( (srb->cmnd[2] & 0x3F) == 0x3F ) { in sddr55_transport() 909 if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { in sddr55_transport() 914 (srb->cmnd[4]&0x03) ? "Prevent" : "Allow"); in sddr55_transport() 920 if (srb->cmnd[0] == READ_10 || srb->cmnd[0] == WRITE_10) { in sddr55_transport() 922 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr55_transport() [all …]
|
D | transport.c | 547 if (srb->cmnd[0] != READ_10 && srb->cmnd[0] != WRITE_10) in last_sector_hacks() 551 sector = (srb->cmnd[2] << 24) | (srb->cmnd[3] << 16) | in last_sector_hacks() 552 (srb->cmnd[4] << 8) | (srb->cmnd[5]); in last_sector_hacks() 590 if (srb->cmnd[0] != TEST_UNIT_READY) in last_sector_hacks() 668 if (unlikely((srb->cmnd[0] == ATA_16 || srb->cmnd[0] == ATA_12) && in usb_stor_invoke_transport() 672 !(srb->cmnd[2] & 0x20))) { in usb_stor_invoke_transport() 682 !((srb->cmnd[0] == REQUEST_SENSE) || in usb_stor_invoke_transport() 683 (srb->cmnd[0] == INQUIRY) || in usb_stor_invoke_transport() 684 (srb->cmnd[0] == MODE_SENSE) || in usb_stor_invoke_transport() 685 (srb->cmnd[0] == LOG_SENSE) || in usb_stor_invoke_transport() [all …]
|
/linux-3.4.99/drivers/scsi/bfa/ |
D | bfad_im.c | 34 static int bfad_im_queuecommand(struct Scsi_Host *h, struct scsi_cmnd *cmnd); 44 struct scsi_cmnd *cmnd = (struct scsi_cmnd *)dio; in bfa_cb_ioim_done() local 53 scsi_set_resid(cmnd, 0); in bfa_cb_ioim_done() 59 memcpy(cmnd->sense_buffer, sns_info, sns_len); in bfa_cb_ioim_done() 64 scsi_set_resid(cmnd, residue); in bfa_cb_ioim_done() 66 (scsi_bufflen(cmnd) - residue) < in bfa_cb_ioim_done() 67 cmnd->underflow) { in bfa_cb_ioim_done() 72 cmnd->result = ScsiResult(host_status, scsi_status); in bfa_cb_ioim_done() 81 cmnd->result = ScsiResult(host_status, 0); in bfa_cb_ioim_done() 85 if (cmnd->device->host != NULL) in bfa_cb_ioim_done() [all …]
|
/linux-3.4.99/drivers/scsi/aacraid/ |
D | aachba.c | 833 sp[1] = scsicmd->cmnd[2]; in get_container_serial_callback() 1196 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); in aac_scsi_64() 1224 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); in aac_scsi_32() 1538 switch (scsicmd->cmnd[0]) { in io_callback() 1541 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | in io_callback() 1542 (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in io_callback() 1546 lba = ((u64)scsicmd->cmnd[2] << 56) | in io_callback() 1547 ((u64)scsicmd->cmnd[3] << 48) | in io_callback() 1548 ((u64)scsicmd->cmnd[4] << 40) | in io_callback() 1549 ((u64)scsicmd->cmnd[5] << 32) | in io_callback() [all …]
|
/linux-3.4.99/drivers/staging/rts_pstor/ |
D | rtsx_scsi.c | 43 switch (srb->cmnd[0]) { in scsi_show_command() 138 if (srb->cmnd[0] != TEST_UNIT_READY) { in scsi_show_command() 144 RTSX_DEBUGPN(" %02x", srb->cmnd[i]); in scsi_show_command() 394 if (srb->cmnd[1] == 1) in start_stop_unit() 397 switch (srb->cmnd[0x4]) { in start_stop_unit() 428 prevent = srb->cmnd[4] & 0x1; in allow_medium_removal() 622 pageCode = srb->cmnd[2] & 0x3f; in mode_sense() 627 if (srb->cmnd[0] == MODE_SENSE) { in mode_sense() 629 ms_mode_sense(chip, srb->cmnd[0], in mode_sense() 644 ms_mode_sense(chip, srb->cmnd[0], in mode_sense() [all …]
|
D | spi.c | 393 spi->spi_clock = ((u16)(srb->cmnd[8]) << 8) | srb->cmnd[9]; in spi_set_parameter() 395 spi->spi_clock = srb->cmnd[3]; in spi_set_parameter() 397 spi->clk_div = ((u16)(srb->cmnd[4]) << 8) | srb->cmnd[5]; in spi_set_parameter() 398 spi->write_en = srb->cmnd[6]; in spi_set_parameter() 414 len = ((u16)(srb->cmnd[7]) << 8) | srb->cmnd[8]; in spi_read_flash_id() 430 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_COMMAND, 0xFF, srb->cmnd[3]); in spi_read_flash_id() 431 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR2, 0xFF, srb->cmnd[4]); in spi_read_flash_id() 432 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR1, 0xFF, srb->cmnd[5]); in spi_read_flash_id() 433 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_ADDR0, 0xFF, srb->cmnd[6]); in spi_read_flash_id() 435 rtsx_add_cmd(chip, WRITE_REG_CMD, SPI_LENGTH1, 0xFF, srb->cmnd[7]); in spi_read_flash_id() [all …]
|
/linux-3.4.99/drivers/scsi/lpfc/ |
D | lpfc_scsi.c | 81 lpfc_debug_save_data(struct lpfc_hba *phba, struct scsi_cmnd *cmnd) in lpfc_debug_save_data() argument 84 struct scatterlist *sgde = scsi_sglist(cmnd); in lpfc_debug_save_data() 110 lpfc_debug_save_dif(struct lpfc_hba *phba, struct scsi_cmnd *cmnd) in lpfc_debug_save_dif() argument 113 struct scatterlist *sgde = scsi_prot_sglist(cmnd); in lpfc_debug_save_dif() 2769 cmd->cmnd[0], (unsigned long long)scsi_get_lba(cmd), in lpfc_parse_bg_err() 2776 (cmd->cmnd[7] << 8 | cmd->cmnd[8])); in lpfc_parse_bg_err() 2784 (cmd->cmnd[7] << 8 | cmd->cmnd[8])); in lpfc_parse_bg_err() 3241 struct scsi_cmnd *cmnd = lpfc_cmd->pCmd; in lpfc_send_scsi_error_event() local 3254 if ((cmnd->result == SAM_STAT_TASK_SET_FULL) || in lpfc_send_scsi_error_event() 3255 (cmnd->result == SAM_STAT_BUSY)) { in lpfc_send_scsi_error_event() [all …]
|
/linux-3.4.99/include/trace/events/ |
D | scsi.h | 217 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 225 __entry->opcode = cmd->cmnd[0]; 230 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); 239 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), 240 __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len)) 260 __dynamic_array(unsigned char, cmnd, cmd->cmd_len) 269 __entry->opcode = cmd->cmnd[0]; 274 memcpy(__get_dynamic_array(cmnd), cmd->cmnd, cmd->cmd_len); 283 __parse_cdb(__get_dynamic_array(cmnd), __entry->cmd_len), 284 __print_hex(__get_dynamic_array(cmnd), __entry->cmd_len), [all …]
|
/linux-3.4.99/drivers/mmc/host/ |
D | vub300.c | 345 union sd_command cmnd; member 485 vub300->cmnd.poll.header_size = 22; in send_irqpoll() 486 vub300->cmnd.poll.header_type = 1; in send_irqpoll() 487 vub300->cmnd.poll.port_number = 0; in send_irqpoll() 488 vub300->cmnd.poll.command_type = 2; in send_irqpoll() 489 vub300->cmnd.poll.poll_timeout_lsb = 0xFF & (unsigned)timeout; in send_irqpoll() 490 vub300->cmnd.poll.poll_timeout_msb = 0xFF & (unsigned)(timeout >> 8); in send_irqpoll() 493 , &vub300->cmnd, sizeof(vub300->cmnd) in send_irqpoll() 1073 vub300->cmnd.head.header_size = 20; in send_command() 1074 vub300->cmnd.head.header_type = 0x00; in send_command() [all …]
|
/linux-3.4.99/arch/ia64/hp/sim/ |
D | simscsi.c | 163 offset = (((sc->cmnd[1] & 0x1f) << 16) | (sc->cmnd[2] << 8) | sc->cmnd[3])*512; in simscsi_readwrite6() 197 offset = (((unsigned long)sc->cmnd[2] << 24) in simscsi_readwrite10() 198 | ((unsigned long)sc->cmnd[3] << 16) in simscsi_readwrite10() 199 | ((unsigned long)sc->cmnd[4] << 8) in simscsi_readwrite10() 200 | ((unsigned long)sc->cmnd[5] << 0))*512UL; in simscsi_readwrite10() 217 target_id, sc->cmnd[0], sc->serial_number, sp, done); in simscsi_queuecommand_lck() 223 switch (sc->cmnd[0]) { in simscsi_queuecommand_lck() 310 panic("simscsi: unknown SCSI command %u\n", sc->cmnd[0]); in simscsi_queuecommand_lck()
|
/linux-3.4.99/drivers/scsi/ |
D | sd.c | 681 if (SCpnt->cmnd != rq->cmd) { in sd_unprep_fn() 682 mempool_free(SCpnt->cmnd, sd_cdb_pool); in sd_unprep_fn() 683 SCpnt->cmnd = NULL; in sd_unprep_fn() 825 SCpnt->cmnd[0] = WRITE_6; in sd_prep_fn() 833 SCpnt->cmnd[0] = READ_6; in sd_prep_fn() 854 SCpnt->cmnd = mempool_alloc(sd_cdb_pool, GFP_ATOMIC); in sd_prep_fn() 856 if (unlikely(SCpnt->cmnd == NULL)) { in sd_prep_fn() 862 memset(SCpnt->cmnd, 0, SCpnt->cmd_len); in sd_prep_fn() 863 SCpnt->cmnd[0] = VARIABLE_LENGTH_CMD; in sd_prep_fn() 864 SCpnt->cmnd[7] = 0x18; in sd_prep_fn() [all …]
|
D | ps3rom.c | 100 unsigned char opcode = cmd->cmnd[0]; in ps3rom_atapi_request() 108 memcpy(&atapi_cmnd.pkt, cmd->cmnd, 12); in ps3rom_atapi_request() 162 return cmd->cmnd[2] << 24 | cmd->cmnd[3] << 16 | cmd->cmnd[4] << 8 | in srb10_lba() 163 cmd->cmnd[5]; in srb10_lba() 168 return cmd->cmnd[7] << 8 | cmd->cmnd[8]; in srb10_len() 230 opcode = cmd->cmnd[0]; in ps3rom_queuecommand_lck() 325 if (cmd->cmnd[0] == REQUEST_SENSE) { in ps3rom_interrupt()
|
/linux-3.4.99/drivers/usb/gadget/ |
D | f_mass_storage.c | 367 u8 cmnd[MAX_COMMAND_SIZE]; member 756 if (common->cmnd[0] == READ_6) in do_read() 757 lba = get_unaligned_be24(&common->cmnd[1]); in do_read() 759 lba = get_unaligned_be32(&common->cmnd[2]); in do_read() 766 if ((common->cmnd[1] & ~0x18) != 0) { in do_read() 896 if (common->cmnd[0] == WRITE_6) in do_write() 897 lba = get_unaligned_be24(&common->cmnd[1]); in do_write() 899 lba = get_unaligned_be32(&common->cmnd[2]); in do_write() 907 if (common->cmnd[1] & ~0x18) { in do_write() 911 if (!curlun->nofua && (common->cmnd[1] & 0x08)) { /* FUA */ in do_write() [all …]
|
D | file_storage.c | 470 u8 cmnd[MAX_COMMAND_SIZE]; member 1166 if (fsg->cmnd[0] == READ_6) in do_read() 1167 lba = get_unaligned_be24(&fsg->cmnd[1]); in do_read() 1169 lba = get_unaligned_be32(&fsg->cmnd[2]); in do_read() 1174 if ((fsg->cmnd[1] & ~0x18) != 0) { in do_read() 1298 if (fsg->cmnd[0] == WRITE_6) in do_write() 1299 lba = get_unaligned_be24(&fsg->cmnd[1]); in do_write() 1301 lba = get_unaligned_be32(&fsg->cmnd[2]); in do_write() 1307 if ((fsg->cmnd[1] & ~0x18) != 0) { in do_write() 1312 if (!curlun->nofua && (fsg->cmnd[1] & 0x08)) { in do_write() [all …]
|
/linux-3.4.99/drivers/usb/image/ |
D | microtek.c | 230 switch (srb->cmnd[0]) { in mts_show_command() 304 srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], srb->cmnd[4], srb->cmnd[5], in mts_show_command() 305 srb->cmnd[6], srb->cmnd[7], srb->cmnd[8], srb->cmnd[9]); in mts_show_command() 476 if (context->srb->cmnd[0] == REQUEST_SENSE) { in mts_command_done() 558 if ( !memcmp( srb->cmnd, mts_read_image_sig, mts_read_image_sig_len ) in mts_build_transfer_context() 562 } else if ( MTS_DIRECTION_IS_IN(srb->cmnd[0]) ) { in mts_build_transfer_context() 604 srb->cmnd, in mts_scsi_queuecommand_lck()
|