| /Linux-v5.4/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 | 416 if (sc && sc->sc_data_direction != DMA_NONE) { in __virtscsi_add_cmd() 417 if (sc->sc_data_direction != DMA_FROM_DEVICE) in __virtscsi_add_cmd() 419 if (sc->sc_data_direction != DMA_TO_DEVICE) in __virtscsi_add_cmd() 521 if (sc->sc_data_direction == DMA_TO_DEVICE) in virtio_scsi_init_hdr_pi() 525 else if (sc->sc_data_direction == DMA_FROM_DEVICE) in virtio_scsi_init_hdr_pi() 555 BUG_ON(sc->sc_data_direction == DMA_BIDIRECTIONAL); in virtscsi_queuecommand()
|
| D | xen-scsifront.c | 214 ring_req->sc_data_direction = (uint8_t)sc->sc_data_direction; in scsifront_do_request() 232 if (shadow->sc->sc_data_direction == DMA_NONE) in scsifront_gnttab_done() 399 int grant_ro = (sc->sc_data_direction == DMA_TO_DEVICE); in map_data_for_request() 406 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() 296 if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in ps3rom_interrupt()
|
| D | vmw_pvscsi.c | 393 cmd->sc_data_direction); in pvscsi_map_buffers() 426 bufflen, cmd->sc_data_direction); in pvscsi_unmap_buffers() 732 if (cmd->sc_data_direction == DMA_FROM_DEVICE) in pvscsi_queue_ring() 734 else if (cmd->sc_data_direction == DMA_TO_DEVICE) in pvscsi_queue_ring() 736 else if (cmd->sc_data_direction == DMA_NONE) in pvscsi_queue_ring()
|
| D | 53c700.c | 565 if(SCp->sc_data_direction != DMA_NONE && in NCR_700_unmap() 566 SCp->sc_data_direction != DMA_BIDIRECTIONAL) in NCR_700_unmap() 1822 SCp->sc_data_direction != DMA_NONE) { in NCR_700_queuecommand_lck() 1826 printk("Has wrong data direction %d\n", SCp->sc_data_direction); in NCR_700_queuecommand_lck() 1828 SCp->sc_data_direction = DMA_NONE; in NCR_700_queuecommand_lck() 1838 switch(SCp->sc_data_direction) { in NCR_700_queuecommand_lck() 1859 direction = SCp->sc_data_direction; in NCR_700_queuecommand_lck()
|
| D | scsi_error.c | 967 ses->data_direction = scmd->sc_data_direction; in scsi_eh_prep_cmnd() 989 scmd->sc_data_direction = DMA_FROM_DEVICE; in scsi_eh_prep_cmnd() 995 scmd->sc_data_direction = DMA_NONE; in scsi_eh_prep_cmnd() 1031 scmd->sc_data_direction = ses->data_direction; in scsi_eh_restore_cmnd() 2363 scmd->sc_data_direction = DMA_BIDIRECTIONAL; in scsi_ioctl_reset()
|
| D | mac53c94.c | 75 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in mac53c94_queue_lck() 375 dma_cmd = cmd->sc_data_direction == DMA_TO_DEVICE ? in set_dma_cmds()
|
| D | mvumi.c | 199 scmd->sc_data_direction); in mvumi_make_sgl() 205 scmd->sc_data_direction); in mvumi_make_sgl() 1330 scmd->sc_data_direction); in mvumi_complete_cmd() 2037 switch (scmd->sc_data_direction) { in mvumi_build_frame() 2050 "cmd[0x%x]\n", scmd->sc_data_direction, scmd->cmnd[0]); in mvumi_build_frame() 2138 scmd->sc_data_direction); in mvumi_timed_out()
|
| D | sd_zbc.c | 244 cmd->sc_data_direction = DMA_NONE; in sd_zbc_setup_reset_cmnd()
|
| /Linux-v5.4/drivers/s390/scsi/ |
| D | zfcp_fc.h | 235 if (scsi->sc_data_direction == DMA_FROM_DEVICE) in zfcp_fc_scsi_to_fcp() 237 if (scsi->sc_data_direction == DMA_TO_DEVICE) in zfcp_fc_scsi_to_fcp()
|
| /Linux-v5.4/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() 207 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla2x00_build_scsi_iocbs_32() 263 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla2x00_build_scsi_iocbs_64() 368 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2x00_start_scsi() 604 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla24xx_build_scsi_type_6_iocbs() 613 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qla24xx_build_scsi_type_6_iocbs() 617 } else if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in qla24xx_build_scsi_type_6_iocbs() 714 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla24xx_build_scsi_iocbs() 722 if (cmd->sc_data_direction == DMA_TO_DEVICE) { in qla24xx_build_scsi_iocbs() [all …]
|
| /Linux-v5.4/include/xen/interface/io/ |
| D | vscsiif.h | 199 uint8_t sc_data_direction; /* for DMA_TO_DEVICE(1) member
|
| /Linux-v5.4/drivers/xen/ |
| D | xen-scsiback.c | 121 uint8_t sc_data_direction; member 407 pending_req->sc_data_direction, TARGET_SCF_ACK_KREF, in scsiback_cmd_exec() 533 if (pending_req->sc_data_direction == DMA_TO_DEVICE) in scsiback_gnttab_data_map() 685 if ((ring_req->sc_data_direction != DMA_BIDIRECTIONAL) && in prepare_pending_reqs() 686 (ring_req->sc_data_direction != DMA_TO_DEVICE) && in prepare_pending_reqs() 687 (ring_req->sc_data_direction != DMA_FROM_DEVICE) && in prepare_pending_reqs() 688 (ring_req->sc_data_direction != DMA_NONE)) { in prepare_pending_reqs() 690 ring_req->sc_data_direction); in prepare_pending_reqs() 718 pending_req->sc_data_direction = ring_req->sc_data_direction; in prepare_pending_reqs()
|
| /Linux-v5.4/drivers/usb/storage/ |
| D | transport.c | 649 srb->sc_data_direction != DMA_FROM_DEVICE) { in usb_stor_invoke_transport() 980 pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_CB_transport() 1123 bcb->Flags = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_Bulk_transport() 1159 unsigned int pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? in usb_stor_Bulk_transport() 1183 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-v5.4/drivers/scsi/qla4xxx/ |
| D | ql4_iocb.c | 162 if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) { in qla4xxx_build_scsi_iocbs() 340 if (cmd->sc_data_direction == DMA_TO_DEVICE) in qla4xxx_send_command_to_isp() 342 else if (cmd->sc_data_direction == DMA_FROM_DEVICE) in qla4xxx_send_command_to_isp()
|
| /Linux-v5.4/include/scsi/ |
| D | scsi_cmnd.h | 93 enum dma_data_direction sc_data_direction; member
|
| /Linux-v5.4/drivers/staging/rts5208/ |
| D | xd.c | 1542 trans_dma_enable(chip->srb->sc_data_direction, chip, in xd_read_multiple_pages() 1742 trans_dma_enable(chip->srb->sc_data_direction, chip, in xd_write_multiple_pages() 1876 if (srb->sc_data_direction == DMA_TO_DEVICE) { in xd_rw() 1973 if (srb->sc_data_direction == DMA_FROM_DEVICE) { in xd_rw() 2017 if (srb->sc_data_direction == DMA_FROM_DEVICE) in xd_rw() 2027 if (srb->sc_data_direction == DMA_TO_DEVICE) { in xd_rw() 2039 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-v5.4/drivers/scsi/qedf/ |
| D | qedf_io.c | 494 scsi_sg_count(sc), sc->sc_data_direction); in qedf_map_sg() 578 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) in qedf_build_fcp_cmnd() 580 else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) in qedf_build_fcp_cmnd() 621 if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_init_task() 875 if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) { in qedf_post_io_req() 879 } else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) { in qedf_post_io_req() 1121 scsi_sg_count(sc), sc->sc_data_direction); in qedf_unmap_sg_list()
|
| /Linux-v5.4/drivers/scsi/lpfc/ |
| D | lpfc_scsi.c | 844 int nseg, datadir = scsi_cmnd->sc_data_direction; in lpfc_scsi_prep_dma_buf_s3() 1567 int datadir = sc->sc_data_direction; in lpfc_bg_setup_bpl() 1714 int datadir = sc->sc_data_direction; in lpfc_bg_setup_bpl_prot() 1994 if (sc->sc_data_direction == DMA_FROM_DEVICE) { in lpfc_bg_setup_sgl() 2482 if (sc->sc_data_direction == DMA_FROM_DEVICE) { in lpfc_bg_scsi_adjust_dl() 2524 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s3() 2660 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s3() 3262 int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction; in lpfc_bg_scsi_prep_dma_buf_s4() 3421 scsi_cmnd->sc_data_direction); in lpfc_bg_scsi_prep_dma_buf_s4() 3532 } else if ((cmnd->sc_data_direction == DMA_FROM_DEVICE) && in lpfc_send_scsi_error_event() [all …]
|
| /Linux-v5.4/drivers/infiniband/ulp/srp/ |
| D | ib_srp.c | 1252 (scmnd->sc_data_direction != DMA_TO_DEVICE && in srp_unmap_data() 1253 scmnd->sc_data_direction != DMA_FROM_DEVICE)) in srp_unmap_data() 1280 scmnd->sc_data_direction); in srp_unmap_data() 1818 if (!scsi_sglist(scmnd) || scmnd->sc_data_direction == DMA_NONE) in srp_map_data() 1821 if (scmnd->sc_data_direction != DMA_FROM_DEVICE && in srp_map_data() 1822 scmnd->sc_data_direction != DMA_TO_DEVICE) { in srp_map_data() 1825 scmnd->sc_data_direction); in srp_map_data() 1836 count = ib_dma_map_sg(ibdev, scat, nents, scmnd->sc_data_direction); in srp_map_data() 1843 scmnd->sc_data_direction == DMA_TO_DEVICE) { in srp_map_data() 1965 if (scmnd->sc_data_direction == DMA_TO_DEVICE) in srp_map_data() [all …]
|