/drivers/scsi/ |
D | scsi_ioctl.c | 136 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_set_medium_removal() local 142 scsi_cmd[0] = ALLOW_MEDIUM_REMOVAL; in scsi_set_medium_removal() 143 scsi_cmd[1] = 0; in scsi_set_medium_removal() 144 scsi_cmd[2] = 0; in scsi_set_medium_removal() 145 scsi_cmd[3] = 0; in scsi_set_medium_removal() 146 scsi_cmd[4] = state; in scsi_set_medium_removal() 147 scsi_cmd[5] = 0; in scsi_set_medium_removal() 149 ret = ioctl_internal_command(sdev, scsi_cmd, in scsi_set_medium_removal() 196 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_ioctl() local 256 scsi_cmd[0] = START_STOP; in scsi_ioctl() [all …]
|
D | ips.c | 213 #define IPS_DMA_DIR(scb) ((!scb->scsi_cmd || ips_is_passthru(scb->scsi_cmd) || \ 214 DMA_NONE == scb->scsi_cmd->sc_data_direction) ? \ 216 scb->scsi_cmd->sc_data_direction) 808 while ((item) && (item->scsi_cmd != SC)) in ips_eh_abort() 873 while ((item) && (item->scsi_cmd != SC)) in __ips_eh_reset() 936 struct scsi_cmnd *scsi_cmd; in __ips_eh_reset() local 946 scb->scsi_cmd->result = DID_ERROR << 16; in __ips_eh_reset() 947 scb->scsi_cmd->scsi_done(scb->scsi_cmd); in __ips_eh_reset() 955 while ((scsi_cmd = ips_removeq_wait_head(&ha->scb_waitlist))) { in __ips_eh_reset() 956 scsi_cmd->result = DID_ERROR; in __ips_eh_reset() [all …]
|
D | pmcraid.c | 385 cmd->scsi_cmd = NULL; in pmcraid_init_cmdblk() 883 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_erp_done() local 888 scsi_cmd->result |= (DID_ERROR << 16); in pmcraid_erp_done() 889 scmd_printk(KERN_INFO, scsi_cmd, in pmcraid_erp_done() 898 memcpy(scsi_cmd->sense_buffer, in pmcraid_erp_done() 908 scsi_dma_unmap(scsi_cmd); in pmcraid_erp_done() 910 scsi_cmd->scsi_done(scsi_cmd); in pmcraid_erp_done() 2087 if (cmd->scsi_cmd) { in pmcraid_fail_outstanding_cmds() 2089 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_fail_outstanding_cmds() local 2092 scsi_cmd->result |= DID_ERROR << 16; in pmcraid_fail_outstanding_cmds() [all …]
|
D | scsi_scan.c | 199 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_unlock_floptical() local 202 scsi_cmd[0] = MODE_SENSE; in scsi_unlock_floptical() 203 scsi_cmd[1] = 0; in scsi_unlock_floptical() 204 scsi_cmd[2] = 0x2e; in scsi_unlock_floptical() 205 scsi_cmd[3] = 0; in scsi_unlock_floptical() 206 scsi_cmd[4] = 0x2a; /* size */ in scsi_unlock_floptical() 207 scsi_cmd[5] = 0; in scsi_unlock_floptical() 208 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical() 544 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_probe_lun() local 568 memset(scsi_cmd, 0, 6); in scsi_probe_lun() [all …]
|
D | ipr.c | 629 ipr_cmd->scsi_cmd = NULL; in ipr_reinit_ipr_cmnd() 807 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in ipr_scsi_eh_done() local 809 scsi_cmd->result |= (DID_ERROR << 16); in ipr_scsi_eh_done() 811 scsi_dma_unmap(ipr_cmd->scsi_cmd); in ipr_scsi_eh_done() 812 scsi_cmd->scsi_done(scsi_cmd); in ipr_scsi_eh_done() 842 if (ipr_cmd->scsi_cmd) in ipr_fail_all_ops() 4913 static int __ipr_eh_dev_reset(struct scsi_cmnd *scsi_cmd) in __ipr_eh_dev_reset() argument 4923 ioa_cfg = (struct ipr_ioa_cfg *) scsi_cmd->device->host->hostdata; in __ipr_eh_dev_reset() 4924 res = scsi_cmd->device->hostdata; in __ipr_eh_dev_reset() 4943 if (ipr_cmd->scsi_cmd) in __ipr_eh_dev_reset() [all …]
|
D | ips.h | 995 struct scsi_cmnd *scsi_cmd; member 1101 struct scsi_cmnd *scsi_cmd; member 1127 struct scsi_cmnd *scsi_cmd; member
|
D | hpsa_cmd.h | 319 void *scsi_cmd; member
|
D | pmcraid.h | 581 struct scsi_cmnd *scsi_cmd; member
|
D | hpsa.c | 1185 cmd = (struct scsi_cmnd *) cp->scsi_cmd; in complete_scsi_command() 2189 c->scsi_cmd = cmd; in hpsa_scsi_queue_command_lck() 2524 if (c->scsi_cmd == NULL) /* e.g.: passthru ioctl */ in hpsa_find_cmd_in_queue() 2526 if (c->scsi_cmd == find) { in hpsa_find_cmd_in_queue() 2582 c = hpsa_find_cmd_in_queue(h, abort->scsi_cmd, &h->cmpQ); in hpsa_send_abort_both_ways() 2638 as = (struct scsi_cmnd *) abort->scsi_cmd; in hpsa_eh_abort_handler()
|
D | advansys.c | 8585 uchar scsi_cmd; in AscExeScsiQueue() local 8642 scsi_cmd = scsiq->cdbptr[0]; in AscExeScsiQueue() 8667 if (scsi_cmd == disable_cmd) { in AscExeScsiQueue() 8686 if ((scsi_cmd == READ_6) || in AscExeScsiQueue() 8687 (scsi_cmd == READ_10)) { in AscExeScsiQueue() 8750 if ((scsi_cmd == READ_6) || in AscExeScsiQueue() 8751 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
|
D | ipr.h | 1558 struct scsi_cmnd *scsi_cmd; member
|
/drivers/ata/ |
D | libata-scsi.c | 472 u8 scsi_cmd[MAX_COMMAND_SIZE]; in ata_cmd_ioctl() local 488 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in ata_cmd_ioctl() 498 scsi_cmd[1] = (4 << 1); /* PIO Data-in */ in ata_cmd_ioctl() 499 scsi_cmd[2] = 0x0e; /* no off.line or cc, read from dev, in ata_cmd_ioctl() 503 scsi_cmd[1] = (3 << 1); /* Non-data */ in ata_cmd_ioctl() 504 scsi_cmd[2] = 0x20; /* cc but no off.line or data xfer */ in ata_cmd_ioctl() 508 scsi_cmd[0] = ATA_16; in ata_cmd_ioctl() 510 scsi_cmd[4] = args[2]; in ata_cmd_ioctl() 512 scsi_cmd[6] = args[3]; in ata_cmd_ioctl() 513 scsi_cmd[8] = args[1]; in ata_cmd_ioctl() [all …]
|
/drivers/scsi/isci/ |
D | task.h | 187 struct scsi_cmnd *scsi_cmd,
|
/drivers/scsi/bnx2i/ |
D | bnx2i_iscsi.c | 113 (start_bd_idx > scsi_sg_count(cmd->scsi_cmd))) { in bnx2i_setup_write_cmd_bd_info() 120 scsi_sg_count(cmd->scsi_cmd)); in bnx2i_setup_write_cmd_bd_info() 143 struct scsi_cmnd *sc = cmd->scsi_cmd; in bnx2i_map_scsi_sg() 207 struct scsi_cmnd *sc = cmd->scsi_cmd; in bnx2i_iscsi_unmap_sg_list() 1140 lpcnt = cmd->scsi_cmd->cmd_len / sizeof(dword); in bnx2i_cpy_scsi_cdb() 1208 cmd->scsi_cmd = NULL; in bnx2i_mtask_xmit() 1242 cmd->scsi_cmd = sc; in bnx2i_task_xmit()
|
D | bnx2i.h | 258 struct scsi_cmnd *scsi_cmd; member
|
/drivers/block/ |
D | cciss_cmd.h | 212 void * scsi_cmd; member
|
D | cciss_scsi.c | 737 cmd = (struct scsi_cmnd *) c->scsi_cmd; in complete_scsi_command() 923 c->scsi_cmd = NULL; in cciss_scsi_do_simple_cmd() 1456 c->scsi_cmd = cmd; in cciss_scsi_queue_command_lck()
|
/drivers/target/iscsi/ |
D | iscsi_target_util.c | 688 static void __iscsit_free_cmd(struct iscsi_cmd *cmd, bool scsi_cmd, in __iscsit_free_cmd() argument 693 if (scsi_cmd) { in __iscsit_free_cmd()
|