Home
last modified time | relevance | path

Searched refs:scsi_cmd (Results 1 – 19 of 19) sorted by relevance

/drivers/scsi/
Dscsi_ioctl.c141 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_set_medium_removal() local
147 scsi_cmd[0] = ALLOW_MEDIUM_REMOVAL; in scsi_set_medium_removal()
148 scsi_cmd[1] = 0; in scsi_set_medium_removal()
149 scsi_cmd[2] = 0; in scsi_set_medium_removal()
150 scsi_cmd[3] = 0; in scsi_set_medium_removal()
151 scsi_cmd[4] = state; in scsi_set_medium_removal()
152 scsi_cmd[5] = 0; in scsi_set_medium_removal()
154 ret = ioctl_internal_command(sdev, scsi_cmd, in scsi_set_medium_removal()
201 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_ioctl() local
261 scsi_cmd[0] = START_STOP; in scsi_ioctl()
[all …]
Dips.c209 #define IPS_DMA_DIR(scb) ((!scb->scsi_cmd || ips_is_passthru(scb->scsi_cmd) || \
210 DMA_NONE == scb->scsi_cmd->sc_data_direction) ? \
212 scb->scsi_cmd->sc_data_direction)
805 while ((item) && (item->scsi_cmd != SC)) in ips_eh_abort()
870 while ((item) && (item->scsi_cmd != SC)) in __ips_eh_reset()
933 struct scsi_cmnd *scsi_cmd; in __ips_eh_reset() local
943 scb->scsi_cmd->result = DID_ERROR << 16; in __ips_eh_reset()
944 scb->scsi_cmd->scsi_done(scb->scsi_cmd); in __ips_eh_reset()
952 while ((scsi_cmd = ips_removeq_wait_head(&ha->scb_waitlist))) { in __ips_eh_reset()
953 scsi_cmd->result = DID_ERROR; in __ips_eh_reset()
[all …]
Dpmcraid.c385 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()
2098 if (cmd->scsi_cmd) { in pmcraid_fail_outstanding_cmds()
2100 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_fail_outstanding_cmds() local
2103 scsi_cmd->result |= DID_ERROR << 16; in pmcraid_fail_outstanding_cmds()
[all …]
Dscsi_scan.c195 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_unlock_floptical() local
198 scsi_cmd[0] = MODE_SENSE; in scsi_unlock_floptical()
199 scsi_cmd[1] = 0; in scsi_unlock_floptical()
200 scsi_cmd[2] = 0x2e; in scsi_unlock_floptical()
201 scsi_cmd[3] = 0; in scsi_unlock_floptical()
202 scsi_cmd[4] = 0x2a; /* size */ in scsi_unlock_floptical()
203 scsi_cmd[5] = 0; in scsi_unlock_floptical()
204 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical()
567 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_probe_lun() local
591 memset(scsi_cmd, 0, 6); in scsi_probe_lun()
[all …]
Dipr.c668 ipr_cmd->scsi_cmd = NULL; in ipr_reinit_ipr_cmnd()
847 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in ipr_scsi_eh_done() local
849 scsi_cmd->result |= (DID_ERROR << 16); in ipr_scsi_eh_done()
851 scsi_dma_unmap(ipr_cmd->scsi_cmd); in ipr_scsi_eh_done()
852 scsi_cmd->scsi_done(scsi_cmd); in ipr_scsi_eh_done()
884 if (ipr_cmd->scsi_cmd) in ipr_fail_all_ops()
4875 if (ipr_cmd->scsi_cmd && ipr_cmd->scsi_cmd->device == device) in ipr_match_lun()
5086 static int __ipr_eh_dev_reset(struct scsi_cmnd *scsi_cmd) in __ipr_eh_dev_reset() argument
5096 ioa_cfg = (struct ipr_ioa_cfg *) scsi_cmd->device->host->hostdata; in __ipr_eh_dev_reset()
5097 res = scsi_cmd->device->hostdata; in __ipr_eh_dev_reset()
[all …]
Dips.h995 struct scsi_cmnd *scsi_cmd; member
1101 struct scsi_cmnd *scsi_cmd; member
1127 struct scsi_cmnd *scsi_cmd; member
Dhpsa_cmd.h402 void *scsi_cmd; member
Dhpsa.c1694 cmd = (struct scsi_cmnd *) cp->scsi_cmd; in complete_scsi_command()
2825 scmd = (struct scsi_cmnd *) ioaccel2_cmd_to_abort->scsi_cmd; in hpsa_get_pdisk_of_ioaccel2()
3292 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel1_queue_command()
3381 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel_direct_map()
3394 struct scsi_cmnd *cmd = c->scsi_cmd; in set_encrypt_ioaccel2()
3514 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel2_queue_command()
3647 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel_raid_map()
4000 c->scsi_cmd = cmd; in hpsa_scsi_queue_command_lck()
4416 if (c->scsi_cmd == NULL) /* e.g.: passthru ioctl */ in hpsa_find_cmd_in_queue()
4418 if (c->scsi_cmd == find) { in hpsa_find_cmd_in_queue()
[all …]
Dpmcraid.h581 struct scsi_cmnd *scsi_cmd; member
Dadvansys.c8584 uchar scsi_cmd; in AscExeScsiQueue() local
8641 scsi_cmd = scsiq->cdbptr[0]; in AscExeScsiQueue()
8666 if (scsi_cmd == disable_cmd) { in AscExeScsiQueue()
8685 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8686 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
8749 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8750 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
Dipr.h1589 struct scsi_cmnd *scsi_cmd; member
/drivers/ata/
Dlibata-scsi.c485 u8 scsi_cmd[MAX_COMMAND_SIZE]; in ata_cmd_ioctl() local
501 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in ata_cmd_ioctl()
511 scsi_cmd[1] = (4 << 1); /* PIO Data-in */ in ata_cmd_ioctl()
512 scsi_cmd[2] = 0x0e; /* no off.line or cc, read from dev, in ata_cmd_ioctl()
516 scsi_cmd[1] = (3 << 1); /* Non-data */ in ata_cmd_ioctl()
517 scsi_cmd[2] = 0x20; /* cc but no off.line or data xfer */ in ata_cmd_ioctl()
521 scsi_cmd[0] = ATA_16; in ata_cmd_ioctl()
523 scsi_cmd[4] = args[2]; in ata_cmd_ioctl()
525 scsi_cmd[6] = args[3]; in ata_cmd_ioctl()
526 scsi_cmd[8] = args[1]; in ata_cmd_ioctl()
[all …]
/drivers/scsi/isci/
Dtask.h187 struct scsi_cmnd *scsi_cmd,
/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c115 (start_bd_idx > scsi_sg_count(cmd->scsi_cmd))) { in bnx2i_setup_write_cmd_bd_info()
122 scsi_sg_count(cmd->scsi_cmd)); in bnx2i_setup_write_cmd_bd_info()
145 struct scsi_cmnd *sc = cmd->scsi_cmd; in bnx2i_map_scsi_sg()
209 struct scsi_cmnd *sc = cmd->scsi_cmd; in bnx2i_iscsi_unmap_sg_list()
1143 lpcnt = cmd->scsi_cmd->cmd_len / sizeof(dword); in bnx2i_cpy_scsi_cdb()
1211 cmd->scsi_cmd = NULL; in bnx2i_mtask_xmit()
1245 cmd->scsi_cmd = sc; in bnx2i_task_xmit()
Dbnx2i.h260 struct scsi_cmnd *scsi_cmd; member
/drivers/block/
Dcciss_cmd.h212 void * scsi_cmd; member
Dcciss_scsi.c737 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/
Discsi_target_util.c710 void __iscsit_free_cmd(struct iscsi_cmd *cmd, bool scsi_cmd, in __iscsit_free_cmd() argument
715 if (scsi_cmd) { in __iscsit_free_cmd()
Discsi_target.c503 bool scsi_cmd = (cmd->iscsi_opcode == ISCSI_OP_SCSI_CMD); in iscsit_aborted_task() local
511 __iscsit_free_cmd(cmd, scsi_cmd, true); in iscsit_aborted_task()