Home
last modified time | relevance | path

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

/Linux-v6.1/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-v6.1/drivers/scsi/
Dips.c213 #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)
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 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()
820 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_erp_done() local
825 scsi_cmd->result |= (DID_ERROR << 16); in pmcraid_erp_done()
826 scmd_printk(KERN_INFO, scsi_cmd, in pmcraid_erp_done()
838 scsi_dma_unmap(scsi_cmd); in pmcraid_erp_done()
840 scsi_done(scsi_cmd); in pmcraid_erp_done()
2006 if (cmd->scsi_cmd) { in pmcraid_fail_outstanding_cmds()
2008 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_fail_outstanding_cmds() local
2011 scsi_cmd->result |= DID_ERROR << 16; in pmcraid_fail_outstanding_cmds()
2013 scsi_dma_unmap(scsi_cmd); in pmcraid_fail_outstanding_cmds()
[all …]
Dscsi_scan.c204 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_unlock_floptical() local
207 scsi_cmd[0] = MODE_SENSE; in scsi_unlock_floptical()
208 scsi_cmd[1] = 0; in scsi_unlock_floptical()
209 scsi_cmd[2] = 0x2e; in scsi_unlock_floptical()
210 scsi_cmd[3] = 0; in scsi_unlock_floptical()
211 scsi_cmd[4] = 0x2a; /* size */ in scsi_unlock_floptical()
212 scsi_cmd[5] = 0; in scsi_unlock_floptical()
213 scsi_execute_req(sdev, scsi_cmd, DMA_FROM_DEVICE, result, 0x2a, NULL, in scsi_unlock_floptical()
647 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_probe_lun() local
671 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_done(scsi_cmd); in __ipr_scsi_eh_done()
921 if (ipr_cmd->scsi_cmd) in ipr_fail_all_ops()
5074 if (ipr_cmd->scsi_cmd && ipr_cmd->scsi_cmd->device == device) in ipr_match_lun()
5338 static int __ipr_eh_dev_reset(struct scsi_cmnd *scsi_cmd) in __ipr_eh_dev_reset() argument
5348 ioa_cfg = (struct ipr_ioa_cfg *) scsi_cmd->device->host->hostdata; in __ipr_eh_dev_reset()
5349 res = scsi_cmd->device->hostdata; in __ipr_eh_dev_reset()
[all …]
Dscsi_ioctl.c123 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_set_medium_removal() local
129 scsi_cmd[0] = ALLOW_MEDIUM_REMOVAL; in scsi_set_medium_removal()
130 scsi_cmd[1] = 0; in scsi_set_medium_removal()
131 scsi_cmd[2] = 0; in scsi_set_medium_removal()
132 scsi_cmd[3] = 0; in scsi_set_medium_removal()
133 scsi_cmd[4] = state; in scsi_set_medium_removal()
134 scsi_cmd[5] = 0; in scsi_set_medium_removal()
136 ret = ioctl_internal_command(sdev, scsi_cmd, in scsi_set_medium_removal()
Dvirtio_scsi.c337 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in virtscsi_rescan_hotunplug() local
344 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in virtscsi_rescan_hotunplug()
345 scsi_cmd[0] = INQUIRY; in virtscsi_rescan_hotunplug()
346 scsi_cmd[4] = (unsigned char) inquiry_len; in virtscsi_rescan_hotunplug()
350 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.c349 return c->scsi_cmd == SCSI_CMD_IDLE; in hpsa_is_cmd_idle()
2468 c->scsi_cmd = SCSI_CMD_IDLE; in hpsa_cmd_resolve_events()
2581 cmd = cp->scsi_cmd; in complete_scsi_command()
4735 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel1_queue_command()
4831 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel_direct_map()
4852 struct scsi_cmnd *cmd = c->scsi_cmd; in set_encrypt_ioaccel2()
4909 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel2_queue_command()
5048 if (!c->scsi_cmd->device) in hpsa_scsi_ioaccel_queue_command()
5051 if (!c->scsi_cmd->device->hostdata) in hpsa_scsi_ioaccel_queue_command()
5105 struct scsi_cmnd *cmd = c->scsi_cmd; in hpsa_scsi_ioaccel_raid_map()
[all …]
Dpmcraid.h567 struct scsi_cmnd *scsi_cmd; member
Dhpsa_cmd.h441 struct scsi_cmnd *scsi_cmd; member
Dadvansys.c8080 uchar scsi_cmd; in AscExeScsiQueue() local
8133 scsi_cmd = scsiq->cdbptr[0]; in AscExeScsiQueue()
8157 if (scsi_cmd == disable_cmd) { in AscExeScsiQueue()
8176 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8177 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
8228 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8229 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
Dipr.h1614 struct scsi_cmnd *scsi_cmd; member
/Linux-v6.1/drivers/ata/
Dlibata-scsi.c367 u8 scsi_cmd[MAX_COMMAND_SIZE]; in ata_cmd_ioctl() local
381 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in ata_cmd_ioctl()
391 scsi_cmd[1] = (4 << 1); /* PIO Data-in */ in ata_cmd_ioctl()
392 scsi_cmd[2] = 0x0e; /* no off.line or cc, read from dev, in ata_cmd_ioctl()
396 scsi_cmd[1] = (3 << 1); /* Non-data */ in ata_cmd_ioctl()
397 scsi_cmd[2] = 0x20; /* cc but no off.line or data xfer */ in ata_cmd_ioctl()
401 scsi_cmd[0] = ATA_16; in ata_cmd_ioctl()
403 scsi_cmd[4] = args[2]; in ata_cmd_ioctl()
405 scsi_cmd[6] = args[3]; in ata_cmd_ioctl()
406 scsi_cmd[8] = args[1]; in ata_cmd_ioctl()
[all …]
/Linux-v6.1/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()
389 kfree(scsi_cmd); in read_cap16()
419 kfree(scsi_cmd); in read_cap16()
/Linux-v6.1/drivers/scsi/qedi/
Dqedi_iscsi.h182 struct scsi_cmnd *scsi_cmd; member
Dqedi_fw.c22 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_iscsi_unmap_sg_list()
599 sc_cmd = cmd->scsi_cmd; in qedi_scsi_completion()
1178 if (cmd->scsi_cmd && cmd->scsi_cmd->device) { in qedi_cleanup_all_io()
1182 cmd->scsi_cmd, cmd->scsi_cmd->device, in qedi_cleanup_all_io()
1185 if (cmd->scsi_cmd->device->lun != lun) in qedi_cleanup_all_io()
1780 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_map_scsi_sg()
1876 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_iscsi_map_sg_list()
Dqedi_iscsi.c839 cmd->scsi_cmd = NULL; in qedi_task_xmit()
859 cmd->scsi_cmd = sc; in qedi_task_xmit()
1468 cmd->scsi_cmd = NULL; in qedi_cleanup_task()
/Linux-v6.1/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()
1209 cmd->scsi_cmd = NULL; in bnx2i_mtask_xmit()
1243 cmd->scsi_cmd = sc; in bnx2i_task_xmit()
Dbnx2i.h260 struct scsi_cmnd *scsi_cmd; member