/linux/include/scsi/ |
A D | scsi_cmnd.h | 148 static inline struct request *scsi_cmd_to_rq(struct scsi_cmnd *scmd) in scsi_cmd_to_rq() function 165 struct request *rq = scsi_cmd_to_rq(cmd); in scsi_cmd_to_driver() 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() 247 return blk_rq_bytes(scsi_cmd_to_rq(scmd)) >> shift; in scsi_logical_block_count()
|
A D | scsi_device.h | 276 struct request *__rq = scsi_cmd_to_rq((scmd)); \
|
/linux/drivers/scsi/ |
A D | scsi_logging.c | 31 struct request *rq = scsi_cmd_to_rq((struct scsi_cmnd *)scmd); in scmd_name() 95 scsi_cmd_to_rq((struct scsi_cmnd *)scmd)->tag); in scmd_printk() 192 scmd_name(cmd), scsi_cmd_to_rq(cmd)->tag); in scsi_print_command() 214 scsi_cmd_to_rq(cmd)->tag); in scsi_print_command() 378 scsi_cmd_to_rq((struct scsi_cmnd *)cmd)->tag, in scsi_print_sense() 397 scsi_cmd_to_rq((struct scsi_cmnd *)cmd)->tag); in scsi_print_result()
|
A D | sd_zbc.c | 246 struct request *rq = scsi_cmd_to_rq(cmd); in sd_zbc_cmnd_checks() 324 struct request *rq = scsi_cmd_to_rq(cmd); in sd_zbc_prepare_zone_append() 389 struct request *rq = scsi_cmd_to_rq(cmd); in sd_zbc_setup_zone_mgmt_cmnd() 445 struct request *rq = scsi_cmd_to_rq(cmd); in sd_zbc_zone_wp_update() 519 struct request *rq = scsi_cmd_to_rq(cmd); in sd_zbc_complete()
|
A D | scsi_lib.c | 123 struct request *rq = scsi_cmd_to_rq(cmd); in scsi_mq_requeue_cmd() 170 blk_mq_requeue_request(scsi_cmd_to_rq(cmd), true); in __scsi_queue_insert() 484 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) { in scsi_uninit_cmd() 630 struct request *req = scsi_cmd_to_rq(cmd); in scsi_cmd_runtime_exceeced() 649 struct request *req = scsi_cmd_to_rq(cmd); in scsi_io_completion_action() 824 struct request *req = scsi_cmd_to_rq(cmd); in scsi_io_completion_nz_result() 913 struct request *req = scsi_cmd_to_rq(cmd); in scsi_io_completion() 984 struct request *rq = scsi_cmd_to_rq(cmd); in scsi_alloc_sgtables() 1127 struct request *rq = scsi_cmd_to_rq(cmd); in scsi_init_command() 1598 if (unlikely(blk_should_fake_timeout(scsi_cmd_to_rq(cmd)->q))) in scsi_done() [all …]
|
A D | sd.c | 781 struct request *rq = scsi_cmd_to_rq(scmd); in sd_setup_protect_cmnd() 874 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_unmap_cmnd() 910 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_write_same16_cmnd() 942 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_write_same10_cmnd() 972 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_write_zeroes_cmnd() 1069 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_write_same_cmnd() 1118 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_flush_cmnd() 1216 struct request *rq = scsi_cmd_to_rq(cmd); in sd_setup_read_write_cmnd() 1330 struct request *rq = scsi_cmd_to_rq(cmd); in sd_init_command() 1376 struct request *rq = scsi_cmd_to_rq(SCpnt); in sd_uninit_command() [all …]
|
A D | sr.c | 337 struct request *rq = scsi_cmd_to_rq(SCpnt); in sr_done() 399 struct request *rq = scsi_cmd_to_rq(SCpnt); in sr_init_command()
|
A D | scsi_error.c | 268 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(scmd))) { in scsi_eh_reset() 1210 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(scmd))) { in scsi_eh_action() 1778 struct request *req = scsi_cmd_to_rq(scmd); in scsi_noretry_cmd()
|
A D | aha1542.c | 265 struct request *rq = scsi_cmd_to_rq(cmd); in aha1542_free_cmd() 448 struct request *rq = scsi_cmd_to_rq(cmd); in aha1542_queuecommand()
|
A D | virtio_scsi.c | 523 struct request *rq = scsi_cmd_to_rq(sc); in virtio_scsi_init_hdr_pi() 547 u32 tag = blk_mq_unique_tag(scsi_cmd_to_rq(sc)); in virtscsi_pick_vq_mq()
|
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()
|
A D | sun3_scsi.c | 339 if (wanted_len < DMA_MIN_SIZE || blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) in sun3scsi_dma_xfer_len()
|
A D | scsi.c | 185 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) { in scsi_finish_command()
|
A D | stex.c | 543 msg_h->timeout = cpu_to_le16(scsi_cmd_to_rq(cmd)->timeout / HZ); in stex_ss_send_cmd() 691 tag = scsi_cmd_to_rq(cmd)->tag; in stex_queuecommand_lck() 1247 u16 tag = scsi_cmd_to_rq(cmd)->tag; in stex_abort()
|
A D | storvsc_drv.c | 713 return (u64)blk_mq_unique_tag(scsi_cmd_to_rq(request->cmd)) + 1; in storvsc_next_request_id() 1214 scsi_cmd_to_rq(request->cmd)->tag, in storvsc_on_io_completion()
|
/linux/drivers/scsi/fnic/ |
A D | fnic_scsi.c | 110 u32 hash = scsi_cmd_to_rq(sc)->tag & (FNIC_IO_LOCKS - 1); in fnic_io_lock_hash() 393 fnic_queue_wq_copy_desc_icmnd_16(wq, scsi_cmd_to_rq(sc)->tag, in fnic_queue_wq_copy_desc() 426 const int tag = scsi_cmd_to_rq(sc)->tag; in fnic_queuecommand_lck() 1362 const int tag = scsi_cmd_to_rq(sc)->tag; in fnic_cleanup_io_iter() 1562 int abt_tag = scsi_cmd_to_rq(sc)->tag; in fnic_rport_abort_io_iter() 1723 struct request *const rq = scsi_cmd_to_rq(sc); in fnic_abort_cmd() 1987 fnic_queue_wq_copy_desc_itmf(wq, scsi_cmd_to_rq(sc)->tag | FNIC_TAG_DEV_RST, in fnic_queue_dr_io_req() 2018 int abt_tag = scsi_cmd_to_rq(sc)->tag; in fnic_pending_aborts_iter() 2198 struct request *rq = scsi_cmd_to_rq(sc); in fnic_scsi_host_start_tag() 2231 struct request *rq = scsi_cmd_to_rq(sc); in fnic_device_reset()
|
/linux/drivers/ata/ |
A D | pata_falcon.c | 52 !blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) in pata_falcon_data_xfer()
|
A D | libata-scsi.c | 643 qc = ata_qc_new_init(dev, scsi_cmd_to_rq(cmd)->tag); in ata_scsi_qc_new() 651 if (scsi_cmd_to_rq(cmd)->rq_flags & RQF_QUIET) in ata_scsi_qc_new() 1508 struct request *rq = scsi_cmd_to_rq(scmd); in ata_check_nblocks() 1543 struct request *rq = scsi_cmd_to_rq(scmd); in ata_scsi_rw_xlat() 3186 if (unlikely(blk_rq_is_passthrough(scsi_cmd_to_rq(scmd)))) in ata_scsi_write_same_xlat()
|
/linux/drivers/scsi/arm/ |
A D | queue.c | 217 scsi_cmd_to_rq(q->SCpnt)->tag == tag) { in queue_remove_tgtluntag()
|
/linux/drivers/scsi/ufs/ |
A D | ufshpb.c | 73 return req_op(scsi_cmd_to_rq(cmd)) == REQ_OP_READ; in ufshpb_is_read_cmd() 78 return op_is_write(req_op(scsi_cmd_to_rq(cmd))) || in ufshpb_is_write_or_discard() 79 op_is_discard(req_op(scsi_cmd_to_rq(cmd))); in ufshpb_is_write_or_discard() 372 if (blk_rq_is_passthrough(scsi_cmd_to_rq(cmd)) || in ufshpb_prep() 378 blk_rq_sectors(scsi_cmd_to_rq(cmd))); in ufshpb_prep() 382 lpn = sectors_to_logical(cmd->device, blk_rq_pos(scsi_cmd_to_rq(cmd))); in ufshpb_prep()
|
/linux/drivers/scsi/snic/ |
A D | snic_scsi.c | 36 #define snic_cmd_tag(sc) (scsi_cmd_to_rq(sc)->tag) 1636 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), tag); in snic_abort_cmd() 2152 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), in snic_device_reset() 2387 sc, sc->cmnd[0], scsi_cmd_to_rq(sc), in snic_host_reset() 2494 sc, scsi_cmd_to_rq(sc)->tag, CMD_FLAGS(sc), rqi, in snic_scsi_cleanup()
|
/linux/drivers/target/loopback/ |
A D | tcm_loop.c | 186 tl_cmd->sc_cmd_tag = scsi_cmd_to_rq(sc)->tag; in tcm_loop_queuecommand() 252 scsi_cmd_to_rq(sc)->tag, TMR_ABORT_TASK); in tcm_loop_abort_task()
|
/linux/drivers/infiniband/ulp/iser/ |
A D | iser_memory.c | 162 domain->sig.dif.ref_tag = t10_pi_ref_tag(scsi_cmd_to_rq(sc)); in iser_set_dif_domain()
|
/linux/drivers/scsi/qla4xxx/ |
A D | ql4_iocb.c | 291 index = scsi_cmd_to_rq(cmd)->tag; in qla4xxx_send_command_to_isp()
|
/linux/drivers/scsi/csiostor/ |
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()
|