Home
last modified time | relevance | path

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

/linux/drivers/hwmon/
A 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()
177 scsi_cmd[2] = 0x06; 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()
191 scsi_cmd[10] = lba_mid; in drivetemp_scsi_command()
192 scsi_cmd[12] = lba_high; in drivetemp_scsi_command()
[all …]
/linux/drivers/scsi/
A Dips.c1995 if ((!scb) || (!scb->scsi_cmd) || (!scsi_sglist(scb->scsi_cmd))) { in ips_cleanup_passthru()
2570 scb->scsi_cmd = item->scsi_cmd; in ips_next()
2654 scb->scsi_cmd = SC; in ips_next()
2724 if (scb->scsi_cmd) in ips_next()
3151 if ((scb->scsi_cmd) && (ips_is_passthru(scb->scsi_cmd))) { in ips_done()
3263 scb->scsi_cmd->device->id, scb->scsi_cmd->device->lun, in ips_map_status()
3859 if (!scb->scsi_cmd) in ips_chkstatus()
3870 if ((scb->scsi_cmd) && (ips_is_passthru(scb->scsi_cmd))) in ips_chkstatus()
5283 if (scb->scsi_cmd) { in ips_issue_copperhead()
5337 if (scb->scsi_cmd) { in ips_issue_copperhead_memio()
[all …]
A Dpmcraid.c330 cmd->scsi_cmd = NULL; in pmcraid_init_cmdblk()
820 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_erp_done() local
840 scsi_done(scsi_cmd); in pmcraid_erp_done()
2008 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_fail_outstanding_cmds() local
2470 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_cancel_all() local
2578 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_error_handler() local
2802 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in _pmcraid_io_done() local
2977 if (cmd->scsi_cmd == scsi_cmd) { in pmcraid_eh_abort_handler()
3143 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_build_ioadl() local
3362 cmd->scsi_cmd = scsi_cmd; in pmcraid_queuecommand_lck()
[all …]
A Dscsi_scan.c207 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()
627 memset(scsi_cmd, 0, 6); in scsi_probe_lun()
628 scsi_cmd[0] = INQUIRY; in scsi_probe_lun()
1389 scsi_cmd[0] = REPORT_LUNS; in scsi_report_lun_scan()
1394 memset(&scsi_cmd[1], 0, 5); in scsi_report_lun_scan()
[all …]
A Dipr.c864 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in __ipr_scsi_eh_done() local
5074 if (ipr_cmd->scsi_cmd && ipr_cmd->scsi_cmd->device == device) in ipr_match_lun()
5547 if (ioa_cfg->ipr_cmnd_list[i]->scsi_cmd == scsi_cmd) { in ipr_cancel_op()
5943 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in ipr_build_ioadl64() local
5995 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in ipr_build_ioadl() local
6053 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in __ipr_erp_done() local
6199 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in ipr_erp_cancel_all() local
6421 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in ipr_erp_start() local
6528 struct scsi_cmnd *scsi_cmd = ipr_cmd->scsi_cmd; in ipr_scsi_done() local
6621 memcpy(ioarcb->cmd_pkt.cdb, scsi_cmd->cmnd, scsi_cmd->cmd_len); in ipr_queuecommand()
[all …]
A 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()
A 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()
A Dips.h977 struct scsi_cmnd *scsi_cmd; member
1083 struct scsi_cmnd *scsi_cmd; member
1109 struct scsi_cmnd *scsi_cmd; member
A Dhpsa.c2468 c->scsi_cmd = SCSI_CMD_IDLE; in hpsa_cmd_resolve_events()
2581 cmd = cp->scsi_cmd; in complete_scsi_command()
5050 if (!c->scsi_cmd->device) in hpsa_scsi_ioaccel_queue_command()
5464 c->scsi_cmd = cmd; in hpsa_ciss_submit()
5548 c->scsi_cmd = SCSI_CMD_IDLE; in hpsa_cmd_init()
5596 c->scsi_cmd = cmd; in hpsa_ioaccel_submit()
5606 c->scsi_cmd = cmd; in hpsa_ioaccel_submit()
5623 cmd = c->scsi_cmd; in hpsa_command_resubmit_worker()
6438 c->scsi_cmd = SCSI_CMD_BUSY; in hpsa_passthru_ioctl()
6554 c->scsi_cmd = SCSI_CMD_BUSY; in hpsa_big_passthru_ioctl()
[all …]
A Dpmcraid.h567 struct scsi_cmnd *scsi_cmd; member
A Dhpsa_cmd.h441 struct scsi_cmnd *scsi_cmd; member
A Dadvansys.c8071 uchar scsi_cmd; in AscExeScsiQueue() local
8124 scsi_cmd = scsiq->cdbptr[0]; in AscExeScsiQueue()
8148 if (scsi_cmd == disable_cmd) { in AscExeScsiQueue()
8167 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8168 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
8219 if ((scsi_cmd == READ_6) || in AscExeScsiQueue()
8220 (scsi_cmd == READ_10)) { in AscExeScsiQueue()
A Dipr.h1614 struct scsi_cmnd *scsi_cmd; member
/linux/drivers/ata/
A Dlibata-scsi.c381 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in ata_cmd_ioctl()
401 scsi_cmd[0] = ATA_16; in ata_cmd_ioctl()
403 scsi_cmd[4] = args[2]; in ata_cmd_ioctl()
412 scsi_cmd[14] = args[0]; in ata_cmd_ioctl()
486 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in ata_task_ioctl()
487 scsi_cmd[0] = ATA_16; in ata_task_ioctl()
490 scsi_cmd[4] = args[1]; in ata_task_ioctl()
491 scsi_cmd[6] = args[2]; in ata_task_ioctl()
492 scsi_cmd[8] = args[3]; in ata_task_ioctl()
493 scsi_cmd[10] = args[4]; in ata_task_ioctl()
[all …]
/linux/drivers/scsi/cxlflash/
A 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()
A 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/drivers/scsi/bnx2i/
A 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()
A Dbnx2i.h260 struct scsi_cmnd *scsi_cmd; member
/linux/drivers/scsi/qedi/
A Dqedi_iscsi.h182 struct scsi_cmnd *scsi_cmd; member
A 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()
1180 if (cmd->scsi_cmd && cmd->scsi_cmd->device) { in qedi_cleanup_all_io()
1184 cmd->scsi_cmd, cmd->scsi_cmd->device, in qedi_cleanup_all_io()
1187 if (cmd->scsi_cmd->device->lun != lun) in qedi_cleanup_all_io()
1782 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_map_scsi_sg()
1878 struct scsi_cmnd *sc = cmd->scsi_cmd; in qedi_iscsi_map_sg_list()
A Dqedi_iscsi.c838 cmd->scsi_cmd = NULL; in qedi_task_xmit()
858 cmd->scsi_cmd = sc; in qedi_task_xmit()
1468 cmd->scsi_cmd = NULL; in qedi_cleanup_task()

Completed in 145 milliseconds