/linux-6.12.1/drivers/scsi/ |
D | scsi_lib_dma.c | 31 cmd->sc_data_direction); in scsi_dma_map() 49 cmd->sc_data_direction); in scsi_dma_unmap()
|
D | virtio_scsi.c | 440 if (sc && sc->sc_data_direction != DMA_NONE) { in __virtscsi_add_cmd() 441 if (sc->sc_data_direction != DMA_FROM_DEVICE) in __virtscsi_add_cmd() 443 if (sc->sc_data_direction != DMA_TO_DEVICE) in __virtscsi_add_cmd() 545 if (sc->sc_data_direction == DMA_TO_DEVICE) in virtio_scsi_init_hdr_pi() 549 else if (sc->sc_data_direction == DMA_FROM_DEVICE) in virtio_scsi_init_hdr_pi() 579 BUG_ON(sc->sc_data_direction == DMA_BIDIRECTIONAL); in virtscsi_queuecommand()
|
D | xen-scsifront.c | 217 ring_req->sc_data_direction = (uint8_t)sc->sc_data_direction; in scsifront_do_request() 244 if (shadow->sc->sc_data_direction == DMA_NONE) in scsifront_gnttab_done() 477 int grant_ro = (sc->sc_data_direction == DMA_TO_DEVICE); in map_data_for_request() 484 if (sc->sc_data_direction == DMA_NONE || !data_len) in map_data_for_request()
|
D | ps3rom.c | 102 switch (cmd->sc_data_direction) { in ps3rom_atapi_request() 292 if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in ps3rom_interrupt()
|
D | vmw_pvscsi.c | 391 cmd->sc_data_direction); in pvscsi_map_buffers() 435 bufflen, cmd->sc_data_direction); in pvscsi_unmap_buffers() 746 if (cmd->sc_data_direction == DMA_FROM_DEVICE) in pvscsi_queue_ring() 748 else if (cmd->sc_data_direction == DMA_TO_DEVICE) in pvscsi_queue_ring() 750 else if (cmd->sc_data_direction == DMA_NONE) in pvscsi_queue_ring()
|
D | 53c700.c | 594 if(SCp->sc_data_direction != DMA_NONE && in NCR_700_unmap() 595 SCp->sc_data_direction != DMA_BIDIRECTIONAL) in NCR_700_unmap() 1834 SCp->sc_data_direction != DMA_NONE) { in NCR_700_queuecommand_lck() 1838 printk("Has wrong data direction %d\n", SCp->sc_data_direction); in NCR_700_queuecommand_lck() 1840 SCp->sc_data_direction = DMA_NONE; in NCR_700_queuecommand_lck() 1850 switch(SCp->sc_data_direction) { in NCR_700_queuecommand_lck()
|
D | mac53c94.c | 74 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in mac53c94_queue_lck() 371 dma_cmd = cmd->sc_data_direction == DMA_TO_DEVICE ? in set_dma_cmds()
|
D | scsi_error.c | 1052 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd() 1074 scmd->sc_data_direction = DMA_FROM_DEVICE; in scsi_eh_prep_cmnd() 1080 scmd->sc_data_direction = DMA_NONE; in scsi_eh_prep_cmnd() 1116 scmd->sc_data_direction = ses->data_direction; in scsi_eh_restore_cmnd() 2473 scmd->sc_data_direction = DMA_BIDIRECTIONAL; in scsi_ioctl_reset()
|
/linux-6.12.1/drivers/s390/scsi/ |
D | zfcp_fc.h | 237 if (scsi->sc_data_direction == DMA_FROM_DEVICE) in zfcp_fc_scsi_to_fcp() 239 if (scsi->sc_data_direction == DMA_TO_DEVICE) in zfcp_fc_scsi_to_fcp()
|
/linux-6.12.1/drivers/scsi/qla2xxx/ |
D | qla_iocb.c | 31 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qla2x00_get_cmd_direction() 35 } else if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in qla2x00_get_cmd_direction() 209 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla2x00_build_scsi_iocbs_32() 265 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla2x00_build_scsi_iocbs_64() 370 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2x00_start_scsi() 609 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE || in qla24xx_build_scsi_type_6_iocbs() 616 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qla24xx_build_scsi_type_6_iocbs() 620 } else if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in qla24xx_build_scsi_type_6_iocbs() 717 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla24xx_build_scsi_iocbs() 725 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qla24xx_build_scsi_iocbs() [all …]
|
/linux-6.12.1/drivers/xen/ |
D | xen-scsiback.c | 120 uint8_t sc_data_direction; member 430 pending_req->sc_data_direction, TARGET_SCF_ACK_KREF); in scsiback_cmd_exec() 555 if (pending_req->sc_data_direction == DMA_TO_DEVICE) in scsiback_gnttab_data_map() 707 if ((ring_req->sc_data_direction != DMA_BIDIRECTIONAL) && in prepare_pending_reqs() 708 (ring_req->sc_data_direction != DMA_TO_DEVICE) && in prepare_pending_reqs() 709 (ring_req->sc_data_direction != DMA_FROM_DEVICE) && in prepare_pending_reqs() 710 (ring_req->sc_data_direction != DMA_NONE)) { in prepare_pending_reqs() 712 ring_req->sc_data_direction); in prepare_pending_reqs() 740 pending_req->sc_data_direction = ring_req->sc_data_direction; in prepare_pending_reqs()
|
/linux-6.12.1/include/xen/interface/io/ |
D | vscsiif.h | 255 uint8_t sc_data_direction; /* for DMA_TO_DEVICE(1) member
|
/linux-6.12.1/drivers/scsi/qla4xxx/ |
D | ql4_iocb.c | 161 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla4xxx_build_scsi_iocbs() 339 if (cmd->sc_data_direction == DMA_TO_DEVICE) in qla4xxx_send_command_to_isp() 341 else if (cmd->sc_data_direction == DMA_FROM_DEVICE) in qla4xxx_send_command_to_isp()
|
/linux-6.12.1/drivers/usb/storage/ |
D | transport.c | 654 srb->sc_data_direction != DMA_FROM_DEVICE) { in usb_stor_invoke_transport() 992 pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_CB_transport() 1135 bcb->Flags = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_Bulk_transport() 1171 unsigned int pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_Bulk_transport() 1195 srb->sc_data_direction == DMA_FROM_DEVICE && in usb_stor_Bulk_transport()
|
D | freecom.c | 357 switch (us->srb->sc_data_direction) { in freecom_transport() 431 us->srb->sc_data_direction); in freecom_transport()
|
D | sddr09.c | 1719 if (srb->sc_data_direction == DMA_TO_DEVICE || in sddr09_transport() 1720 srb->sc_data_direction == DMA_FROM_DEVICE) { in sddr09_transport() 1721 unsigned int pipe = (srb->sc_data_direction == DMA_TO_DEVICE) in sddr09_transport() 1725 (srb->sc_data_direction == DMA_TO_DEVICE) ? in sddr09_transport()
|
/linux-6.12.1/drivers/scsi/lpfc/ |
D | lpfc_scsi.c | 817 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3() 1542 int datadir = sc->sc_data_direction; in lpfc_bg_setup_bpl() 1689 int datadir = sc->sc_data_direction; in lpfc_bg_setup_bpl_prot() 1969 if (sc->sc_data_direction == DMA_FROM_DEVICE) { in lpfc_bg_setup_sgl() 2456 if (sc->sc_data_direction == DMA_FROM_DEVICE) { in lpfc_bg_scsi_adjust_dl() 2498 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s3() 2634 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s3() 3236 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) { in lpfc_scsi_prep_dma_buf_s4() 3299 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s4() 3435 scsi_cmnd->sc_data_direction == DMA_TO_DEVICE) { in lpfc_bg_scsi_prep_dma_buf_s4() [all …]
|
/linux-6.12.1/drivers/staging/rts5208/ |
D | xd.c | 1535 trans_dma_enable(chip->srb->sc_data_direction, chip, in xd_read_multiple_pages() 1734 trans_dma_enable(chip->srb->sc_data_direction, chip, in xd_write_multiple_pages() 1867 if (srb->sc_data_direction == DMA_TO_DEVICE) { in xd_rw() 1964 if (srb->sc_data_direction == DMA_FROM_DEVICE) { in xd_rw() 2008 if (srb->sc_data_direction == DMA_FROM_DEVICE) in xd_rw() 2018 if (srb->sc_data_direction == DMA_TO_DEVICE) { in xd_rw() 2030 if (srb->sc_data_direction == DMA_TO_DEVICE && in xd_rw()
|
D | ms.c | 2625 if (srb->sc_data_direction == DMA_FROM_DEVICE) { 2633 if (srb->sc_data_direction == DMA_FROM_DEVICE) { 2643 if (srb->sc_data_direction == DMA_FROM_DEVICE) { 2656 if (srb->sc_data_direction == DMA_FROM_DEVICE) 2666 if (ms_card->pre_dir != srb->sc_data_direction || 2740 ms_card->pre_dir = srb->sc_data_direction; 3385 if (srb->sc_data_direction == DMA_FROM_DEVICE) 3435 if (srb->sc_data_direction == DMA_TO_DEVICE) { 3531 if (srb->sc_data_direction == DMA_FROM_DEVICE) { 3554 if (srb->sc_data_direction == DMA_TO_DEVICE) { [all …]
|
D | rtsx_scsi.c | 922 if (srb->sc_data_direction == DMA_FROM_DEVICE) in read_write() 931 if (srb->sc_data_direction == DMA_TO_DEVICE) { in read_write() 947 if (srb->sc_data_direction == DMA_FROM_DEVICE) in read_write() 1514 if (srb->sc_data_direction == DMA_FROM_DEVICE) in dma_access_ring_buffer() 1520 scsi_sg_count(srb), srb->sc_data_direction, in dma_access_ring_buffer() 1523 if (srb->sc_data_direction == DMA_FROM_DEVICE) in dma_access_ring_buffer()
|
/linux-6.12.1/include/scsi/ |
D | scsi_cmnd.h | 101 enum dma_data_direction sc_data_direction; member
|
/linux-6.12.1/drivers/scsi/qedf/ |
D | qedf_io.c | 487 scsi_sg_count(sc), sc->sc_data_direction); in qedf_map_sg() 574 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in qedf_build_fcp_cmnd() 576 else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) in qedf_build_fcp_cmnd() 617 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_init_task() 869 if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { in qedf_post_io_req() 872 } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_post_io_req() 1116 scsi_sg_count(sc), sc->sc_data_direction); in qedf_unmap_sg_list()
|
/linux-6.12.1/drivers/ata/ |
D | libata-scsi.c | 1737 if (cmd->sc_data_direction == DMA_FROM_DEVICE || in ata_scsi_translate() 1738 cmd->sc_data_direction == DMA_TO_DEVICE) { in ata_scsi_translate() 1746 qc->dma_dir = cmd->sc_data_direction; in ata_scsi_translate() 2683 int nodata = (scmd->sc_data_direction == DMA_NONE); in atapi_xlat() 2693 if (scmd->sc_data_direction == DMA_TO_DEVICE) { in atapi_xlat() 2751 (scmd->sc_data_direction != DMA_TO_DEVICE)) in atapi_xlat() 2913 if (scmd->sc_data_direction != DMA_NONE) { in ata_scsi_pass_thru() 3064 if (scmd->sc_data_direction == DMA_TO_DEVICE) in ata_scsi_pass_thru()
|
/linux-6.12.1/drivers/infiniband/ulp/srp/ |
D | ib_srp.c | 1186 (scmnd->sc_data_direction != DMA_TO_DEVICE && in srp_unmap_data() 1187 scmnd->sc_data_direction != DMA_FROM_DEVICE)) in srp_unmap_data() 1209 scmnd->sc_data_direction); in srp_unmap_data() 1638 if (!scsi_sglist(scmnd) || scmnd->sc_data_direction == DMA_NONE) in srp_map_data() 1641 if (scmnd->sc_data_direction != DMA_FROM_DEVICE && in srp_map_data() 1642 scmnd->sc_data_direction != DMA_TO_DEVICE) { in srp_map_data() 1645 scmnd->sc_data_direction); in srp_map_data() 1656 count = ib_dma_map_sg(ibdev, scat, nents, scmnd->sc_data_direction); in srp_map_data() 1663 scmnd->sc_data_direction == DMA_TO_DEVICE) { in srp_map_data() 1783 if (scmnd->sc_data_direction == DMA_TO_DEVICE) in srp_map_data() [all …]
|
/linux-6.12.1/drivers/scsi/aic7xxx/ |
D | aic7xxx_osm.h | 585 return (scb->io_ctx->sc_data_direction); in ahc_get_transfer_dir()
|