/kernel/linux/linux-5.10/drivers/media/common/videobuf2/ |
D | videobuf2-vmalloc.c | 28 enum dma_data_direction dma_dir; member 38 unsigned long size, enum dma_data_direction dma_dir, in vb2_vmalloc_alloc() argument 55 buf->dma_dir = dma_dir; in vb2_vmalloc_alloc() 76 enum dma_data_direction dma_dir) in vb2_vmalloc_get_userptr() argument 87 buf->dma_dir = dma_dir; 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-contig.c | 32 enum dma_data_direction dma_dir; member 101 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dc_prepare() 112 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dc_finish() 137 unsigned long size, enum dma_data_direction dma_dir, in vb2_dc_alloc() argument 164 buf->dma_dir = dma_dir; in vb2_dc_alloc() 212 enum dma_data_direction dma_dir; member 247 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_attach() 265 if (attach->dma_dir != DMA_NONE) in vb2_dc_dmabuf_ops_detach() 272 dma_unmap_sgtable(db_attach->dev, sgt, attach->dma_dir, in vb2_dc_dmabuf_ops_detach() 280 struct dma_buf_attachment *db_attach, enum dma_data_direction dma_dir) in vb2_dc_dmabuf_ops_map() argument [all …]
|
D | videobuf2-dma-sg.c | 40 enum dma_data_direction dma_dir; member 100 unsigned long size, enum dma_data_direction dma_dir, in vb2_dma_sg_alloc() argument 116 buf->dma_dir = dma_dir; in vb2_dma_sg_alloc() 150 if (dma_map_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_alloc() 187 dma_unmap_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_put() 205 dma_sync_sgtable_for_device(buf->dev, sgt, buf->dma_dir); in vb2_dma_sg_prepare() 213 dma_sync_sgtable_for_cpu(buf->dev, sgt, buf->dma_dir); in vb2_dma_sg_finish() 218 enum dma_data_direction dma_dir) in vb2_dma_sg_get_userptr() argument 233 buf->dma_dir = dma_dir; in vb2_dma_sg_get_userptr() 256 if (dma_map_sgtable(buf->dev, sgt, buf->dma_dir, in vb2_dma_sg_get_userptr() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/media/tegra-vde/ |
D | dmabuf-cache.c | 19 enum dma_data_direction dma_dir; member 38 dma_buf_unmap_attachment(entry->a, entry->sgt, entry->dma_dir); in tegra_vde_release_entry() 62 enum dma_data_direction dma_dir, in tegra_vde_dmabuf_cache_map() argument 82 if (entry->dma_dir != dma_dir) in tegra_vde_dmabuf_cache_map() 83 entry->dma_dir = DMA_BIDIRECTIONAL; in tegra_vde_dmabuf_cache_map() 102 sgt = dma_buf_map_attachment(attachment, dma_dir); in tegra_vde_dmabuf_cache_map() 135 entry->dma_dir = dma_dir; in tegra_vde_dmabuf_cache_map() 152 dma_buf_unmap_attachment(attachment, sgt, dma_dir); in tegra_vde_dmabuf_cache_map()
|
D | vde.c | 498 enum dma_data_direction dma_dir) in tegra_vde_attach_dmabuf() argument 522 err = tegra_vde_dmabuf_cache_map(vde, dmabuf, dma_dir, a, addrp); in tegra_vde_attach_dmabuf() 542 enum dma_data_direction dma_dir, in tegra_vde_attach_dmabufs_to_frame() argument 552 NULL, dma_dir); in tegra_vde_attach_dmabufs_to_frame() 560 NULL, dma_dir); in tegra_vde_attach_dmabufs_to_frame() 568 NULL, dma_dir); in tegra_vde_attach_dmabufs_to_frame() 581 NULL, dma_dir); in tegra_vde_attach_dmabufs_to_frame() 599 enum dma_data_direction dma_dir, in tegra_vde_release_frame_dmabufs() argument 701 enum dma_data_direction dma_dir; in tegra_vde_ioctl_decode_h264() local 764 dma_dir = (i == 0) ? DMA_FROM_DEVICE : DMA_TO_DEVICE; in tegra_vde_ioctl_decode_h264() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/rts5208/ |
D | rtsx_transport.c | 317 enum dma_data_direction dma_dir, in rtsx_transfer_sglist_adma_partial() argument 332 if (dma_dir == DMA_TO_DEVICE) in rtsx_transfer_sglist_adma_partial() 334 else if (dma_dir == DMA_FROM_DEVICE) in rtsx_transfer_sglist_adma_partial() 358 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 471 dma_unmap_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 481 enum dma_data_direction dma_dir, in rtsx_transfer_sglist_adma() argument 495 if (dma_dir == DMA_TO_DEVICE) in rtsx_transfer_sglist_adma() 497 else if (dma_dir == DMA_FROM_DEVICE) in rtsx_transfer_sglist_adma() 521 buf_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma() 618 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);
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
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
|
D | comedi_isadma.c | 135 void comedi_isadma_set_mode(struct comedi_isadma_desc *desc, char dma_dir) in comedi_isadma_set_mode() argument 137 desc->mode = (dma_dir == COMEDI_ISADMA_READ) ? DMA_MODE_READ in comedi_isadma_set_mode() 156 unsigned int maxsize, char dma_dir) in comedi_isadma_alloc() argument 213 comedi_isadma_set_mode(desc, dma_dir); in comedi_isadma_alloc()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | uniphier-sd.c | 68 enum dma_data_direction dma_dir; member 101 priv->dma_dir); in uniphier_sd_external_dma_callback() 135 priv->dma_dir = DMA_FROM_DEVICE; in uniphier_sd_external_dma_start() 138 priv->dma_dir = DMA_TO_DEVICE; in uniphier_sd_external_dma_start() 143 priv->dma_dir); in uniphier_sd_external_dma_start() 165 priv->dma_dir); in uniphier_sd_external_dma_start() 264 priv->dma_dir = DMA_FROM_DEVICE; in uniphier_sd_internal_dma_start() 267 priv->dma_dir = DMA_TO_DEVICE; in uniphier_sd_internal_dma_start() 271 sg_len = dma_map_sg(mmc_dev(host->mmc), sg, 1, priv->dma_dir); in uniphier_sd_internal_dma_start() 342 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, 1, priv->dma_dir); in uniphier_sd_internal_dma_dataend()
|
D | mxs-mmc.c | 148 data->sg_len, ssp->dma_dir); in mxs_mmc_request_done() 226 data->sg_len, ssp->dma_dir); in mxs_mmc_prep_dma() 243 data->sg_len, ssp->dma_dir); in mxs_mmc_prep_dma() 268 ssp->dma_dir = DMA_NONE; in mxs_mmc_bc() 313 ssp->dma_dir = DMA_NONE; in mxs_mmc_ac() 434 ssp->dma_dir = DMA_NONE; in mxs_mmc_adtc() 443 ssp->dma_dir = dma_data_dir; in mxs_mmc_adtc()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/ |
D | comedi_buf.c | 30 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_kref_release() 48 if (bm->dma_dir != DMA_NONE) in comedi_buf_map_kref_release() 75 comedi_buf_map_alloc(struct comedi_device *dev, enum dma_data_direction dma_dir, in comedi_buf_map_alloc() argument 87 bm->dma_dir = dma_dir; in comedi_buf_map_alloc() 88 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_alloc() 97 if (bm->dma_dir != DMA_NONE) { in comedi_buf_map_alloc() 165 if (bm->dma_dir != DMA_NONE) { in __comedi_buf_alloc()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | a3000.c | 85 wh->dma_dir = dir_in; in dma_setup() 119 if (!wh->dma_dir) in dma_stop() 126 if (wh->dma_dir) { in dma_stop() 151 if (wh->dma_dir && SCpnt) in dma_stop()
|
D | a2091.c | 86 wh->dma_dir = dir_in; in dma_setup() 117 if (!wh->dma_dir) in dma_stop() 124 if (wh->dma_dir) { in dma_stop() 141 if (wh->dma_dir) in dma_stop()
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | fsl-edma-common.c | 211 if (fsl_chan->dma_dir != DMA_NONE) in fsl_edma_unprep_slave_dma() 215 fsl_chan->dma_dir, 0); in fsl_edma_unprep_slave_dma() 216 fsl_chan->dma_dir = DMA_NONE; in fsl_edma_unprep_slave_dma() 223 enum dma_data_direction dma_dir; in fsl_edma_prep_slave_dma() local 229 dma_dir = DMA_FROM_DEVICE; in fsl_edma_prep_slave_dma() 234 dma_dir = DMA_TO_DEVICE; in fsl_edma_prep_slave_dma() 239 dma_dir = DMA_NONE; in fsl_edma_prep_slave_dma() 244 if (fsl_chan->dma_dir == dma_dir) in fsl_edma_prep_slave_dma() 249 fsl_chan->dma_dev_addr = dma_map_resource(dev, addr, size, dma_dir, 0); in fsl_edma_prep_slave_dma() 253 fsl_chan->dma_dir = dma_dir; in fsl_edma_prep_slave_dma()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/core/ |
D | page_pool.c | 47 if ((pool->p.dma_dir != DMA_FROM_DEVICE) && in page_pool_init() 48 (pool->p.dma_dir != DMA_BIDIRECTIONAL)) in page_pool_init() 180 pool->p.dma_dir); in page_pool_dma_sync_for_device() 224 pool->p.dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in __page_pool_alloc_pages_slow() 301 PAGE_SIZE << pool->p.order, pool->p.dma_dir, in page_pool_release_page()
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | page_pool.rst | 73 * dma_dir: DMA direction 119 pp_params.dma_dir = xdp_prog ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE; 137 enum dma_data_direction dma_dir; 139 dma_dir = page_pool_get_dma_dir(dring->page_pool);
|
/kernel/linux/linux-5.10/include/media/ |
D | videobuf2-core.h | 121 enum dma_data_direction dma_dir, 128 enum dma_data_direction dma_dir); 137 enum dma_data_direction dma_dir); 602 enum dma_data_direction dma_dir; member
|
/kernel/linux/linux-5.10/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_2835_arm.c | 41 enum dma_data_direction dma_dir; member 288 pagelistinfo->num_pages, pagelistinfo->dma_dir); in cleanup_pagelistinfo() 367 pagelistinfo->dma_dir = (type == PAGELIST_WRITE) ? in create_pagelist() 439 pagelistinfo->dma_dir); in create_pagelist() 513 pagelistinfo->num_pages, pagelistinfo->dma_dir); in free_pagelist()
|
/kernel/linux/linux-5.10/include/net/ |
D | page_pool.h | 77 enum dma_data_direction dma_dir; /* DMA mapping direction */ member 146 return pool->p.dma_dir; in page_pool_get_dma_dir()
|
/kernel/linux/linux-5.10/drivers/scsi/arm/ |
D | powertec.c | 137 int bufs, map_dir, dma_dir; in powertecscsi_dma_setup() local 143 dma_dir = DMA_MODE_WRITE; in powertecscsi_dma_setup() 146 dma_dir = DMA_MODE_READ; in powertecscsi_dma_setup() 153 set_dma_mode(dmach, dma_dir); in powertecscsi_dma_setup()
|
D | cumana_2.c | 165 int bufs, map_dir, dma_dir, alatch_dir; in cumanascsi_2_dma_setup() local 171 dma_dir = DMA_MODE_WRITE; in cumanascsi_2_dma_setup() 175 dma_dir = DMA_MODE_READ; in cumanascsi_2_dma_setup() 184 set_dma_mode(dmach, dma_dir); in cumanascsi_2_dma_setup()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|