/linux-2.4.37.9/drivers/usb/storage/ |
D | protocol.c | 81 if (srb->cmnd[0] != INQUIRY) in fix_inquiry_data() 111 if (srb->cmnd[0] != READ_CAPACITY) in fix_read_capacity() 137 srb->cmnd[srb->cmd_len] = 0; in usb_stor_qic157_command() 164 srb->cmnd[srb->cmd_len] = 0; in usb_stor_ATAPI_command() 170 switch (srb->cmnd[0]) { in usb_stor_ATAPI_command() 176 old_cmnd = srb->cmnd[0]; in usb_stor_ATAPI_command() 178 srb->cmnd[11] = 0; in usb_stor_ATAPI_command() 179 srb->cmnd[10] = 0; in usb_stor_ATAPI_command() 180 srb->cmnd[9] = 0; in usb_stor_ATAPI_command() 181 srb->cmnd[8] = srb->cmnd[4]; in usb_stor_ATAPI_command() [all …]
|
D | jumpshot.c | 559 param_len = srb->cmnd[4]; in jumpshot_handle_mode_sense() 561 param_len = ((u32) (srb->cmnd[7]) >> 8) | ((u32) (srb->cmnd[8])); in jumpshot_handle_mode_sense() 564 pc = srb->cmnd[2] >> 6; in jumpshot_handle_mode_sense() 565 page_code = srb->cmnd[2] & 0x3F; in jumpshot_handle_mode_sense() 690 if (srb->cmnd[0] == INQUIRY) { in jumpshot_transport() 697 if (srb->cmnd[0] == READ_CAPACITY) { in jumpshot_transport() 719 if (srb->cmnd[0] == MODE_SELECT_10) { in jumpshot_transport() 724 if (srb->cmnd[0] == READ_10) { in jumpshot_transport() 725 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in jumpshot_transport() 726 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in jumpshot_transport() [all …]
|
D | datafab.c | 562 param_len = srb->cmnd[4]; in datafab_handle_mode_sense() 564 param_len = ((u16) (srb->cmnd[7]) >> 8) | ((u16) (srb->cmnd[8])); in datafab_handle_mode_sense() 566 pc = srb->cmnd[2] >> 6; in datafab_handle_mode_sense() 567 page_code = srb->cmnd[2] & 0x3F; in datafab_handle_mode_sense() 690 if (srb->cmnd[0] == INQUIRY) { in datafab_transport() 697 if (srb->cmnd[0] == READ_CAPACITY) { in datafab_transport() 725 if (srb->cmnd[0] == MODE_SELECT_10) { in datafab_transport() 733 if (srb->cmnd[0] == READ_10) { in datafab_transport() 734 block = ((u32)(srb->cmnd[2]) << 24) | ((u32)(srb->cmnd[3]) << 16) | in datafab_transport() 735 ((u32)(srb->cmnd[4]) << 8) | ((u32)(srb->cmnd[5])); in datafab_transport() [all …]
|
D | transport.c | 220 switch (lengths[srb->cmnd[0]]) { in usb_stor_transfer_length() 222 len = srb->cmnd[4]; in usb_stor_transfer_length() 226 len = srb->cmnd[8]; in usb_stor_transfer_length() 239 len = lengths[srb->cmnd[0]]-'0'; in usb_stor_transfer_length() 243 len = (((unsigned int)srb->cmnd[3])<<8) | in usb_stor_transfer_length() 244 srb->cmnd[4]; in usb_stor_transfer_length() 248 len = (((unsigned int)srb->cmnd[7])<<8) | in usb_stor_transfer_length() 249 srb->cmnd[8]; in usb_stor_transfer_length() 253 len = (((unsigned int)srb->cmnd[8])<<8) | in usb_stor_transfer_length() 254 srb->cmnd[9]; in usb_stor_transfer_length() [all …]
|
D | debug.c | 53 switch (srb->cmnd[0]) { in usb_stor_show_command() 149 srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], in usb_stor_show_command() 150 srb->cmnd[4], srb->cmnd[5], srb->cmnd[6], srb->cmnd[7], in usb_stor_show_command() 151 srb->cmnd[8], srb->cmnd[9], srb->cmnd[10], in usb_stor_show_command() 152 srb->cmnd[11]); in usb_stor_show_command() 162 US_DEBUGP("cmd->cmnd[0] value is %d.\n", cmd->cmnd[0] ); in usb_stor_print_Scsi_Cmnd()
|
D | sddr55.c | 939 if (srb->cmnd[0] == REQUEST_SENSE) { in sddr55_transport() 940 i = srb->cmnd[4]; in sddr55_transport() 962 if (srb->cmnd[0] == INQUIRY) { in sddr55_transport() 991 if (srb->cmnd[0] == READ_CAPACITY) { in sddr55_transport() 1029 if (srb->cmnd[0] == MODE_SENSE) { in sddr55_transport() 1033 if ( (srb->cmnd[2] & 0x3F) == 0x01 ) { in sddr55_transport() 1047 } else if ( (srb->cmnd[2] & 0x3F) == 0x3F ) { in sddr55_transport() 1067 if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { in sddr55_transport() 1072 (srb->cmnd[4]&0x03) ? "Prevent" : "Allow"); in sddr55_transport() 1078 if (srb->cmnd[0] == READ_10 || srb->cmnd[0] == WRITE_10) { in sddr55_transport() [all …]
|
D | sddr09.c | 1594 if (srb->cmnd[0] == REQUEST_SENSE && havefakesense) { in sddr09_transport() 1612 if (srb->cmnd[0] == INQUIRY) { in sddr09_transport() 1618 if (srb->cmnd[0] == READ_CAPACITY) { in sddr09_transport() 1656 if (srb->cmnd[0] == MODE_SENSE) { in sddr09_transport() 1661 if ( (srb->cmnd[2] & 0x3F) == 0x01 ) { in sddr09_transport() 1675 } else if ( (srb->cmnd[2] & 0x3F) == 0x3F ) { in sddr09_transport() 1692 if (srb->cmnd[0] == ALLOW_MEDIUM_REMOVAL) { in sddr09_transport() 1697 (srb->cmnd[4]&0x03) ? "Prevent" : "Allow"); in sddr09_transport() 1705 if (srb->cmnd[0] == READ_10) { in sddr09_transport() 1707 page = short_pack(srb->cmnd[3], srb->cmnd[2]); in sddr09_transport() [all …]
|
D | isd200.c | 555 bcb.Lun = srb->cmnd[1] >> 5; in isd200_Bulk_transport() 836 if (!((srb->cmnd[0] == REQUEST_SENSE) || in isd200_invoke_transport() 837 (srb->cmnd[0] == INQUIRY) || in isd200_invoke_transport() 838 (srb->cmnd[0] == MODE_SENSE) || in isd200_invoke_transport() 839 (srb->cmnd[0] == LOG_SENSE) || in isd200_invoke_transport() 840 (srb->cmnd[0] == MODE_SENSE_10))) { in isd200_invoke_transport() 1443 switch (srb->cmnd[0]) { in isd200_scsi_to_ata() 1527 lba = *(unsigned long *)&srb->cmnd[2]; in isd200_scsi_to_ata() 1529 blockCount = (unsigned long)srb->cmnd[7]<<8 | (unsigned long)srb->cmnd[8]; in isd200_scsi_to_ata() 1560 lba = *(unsigned long *)&srb->cmnd[2]; in isd200_scsi_to_ata() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | blkcdb.h | 86 SCpnt->cmnd[0] = WRITE_6/READ_6; 87 SCpnt->cmnd[1] = (SCpnt->device->scsi_level <= SCSI_2) ? 89 SCpnt->cmnd[2] = (unsigned char) (block >> 24) & 0xff; 90 SCpnt->cmnd[3] = (unsigned char) (block >> 16) & 0xff; 91 SCpnt->cmnd[4] = (unsigned char) (block >> 8) & 0xff; 92 SCpnt->cmnd[5] = (unsigned char) block & 0xff; 93 SCpnt->cmnd[6] = 0; 94 SCpnt->cmnd[7] = (unsigned char) (this_count >> 8) & 0xff; 95 SCpnt->cmnd[8] = (unsigned char) this_count & 0xff; 96 SCpnt->cmnd[9] = 0;
|
/linux-2.4.37.9/drivers/scsi/ |
D | eata_dma_proc.c | 73 char cmnd[MAX_COMMAND_SIZE]; in eata_proc_info() local 169 cmnd[0] = LOG_SENSE; in eata_proc_info() 170 cmnd[1] = 0; in eata_proc_info() 171 cmnd[2] = 0x33 + (3<<6); in eata_proc_info() 172 cmnd[3] = 0; in eata_proc_info() 173 cmnd[4] = 0; in eata_proc_info() 174 cmnd[5] = 0; in eata_proc_info() 175 cmnd[6] = 0; in eata_proc_info() 176 cmnd[7] = 0x00; in eata_proc_info() 177 cmnd[8] = 0x66; in eata_proc_info() [all …]
|
D | 53c700.c | 516 hash = hash_ITLQ(slot->cmnd->target, slot->cmnd->lun, in free_slot() 531 hash = hash_ITL(slot->cmnd->target, slot->cmnd->lun); in free_slot() 546 slot->cmnd = NULL; in free_slot() 577 while(slot != NULL && !(slot->cmnd->target == pun && in find_ITL_Nexus() 578 slot->cmnd->lun == lun)) in find_ITL_Nexus() 590 while(slot != NULL && !(slot->cmnd->target == pun in find_ITLQ_Nexus() 591 && slot->cmnd->lun == lun && slot->tag == tag)) in find_ITLQ_Nexus() 597 while(n != NULL && n->cmnd->target != pun in find_ITLQ_Nexus() 598 && n->cmnd->lun != lun && n->tag != tag) in find_ITLQ_Nexus() 601 if(n != NULL && n->cmnd->target == pun && n->cmnd->lun == lun in find_ITLQ_Nexus() [all …]
|
D | gdth_proc.c | 123 char cmnd[MAX_COMMAND_SIZE]; in gdth_set_asc_info() local 124 memset(cmnd, 0xff, 12); in gdth_set_asc_info() 163 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info() 165 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info() 167 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info() 221 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info() 223 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info() 225 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info() 270 char cmnd[MAX_COMMAND_SIZE]; in gdth_get_info() local 271 memset(cmnd, 0xff, 12); in gdth_get_info() [all …]
|
D | gdth.c | 1661 if (ha->cmd_tab[i].cmnd == UNUSED_CMND) { in gdth_get_cmd_index() 1662 ha->cmd_tab[i].cmnd = ha->pccb->RequestBuffer; in gdth_get_cmd_index() 1765 if (ha->cmd_tab[j].cmnd != UNUSED_CMND) in gdth_release_event() 2458 if (nscp->done != gdth_scsi_done || nscp->cmnd[0] != 0xff) { in gdth_next() 2461 if (nscp->cmnd[0] == TEST_UNIT_READY) { in gdth_next() 2493 if (b == ha->virt_bus && nscp->cmnd[0] != INQUIRY && in gdth_next() 2494 nscp->cmnd[0] != READ_CAPACITY && nscp->cmnd[0] != MODE_SENSE && in gdth_next() 2527 } else if (nscp->done == gdth_scsi_done && nscp->cmnd[0] == 0xff) { in gdth_next() 2539 nscp->cmnd[0], b, t, l)); in gdth_next() 2552 switch (nscp->cmnd[0]) { in gdth_next() [all …]
|
D | gdth_proc.h | 15 char *cmnd, int timeout); 19 char *cmnd, int timeout); 23 char *cmnd, int timeout);
|
D | megaraid.c | 979 SCpnt->serial_number, SCpnt->cmnd[0], SCpnt->channel, in callDone() 1204 switch (SCpnt->cmnd[0]) { in mega_cmd_done() 1227 …if (SCpnt->cmnd[0] == INQUIRY && ((((u_char *) SCpnt->request_buffer)[0] & 0x1F) == TYPE_DISK) && … in mega_cmd_done() 1231 if (SCpnt->cmnd[0] == INQUIRY && !islogical) { in mega_cmd_done() 1252 …if ( 0 && SCpnt->cmnd[0] & M_RD_IOCTL_CMD ) { /* i.e. ioctl cmd such as M_RD_IOCTL_CMD, M_RD_IOCTL… in mega_cmd_done() 1338 if ((SCpnt->cmnd[0] == MEGADEVIOC)) in mega_build_cmd() 1341 if ((SCpnt->cmnd[0] == M_RD_IOCTL_CMD) in mega_build_cmd() 1342 || (SCpnt->cmnd[0] == M_RD_IOCTL_CMD_NEW)) in mega_build_cmd() 1461 switch (SCpnt->cmnd[0]) { in mega_build_cmd() 1469 memset (SCpnt->request_buffer, 0, SCpnt->cmnd[4]); in mega_build_cmd() [all …]
|
D | sd.c | 378 SCpnt->cmnd[0] = WRITE_6; in sd_init_command() 382 SCpnt->cmnd[0] = READ_6; in sd_init_command() 394 SCpnt->cmnd[1] = (SCpnt->device->scsi_level <= SCSI_2) ? in sd_init_command() 401 SCpnt->cmnd[0] += READ_10 - READ_6; in sd_init_command() 402 SCpnt->cmnd[2] = (unsigned char) (block >> 24) & 0xff; in sd_init_command() 403 SCpnt->cmnd[3] = (unsigned char) (block >> 16) & 0xff; in sd_init_command() 404 SCpnt->cmnd[4] = (unsigned char) (block >> 8) & 0xff; in sd_init_command() 405 SCpnt->cmnd[5] = (unsigned char) block & 0xff; in sd_init_command() 406 SCpnt->cmnd[6] = SCpnt->cmnd[9] = 0; in sd_init_command() 407 SCpnt->cmnd[7] = (unsigned char) (this_count >> 8) & 0xff; in sd_init_command() [all …]
|
D | scsiiom.c | 48 pSRB->pcmd->cmnd[0], pDCB->SyncMode);) in dc390_StartSCSI() 60 ( ( ( (pSRB->pcmd->cmnd[0] == REQUEST_SENSE) || (pSRB->SRBFlag & AUTO_REQSENSE) ) in dc390_StartSCSI() 61 && !(pDCB->SyncMode & SYNC_NEGO_DONE) ) || (pSRB->pcmd->cmnd[0] == INQUIRY) ) ) in dc390_StartSCSI() 122 ptr = (PUCHAR) pSRB->pcmd->cmnd; in dc390_StartSCSI() 975 ptr = (PUCHAR) pSRB->pcmd->cmnd; in dc390_CommandPhase() 1029 if( (pSRB->pcmd->cmnd[0] == INQUIRY ) || in dc390_MsgOutPhase() 1030 (pSRB->pcmd->cmnd[0] == REQUEST_SENSE) || in dc390_MsgOutPhase() 1371 pSRB->pcmd->cmnd[0], pDCB->TargetID, pDCB->TargetLUN);) in dc390_RequestSense() 1432 pcmd->cmnd[0], pDCB->TargetID, pDCB->TargetLUN, in dc390_SRBdone() 1435 pcmd->cmnd[0], pDCB->TargetID, pDCB->TargetLUN, in dc390_SRBdone() [all …]
|
D | AM53C974.c | 909 cmd->cmnd[0], cmd->target, cmd->lun, cmd->request_bufflen, cmd->use_sg)); in AM53C974_queue_command() 921 if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { in AM53C974_queue_command() 933 (cmd->cmnd[0] == REQUEST_SENSE) ? "head" : "tail")); in AM53C974_queue_command() 1280 (hostdata->sel_cmd->cmnd[0] == REQUEST_SENSE) ? in AM53C974_intr() 1319 if ((hostdata->connected->cmnd[0] == REQUEST_SENSE) && hostdata->connected->use_sg) { in AM53C974_intr() 1394 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_intr_disconnect() 1409 if (cmd->cmnd[0] == REQUEST_SENSE) { in AM53C974_intr_disconnect() 1675 AM53C974_write_8(FFREG, cmd->cmnd[i]); in AM53C974_information_transfer() 1770 "LINKED_FLG_CMD_COMPLETE message\n", cmd->cmnd[0])); in AM53C974_message() 1790 instance->host_no, cmd->cmnd[0], cmd->target, cmd->lun)); in AM53C974_message() [all …]
|
D | scsi_debug.c | 155 static int schedule_resp(struct scsi_cmnd * cmnd, 160 static int stop_queued_cmnd(struct scsi_cmnd * cmnd); 171 unsigned char *cmd = (unsigned char *) SCpnt->cmnd; in scsi_debug_queuecommand() 956 static int stop_queued_cmnd(struct scsi_cmnd * cmnd) in stop_queued_cmnd() argument 965 if (sqcp->in_use && (cmnd == sqcp->a_cmnd)) { in stop_queued_cmnd() 1012 static int schedule_resp(struct scsi_cmnd * cmnd, in schedule_resp() argument 1020 for (k = 0, num = cmnd->cmd_len; k < num; ++k) in schedule_resp() 1021 printk("%02x ", (int)cmnd->cmnd[k]); in schedule_resp() 1024 if (cmnd && devip) { in schedule_resp() 1027 memcpy(cmnd->sense_buffer, devip->sense_buff, in schedule_resp() [all …]
|
D | aha152x.c | 1496 print_command(SCpnt->cmnd); 1559 if(*SCpnt->cmnd == REQUEST_SENSE) { 1679 Scsi_Cmnd cmnd; local 1693 cmnd.cmd_len = 0; 1694 cmnd.host = SCpnt->host; 1695 cmnd.target = SCpnt->target; 1696 cmnd.lun = SCpnt->lun; 1697 cmnd.use_sg = 0; 1698 cmnd.request_buffer = 0; 1699 cmnd.request_bufflen = 0; [all …]
|
D | scsi.c | 105 #define CDB_SIZE(SCpnt) ((((SCpnt->cmnd[0] >> 5) & 7) < 6) ? \ 106 COMMAND_SIZE(SCpnt->cmnd[0]) : SCpnt->cmd_len) 685 SCpnt->host->host_no, SCpnt->channel, SCpnt->target, SCpnt->cmnd, in scsi_dispatch_cmd() 776 void scsi_wait_req (Scsi_Request * SRpnt, const void *cmnd , in scsi_wait_req() argument 785 scsi_do_req (SRpnt, (void *) cmnd, in scsi_wait_req() 824 void scsi_do_req(Scsi_Request * SRpnt, const void *cmnd, in scsi_do_req() argument 837 int size = COMMAND_SIZE(((const unsigned char *)cmnd)[0]); in scsi_do_req() 844 printk("%02x ", ((unsigned char *) cmnd)[i]); in scsi_do_req() 879 memcpy((void *) SRpnt->sr_cmnd, (const void *) cmnd, in scsi_do_req() 962 memcpy((void *) SCpnt->cmnd, (const void *) SRpnt->sr_cmnd, in scsi_init_cmd_from_req() [all …]
|
/linux-2.4.37.9/arch/ia64/drivers/ |
D | simscsi.c | 216 offset = (((sc->cmnd[1] & 0x1f) << 16) | (sc->cmnd[2] << 8) | sc->cmnd[3])*512; in simscsi_readwrite6() 220 simscsi_readwrite(sc, mode, offset, sc->cmnd[4]*512); in simscsi_readwrite6() 252 offset = ( (sc->cmnd[2] << 24) | (sc->cmnd[3] << 16) in simscsi_readwrite10() 253 | (sc->cmnd[4] << 8) | (sc->cmnd[5] << 0))*512; in simscsi_readwrite10() 257 simscsi_readwrite(sc, mode, offset, ((sc->cmnd[7] << 8) | sc->cmnd[8])*512); in simscsi_readwrite10() 271 sc->target, sc->cmnd[0], sc->serial_number, sp, done); in simscsi_queuecommand() 277 switch (sc->cmnd[0]) { in simscsi_queuecommand() 361 panic("simscsi: unknown SCSI command %u\n", sc->cmnd[0]); in simscsi_queuecommand()
|
/linux-2.4.37.9/drivers/scsi/aacraid/ |
D | aachba.c | 661 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in read_callback() 706 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in write_callback() 753 if (scsicmd->cmnd[0] == SS_READ) /* 6 byte command */ in aac_read() 757 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in aac_read() 758 count = scsicmd->cmnd[4]; in aac_read() 765 …lba = (scsicmd->cmnd[2] << 24) | (scsicmd->cmnd[3] << 16) | (scsicmd->cmnd[4] << 8) | scsicmd->cmn… in aac_read() 766 count = (scsicmd->cmnd[7] << 8) | scsicmd->cmnd[8]; in aac_read() 862 if (scsicmd->cmnd[0] == SS_WRITE) /* 6 byte command */ in aac_write() 864 lba = ((scsicmd->cmnd[1] & 0x1F) << 16) | (scsicmd->cmnd[2] << 8) | scsicmd->cmnd[3]; in aac_write() 865 count = scsicmd->cmnd[4]; in aac_write() [all …]
|
/linux-2.4.37.9/drivers/usb/gadget/ |
D | file_storage.c | 669 u8 cmnd[MAX_COMMAND_SIZE]; member 765 sprintf(cmdbuf + i*3, " %02x", fsg->cmnd[i]); in dump_cdb() 1531 if (fsg->cmnd[0] == SC_READ_6) in do_read() 1532 lba = (fsg->cmnd[1] << 16) | get_be16(&fsg->cmnd[2]); in do_read() 1534 lba = get_be32(&fsg->cmnd[2]); in do_read() 1539 if ((fsg->cmnd[1] & ~0x18) != 0) { in do_read() 1661 if (fsg->cmnd[0] == SC_WRITE_6) in do_write() 1662 lba = (fsg->cmnd[1] << 16) | get_be16(&fsg->cmnd[2]); in do_write() 1664 lba = get_be32(&fsg->cmnd[2]); in do_write() 1670 if ((fsg->cmnd[1] & ~0x18) != 0) { in do_write() [all …]
|
/linux-2.4.37.9/drivers/usb/ |
D | microtek.c | 235 switch (srb->cmnd[0]) { in mts_show_command() 309 srb->cmnd[0], srb->cmnd[1], srb->cmnd[2], srb->cmnd[3], srb->cmnd[4], srb->cmnd[5], in mts_show_command() 310 srb->cmnd[6], srb->cmnd[7], srb->cmnd[8], srb->cmnd[9]); in mts_show_command() 679 if ( !memcmp( srb->cmnd, mts_read_image_sig, mts_read_image_sig_len ) in mts_build_transfer_context() 683 } else if ( MTS_DIRECTION_IS_IN(srb->cmnd[0]) ) { in mts_build_transfer_context() 725 srb->cmnd, in mts_scsi_queuecommand()
|