Home
last modified time | relevance | path

Searched refs:dma_dir (Results 1 – 25 of 89) sorted by relevance

1234

/linux/drivers/media/common/videobuf2/
A Dvideobuf2-vmalloc.c28 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()
205 enum dma_data_direction dma_dir; member
242 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_attach()
259 if (attach->dma_dir != DMA_NONE) in vb2_vmalloc_dmabuf_ops_detach()
278 if (attach->dma_dir == dma_dir) { in vb2_vmalloc_dmabuf_ops_map()
284 if (attach->dma_dir != DMA_NONE) { in vb2_vmalloc_dmabuf_ops_map()
286 attach->dma_dir = DMA_NONE; in vb2_vmalloc_dmabuf_ops_map()
296 attach->dma_dir = dma_dir; in vb2_vmalloc_dmabuf_ops_map()
[all …]
A Dvideobuf2-dma-sg.c40 enum dma_data_direction dma_dir; member
117 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dma_sg_alloc()
240 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dma_sg_get_userptr()
364 enum dma_data_direction dma_dir; member
399 attach->dma_dir = DMA_NONE; in vb2_dma_sg_dmabuf_ops_attach()
417 if (attach->dma_dir != DMA_NONE) in vb2_dma_sg_dmabuf_ops_detach()
436 if (attach->dma_dir == dma_dir) { in vb2_dma_sg_dmabuf_ops_map()
442 if (attach->dma_dir != DMA_NONE) { in vb2_dma_sg_dmabuf_ops_map()
444 attach->dma_dir = DMA_NONE; in vb2_dma_sg_dmabuf_ops_map()
454 attach->dma_dir = dma_dir; in vb2_dma_sg_dmabuf_ops_map()
[all …]
A Dvideobuf2-dma-contig.c33 enum dma_data_direction dma_dir; member
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()
393 if (attach->dma_dir == dma_dir) { in vb2_dc_dmabuf_ops_map()
402 attach->dma_dir = DMA_NONE; in vb2_dc_dmabuf_ops_map()
416 attach->dma_dir = dma_dir; in vb2_dc_dmabuf_ops_map()
565 buf->dma_dir, 0); in vb2_dc_put_userptr()
602 buf->dma_dir = vb->vb2_queue->dma_dir; in vb2_dc_get_userptr()
[all …]
/linux/drivers/staging/media/tegra-vde/
A Ddmabuf-cache.c22 enum dma_data_direction dma_dir; member
41 dma_buf_unmap_attachment(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(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(attachment, sgt, dma_dir); in tegra_vde_dmabuf_cache_map()
A Dvde.c498 enum dma_data_direction dma_dir) in tegra_vde_attach_dmabuf() argument
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()
767 &frames[i], dma_dir, in tegra_vde_ioctl_decode_h264()
[all …]
/linux/drivers/staging/rts5208/
A Drtsx_transport.c317 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()
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()
641 if (dma_dir == DMA_TO_DEVICE) in rtsx_transfer_buf()
643 else if (dma_dir == DMA_FROM_DEVICE) in rtsx_transfer_buf()
726 dma_dir, timeout); in rtsx_transfer_data_partial()
729 buf, len, dma_dir, timeout); in rtsx_transfer_data_partial()
[all …]
A Drtsx_transport.h49 int use_sg, enum dma_data_direction dma_dir,
55 enum dma_data_direction dma_dir, int timeout);
/linux/drivers/comedi/drivers/
A Dcomedi_isadma.h65 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
A Dcomedi_isadma.c135 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()
/linux/drivers/mmc/host/
A Duniphier-sd.c68 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()
263 priv->dma_dir = DMA_FROM_DEVICE; in uniphier_sd_internal_dma_start()
266 priv->dma_dir = DMA_TO_DEVICE; in uniphier_sd_internal_dma_start()
270 sg_len = dma_map_sg(mmc_dev(host->mmc), sg, 1, priv->dma_dir); in uniphier_sd_internal_dma_start()
340 dma_unmap_sg(mmc_dev(host->mmc), host->sg_ptr, 1, priv->dma_dir); in uniphier_sd_internal_dma_dataend()
A Dmxs-mmc.c148 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()
A Dowl-mmc.c108 enum dma_data_direction dma_dir; member
166 owl_host->dma_dir); in owl_mmc_finish_request()
309 owl_host->dma_dir = DMA_TO_DEVICE; in owl_mmc_prepare_data()
312 owl_host->dma_dir = DMA_FROM_DEVICE; in owl_mmc_prepare_data()
317 data->sg_len, owl_host->dma_dir); in owl_mmc_prepare_data()
/linux/drivers/comedi/
A Dcomedi_buf.c30 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()
/linux/drivers/dma/
A Dfsl-edma-common.c211 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()
/linux/drivers/scsi/
A Da2091.c86 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()
A Da3000.c85 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()
A Dsgiwd93.c111 hdata->wh.dma_dir = datainp; in dma_setup()
153 if (hdata->wh.dma_dir) { in dma_stop()
161 DMA_DIR(hdata->wh.dma_dir)); in dma_stop()
/linux/sound/soc/uniphier/
A Daio-compress.c31 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/Documentation/networking/
A Dpage_pool.rst73 * dma_dir: DMA direction
127 pp_params.dma_dir = xdp_prog ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE;
145 enum dma_data_direction dma_dir;
147 dma_dir = page_pool_get_dma_dir(dring->page_pool);
/linux/drivers/scsi/arm/
A Dpowertec.c137 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()
A Dcumana_2.c165 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()
/linux/drivers/usb/musb/
A Dtusb6010_omap.c198 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/tools/testing/selftests/dma/
A Ddma_map_benchmark.c41 __u32 dma_dir; /* DMA data direction */ member
135 map.dma_dir = dir; in main()
/linux/drivers/tty/
A Dgoldfish.c82 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/net/core/
A Dpage_pool.c52 if ((pool->p.dma_dir != DMA_FROM_DEVICE) && in page_pool_init()
53 (pool->p.dma_dir != DMA_BIDIRECTIONAL)) in page_pool_init()
189 pool->p.dma_dir); in page_pool_dma_sync_for_device()
203 pool->p.dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in page_pool_dma_map()
364 PAGE_SIZE << pool->p.order, pool->p.dma_dir, in page_pool_release_page()

Completed in 58 milliseconds

1234