/linux/drivers/hwmon/ |
H A D | drivetemp.c | 166 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/drivers/scsi/ |
H A 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) 800 while ((item) && (item->scsi_cmd != SC)) in ips_eh_abort() 910 struct scsi_cmnd *scsi_cmd; in __ips_eh_reset() local 920 scb->scsi_cmd->result = DID_ERROR << 16; in __ips_eh_reset() 921 scsi_done(scb->scsi_cmd); in __ips_eh_reset() 929 while ((scsi_cmd = ips_removeq_wait_head(&ha->scb_waitlist))) { in __ips_eh_reset() 930 scsi_cmd->result = DID_ERROR; in __ips_eh_reset() 931 scsi_done(scsi_cmd); in __ips_eh_reset() [all …]
|
H A D | pmcraid.c | 333 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_done(scsi_cmd); in pmcraid_erp_done() 2009 if (cmd->scsi_cmd) { in pmcraid_fail_outstanding_cmds() 2011 struct scsi_cmnd *scsi_cmd = cmd->scsi_cmd; in pmcraid_fail_outstanding_cmds() local 2014 scsi_cmd->result |= DID_ERROR << 16; in pmcraid_fail_outstanding_cmds() 2016 scsi_dma_unmap(scsi_cmd); in pmcraid_fail_outstanding_cmds() [all …]
|
H A D | scsi_scan.c | 204 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_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, result, 0x2a, in scsi_unlock_floptical() 647 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_probe_lun() local 701 memset(scsi_cmd, 0, 6); in scsi_probe_lun() [all …]
|
H A D | scsi_ioctl.c | 126 char scsi_cmd[MAX_COMMAND_SIZE]; in scsi_set_medium_removal() local 132 scsi_cmd[0] = ALLOW_MEDIUM_REMOVAL; in scsi_set_medium_removal() 133 scsi_cmd[1] = 0; in scsi_set_medium_removal() 134 scsi_cmd[2] = 0; in scsi_set_medium_removal() 135 scsi_cmd[3] = 0; in scsi_set_medium_removal() 136 scsi_cmd[4] = state; in scsi_set_medium_removal() 137 scsi_cmd[5] = 0; in scsi_set_medium_removal() 139 ret = ioctl_internal_command(sdev, scsi_cmd, in scsi_set_medium_removal()
|
H A D | virtio_scsi.c | 341 unsigned char scsi_cmd[MAX_COMMAND_SIZE]; in virtscsi_rescan_hotunplug() local 351 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in virtscsi_rescan_hotunplug() 352 scsi_cmd[0] = INQUIRY; in virtscsi_rescan_hotunplug() 353 scsi_cmd[4] = (unsigned char) inquiry_len; in virtscsi_rescan_hotunplug() 357 result = scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, in virtscsi_rescan_hotunplug()
|
H A D | ips.h | 977 struct scsi_cmnd *scsi_cmd; member 1083 struct scsi_cmnd *scsi_cmd; member 1109 struct scsi_cmnd *scsi_cmd; member
|
H A D | hpsa.c | 349 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 …]
|
H A D | pmcraid.h | 567 struct scsi_cmnd *scsi_cmd; member
|
H A D | hpsa_cmd.h | 441 struct scsi_cmnd *scsi_cmd; member
|
H A D | advansys.c | 8080 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()
|
H A D | ipr.h | 1551 struct scsi_cmnd *scsi_cmd; member
|
/linux/drivers/ata/ |
H A D | libata-scsi.c | 462 u8 scsi_cmd[MAX_COMMAND_SIZE]; in ata_cmd_ioctl() local 480 memset(scsi_cmd, 0, sizeof(scsi_cmd)); in ata_cmd_ioctl() 490 scsi_cmd[1] = (4 << 1); /* PIO Data-in */ in ata_cmd_ioctl() 491 scsi_cmd[2] = 0x0e; /* no off.line or cc, read from dev, in ata_cmd_ioctl() 494 scsi_cmd[1] = (3 << 1); /* Non-data */ in ata_cmd_ioctl() 495 scsi_cmd[2] = 0x20; /* cc but no off.line or data xfer */ in ata_cmd_ioctl() 498 scsi_cmd[0] = ATA_16; in ata_cmd_ioctl() 500 scsi_cmd[4] = args[2]; in ata_cmd_ioctl() 502 scsi_cmd[6] = args[3]; in ata_cmd_ioctl() 503 scsi_cmd[8] = args[1]; in ata_cmd_ioctl() [all …]
|
/linux/drivers/scsi/cxlflash/ |
H A D | vlun.c | 424 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_cmd(sdev, scsi_cmd, REQ_OP_DRV_OUT, in write_same16() 478 kfree(scsi_cmd); in write_same16()
|
H A D | superpipe.c | 340 u8 *scsi_cmd = NULL; in read_cap16() local 348 scsi_cmd = kzalloc(MAX_COMMAND_SIZE, GFP_KERNEL); in read_cap16() 349 if (unlikely(!cmd_buf || !scsi_cmd)) { in read_cap16() 354 scsi_cmd[0] = SERVICE_ACTION_IN_16; /* read cap(16) */ in read_cap16() 355 scsi_cmd[1] = SAI_READ_CAPACITY_16; /* service action */ in read_cap16() 356 put_unaligned_be32(CMD_BUFSIZE, &scsi_cmd[10]); in read_cap16() 359 retry_cnt ? "re" : "", scsi_cmd[0]); in read_cap16() 363 result = scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, cmd_buf, in read_cap16() 391 kfree(scsi_cmd); in read_cap16() 421 kfree(scsi_cmd); in read_cap16()
|
/linux/drivers/scsi/qedi/ |
H A D | qedi_iscsi.h | 182 struct scsi_cmnd *scsi_cmd; member
|
H A D | qedi_fw.c | 22 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()
|
H A D | qedi_iscsi.c | 839 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/drivers/scsi/bnx2i/ |
H A D | bnx2i_iscsi.c | 115 (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()
|
H A D | bnx2i.h | 260 struct scsi_cmnd *scsi_cmd; member
|