Home
last modified time | relevance | path

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

123

/linux/include/scsi/
A Dscsi_cmnd.h148 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 Dscsi_device.h276 struct request *__rq = scsi_cmd_to_rq((scmd)); \
/linux/drivers/scsi/
A Dscsi_logging.c31 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 Dsd_zbc.c246 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 Dscsi_lib.c123 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 Dsd.c781 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 Dsr.c337 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 Dscsi_error.c268 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 Daha1542.c265 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 Dvirtio_scsi.c523 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 Dwd719x.c471 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 Dsun3_scsi.c339 if (wanted_len < DMA_MIN_SIZE || blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) in sun3scsi_dma_xfer_len()
A Dscsi.c185 if (!blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) { in scsi_finish_command()
A Dstex.c543 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 Dstorvsc_drv.c713 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 Dfnic_scsi.c110 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 Dpata_falcon.c52 !blk_rq_is_passthrough(scsi_cmd_to_rq(cmd))) in pata_falcon_data_xfer()
A Dlibata-scsi.c643 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 Dqueue.c217 scsi_cmd_to_rq(q->SCpnt)->tag == tag) { in queue_remove_tgtluntag()
/linux/drivers/scsi/ufs/
A Dufshpb.c73 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 Dsnic_scsi.c36 #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 Dtcm_loop.c186 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 Diser_memory.c162 domain->sig.dif.ref_tag = t10_pi_ref_tag(scsi_cmd_to_rq(sc)); in iser_set_dif_domain()
/linux/drivers/scsi/qla4xxx/
A Dql4_iocb.c291 index = scsi_cmd_to_rq(cmd)->tag; in qla4xxx_send_command_to_isp()
/linux/drivers/scsi/csiostor/
A Dcsio_scsi.c1793 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()

Completed in 83 milliseconds

123