/linux/include/scsi/ |
H A D | scsi_cmnd.h | 147 static inline struct request *scsi_cmd_to_rq(struct scsi_cmnd *scmd) in scsi_cmd_to_rq() function 225 return blk_rq_pos(scsi_cmd_to_rq(scmd)); in scsi_get_sector() 232 return blk_rq_pos(scsi_cmd_to_rq(scmd)) >> shift; in scsi_get_lba() 239 return blk_rq_bytes(scsi_cmd_to_rq(scmd)) >> shift; in scsi_logical_block_count()
|
H A D | scsi_device.h | 313 struct request *__rq = scsi_cmd_to_rq((scmd)); \
|
H A D | libsas.h | 634 return scsi_cmd_to_rq(scmd); in sas_task_find_rq()
|
/linux/include/trace/events/ |
H A D | scsi.h | 185 __entry->driver_tag = scsi_cmd_to_rq(cmd)->tag; 186 __entry->scheduler_tag = scsi_cmd_to_rq(cmd)->internal_tag; 233 __entry->driver_tag = scsi_cmd_to_rq(cmd)->tag; 234 __entry->scheduler_tag = scsi_cmd_to_rq(cmd)->internal_tag; 288 __entry->driver_tag = scsi_cmd_to_rq(cmd)->tag; 289 __entry->scheduler_tag = scsi_cmd_to_rq(cmd)->internal_tag;
|
/linux/drivers/scsi/ |
H A D | scsi_logging.c | 31 struct request *rq = scsi_cmd_to_rq((struct scsi_cmnd *)scmd); in scmd_name() 97 scsi_cmd_to_rq((struct scsi_cmnd *)scmd)->tag); in scmd_printk() 191 scmd_name(cmd), scsi_cmd_to_rq(cmd)->tag); in scsi_print_command() 213 scsi_cmd_to_rq(cmd)->tag); in scsi_print_command() 377 scsi_cmd_to_rq((struct scsi_cmnd *)cmd)->tag, in scsi_print_sense() 396 scsi_cmd_to_rq((struct scsi_cmnd *)cmd)->tag); in scsi_print_result()
|
H A D | scsi_lib.c | 116 struct request *rq = scsi_cmd_to_rq(cmd); in scsi_mq_requeue_cmd() 166 blk_mq_requeue_request(scsi_cmd_to_rq(cmd), in __scsi_queue_insert() 569 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) { in scsi_uninit_cmd() 754 struct request *req = scsi_cmd_to_rq(cmd); in scsi_cmd_runtime_exceeced() 780 struct request *req = scsi_cmd_to_rq(cmd); in scsi_io_completion_action() 961 struct request *req = scsi_cmd_to_rq(cmd); in scsi_io_completion_nz_result() 1048 struct request *req = scsi_cmd_to_rq(cmd); in scsi_io_completion() 1112 struct request *rq = scsi_cmd_to_rq(cmd); in scsi_alloc_sgtables() 1244 struct request *rq = scsi_cmd_to_rq(cmd); in scsi_init_command() 1696 struct request *req = scsi_cmd_to_rq(cmd); in scsi_done_internal() [all …]
|
H A D | sd.c | 808 struct request *rq = scsi_cmd_to_rq(scmd); in sd_setup_protect_cmnd() 916 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_unmap_cmnd() 1005 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_write_same16_cmnd() 1032 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_write_same10_cmnd() 1057 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_write_zeroes_cmnd() 1152 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_flush_cmnd() 1187 const struct request *rq = scsi_cmd_to_rq(cmd); in sd_group_number() 1291 hint = IOPRIO_PRIO_HINT(req_get_ioprio(scsi_cmd_to_rq(scmd))); in sd_cdl_dld() 1321 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_read_write_cmnd() 1435 struct request *rq = scsi_cmd_to_rq(cmd); in sd_init_command() [all …]
|
H A D | scsi_error.c | 274 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(scmd))) { in scsi_eh_reset() 541 struct request *req = scsi_cmd_to_rq(scmd); in scsi_check_sense() 1258 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(scmd))) { in scsi_eh_action() 1827 struct request *req = scsi_cmd_to_rq(scmd); in scsi_noretry_cmd()
|
H A D | sr.c | 301 struct request *rq = scsi_cmd_to_rq(SCpnt); in sr_done() 363 struct request *rq = scsi_cmd_to_rq(SCpnt); in sr_init_command()
|
H A D | wd719x.c | 471 dev_info(dev, "abort command, tag: %x\n", scsi_cmd_to_rq(cmd)->tag); in wd719x_abort() 477 cmd->device->lun, scsi_cmd_to_rq(cmd)->tag, in wd719x_abort()
|
H A D | aha1542.c | 264 struct request *rq = scsi_cmd_to_rq(cmd); in aha1542_free_cmd() 447 struct request *rq = scsi_cmd_to_rq(cmd); in aha1542_queuecommand()
|
H A D | virtio_scsi.c | 535 struct request *rq = scsi_cmd_to_rq(sc); in virtio_scsi_init_hdr_pi() 559 u32 tag = blk_mq_unique_tag(scsi_cmd_to_rq(sc)); in virtscsi_pick_vq_mq()
|
H A D | stex.c | 546 msg_h->timeout = cpu_to_le16(scsi_cmd_to_rq(cmd)->timeout / HZ); in stex_ss_send_cmd() 695 tag = scsi_cmd_to_rq(cmd)->tag; in stex_queuecommand_lck() 1251 u16 tag = scsi_cmd_to_rq(cmd)->tag; in stex_abort()
|
H A D | scsi.c | 184 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) { in scsi_finish_command()
|
/linux/drivers/ufs/core/ |
H A D | ufshcd-crypto.h | 44 const struct bio_crypt_ctx *crypt_ctx = scsi_cmd_to_rq(cmd)->crypt_ctx; in ufshcd_crypto_fill_prdt() 59 if (!(scsi_cmd_to_rq(lrbp->cmd)->crypt_ctx)) in ufshcd_crypto_clear_prdt()
|
H A D | ufs-mcq.c | 551 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd)); in ufshcd_mcq_sq_cleanup() 674 int tag = scsi_cmd_to_rq(cmd)->tag; in ufshcd_mcq_abort() 694 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd)); in ufshcd_mcq_abort()
|
H A D | ufshcd.c | 432 struct request *rq = scsi_cmd_to_rq(cmd); in ufshcd_add_command_trace() 2246 const struct request *req = scsi_cmd_to_rq(lrbp->cmd); in ufshcd_update_monitor() 2841 struct request *rq = scsi_cmd_to_rq(lrbp->cmd); in ufshcd_comp_scsi_upiu() 2858 ufshcd_prepare_lrbp_crypto(cmd ? scsi_cmd_to_rq(cmd) : NULL, lrbp); in __ufshcd_setup_cmd() 2950 int tag = scsi_cmd_to_rq(cmd)->tag; in ufshcd_queuecommand() 3013 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd)); in ufshcd_queuecommand() 3053 return cmd && blk_mq_rq_state(scsi_cmd_to_rq(cmd)) == MQ_RQ_IN_FLIGHT; in ufshcd_cmd_inflight() 5607 if (scsi_cmd_to_rq(cmd)->cmd_flags & REQ_POLLED) in ufshcd_clear_polled() 5675 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(cmd)); in ufshcd_mcq_compl_pending_transfer() 7423 hwq = ufshcd_mcq_req_to_hwq(hba, scsi_cmd_to_rq(lrbp->cmd)); in ufshcd_eh_device_reset_handler() [all …]
|
/linux/drivers/scsi/arm/ |
H A D | queue.c | 221 scsi_cmd_to_rq(q->SCpnt)->tag == tag) { in queue_remove_tgtluntag()
|
/linux/drivers/scsi/fnic/ |
H A D | fnic_scsi.c | 388 struct request *const rq = scsi_cmd_to_rq(sc); in fnic_queuecommand() 1414 struct request *const rq = scsi_cmd_to_rq(sc); in fnic_cleanup_io_iter() 1617 struct request *const rq = scsi_cmd_to_rq(sc); in fnic_rport_abort_io_iter() 1785 struct request *const rq = scsi_cmd_to_rq(sc); in fnic_abort_cmd() 2088 struct request *const rq = scsi_cmd_to_rq(sc); in fnic_pending_aborts_iter() 2276 struct request *rq = scsi_cmd_to_rq(sc); in fnic_device_reset() 2741 struct request *const rq = scsi_cmd_to_rq(sc); in fnic_abts_pending_iter()
|
/linux/drivers/scsi/snic/ |
H A D | snic_scsi.c | 22 #define snic_cmd_tag(sc) (scsi_cmd_to_rq(sc)->tag) 1617 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), tag); in snic_abort_cmd() 2127 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), in snic_device_reset() 2362 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), in snic_host_reset() 2469 sc, scsi_cmd_to_rq(sc)->tag, CMD_FLAGS(sc), rqi, in snic_scsi_cleanup()
|
/linux/drivers/target/loopback/ |
H A D | tcm_loop.c | 179 tl_cmd->sc_cmd_tag = scsi_cmd_to_rq(sc)->tag; in tcm_loop_queuecommand() 245 scsi_cmd_to_rq(sc)->tag, TMR_ABORT_TASK); in tcm_loop_abort_task()
|
/linux/drivers/infiniband/ulp/iser/ |
H A D | iser_memory.c | 181 domain->sig.dif.ref_tag = t10_pi_ref_tag(scsi_cmd_to_rq(sc)); in iser_set_dif_domain()
|
/linux/drivers/scsi/qla4xxx/ |
H A D | ql4_iocb.c | 291 index = scsi_cmd_to_rq(cmd)->tag; in qla4xxx_send_command_to_isp()
|
/linux/drivers/ata/ |
H A D | libata-scsi.c | 757 tag = scsi_cmd_to_rq(cmd)->tag; in ata_scsi_qc_new() 773 if (scsi_cmd_to_rq(cmd)->rq_flags & RQF_QUIET) in ata_scsi_qc_new() 1515 struct request *rq = scsi_cmd_to_rq(scmd); in ata_check_nblocks() 1550 struct request *rq = scsi_cmd_to_rq(scmd); in ata_scsi_rw_xlat() 3383 if (unlikely(blk_rq_is_passthrough(scsi_cmd_to_rq(scmd)))) in ata_scsi_write_same_xlat()
|
/linux/drivers/scsi/csiostor/ |
H A D | csio_scsi.c | 1793 sqset = &hw->sqset[ln->portid][blk_mq_rq_cpu(scsi_cmd_to_rq(cmnd))]; in csio_queuecommand() 1996 scsi_cmd_to_rq(cmnd)->tag); in csio_eh_abort_handler() 2002 scsi_cmd_to_rq(cmnd)->tag); in csio_eh_abort_handler()
|