/Linux-v4.19/drivers/scsi/ |
D | scsi_error.c | 52 static void scsi_eh_done(struct scsi_cmnd *scmd); 61 static int scsi_eh_try_stu(struct scsi_cmnd *scmd); 131 struct scsi_cmnd *scmd = in scmd_eh_abort_handler() local 133 struct scsi_device *sdev = scmd->device; in scmd_eh_abort_handler() 138 scmd_printk(KERN_INFO, scmd, in scmd_eh_abort_handler() 142 scmd_printk(KERN_INFO, scmd, in scmd_eh_abort_handler() 144 rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd); in scmd_eh_abort_handler() 146 set_host_byte(scmd, DID_TIME_OUT); in scmd_eh_abort_handler() 149 scmd_printk(KERN_INFO, scmd, in scmd_eh_abort_handler() 152 } else if (!scsi_noretry_cmd(scmd) && in scmd_eh_abort_handler() [all …]
|
D | mvumi.c | 204 static int mvumi_make_sgl(struct mvumi_hba *mhba, struct scsi_cmnd *scmd, in mvumi_make_sgl() argument 210 unsigned int sgnum = scsi_sg_count(scmd); in mvumi_make_sgl() 213 sg = scsi_sglist(scmd); in mvumi_make_sgl() 215 (int) scmd->sc_data_direction); in mvumi_make_sgl() 221 (int) scmd->sc_data_direction); in mvumi_make_sgl() 353 cmd->scmd = NULL; in mvumi_return_cmd() 712 static int mvumi_host_reset(struct scsi_cmnd *scmd) in mvumi_host_reset() argument 716 mhba = (struct mvumi_hba *) scmd->device->host->hostdata; in mvumi_host_reset() 718 scmd_printk(KERN_NOTICE, scmd, "RESET -%ld cmd=%x retries=%x\n", in mvumi_host_reset() 719 scmd->serial_number, scmd->cmnd[0], scmd->retries); in mvumi_host_reset() [all …]
|
D | scsi_logging.c | 72 static inline const char *scmd_name(const struct scsi_cmnd *scmd) in scmd_name() argument 74 return scmd->request->rq_disk ? in scmd_name() 75 scmd->request->rq_disk->disk_name : NULL; in scmd_name() 123 void scmd_printk(const char *level, const struct scsi_cmnd *scmd, in scmd_printk() argument 130 if (!scmd || !scmd->cmnd) in scmd_printk() 136 off = sdev_format_header(logbuf, logbuf_len, scmd_name(scmd), in scmd_printk() 137 scmd->request->tag); in scmd_printk() 143 dev_printk(level, &scmd->device->sdev_gendev, "%s", logbuf); in scmd_printk()
|
D | scsi_priv.h | 24 #define SCSI_SENSE_VALID(scmd) \ argument 25 (((scmd)->sense_buffer[0] & 0x70) == 0x70) 84 int scsi_noretry_cmd(struct scsi_cmnd *scmd);
|
D | sd.h | 140 static inline int scsi_medium_access_command(struct scsi_cmnd *scmd) in scsi_medium_access_command() argument 142 switch (scmd->cmnd[0]) { in scsi_medium_access_command() 160 switch (scmd->cmnd[9]) { in scsi_medium_access_command()
|
D | sd.c | 660 static unsigned char sd_setup_protect_cmnd(struct scsi_cmnd *scmd, in sd_setup_protect_cmnd() argument 663 struct bio *bio = scmd->request->bio; in sd_setup_protect_cmnd() 664 unsigned int prot_op = sd_prot_op(rq_data_dir(scmd->request), dix, dif); in sd_setup_protect_cmnd() 669 scmd->prot_flags |= SCSI_PROT_IP_CHECKSUM; in sd_setup_protect_cmnd() 672 scmd->prot_flags |= SCSI_PROT_GUARD_CHECK; in sd_setup_protect_cmnd() 676 scmd->prot_flags |= SCSI_PROT_REF_INCREMENT; in sd_setup_protect_cmnd() 679 scmd->prot_flags |= SCSI_PROT_REF_CHECK; in sd_setup_protect_cmnd() 683 scmd->prot_flags |= SCSI_PROT_TRANSFER_PI; in sd_setup_protect_cmnd() 691 scsi_set_prot_op(scmd, prot_op); in sd_setup_protect_cmnd() 692 scsi_set_prot_type(scmd, dif); in sd_setup_protect_cmnd() [all …]
|
D | 53c700.h | 28 #define CDEBUG(prefix, scmd, fmt, a...) \ argument 29 scmd_printk(prefix, scmd, fmt, ##a) 32 #define DDEBUG(prefix, scmd, fmt, a...) do {} while (0) argument 33 #define CDEBUG(prefix, scmd, fmt, a...) do {} while (0) argument
|
D | st.c | 3104 unsigned char scmd[MAX_COMMAND_SIZE]; in get_location() local 3110 memset(scmd, 0, MAX_COMMAND_SIZE); in get_location() 3112 scmd[0] = QFA_REQUEST_BLOCK; in get_location() 3113 scmd[4] = 3; in get_location() 3115 scmd[0] = READ_POSITION; in get_location() 3117 scmd[1] = 1; in get_location() 3119 SRpnt = st_do_scsi(NULL, STp, scmd, 20, DMA_FROM_DEVICE, in get_location() 3167 unsigned char scmd[MAX_COMMAND_SIZE]; in set_location() local 3196 memset(scmd, 0, MAX_COMMAND_SIZE); in set_location() 3198 scmd[0] = QFA_SEEK_BLOCK; in set_location() [all …]
|
D | sd_zbc.c | 162 static void sd_zbc_report_zones_complete(struct scsi_cmnd *scmd, in sd_zbc_report_zones_complete() argument 165 struct request *rq = scmd->request; in sd_zbc_report_zones_complete() 179 sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd), in sd_zbc_report_zones_complete()
|
/Linux-v4.19/include/scsi/ |
D | scsi_cmnd.h | 264 static inline void scsi_set_prot_op(struct scsi_cmnd *scmd, unsigned char op) in scsi_set_prot_op() argument 266 scmd->prot_op = op; in scsi_set_prot_op() 269 static inline unsigned char scsi_get_prot_op(struct scsi_cmnd *scmd) in scsi_get_prot_op() argument 271 return scmd->prot_op; in scsi_get_prot_op() 295 static inline void scsi_set_prot_type(struct scsi_cmnd *scmd, unsigned char type) in scsi_set_prot_type() argument 297 scmd->prot_type = type; in scsi_set_prot_type() 300 static inline unsigned char scsi_get_prot_type(struct scsi_cmnd *scmd) in scsi_get_prot_type() argument 302 return scmd->prot_type; in scsi_get_prot_type() 305 static inline sector_t scsi_get_lba(struct scsi_cmnd *scmd) in scsi_get_lba() argument 307 return blk_rq_pos(scmd->request); in scsi_get_lba() [all …]
|
D | scsi_eh.h | 12 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,
|
D | scsi_device.h | 257 #define scmd_dbg(scmd, fmt, a...) \ argument 259 if ((scmd)->request->rq_disk) \ 260 sdev_dbg((scmd)->device, "[%s] " fmt, \ 261 (scmd)->request->rq_disk->disk_name, ##a);\ 263 sdev_dbg((scmd)->device, fmt, ##a); \ 482 #define scmd_id(scmd) sdev_id((scmd)->device) argument 483 #define scmd_channel(scmd) sdev_channel((scmd)->device) argument
|
D | scsi_transport_srp.h | 121 enum blk_eh_timer_return srp_timed_out(struct scsi_cmnd *scmd);
|
/Linux-v4.19/Documentation/scsi/ |
D | scsi_eh.txt | 13 [1-2] How do scmd's get completed? 14 [1-2-1] Completing a scmd w/ scsi_done 15 [1-2-2] Completing a scmd w/ timeout 32 Each SCSI command is represented with struct scsi_cmnd (== scmd). A 33 scmd has two list_head's to link itself into lists. The two are 34 scmd->list and scmd->eh_entry. The former is used for free list or 35 per-device allocated scmd list and not of much interest to this EH 37 otherwise stated scmds are always linked using scmd->eh_entry in this 41 [1-2] How do scmd's get completed? 43 Once LLDD gets hold of a scmd, either the LLDD will complete the [all …]
|
/Linux-v4.19/drivers/s390/scsi/ |
D | zfcp_dbf.h | 355 void _zfcp_dbf_scsi(char *tag, int level, struct scsi_cmnd *scmd, in _zfcp_dbf_scsi() argument 359 scmd->device->host->hostdata[0]; in _zfcp_dbf_scsi() 362 zfcp_dbf_scsi_common(tag, level, scmd->device, scmd, req); in _zfcp_dbf_scsi() 371 void zfcp_dbf_scsi_result(struct scsi_cmnd *scmd, struct zfcp_fsf_req *req) in zfcp_dbf_scsi_result() argument 373 if (scmd->result != 0) in zfcp_dbf_scsi_result() 374 _zfcp_dbf_scsi("rsl_err", 3, scmd, req); in zfcp_dbf_scsi_result() 375 else if (scmd->retries > 0) in zfcp_dbf_scsi_result() 376 _zfcp_dbf_scsi("rsl_ret", 4, scmd, req); in zfcp_dbf_scsi_result() 378 _zfcp_dbf_scsi("rsl_nor", 6, scmd, req); in zfcp_dbf_scsi_result() 386 void zfcp_dbf_scsi_fail_send(struct scsi_cmnd *scmd) in zfcp_dbf_scsi_fail_send() argument [all …]
|
D | zfcp_scsi.c | 815 void zfcp_scsi_dif_sense_error(struct scsi_cmnd *scmd, int ascq) in zfcp_scsi_dif_sense_error() argument 817 scsi_build_sense_buffer(1, scmd->sense_buffer, in zfcp_scsi_dif_sense_error() 819 set_driver_byte(scmd, DRIVER_SENSE); in zfcp_scsi_dif_sense_error() 820 scmd->result |= SAM_STAT_CHECK_CONDITION; in zfcp_scsi_dif_sense_error() 821 set_host_byte(scmd, DID_SOFT_ERROR); in zfcp_scsi_dif_sense_error()
|
/Linux-v4.19/drivers/macintosh/ |
D | smu.c | 291 int smu_queue_simple(struct smu_simple_cmd *scmd, u8 command, in smu_queue_simple() argument 296 struct smu_cmd *cmd = &scmd->cmd; in smu_queue_simple() 300 if (data_len > sizeof(scmd->buffer)) in smu_queue_simple() 303 memset(scmd, 0, sizeof(*scmd)); in smu_queue_simple() 306 cmd->data_buf = scmd->buffer; in smu_queue_simple() 307 cmd->reply_len = sizeof(scmd->buffer); in smu_queue_simple() 308 cmd->reply_buf = scmd->buffer; in smu_queue_simple() 314 scmd->buffer[i] = (u8)va_arg(list, int); in smu_queue_simple() 743 list_add_tail(&cmd->scmd.link, &smu->cmd_list); in smu_i2c_complete_command() 764 cmd->scmd.reply_len = sizeof(cmd->pdata); in smu_i2c_retry() [all …]
|
/Linux-v4.19/drivers/ata/ |
D | libata-scsi.c | 883 struct scsi_cmnd *scmd = qc->scsicmd; in ata_qc_set_pc_nbytes() local 885 qc->extrabytes = scmd->request->extra_len; in ata_qc_set_pc_nbytes() 886 qc->nbytes = scsi_bufflen(scmd) + qc->extrabytes; in ata_qc_set_pc_nbytes() 1477 struct scsi_cmnd *scmd = qc->scsicmd; in ata_scsi_start_stop_xlat() local 1479 const u8 *cdb = scmd->cmnd; in ata_scsi_start_stop_xlat() 1483 if (scmd->cmd_len < 5) { in ata_scsi_start_stop_xlat() 1548 ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); in ata_scsi_start_stop_xlat() 1551 scmd->result = SAM_STAT_GOOD; in ata_scsi_start_stop_xlat() 1692 struct scsi_cmnd *scmd = qc->scsicmd; in ata_scsi_verify_xlat() local 1696 const u8 *cdb = scmd->cmnd; in ata_scsi_verify_xlat() [all …]
|
/Linux-v4.19/drivers/scsi/megaraid/ |
D | megaraid_sas_fusion.c | 210 cmd->scmd = NULL; in megasas_return_cmd_fusion() 898 cmd->scmd = NULL; in megasas_alloc_cmds_fusion() 1771 struct scsi_cmnd *scmd, u8 status, u8 ext_status, in map_cmd_status() argument 1777 cmd_type = megasas_cmd_type(scmd); in map_cmd_status() 1781 scmd->result = DID_OK << 16; in map_cmd_status() 1786 scmd->result = (DID_ERROR << 16) | ext_status; in map_cmd_status() 1791 scmd->result = (DID_OK << 16) | ext_status; in map_cmd_status() 1793 memset(scmd->sense_buffer, 0, in map_cmd_status() 1795 memcpy(scmd->sense_buffer, sense, in map_cmd_status() 1797 scmd->result |= DRIVER_SENSE << 24; in map_cmd_status() [all …]
|
D | megaraid_sas_base.c | 201 struct scsi_cmnd *scmd); 307 cmd->scmd = NULL; in megasas_return_cmd() 1605 if (!cmd->scmd) in megasas_dump_pending_frames() 1608 if (megasas_cmd_type(cmd->scmd) == READ_WRITE_LDIO) { in megasas_dump_pending_frames() 1653 struct scsi_cmnd *scmd) in megasas_build_and_issue_cmd() argument 1665 if (megasas_cmd_type(scmd) == READ_WRITE_LDIO) in megasas_build_and_issue_cmd() 1666 frame_count = megasas_build_ldio(instance, scmd, cmd); in megasas_build_and_issue_cmd() 1668 frame_count = megasas_build_dcdb(instance, scmd, cmd); in megasas_build_and_issue_cmd() 1673 cmd->scmd = scmd; in megasas_build_and_issue_cmd() 1674 scmd->SCp.ptr = (char *)cmd; in megasas_build_and_issue_cmd() [all …]
|
/Linux-v4.19/drivers/scsi/smartpqi/ |
D | smartpqi_init.c | 74 struct scsi_cmnd *scmd, u32 aio_handle, u8 *cdb, 173 static inline void pqi_scsi_done(struct scsi_cmnd *scmd) in pqi_scsi_done() argument 175 pqi_prep_for_scsi_done(scmd); in pqi_scsi_done() 176 scmd->scsi_done(scmd); in pqi_scsi_done() 482 io_request->scmd = NULL; in pqi_reinit_io_request() 2065 struct pqi_scsi_dev *device, struct scsi_cmnd *scmd, in pqi_raid_bypass_submit_scsi_cmd() argument 2112 switch (scmd->cmnd[0]) { in pqi_raid_bypass_submit_scsi_cmd() 2117 first_block = (u64)(((scmd->cmnd[1] & 0x1f) << 16) | in pqi_raid_bypass_submit_scsi_cmd() 2118 (scmd->cmnd[2] << 8) | scmd->cmnd[3]); in pqi_raid_bypass_submit_scsi_cmd() 2119 block_cnt = (u32)scmd->cmnd[4]; in pqi_raid_bypass_submit_scsi_cmd() [all …]
|
/Linux-v4.19/drivers/scsi/mpt3sas/ |
D | mpt3sas_scsih.c | 1475 struct scsi_cmnd *scmd = NULL; in mpt3sas_scsih_scsi_lookup_get() local 1482 scmd = scsi_host_find_tag(ioc->shost, unique_tag); in mpt3sas_scsih_scsi_lookup_get() 1483 if (scmd) { in mpt3sas_scsih_scsi_lookup_get() 1484 st = scsi_cmd_priv(scmd); in mpt3sas_scsih_scsi_lookup_get() 1486 scmd = NULL; in mpt3sas_scsih_scsi_lookup_get() 1489 return scmd; in mpt3sas_scsih_scsi_lookup_get() 2754 _scsih_tm_display_info(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd) in _scsih_tm_display_info() argument 2756 struct scsi_target *starget = scmd->device->sdev_target; in _scsih_tm_display_info() 2770 scsi_print_command(scmd); in _scsih_tm_display_info() 2835 scsih_abort(struct scsi_cmnd *scmd) in scsih_abort() argument [all …]
|
D | mpt3sas_warpdrive.c | 272 mpt3sas_setup_direct_io(struct MPT3SAS_ADAPTER *ioc, struct scsi_cmnd *scmd, in mpt3sas_setup_direct_io() argument 277 u8 num_pds, cmd = scmd->cmnd[0]; in mpt3sas_setup_direct_io() 278 struct scsiio_tracker *st = scsi_cmd_priv(scmd); in mpt3sas_setup_direct_io() 289 io_size = scsi_bufflen(scmd) >> raid_device->block_exponent; in mpt3sas_setup_direct_io()
|
D | mpt3sas_base.c | 370 struct scsi_cmnd *scmd; in _clone_sg_entries() local 395 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _clone_sg_entries() 396 if (scmd == NULL) { in _clone_sg_entries() 402 sg_scmd = scsi_sglist(scmd); in _clone_sg_entries() 1694 struct scsi_cmnd *scmd) in _base_get_chain_buffer_tracker() argument 1697 struct scsiio_tracker *st = scsi_cmd_priv(scmd); in _base_get_chain_buffer_tracker() 1992 struct scsi_cmnd *scmd, in base_make_prp_nvme() argument 2003 int data_len = scsi_bufflen(scmd); in base_make_prp_nvme() 2056 sg_scmd = scsi_sglist(scmd); in base_make_prp_nvme() 2084 scmd, "page boundary curr_buff: 0x%p\n", in base_make_prp_nvme() [all …]
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | smu.h | 427 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
|