Home
last modified time | relevance | path

Searched refs:sc_data_direction (Results 1 – 25 of 106) sorted by relevance

12345

/linux-6.12.1/drivers/scsi/
Dscsi_lib_dma.c31 cmd->sc_data_direction); in scsi_dma_map()
49 cmd->sc_data_direction); in scsi_dma_unmap()
Dvirtio_scsi.c440 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()
Dxen-scsifront.c217 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()
Dps3rom.c102 switch (cmd->sc_data_direction) { in ps3rom_atapi_request()
292 if (cmd->sc_data_direction == DMA_FROM_DEVICE) { in ps3rom_interrupt()
Dvmw_pvscsi.c391 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()
D53c700.c594 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()
Dmac53c94.c74 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()
Dscsi_error.c1052 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/
Dzfcp_fc.h237 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/
Dqla_iocb.c31 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/
Dxen-scsiback.c120 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/
Dvscsiif.h255 uint8_t sc_data_direction; /* for DMA_TO_DEVICE(1) member
/linux-6.12.1/drivers/scsi/qla4xxx/
Dql4_iocb.c161 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/
Dtransport.c654 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()
Dfreecom.c357 switch (us->srb->sc_data_direction) { in freecom_transport()
431 us->srb->sc_data_direction); in freecom_transport()
Dsddr09.c1719 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/
Dlpfc_scsi.c817 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/
Dxd.c1535 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()
Dms.c2625 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 …]
Drtsx_scsi.c922 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/
Dscsi_cmnd.h101 enum dma_data_direction sc_data_direction; member
/linux-6.12.1/drivers/scsi/qedf/
Dqedf_io.c487 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/
Dlibata-scsi.c1737 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/
Dib_srp.c1186 (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/
Daic7xxx_osm.h585 return (scb->io_ctx->sc_data_direction); in ahc_get_transfer_dir()

12345