Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/scsi/
Dscsi_ioctl.c144 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_set_medium_removal() local
150 scsi_cmd[0] = ALLOW_MEDIUM_REMOVAL; in scsi_set_medium_removal()
151 scsi_cmd[1] = 0; in scsi_set_medium_removal()
152 scsi_cmd[2] = 0; in scsi_set_medium_removal()
153 scsi_cmd[3] = 0; in scsi_set_medium_removal()
154 scsi_cmd[4] = state; in scsi_set_medium_removal()
155 scsi_cmd[5] = 0; in scsi_set_medium_removal()
157 ret = ioctl_internal_command(sdev, scsi_cmd, in scsi_set_medium_removal()
194 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_ioctl_common() local
242 scsi_cmd[0] = START_STOP; in scsi_ioctl_common()
[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)
800 while ((item) && (item->scsi_cmd != SC)) in ips_eh_abort()
865 while ((item) && (item->scsi_cmd != SC)) in __ips_eh_reset()
928 struct scsi_cmnd *scsi_cmd; in __ips_eh_reset() local
938 scb->scsi_cmd->result = DID_ERROR << 16; in __ips_eh_reset()
939 scb->scsi_cmd->scsi_done(scb->scsi_cmd); in __ips_eh_reset()
947 while ((scsi_cmd = ips_removeq_wait_head(&ha->scb_waitlist))) { in __ips_eh_reset()
948 scsi_cmd->result = DID_ERROR; in __ips_eh_reset()
[all …]
Dpmcraid.c330 cmd->scsi_cmd = NULL; in pmcraid_init_cmdblk()
823 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_erp_done() local
828 scsi_cmd->result |= (DID_ERROR << 16); in pmcraid_erp_done()
829 scmd_printk(KERN_INFO, scsi_cmd, in pmcraid_erp_done()
841 scsi_dma_unmap(scsi_cmd); in pmcraid_erp_done()
843 scsi_cmd->scsi_done(scsi_cmd); in pmcraid_erp_done()
2013 if (cmd->scsi_cmd) { in pmcraid_fail_outstanding_cmds()
2015 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_fail_outstanding_cmds() local
2018 scsi_cmd->result |= DID_ERROR << 16; in pmcraid_fail_outstanding_cmds()
2020 scsi_dma_unmap(scsi_cmd); in pmcraid_fail_outstanding_cmds()
[all …]
Dscsi_scan.c188 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_unlock_floptical() local
191 scsi_cmd[0] = MODE_SENSE; in scsi_unlock_floptical()
192 scsi_cmd[1] = 0; in scsi_unlock_floptical()
193 scsi_cmd[2] = 0x2e; in scsi_unlock_floptical()
194 scsi_cmd[3] = 0; in scsi_unlock_floptical()
195 scsi_cmd[4] = 0x2a; /* size */ in scsi_unlock_floptical()
196 scsi_cmd[5] = 0; in scsi_unlock_floptical()
197 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical()
562 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_probe_lun() local
586 memset(scsi_cmd, 0, 6); in scsi_probe_lun()
[all …]
Dipr.c664 ipr_cmd->scsi_cmd = NULL; in ipr_reinit_ipr_cmnd()
864 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in __ipr_scsi_eh_done() local
866 scsi_cmd->result |= (DID_ERROR << 16); in __ipr_scsi_eh_done()
868 scsi_dma_unmap(ipr_cmd->scsi_cmd); in __ipr_scsi_eh_done()
869 scsi_cmd->scsi_done(scsi_cmd); in __ipr_scsi_eh_done()
921 if (ipr_cmd->scsi_cmd) in ipr_fail_all_ops()
5070 if (ipr_cmd->scsi_cmd && ipr_cmd->scsi_cmd->device == device) in ipr_match_lun()
5334 static int __ipr_eh_dev_reset(struct scsi_cmnd *scsi_cmd) in __ipr_eh_dev_reset() argument
5344 ioa_cfg = (struct ipr_ioa_cfg *) scsi_cmd->device->host->hostdata; in __ipr_eh_dev_reset()
5345 res = scsi_cmd->device->hostdata; in __ipr_eh_dev_reset()
[all …]
Dvirtio_scsi.c338 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in virtscsi_rescan_hotunplug() local
345 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in virtscsi_rescan_hotunplug()
346 scsi_cmd[0] = INQUIRY; in virtscsi_rescan_hotunplug()
347 scsi_cmd[4] = (unsigned char) inquiry_len; in virtscsi_rescan_hotunplug()
351 result = scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, in virtscsi_rescan_hotunplug()
Dips.h977 struct scsi_cmnd *scsi_cmd; member
1083 struct scsi_cmnd *scsi_cmd; member
1109 struct scsi_cmnd *scsi_cmd; member
Dhpsa.c350 return c->scsi_cmd == SCSI_CMD_IDLE; in hpsa_is_cmd_idle()
2463 c->scsi_cmd = SCSI_CMD_IDLE; in hpsa_cmd_resolve_events()
2576 cmd = cp->scsi_cmd; in complete_scsi_command()
4739 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel1_queue_command()
4835 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel_direct_map()
4856 struct scsi_cmnd *cmd = c->scsi_cmd; in set_encrypt_ioaccel2()
4913 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel2_queue_command()
5052 if (!c->scsi_cmd->device) in hpsa_scsi_ioaccel_queue_command()
5055 if (!c->scsi_cmd->device->hostdata) in hpsa_scsi_ioaccel_queue_command()
5109 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel_raid_map()
[all …]
Dpmcraid.h567 struct scsi_cmnd *scsi_cmd; member
Dhpsa_cmd.h437 struct scsi_cmnd *scsi_cmd; member
Dadvansys.c8166 uchar scsi_cmd; in AscExeScsiQueue() local
8219 scsi_cmd = scsiq->cdbptr[0]; in AscExeScsiQueue()
8243 if (scsi_cmd == disable_cmd) { in AscExeScsiQueue()
8262 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8263 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
8314 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8315 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
Dipr.h1613 struct scsi_cmnd *scsi_cmd; member
/Linux-v5.10/drivers/hwmon/
Ddrivetemp.c166 u8 scsi_cmd[MAX_COMMAND_SIZE]; in drivetemp_scsi_command() local
169 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in drivetemp_scsi_command()
170 scsi_cmd[0] = ATA_16; in drivetemp_scsi_command()
172 scsi_cmd[1] = (5 << 1); /* PIO Data-out */ in drivetemp_scsi_command()
177 scsi_cmd[2] = 0x06; in drivetemp_scsi_command()
180 scsi_cmd[1] = (4 << 1); /* PIO Data-in */ in drivetemp_scsi_command()
185 scsi_cmd[2] = 0x0e; in drivetemp_scsi_command()
188 scsi_cmd[4] = feature; in drivetemp_scsi_command()
189 scsi_cmd[6] = 1; /* 1 sector */ in drivetemp_scsi_command()
190 scsi_cmd[8] = lba_low; in drivetemp_scsi_command()
[all …]
/Linux-v5.10/drivers/ata/
Dlibata-scsi.c360 u8 scsi_cmd[MAX_COMMAND_SIZE]; in ata_cmd_ioctl() local
374 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in ata_cmd_ioctl()
384 scsi_cmd[1] = (4 << 1); /* PIO Data-in */ in ata_cmd_ioctl()
385 scsi_cmd[2] = 0x0e; /* no off.line or cc, read from dev, in ata_cmd_ioctl()
389 scsi_cmd[1] = (3 << 1); /* Non-data */ in ata_cmd_ioctl()
390 scsi_cmd[2] = 0x20; /* cc but no off.line or data xfer */ in ata_cmd_ioctl()
394 scsi_cmd[0] = ATA_16; in ata_cmd_ioctl()
396 scsi_cmd[4] = args[2]; in ata_cmd_ioctl()
398 scsi_cmd[6] = args[3]; in ata_cmd_ioctl()
399 scsi_cmd[8] = args[1]; in ata_cmd_ioctl()
[all …]
/Linux-v5.10/drivers/scsi/cxlflash/
Dvlun.c424 u8 *scsi_cmd = NULL; in write_same16() local
437 scsi_cmd = kzalloc(MAX_COMMAND_SIZE, GFP_KERNEL); in write_same16()
438 if (unlikely(!cmd_buf || !scsi_cmd)) { in write_same16()
445 scsi_cmd[0] = WRITE_SAME_16; in write_same16()
446 scsi_cmd[1] = cfg->ws_unmap ? 0x8 : 0; in write_same16()
447 put_unaligned_be64(offset, &scsi_cmd[2]); in write_same16()
449 &scsi_cmd[10]); in write_same16()
453 result = scsi_execute(sdev, scsi_cmd, DMA_TO_DEVICE, cmd_buf, in write_same16()
478 kfree(scsi_cmd); in write_same16()
Dsuperpipe.c337 u8 *scsi_cmd = NULL; in read_cap16() local
345 scsi_cmd = kzalloc(MAX_COMMAND_SIZE, GFP_KERNEL); in read_cap16()
346 if (unlikely(!cmd_buf || !scsi_cmd)) { in read_cap16()
351 scsi_cmd[0] = SERVICE_ACTION_IN_16; /* read cap(16) */ in read_cap16()
352 scsi_cmd[1] = SAI_READ_CAPACITY_16; /* service action */ in read_cap16()
353 put_unaligned_be32(CMD_BUFSIZE, &scsi_cmd[10]); in read_cap16()
356 retry_cnt ? "re" : "", scsi_cmd[0]); in read_cap16()
360 result = scsi_execute(sdev, scsi_cmd, DMA_FROM_DEVICE, cmd_buf, in read_cap16()
390 kfree(scsi_cmd); in read_cap16()
420 kfree(scsi_cmd); in read_cap16()
/Linux-v5.10/drivers/scsi/isci/
Dtask.h186 struct scsi_cmnd *scsi_cmd,
/Linux-v5.10/drivers/scsi/qedi/
Dqedi_iscsi.h181 struct scsi_cmnd *scsi_cmd; member
Dqedi_fw.c22 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_iscsi_unmap_sg_list()
601 sc_cmd = cmd->scsi_cmd; in qedi_scsi_completion()
1235 if (cmd->scsi_cmd && cmd->scsi_cmd->device) { in qedi_cleanup_all_io()
1239 cmd->scsi_cmd, cmd->scsi_cmd->device, in qedi_cleanup_all_io()
1242 if (cmd->scsi_cmd->device->lun != lun) in qedi_cleanup_all_io()
1857 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_map_scsi_sg()
1953 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_iscsi_map_sg_list()
Dqedi_iscsi.c775 cmd->scsi_cmd = NULL; in qedi_mtask_xmit()
800 cmd->scsi_cmd = sc; in qedi_task_xmit()
/Linux-v5.10/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()
1141 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