Home
last modified time | relevance | path

Searched refs:scmd (Results 1 – 25 of 69) sorted by relevance

123

/linux/drivers/scsi/
A Dscsi_error.c277 struct scsi_cmnd *scmd = container_of(head, typeof(*scmd), rcu); in scsi_eh_inc_host_failed() local
1017 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_eh_prep_cmnd()
1028 scmd->sdb.table.nents = scmd->sdb.table.orig_nents = 1; in scsi_eh_prep_cmnd()
1030 scmd->cmnd[4] = scmd->sdb.length; in scsi_eh_prep_cmnd()
1031 scmd->cmd_len = COMMAND_SIZE(scmd->cmnd[0]); in scsi_eh_prep_cmnd()
1037 scmd->cmd_len = COMMAND_SIZE(scmd->cmnd[0]); in scsi_eh_prep_cmnd()
1044 scmd->cmnd[1] = (scmd->cmnd[1] & 0x1f) | in scsi_eh_prep_cmnd()
1316 scmd->retries = scmd->allowed = 1; in scsi_eh_get_sense()
1318 scmd->retries = scmd->allowed; in scsi_eh_get_sense()
1469 if (scmd->device == sdev && SCSI_SENSE_VALID(scmd) && in scsi_eh_stu()
[all …]
A Dmyrb.c1285 scsi_done(scmd); in myrb_pthru_queuecommand()
1330 memcpy(&dcdb->cdb, scmd->cmnd, scmd->cmd_len); in myrb_pthru_queuecommand()
1402 scsi_sg_copy_from_buffer(scmd, scmd->sense_buffer, in myrb_request_sense()
1439 scsi_done(scmd); in myrb_ldev_queuecommand()
1445 scsi_done(scmd); in myrb_ldev_queuecommand()
1455 scsi_done(scmd); in myrb_ldev_queuecommand()
2368 scsi_done(scmd); in myrb_handle_scsi()
2729 if (scmd) in DAC960_LA_intr_handler()
2977 if (scmd) in DAC960_PG_intr_handler()
3170 if (scmd) in DAC960_PD_intr_handler()
[all …]
A Dmvumi.c338 cmd->scmd = NULL; in mvumi_return_cmd()
705 scsi_cmd_to_rq(scmd)->tag, scmd->cmnd[0], scmd->retries); in mvumi_host_reset()
1303 struct scsi_cmnd *scmd = cmd->scmd; in mvumi_complete_cmd() local
1331 scsi_done(scmd); in mvumi_complete_cmd()
1428 cmd->scmd = NULL; in mvumi_inquiry()
1707 cmd->scmd = NULL; in mvumi_get_event()
1782 if (cmd->scmd) in mvumi_handle_clob()
2030 cmd->scmd = scmd; in mvumi_build_frame()
2050 "cmd[0x%x]\n", scmd->sc_data_direction, scmd->cmnd[0]); in mvumi_build_frame()
2099 cmd->scmd = scmd; in mvumi_queue_command()
[all …]
A Dmyrs.c1602 scsi_done(scmd); in myrs_queuecommand()
1609 scsi_done(scmd); in myrs_queuecommand()
1623 scsi_done(scmd); in myrs_queuecommand()
1668 memcpy(&mbox->SCSI_10.cdb, scmd->cmnd, scmd->cmd_len); in myrs_queuecommand()
1715 memcpy(cmd_blk->dcdb, scmd->cmnd, scmd->cmd_len); in myrs_queuecommand()
1763 scsi_done(scmd); in myrs_queuecommand()
2056 scsi_dma_unmap(scmd); in myrs_handle_scsi()
2090 scsi_done(scmd); in myrs_handle_scsi()
2595 if (scmd) in DAC960_GEM_intr_handler()
2814 if (scmd) in DAC960_BA_intr_handler()
[all …]
A Dscsi_priv.h27 #define SCSI_SENSE_VALID(scmd) \ argument
28 (((scmd)->sense_buffer[0] & 0x70) == 0x70)
86 int scsi_noretry_cmd(struct scsi_cmnd *scmd);
87 void scsi_eh_done(struct scsi_cmnd *scmd);
A Dscsi_logging.c29 static inline const char *scmd_name(const struct scsi_cmnd *scmd) in scmd_name() argument
31 struct request *rq = scsi_cmd_to_rq((struct scsi_cmnd *)scmd); in scmd_name()
81 void scmd_printk(const char *level, const struct scsi_cmnd *scmd, in scmd_printk() argument
88 if (!scmd || !scmd->cmnd) in scmd_printk()
94 off = sdev_format_header(logbuf, logbuf_len, scmd_name(scmd), in scmd_printk()
95 scsi_cmd_to_rq((struct scsi_cmnd *)scmd)->tag); in scmd_printk()
101 dev_printk(level, &scmd->device->sdev_gendev, "%s", logbuf); in scmd_printk()
A Dsd.h149 static inline int scsi_medium_access_command(struct scsi_cmnd *scmd) in scsi_medium_access_command() argument
151 switch (scmd->cmnd[0]) { in scsi_medium_access_command()
169 switch (scmd->cmnd[9]) { in scsi_medium_access_command()
A Dsd.c781 struct request *rq = scsi_cmd_to_rq(scmd); in sd_setup_protect_cmnd()
788 scmd->prot_flags |= SCSI_PROT_IP_CHECKSUM; in sd_setup_protect_cmnd()
798 scmd->prot_flags |= SCSI_PROT_REF_CHECK; in sd_setup_protect_cmnd()
802 scmd->prot_flags |= SCSI_PROT_TRANSFER_PI; in sd_setup_protect_cmnd()
810 scsi_set_prot_op(scmd, prot_op); in sd_setup_protect_cmnd()
811 scsi_set_prot_type(scmd, dif); in sd_setup_protect_cmnd()
1941 struct scsi_device *sdev = scmd->device; in sd_eh_action()
1944 !scsi_medium_access_command(scmd) || in sd_eh_action()
1967 scmd_printk(KERN_ERR, scmd, in sd_eh_action()
1982 struct scsi_device *sdev = scmd->device; in sd_completed_bytes()
[all …]
A Dhosts.c676 struct scsi_cmnd *scmd = blk_mq_rq_to_pdu(rq); in complete_all_cmds_iter() local
679 scsi_dma_unmap(scmd); in complete_all_cmds_iter()
680 scmd->result = 0; in complete_all_cmds_iter()
681 set_host_byte(scmd, status); in complete_all_cmds_iter()
682 scsi_done(scmd); in complete_all_cmds_iter()
A D53c700.h27 #define CDEBUG(prefix, scmd, fmt, a...) \ argument
28 scmd_printk(prefix, scmd, fmt, ##a)
31 #define DDEBUG(prefix, scmd, fmt, a...) do {} while (0) argument
32 #define CDEBUG(prefix, scmd, fmt, a...) do {} while (0) argument
/linux/include/scsi/
A Dscsi_cmnd.h150 return blk_mq_rq_from_pdu(scmd); in scsi_cmd_to_rq()
233 return blk_rq_pos(scsi_cmd_to_rq(scmd)); in scsi_get_sector()
240 return blk_rq_pos(scsi_cmd_to_rq(scmd)) >> shift; in scsi_get_lba()
273 scmd->prot_op = op; in scsi_set_prot_op()
278 return scmd->prot_op; in scsi_get_prot_op()
304 scmd->prot_type = type; in scsi_set_prot_type()
309 return scmd->prot_type; in scsi_get_prot_type()
314 struct request *rq = blk_mq_rq_from_pdu(scmd); in scsi_prot_ref_tag()
321 return scmd->device->sector_size; in scsi_prot_interval()
391 unsigned int xfer_len = scmd->sdb.length; in scsi_transfer_length()
[all …]
A Dscsi_eh.h12 extern void scsi_eh_finish_cmd(struct scsi_cmnd *scmd,
48 extern void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd,
52 extern void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd,
A Dscsi_device.h274 #define scmd_dbg(scmd, fmt, a...) \ argument
276 struct request *__rq = scsi_cmd_to_rq((scmd)); \
279 sdev_dbg((scmd)->device, "[%s] " fmt, \
282 sdev_dbg((scmd)->device, fmt, ##a); \
501 #define scmd_id(scmd) sdev_id((scmd)->device) argument
502 #define scmd_channel(scmd) sdev_channel((scmd)->device) argument
/linux/drivers/scsi/mpi3mr/
A Dmpi3mr_os.c66 priv->scmd = scmd; in mpi3mr_host_tag_for_scmd()
99 if (scmd) { in mpi3mr_scmd_from_host_tag()
102 scmd = NULL; in mpi3mr_scmd_from_host_tag()
105 return scmd; in mpi3mr_scmd_from_host_tag()
367 if (scmd) { in mpi3mr_print_scmd()
400 if (scmd) { in mpi3mr_flush_scmd()
407 scsi_prot_sg_count(scmd), scmd->sc_data_direction); in mpi3mr_flush_scmd()
2197 if (!scmd) { in mpi3mr_process_op_reply_desc()
2311 scsi_prot_sg_count(scmd), scmd->sc_data_direction); in mpi3mr_process_op_reply_desc()
3360 scsi_sg_copy_to_buffer(scmd, buf, scsi_bufflen(scmd)); in mpi3mr_check_return_unmap()
[all …]
/linux/Documentation/scsi/
A Dscsi_eh.rst38 scmd->list and scmd->eh_entry. The former is used for free list or
153 assumed to forget about the scmd at that point. However, if a scmd
204 commands. A scmd is said to be recovered if the scmd is forgotten by
243 When a scmd is recovered, the scmd is moved from eh_work_q to EH
251 scmd->allowed.
275 3. scmd recovered
294 - scmd is removed from eh_done_q and scmd->eh_entry is cleared
339 scmd->retries is set to scmd->allowed preventing
361 the scmd. Otherwise, the scmd is left in eh_work_q for
466 - Each failed scmd is linked on scmd->eh_cmd_q by scmd->eh_entry.
[all …]
/linux/drivers/s390/scsi/
A Dzfcp_dbf.h391 scmd->device->host->hostdata[0]; in _zfcp_dbf_scsi()
394 zfcp_dbf_scsi_common(tag, level, scmd->device, scmd, req); in _zfcp_dbf_scsi()
405 if (scmd->result != 0) in zfcp_dbf_scsi_result()
406 _zfcp_dbf_scsi("rsl_err", 3, scmd, req); in zfcp_dbf_scsi_result()
407 else if (scmd->retries > 0) in zfcp_dbf_scsi_result()
408 _zfcp_dbf_scsi("rsl_ret", 4, scmd, req); in zfcp_dbf_scsi_result()
410 _zfcp_dbf_scsi("rsl_nor", 6, scmd, req); in zfcp_dbf_scsi_result()
418 void zfcp_dbf_scsi_fail_send(struct scsi_cmnd *scmd) in zfcp_dbf_scsi_fail_send() argument
420 _zfcp_dbf_scsi("rsl_fai", 4, scmd, NULL); in zfcp_dbf_scsi_fail_send()
430 void zfcp_dbf_scsi_abort(char *tag, struct scsi_cmnd *scmd, in zfcp_dbf_scsi_abort() argument
[all …]
/linux/drivers/ata/
A Dlibata-scsi.c1183 if (scmd->cmd_len < 5) { in ata_scsi_start_stop_xlat()
1405 if (scmd->cmd_len < 10) { in ata_scsi_verify_xlat()
1411 if (scmd->cmd_len < 16) { in ata_scsi_verify_xlat()
2659 memcpy(qc->cdb, scmd->cmnd, scmd->cmd_len); in atapi_xlat()
3212 if (!scsi_sg_count(scmd)) in ata_scsi_write_same_xlat()
3350 sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd), in ata_scsi_report_zones_complete()
3418 scmd->cmd_len); in ata_scsi_zbc_in_xlat()
3730 if (!scsi_sg_count(scmd) || scsi_sglist(scmd)->length < len) in ata_scsi_mode_select_xlat()
3737 if (!sg_copy_to_buffer(scsi_sglist(scmd), scsi_sg_count(scmd), in ata_scsi_mode_select_xlat()
4027 if (unlikely(!scmd->cmd_len || scmd->cmd_len > dev->cdb_len)) in __ata_scsi_queuecmd()
[all …]
/linux/drivers/macintosh/
A Dsmu.c301 memset(scmd, 0, sizeof(*scmd)); in smu_queue_simple()
304 cmd->data_buf = scmd->buffer; in smu_queue_simple()
766 smu_queue_cmd(&cmd->scmd); in smu_i2c_retry()
776 cmd->stage, scmd->status, cmd->pdata[0], scmd->reply_len); in smu_i2c_low_completion()
779 if (scmd->status < 0) in smu_i2c_low_completion()
815 scmd->data_buf = cmd->pdata; in smu_i2c_low_completion()
816 scmd->data_len = 1; in smu_i2c_low_completion()
820 smu_queue_cmd(scmd); in smu_i2c_low_completion()
834 cmd->scmd.misc = cmd; in smu_queue_i2c()
838 cmd->scmd.status = 1; in smu_queue_i2c()
[all …]
/linux/drivers/scsi/mpt3sas/
A Dmpt3sas_scsih.c1700 if (!scmd) in _scsih_scsi_lookup_find_by_target()
1730 if (!scmd) in _scsih_scsi_lookup_find_by_lun()
1773 if (scmd) { in mpt3sas_scsih_scsi_lookup_get()
1779 return scmd; in mpt3sas_scsih_scsi_lookup_get()
3348 scmd->device->id, scmd->device->lun, in scsih_abort()
3425 scmd->device->id, scmd->device->lun, in scsih_dev_reset()
5022 if (!scmd) in _scsih_flush_running_cmds()
5487 scsi_bufflen(scmd), scmd->underflow, scsi_get_resid(scmd)); in _scsih_scsi_ioc_info()
5739 st->scmd = scmd; in _scsih_io_done()
5765 scsi_set_resid(scmd, scsi_bufflen(scmd) - xfer_cnt); in _scsih_io_done()
[all …]
A Dmpt3sas_warpdrive.c256 mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, in mpt3sas_setup_direct_io() argument
261 u8 num_pds, cmd = scmd->cmnd[0]; in mpt3sas_setup_direct_io()
262 struct scsiio_tracker *st = scsi_cmd_priv(scmd); in mpt3sas_setup_direct_io()
273 io_size = scsi_bufflen(scmd) >> raid_device->block_exponent; in mpt3sas_setup_direct_io()
A Dmpt3sas_base.c432 struct scsi_cmnd *scmd; in _clone_sg_entries() local
458 if (scmd == NULL) { in _clone_sg_entries()
2599 scsi_bufflen(scmd)); in _base_check_pcie_native_sgl()
2605 scmd, sges_left)) { in _base_check_pcie_native_sgl()
2618 scsi_dma_unmap(scmd); in _base_check_pcie_native_sgl()
2711 scsi_bufflen(scmd)); in _base_build_sg_scmd()
2859 scsi_bufflen(scmd)); in _base_build_sg_scmd_ieee()
3844 struct scsi_cmnd *scmd) in _base_get_msix_index() argument
3874 struct scsi_cmnd *scmd) in _base_get_high_iops_msix_index() argument
3955 request->scmd = scmd; in mpt3sas_base_get_smid_scsiio()
[all …]
/linux/drivers/scsi/megaraid/
A Dmegaraid_sas_fusion.c229 scmd->device->hostdata; in megasas_sdev_busy_inc()
240 scmd->device->hostdata; in megasas_sdev_busy_dec()
281 cmd->scmd = NULL; in megasas_return_cmd_fusion()
1009 cmd->scmd = NULL; in megasas_alloc_cmds_fusion()
3295 cmd->scmd = scp; in megasas_build_io_fusion()
3334 r1_cmd->scmd = cmd->scmd; in megasas_prepare_secondRaid1_IO()
4673 if (cmd_fusion->scmd && (cmd_fusion->scmd == scmd)) { in megasas_fusion_smid_lookup()
4781 scmd, devhandle); in megasas_task_abort_fusion()
4785 scmd->device->channel, scmd->device->id, smid, in megasas_task_abort_fusion()
4852 scmd, devhandle); in megasas_reset_target_fusion()
[all …]
A Dmegaraid_sas_base.c364 cmd->scmd = NULL; in megasas_return_cmd()
1694 if (!cmd->scmd) in megasas_dump_pending_frames()
1762 cmd->scmd = scmd; in megasas_build_and_issue_cmd()
1797 scsi_done(scmd); in megasas_queue_command()
1812 scsi_done(scmd); in megasas_queue_command()
1821 scsi_done(scmd); in megasas_queue_command()
1841 scmd->result = 0; in megasas_queue_command()
1860 scsi_done(scmd); in megasas_queue_command()
2900 scmd->cmnd[0], scmd->retries); in megasas_generic_reset()
3004 scmd, scmd->retries, scmd->allowed); in megasas_dump_fusion_io()
[all …]
/linux/drivers/scsi/smartpqi/
A Dsmartpqi_init.c3116 scmd = io_request->scmd; in pqi_process_raid_io_error()
3217 scmd = io_request->scmd; in pqi_process_aio_io_error()
5427 scmd = io_request->scmd; in pqi_raid_io_complete()
5443 io_request->scmd = scmd; in pqi_raid_submit_scsi_cmd_with_io_request()
5532 scmd = io_request->scmd; in pqi_raid_bypass_retry_needed()
5554 scmd = io_request->scmd; in pqi_aio_io_complete()
5584 io_request->scmd = scmd; in pqi_aio_submit_io()
5653 io_request->scmd = scmd; in pqi_aio_submit_r1_write_io()
5711 io_request->scmd = scmd; in pqi_aio_submit_r56_write_io()
8642 scmd = io_request->scmd; in pqi_fail_all_outstanding_requests()
[all …]
/linux/arch/powerpc/include/asm/
A Dsmu.h427 extern int smu_queue_simple(struct smu_simple_cmd *scmd, u8 command,
445 static inline void smu_spinwait_simple(struct smu_simple_cmd *scmd) in smu_spinwait_simple() argument
447 smu_spinwait_cmd(&scmd->cmd); in smu_spinwait_simple()
503 struct smu_cmd scmd; member

Completed in 458 milliseconds

123