/kernel/linux/linux-5.10/drivers/scsi/ |
D | scsi_error.c | 53 static void scsi_eh_done(struct scsi_cmnd *scmd); 62 static int scsi_eh_try_stu(struct scsi_cmnd *scmd); 140 struct scsi_cmnd *scmd = in scmd_eh_abort_handler() local 142 struct scsi_device *sdev = scmd->device; in scmd_eh_abort_handler() 147 scmd_printk(KERN_INFO, scmd, in scmd_eh_abort_handler() 151 scmd_printk(KERN_INFO, scmd, in scmd_eh_abort_handler() 153 rtn = scsi_try_to_abort_cmd(sdev->host->hostt, scmd); in scmd_eh_abort_handler() 155 set_host_byte(scmd, DID_TIME_OUT); in scmd_eh_abort_handler() 158 scmd_printk(KERN_INFO, scmd, in scmd_eh_abort_handler() 161 } else if (!scsi_noretry_cmd(scmd) && in scmd_eh_abort_handler() [all …]
|
D | myrb.c | 1257 static int myrb_host_reset(struct scsi_cmnd *scmd) in myrb_host_reset() argument 1259 struct Scsi_Host *shost = scmd->device->host; in myrb_host_reset() 1267 struct scsi_cmnd *scmd) in myrb_pthru_queuecommand() argument 1270 struct myrb_cmdblk *cmd_blk = scsi_cmd_priv(scmd); in myrb_pthru_queuecommand() 1274 struct scsi_device *sdev = scmd->device; in myrb_pthru_queuecommand() 1283 nsge = scsi_dma_map(scmd); in myrb_pthru_queuecommand() 1286 scmd->result = (DID_ERROR << 16); in myrb_pthru_queuecommand() 1287 scmd->scsi_done(scmd); in myrb_pthru_queuecommand() 1292 mbox->type3.id = scmd->request->tag + 3; in myrb_pthru_queuecommand() 1296 switch (scmd->sc_data_direction) { in myrb_pthru_queuecommand() [all …]
|
D | mvumi.c | 189 static int mvumi_make_sgl(struct mvumi_hba *mhba, struct scsi_cmnd *scmd, in mvumi_make_sgl() argument 195 unsigned int sgnum = scsi_sg_count(scmd); in mvumi_make_sgl() 198 *sg_count = dma_map_sg(&mhba->pdev->dev, scsi_sglist(scmd), sgnum, in mvumi_make_sgl() 199 scmd->sc_data_direction); in mvumi_make_sgl() 204 dma_unmap_sg(&mhba->pdev->dev, scsi_sglist(scmd), sgnum, in mvumi_make_sgl() 205 scmd->sc_data_direction); in mvumi_make_sgl() 208 scsi_for_each_sg(scmd, sg, *sg_count, i) { in mvumi_make_sgl() 338 cmd->scmd = NULL; in mvumi_return_cmd() 698 static int mvumi_host_reset(struct scsi_cmnd *scmd) in mvumi_host_reset() argument 702 mhba = (struct mvumi_hba *) scmd->device->host->hostdata; in mvumi_host_reset() [all …]
|
D | myrs.c | 1532 static int myrs_host_reset(struct scsi_cmnd *scmd) in myrs_host_reset() argument 1534 struct Scsi_Host *shost = scmd->device->host; in myrs_host_reset() 1541 static void myrs_mode_sense(struct myrs_hba *cs, struct scsi_cmnd *scmd, in myrs_mode_sense() argument 1548 dbd = (scmd->cmnd[1] & 0x08) == 0x08; in myrs_mode_sense() 1581 scsi_sg_copy_from_buffer(scmd, modes, mode_len); in myrs_mode_sense() 1585 struct scsi_cmnd *scmd) in myrs_queuecommand() argument 1588 struct myrs_cmdblk *cmd_blk = scsi_cmd_priv(scmd); in myrs_queuecommand() 1590 struct scsi_device *sdev = scmd->device; in myrs_queuecommand() 1597 if (!scmd->device->hostdata) { in myrs_queuecommand() 1598 scmd->result = (DID_NO_CONNECT << 16); in myrs_queuecommand() [all …]
|
D | scsi_logging.c | 29 static inline const char *scmd_name(const struct scsi_cmnd *scmd) in scmd_name() argument 31 return scmd->request->rq_disk ? in scmd_name() 32 scmd->request->rq_disk->disk_name : NULL; in scmd_name() 80 void scmd_printk(const char *level, const struct scsi_cmnd *scmd, in scmd_printk() argument 87 if (!scmd || !scmd->cmnd) in scmd_printk() 93 off = sdev_format_header(logbuf, logbuf_len, scmd_name(scmd), in scmd_printk() 94 scmd->request->tag); in scmd_printk() 100 dev_printk(level, &scmd->device->sdev_gendev, "%s", logbuf); in scmd_printk()
|
D | scsi_priv.h | 25 #define SCSI_SENSE_VALID(scmd) \ argument 26 (((scmd)->sense_buffer[0] & 0x70) == 0x70) 84 int scsi_noretry_cmd(struct scsi_cmnd *scmd);
|
D | sd.h | 148 static inline int scsi_medium_access_command(struct scsi_cmnd *scmd) in scsi_medium_access_command() argument 150 switch (scmd->cmnd[0]) { in scsi_medium_access_command() 168 switch (scmd->cmnd[9]) { in scsi_medium_access_command()
|
D | sd.c | 781 static unsigned char sd_setup_protect_cmnd(struct scsi_cmnd *scmd, in sd_setup_protect_cmnd() argument 784 struct bio *bio = scmd->request->bio; in sd_setup_protect_cmnd() 785 unsigned int prot_op = sd_prot_op(rq_data_dir(scmd->request), dix, dif); in sd_setup_protect_cmnd() 790 scmd->prot_flags |= SCSI_PROT_IP_CHECKSUM; in sd_setup_protect_cmnd() 793 scmd->prot_flags |= SCSI_PROT_GUARD_CHECK; in sd_setup_protect_cmnd() 797 scmd->prot_flags |= SCSI_PROT_REF_INCREMENT; in sd_setup_protect_cmnd() 800 scmd->prot_flags |= SCSI_PROT_REF_CHECK; in sd_setup_protect_cmnd() 804 scmd->prot_flags |= SCSI_PROT_TRANSFER_PI; in sd_setup_protect_cmnd() 812 scsi_set_prot_op(scmd, prot_op); in sd_setup_protect_cmnd() 813 scsi_set_prot_type(scmd, dif); in sd_setup_protect_cmnd() [all …]
|
D | hosts.c | 668 struct scsi_cmnd *scmd = blk_mq_rq_to_pdu(rq); in complete_all_cmds_iter() local 671 scsi_dma_unmap(scmd); in complete_all_cmds_iter() 672 scmd->result = status << 16; in complete_all_cmds_iter() 673 scmd->scsi_done(scmd); in complete_all_cmds_iter()
|
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 | 3108 unsigned char scmd[MAX_COMMAND_SIZE]; in get_location() local 3114 memset(scmd, 0, MAX_COMMAND_SIZE); in get_location() 3116 scmd[0] = QFA_REQUEST_BLOCK; in get_location() 3117 scmd[4] = 3; in get_location() 3119 scmd[0] = READ_POSITION; in get_location() 3121 scmd[1] = 1; in get_location() 3123 SRpnt = st_do_scsi(NULL, STp, scmd, 20, DMA_FROM_DEVICE, in get_location() 3171 unsigned char scmd[MAX_COMMAND_SIZE]; in set_location() local 3200 memset(scmd, 0, MAX_COMMAND_SIZE); in set_location() 3202 scmd[0] = QFA_SEEK_BLOCK; in set_location() [all …]
|
/kernel/linux/linux-5.10/include/scsi/ |
D | scsi_cmnd.h | 242 static inline void scsi_set_prot_op(struct scsi_cmnd *scmd, unsigned char op) in scsi_set_prot_op() argument 244 scmd->prot_op = op; in scsi_set_prot_op() 247 static inline unsigned char scsi_get_prot_op(struct scsi_cmnd *scmd) in scsi_get_prot_op() argument 249 return scmd->prot_op; in scsi_get_prot_op() 273 static inline void scsi_set_prot_type(struct scsi_cmnd *scmd, unsigned char type) in scsi_set_prot_type() argument 275 scmd->prot_type = type; in scsi_set_prot_type() 278 static inline unsigned char scsi_get_prot_type(struct scsi_cmnd *scmd) in scsi_get_prot_type() argument 280 return scmd->prot_type; in scsi_get_prot_type() 283 static inline sector_t scsi_get_lba(struct scsi_cmnd *scmd) in scsi_get_lba() argument 285 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 | 268 #define scmd_dbg(scmd, fmt, a...) \ argument 270 if ((scmd)->request->rq_disk) \ 271 sdev_dbg((scmd)->device, "[%s] " fmt, \ 272 (scmd)->request->rq_disk->disk_name, ##a);\ 274 sdev_dbg((scmd)->device, fmt, ##a); \ 493 #define scmd_id(scmd) sdev_id((scmd)->device) argument 494 #define scmd_channel(scmd) sdev_channel((scmd)->device) argument
|
/kernel/linux/linux-5.10/Documentation/scsi/ |
D | scsi_eh.rst | 15 [1-2] How do scmd's get completed? 16 [1-2-1] Completing a scmd w/ scsi_done 17 [1-2-2] Completing a scmd w/ timeout 36 Each SCSI command is represented with struct scsi_cmnd (== scmd). A 37 scmd has two list_head's to link itself into lists. The two are 38 scmd->list and scmd->eh_entry. The former is used for free list or 39 per-device allocated scmd list and not of much interest to this EH 41 otherwise stated scmds are always linked using scmd->eh_entry in this 45 1.2 How do scmd's get completed? 48 Once LLDD gets hold of a scmd, either the LLDD will complete the [all …]
|
/kernel/linux/linux-5.10/drivers/s390/scsi/ |
D | zfcp_dbf.h | 387 void _zfcp_dbf_scsi(char *tag, int level, struct scsi_cmnd *scmd, in _zfcp_dbf_scsi() argument 391 scmd->device->host->hostdata[0]; in _zfcp_dbf_scsi() 394 zfcp_dbf_scsi_common(tag, level, scmd->device, scmd, req); in _zfcp_dbf_scsi() 403 void zfcp_dbf_scsi_result(struct scsi_cmnd *scmd, struct zfcp_fsf_req *req) in zfcp_dbf_scsi_result() argument 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 [all …]
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | libata-scsi.c | 650 struct scsi_cmnd *scmd = qc->scsicmd; in ata_qc_set_pc_nbytes() local 652 qc->extrabytes = scmd->extra_len; in ata_qc_set_pc_nbytes() 653 qc->nbytes = scsi_bufflen(scmd) + qc->extrabytes; in ata_qc_set_pc_nbytes() 1170 struct scsi_cmnd *scmd = qc->scsicmd; in ata_scsi_start_stop_xlat() local 1172 const u8 *cdb = scmd->cmnd; in ata_scsi_start_stop_xlat() 1176 if (scmd->cmd_len < 5) { in ata_scsi_start_stop_xlat() 1241 ata_scsi_set_invalid_field(qc->dev, scmd, fp, bp); in ata_scsi_start_stop_xlat() 1244 scmd->result = SAM_STAT_GOOD; in ata_scsi_start_stop_xlat() 1385 struct scsi_cmnd *scmd = qc->scsicmd; in ata_scsi_verify_xlat() local 1389 const u8 *cdb = scmd->cmnd; in ata_scsi_verify_xlat() [all …]
|
/kernel/linux/linux-5.10/drivers/macintosh/ |
D | smu.c | 289 int smu_queue_simple(struct smu_simple_cmd *scmd, u8 command, in smu_queue_simple() argument 294 struct smu_cmd *cmd = &scmd->cmd; in smu_queue_simple() 298 if (data_len > sizeof(scmd->buffer)) in smu_queue_simple() 301 memset(scmd, 0, sizeof(*scmd)); in smu_queue_simple() 304 cmd->data_buf = scmd->buffer; in smu_queue_simple() 305 cmd->reply_len = sizeof(scmd->buffer); in smu_queue_simple() 306 cmd->reply_buf = scmd->buffer; in smu_queue_simple() 312 scmd->buffer[i] = (u8)va_arg(list, int); in smu_queue_simple() 744 list_add_tail(&cmd->scmd.link, &smu->cmd_list); in smu_i2c_complete_command() 765 cmd->scmd.reply_len = sizeof(cmd->pdata); in smu_i2c_retry() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/mpt3sas/ |
D | mpt3sas_scsih.c | 1530 struct scsi_cmnd *scmd; in _scsih_scsi_lookup_find_by_target() local 1534 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _scsih_scsi_lookup_find_by_target() 1535 if (!scmd) in _scsih_scsi_lookup_find_by_target() 1537 if (scmd->device->id == id && in _scsih_scsi_lookup_find_by_target() 1538 scmd->device->channel == channel) in _scsih_scsi_lookup_find_by_target() 1560 struct scsi_cmnd *scmd; in _scsih_scsi_lookup_find_by_lun() local 1564 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _scsih_scsi_lookup_find_by_lun() 1565 if (!scmd) in _scsih_scsi_lookup_find_by_lun() 1567 if (scmd->device->id == id && in _scsih_scsi_lookup_find_by_lun() 1568 scmd->device->channel == channel && in _scsih_scsi_lookup_find_by_lun() [all …]
|
D | mpt3sas_warpdrive.c | 256 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()
|
D | mpt3sas_base.c | 424 struct scsi_cmnd *scmd; in _clone_sg_entries() local 449 scmd = mpt3sas_scsih_scsi_lookup_get(ioc, smid); in _clone_sg_entries() 450 if (scmd == NULL) { in _clone_sg_entries() 456 sg_scmd = scsi_sglist(scmd); in _clone_sg_entries() 1947 struct scsi_cmnd *scmd) in _base_get_chain_buffer_tracker() argument 1950 struct scsiio_tracker *st = scsi_cmd_priv(scmd); in _base_get_chain_buffer_tracker() 2245 struct scsi_cmnd *scmd, in base_make_prp_nvme() argument 2256 int data_len = scsi_bufflen(scmd); in base_make_prp_nvme() 2309 sg_scmd = scsi_sglist(scmd); in base_make_prp_nvme() 2337 scmd, "page boundary curr_buff: 0x%p\n", in base_make_prp_nvme() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/megaraid/ |
D | megaraid_sas_fusion.c | 247 cmd->scmd = NULL; in megasas_return_cmd_fusion() 356 struct scsi_cmnd *scmd, in megasas_get_msix_index() argument 365 sdev_busy = atomic_read(&scmd->device->device_busy); in megasas_get_msix_index() 377 u32 tag = blk_mq_unique_tag(scmd->request); in megasas_get_msix_index() 978 cmd->scmd = NULL; in megasas_alloc_cmds_fusion() 1992 struct scsi_cmnd *scmd, u8 status, u8 ext_status, in map_cmd_status() argument 1998 cmd_type = megasas_cmd_type(scmd); in map_cmd_status() 2002 scmd->result = DID_OK << 16; in map_cmd_status() 2007 scmd->result = (DID_ERROR << 16) | ext_status; in map_cmd_status() 2012 scmd->result = (DID_OK << 16) | ext_status; in map_cmd_status() [all …]
|
D | megaraid_sas_base.c | 226 struct scsi_cmnd *scmd); 354 cmd->scmd = NULL; in megasas_return_cmd() 1684 if (!cmd->scmd) in megasas_dump_pending_frames() 1687 if (megasas_cmd_type(cmd->scmd) == READ_WRITE_LDIO) { in megasas_dump_pending_frames() 1732 struct scsi_cmnd *scmd) in megasas_build_and_issue_cmd() argument 1744 if (megasas_cmd_type(scmd) == READ_WRITE_LDIO) in megasas_build_and_issue_cmd() 1745 frame_count = megasas_build_ldio(instance, scmd, cmd); in megasas_build_and_issue_cmd() 1747 frame_count = megasas_build_dcdb(instance, scmd, cmd); in megasas_build_and_issue_cmd() 1752 cmd->scmd = scmd; in megasas_build_and_issue_cmd() 1753 scmd->SCp.ptr = (char *)cmd; in megasas_build_and_issue_cmd() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/smartpqi/ |
D | smartpqi_init.c | 67 struct scsi_cmnd *scmd, u32 aio_handle, u8 *cdb, 188 static inline void pqi_scsi_done(struct scsi_cmnd *scmd) in pqi_scsi_done() argument 190 pqi_prep_for_scsi_done(scmd); in pqi_scsi_done() 191 scmd->scsi_done(scmd); in pqi_scsi_done() 570 io_request->scmd = NULL; in pqi_reinit_io_request() 2245 struct pqi_scsi_dev *device, struct scsi_cmnd *scmd, in pqi_raid_bypass_submit_scsi_cmd() argument 2292 switch (scmd->cmnd[0]) { in pqi_raid_bypass_submit_scsi_cmd() 2297 first_block = (u64)(((scmd->cmnd[1] & 0x1f) << 16) | in pqi_raid_bypass_submit_scsi_cmd() 2298 (scmd->cmnd[2] << 8) | scmd->cmnd[3]); in pqi_raid_bypass_submit_scsi_cmd() 2299 block_cnt = (u32)scmd->cmnd[4]; in pqi_raid_bypass_submit_scsi_cmd() [all …]
|
/kernel/linux/linux-5.10/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
|