/Linux-v6.6/drivers/media/common/videobuf2/ |
D | videobuf2-vmalloc.c | 28 enum dma_data_direction dma_dir; member 54 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_alloc() 85 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_vmalloc_get_userptr() 89 buf->dma_dir == DMA_FROM_DEVICE || in vb2_vmalloc_get_userptr() 90 buf->dma_dir == DMA_BIDIRECTIONAL); in vb2_vmalloc_get_userptr() 139 if (buf->dma_dir == DMA_FROM_DEVICE || in vb2_vmalloc_put_userptr() 140 buf->dma_dir == DMA_BIDIRECTIONAL) in vb2_vmalloc_put_userptr() 207 enum dma_data_direction dma_dir; member 244 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach() 261 if (attach->dma_dir != DMA_NONE) in vb2_vmalloc_dmabuf_ops_detach() [all …]
|
D | videobuf2-dma-sg.c | 40 enum dma_data_direction dma_dir; member 117 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dma_sg_alloc() 150 if (dma_map_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_alloc() 188 dma_unmap_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_put() 209 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dma_sg_prepare() 220 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dma_sg_finish() 239 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dma_sg_get_userptr() 245 buf->dma_dir == DMA_FROM_DEVICE || in vb2_dma_sg_get_userptr() 246 buf->dma_dir == DMA_BIDIRECTIONAL); in vb2_dma_sg_get_userptr() 265 if (dma_map_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_get_userptr() [all …]
|
D | videobuf2-dma-contig.c | 33 enum dma_data_direction dma_dir; member 140 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dc_prepare() 160 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dc_finish() 178 buf->dma_sgt, buf->dma_dir); in vb2_dc_put() 216 buf->dma_dir, in vb2_dc_alloc_non_coherent() 246 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dc_alloc() 314 enum dma_data_direction dma_dir; member 349 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach() 367 if (attach->dma_dir != DMA_NONE) in vb2_dc_dmabuf_ops_detach() 374 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, in vb2_dc_dmabuf_ops_detach() [all …]
|
/Linux-v6.6/drivers/media/platform/nvidia/tegra-vde/ |
D | dmabuf-cache.c | 22 enum dma_data_direction dma_dir; member 41 dma_buf_unmap_attachment_unlocked(entry->a, entry->sgt, entry->dma_dir); in tegra_vde_release_entry() 65 enum dma_data_direction dma_dir, in tegra_vde_dmabuf_cache_map() argument 85 if (entry->dma_dir != dma_dir) in tegra_vde_dmabuf_cache_map() 86 entry->dma_dir = DMA_BIDIRECTIONAL; in tegra_vde_dmabuf_cache_map() 105 sgt = dma_buf_map_attachment_unlocked(attachment, dma_dir); in tegra_vde_dmabuf_cache_map() 138 entry->dma_dir = dma_dir; in tegra_vde_dmabuf_cache_map() 155 dma_buf_unmap_attachment_unlocked(attachment, sgt, dma_dir); in tegra_vde_dmabuf_cache_map()
|
D | vde.c | 57 enum dma_data_direction dma_dir, in tegra_vde_alloc_bo() argument 70 bo->dma_dir = dma_dir; in tegra_vde_alloc_bo() 93 err = dma_map_sgtable(dev, &bo->sgt, bo->dma_dir, bo->dma_attrs); in tegra_vde_alloc_bo() 116 dma_unmap_sgtable(dev, &bo->sgt, bo->dma_dir, bo->dma_attrs); in tegra_vde_alloc_bo() 136 dma_unmap_sgtable(dev, &bo->sgt, bo->dma_dir, bo->dma_attrs); in tegra_vde_free_bo()
|
D | vde.h | 87 enum dma_data_direction dma_dir; member 135 enum dma_data_direction dma_dir, 197 enum dma_data_direction dma_dir,
|
/Linux-v6.6/drivers/staging/rts5208/ |
D | rtsx_transport.c | 315 enum dma_data_direction dma_dir, in rtsx_transfer_sglist_adma_partial() argument 330 if (dma_dir == DMA_TO_DEVICE) in rtsx_transfer_sglist_adma_partial() 332 else if (dma_dir == DMA_FROM_DEVICE) in rtsx_transfer_sglist_adma_partial() 356 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 469 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 479 enum dma_data_direction dma_dir, in rtsx_transfer_sglist_adma() argument 493 if (dma_dir == DMA_TO_DEVICE) in rtsx_transfer_sglist_adma() 495 else if (dma_dir == DMA_FROM_DEVICE) in rtsx_transfer_sglist_adma() 519 buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma() 616 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma() [all …]
|
D | rtsx_transport.h | 49 int use_sg, enum dma_data_direction dma_dir, 55 enum dma_data_direction dma_dir, int timeout);
|
/Linux-v6.6/include/linux/comedi/ |
D | comedi_isadma.h | 65 void comedi_isadma_set_mode(struct comedi_isadma_desc *desc, char dma_dir); 70 unsigned int maxsize, char dma_dir); 96 char dma_dir) in comedi_isadma_set_mode() argument 103 unsigned int maxsize, char dma_dir) in comedi_isadma_alloc() argument
|
/Linux-v6.6/drivers/mmc/host/ |
D | uniphier-sd.c | 75 enum dma_data_direction dma_dir; member 110 priv->dma_dir); in uniphier_sd_external_dma_callback() 144 priv->dma_dir = DMA_FROM_DEVICE; in uniphier_sd_external_dma_start() 147 priv->dma_dir = DMA_TO_DEVICE; in uniphier_sd_external_dma_start() 152 priv->dma_dir); in uniphier_sd_external_dma_start() 174 priv->dma_dir); in uniphier_sd_external_dma_start() 272 priv->dma_dir = DMA_FROM_DEVICE; in uniphier_sd_internal_dma_start() 275 priv->dma_dir = DMA_TO_DEVICE; in uniphier_sd_internal_dma_start() 279 sg_len = dma_map_sg(mmc_dev(host->mmc), sg, 1, priv->dma_dir); in uniphier_sd_internal_dma_start() 349 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, 1, priv->dma_dir); in uniphier_sd_internal_dma_dataend()
|
D | mxs-mmc.c | 147 data->sg_len, ssp->dma_dir); in mxs_mmc_request_done() 225 data->sg_len, ssp->dma_dir); in mxs_mmc_prep_dma() 242 data->sg_len, ssp->dma_dir); in mxs_mmc_prep_dma() 267 ssp->dma_dir = DMA_NONE; in mxs_mmc_bc() 312 ssp->dma_dir = DMA_NONE; in mxs_mmc_ac() 433 ssp->dma_dir = DMA_NONE; in mxs_mmc_adtc() 442 ssp->dma_dir = dma_data_dir; in mxs_mmc_adtc()
|
/Linux-v6.6/drivers/scsi/ |
D | a2091.c | 119 wh->dma_dir = dir_in; in dma_setup() 146 if (!wh->dma_dir) in dma_stop() 153 if (wh->dma_dir) { in dma_stop() 170 DMA_DIR(wh->dma_dir)); in dma_stop() 174 if (wh->dma_dir) in dma_stop()
|
D | a3000.c | 121 wh->dma_dir = dir_in; in dma_setup() 150 if (!wh->dma_dir) in dma_stop() 157 if (wh->dma_dir) { in dma_stop() 181 DMA_DIR(wh->dma_dir)); in dma_stop() 186 if (wh->dma_dir && SCpnt) in dma_stop()
|
D | sgiwd93.c | 117 hdata->wh.dma_dir = datainp; in dma_setup() 160 if (hdata->wh.dma_dir) { in dma_stop() 168 DMA_DIR(hdata->wh.dma_dir)); in dma_stop()
|
/Linux-v6.6/drivers/comedi/drivers/ |
D | comedi_isadma.c | 133 void comedi_isadma_set_mode(struct comedi_isadma_desc *desc, char dma_dir) in comedi_isadma_set_mode() argument 135 desc->mode = (dma_dir == COMEDI_ISADMA_READ) ? DMA_MODE_READ in comedi_isadma_set_mode() 154 unsigned int maxsize, char dma_dir) in comedi_isadma_alloc() argument 211 comedi_isadma_set_mode(desc, dma_dir); in comedi_isadma_alloc()
|
/Linux-v6.6/drivers/comedi/ |
D | comedi_buf.c | 29 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_kref_release() 47 if (bm->dma_dir != DMA_NONE) in comedi_buf_map_kref_release() 74 comedi_buf_map_alloc(struct comedi_device *dev, enum dma_data_direction dma_dir, in comedi_buf_map_alloc() argument 86 bm->dma_dir = dma_dir; in comedi_buf_map_alloc() 87 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_alloc() 96 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_alloc() 164 if (bm->dma_dir != DMA_NONE) { in __comedi_buf_alloc()
|
/Linux-v6.6/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 74 enum dma_data_direction dma_dir) in iser_dma_map_task_data() argument 82 data->dma_nents = ib_dma_map_sg(dev, data->sg, data->size, dma_dir); in iser_dma_map_task_data() 91 pdata->dma_nents = ib_dma_map_sg(dev, pdata->sg, pdata->size, dma_dir); in iser_dma_map_task_data() 101 ib_dma_unmap_sg(dev, data->sg, data->size, dma_dir); in iser_dma_map_task_data() 108 enum dma_data_direction dma_dir) in iser_dma_unmap_task_data() argument 114 ib_dma_unmap_sg(dev, data->sg, data->size, dma_dir); in iser_dma_unmap_task_data() 119 ib_dma_unmap_sg(dev, pdata->sg, pdata->size, dma_dir); in iser_dma_unmap_task_data()
|
/Linux-v6.6/drivers/dma/ |
D | fsl-edma-common.c | 291 if (fsl_chan->dma_dir != DMA_NONE) in fsl_edma_unprep_slave_dma() 295 fsl_chan->dma_dir, 0); in fsl_edma_unprep_slave_dma() 296 fsl_chan->dma_dir = DMA_NONE; in fsl_edma_unprep_slave_dma() 303 enum dma_data_direction dma_dir; in fsl_edma_prep_slave_dma() local 309 dma_dir = DMA_FROM_DEVICE; in fsl_edma_prep_slave_dma() 314 dma_dir = DMA_TO_DEVICE; in fsl_edma_prep_slave_dma() 319 dma_dir = DMA_NONE; in fsl_edma_prep_slave_dma() 324 if (fsl_chan->dma_dir == dma_dir) in fsl_edma_prep_slave_dma() 329 fsl_chan->dma_dev_addr = dma_map_resource(dev, addr, size, dma_dir, 0); in fsl_edma_prep_slave_dma() 333 fsl_chan->dma_dir = dma_dir; in fsl_edma_prep_slave_dma()
|
/Linux-v6.6/sound/soc/uniphier/ |
D | aio-compress.c | 31 int dma_dir = DMA_FROM_DEVICE, ret; in uniphier_aio_comprdma_new() local 42 dma_dir = DMA_TO_DEVICE; in uniphier_aio_comprdma_new() 44 sub->compr_addr = dma_map_single(dev, sub->compr_area, size, dma_dir); in uniphier_aio_comprdma_new() 63 int dma_dir = DMA_FROM_DEVICE; in uniphier_aio_comprdma_free() local 66 dma_dir = DMA_TO_DEVICE; in uniphier_aio_comprdma_free() 68 dma_unmap_single(dev, sub->compr_addr, sub->compr_bytes, dma_dir); in uniphier_aio_comprdma_free()
|
/Linux-v6.6/drivers/vfio/pci/mlx5/ |
D | cmd.h | 65 enum dma_data_direction dma_dir; member 207 size_t length, enum dma_data_direction dma_dir); 211 size_t length, enum dma_data_direction dma_dir);
|
/Linux-v6.6/drivers/scsi/arm/ |
D | powertec.c | 141 int bufs, map_dir, dma_dir; in powertecscsi_dma_setup() local 147 dma_dir = DMA_MODE_WRITE; in powertecscsi_dma_setup() 150 dma_dir = DMA_MODE_READ; in powertecscsi_dma_setup() 157 set_dma_mode(dmach, dma_dir); in powertecscsi_dma_setup()
|
D | cumana_2.c | 169 int bufs, map_dir, dma_dir, alatch_dir; in cumanascsi_2_dma_setup() local 175 dma_dir = DMA_MODE_WRITE; in cumanascsi_2_dma_setup() 179 dma_dir = DMA_MODE_READ; in cumanascsi_2_dma_setup() 188 set_dma_mode(dmach, dma_dir); in cumanascsi_2_dma_setup()
|
/Linux-v6.6/drivers/usb/musb/ |
D | tusb6010_omap.c | 198 enum dma_transfer_direction dma_dir; in tusb_omap_dma_program() local 261 dma_dir = DMA_MEM_TO_DEV; in tusb_omap_dma_program() 265 dma_dir = DMA_DEV_TO_MEM; in tusb_omap_dma_program() 304 chdat->transfer_len, dma_dir, in tusb_omap_dma_program() 320 (dma_dir == DMA_MEM_TO_DEV) ? &dma_addr : &fifo_addr, in tusb_omap_dma_program() 321 (dma_dir == DMA_MEM_TO_DEV) ? &fifo_addr : &dma_addr); in tusb_omap_dma_program()
|
/Linux-v6.6/drivers/tty/ |
D | goldfish.c | 82 enum dma_data_direction dma_dir; in goldfish_tty_rw() local 84 dma_dir = (is_write ? DMA_TO_DEVICE : DMA_FROM_DEVICE); in goldfish_tty_rw() 103 avail, dma_dir); in goldfish_tty_rw() 115 dma_unmap_single(qtty->dev, dma_handle, avail, dma_dir); in goldfish_tty_rw()
|
/Linux-v6.6/drivers/vfio/pci/pds/ |
D | dirty.c | 328 u8 dma_dir = read_seq ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in pds_vfio_dirty_seq_ack() local 373 err = dma_map_sgtable(pdsc_dev, &sg_table, dma_dir, 0); in pds_vfio_dirty_seq_ack() 386 dma_sync_single_for_device(pdsc_dev, bmp_info->sgl_addr, size, dma_dir); in pds_vfio_dirty_seq_ack() 394 dma_sync_single_for_cpu(pdsc_dev, bmp_info->sgl_addr, size, dma_dir); in pds_vfio_dirty_seq_ack() 396 dma_unmap_sgtable(pdsc_dev, &sg_table, dma_dir, 0); in pds_vfio_dirty_seq_ack()
|