Home
last modified time | relevance | path

Searched refs:dma_buf (Results 1 – 25 of 26) sorted by relevance

12

/linux-4.19.296/include/linux/
Ddma-buf.h37 struct dma_buf;
80 int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
91 void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
156 void (*release)(struct dma_buf *);
188 int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction);
207 int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
208 void *(*map)(struct dma_buf *, unsigned long);
209 void (*unmap)(struct dma_buf *, unsigned long, void *);
246 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma);
248 void *(*vmap)(struct dma_buf *);
[all …]
Dseqno-fence.h35 struct dma_buf *sync_buf;
96 struct dma_buf *sync_buf, uint32_t context, in seqno_fence_init()
Dparport_pc.h40 char *dma_buf; member
/linux-4.19.296/include/drm/
Ddrm_prime.h56 struct dma_buf;
67 struct dma_buf *drm_gem_prime_export(struct drm_device *dev,
74 struct dma_buf *dma_buf);
77 struct dma_buf *dma_buf,
82 struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev,
84 void drm_gem_dmabuf_release(struct dma_buf *dma_buf);
85 int drm_gem_map_attach(struct dma_buf *dma_buf,
87 void drm_gem_map_detach(struct dma_buf *dma_buf,
94 void *drm_gem_dmabuf_vmap(struct dma_buf *dma_buf);
95 void drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr);
[all …]
Ddrm_drv.h476 struct dma_buf * (*gem_prime_export)(struct drm_device *dev,
484 struct dma_buf *dma_buf);
Ddrm_gem.h129 struct dma_buf *dma_buf; member
/linux-4.19.296/drivers/xen/
Dgntdev-dmabuf.c35 struct dma_buf *dmabuf;
225 static int dmabuf_exp_ops_attach(struct dma_buf *dma_buf, in dmabuf_exp_ops_attach() argument
240 static void dmabuf_exp_ops_detach(struct dma_buf *dma_buf, in dmabuf_exp_ops_detach() argument
333 static void dmabuf_exp_ops_release(struct dma_buf *dma_buf) in dmabuf_exp_ops_release() argument
335 struct gntdev_dmabuf *gntdev_dmabuf = dma_buf->priv; in dmabuf_exp_ops_release()
345 static void *dmabuf_exp_ops_kmap(struct dma_buf *dma_buf, in dmabuf_exp_ops_kmap() argument
352 static void dmabuf_exp_ops_kunmap(struct dma_buf *dma_buf, in dmabuf_exp_ops_kunmap() argument
358 static int dmabuf_exp_ops_mmap(struct dma_buf *dma_buf, in dmabuf_exp_ops_mmap() argument
611 struct dma_buf *dma_buf; in dmabuf_imp_to_refs() local
617 dma_buf = dma_buf_get(fd); in dmabuf_imp_to_refs()
[all …]
/linux-4.19.296/drivers/dma-buf/
Ddma-buf.c51 struct dma_buf *dmabuf; in dma_buf_release()
86 struct dma_buf *dmabuf; in dma_buf_mmap_internal()
103 struct dma_buf *dmabuf; in dma_buf_llseek()
162 struct dma_buf *dmabuf; in dma_buf_poll()
282 struct dma_buf *dmabuf; in dma_buf_ioctl()
389 struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) in dma_buf_export()
391 struct dma_buf *dmabuf; in dma_buf_export()
394 size_t alloc_size = sizeof(struct dma_buf); in dma_buf_export()
471 int dma_buf_fd(struct dma_buf *dmabuf, int flags) in dma_buf_fd()
496 struct dma_buf *dma_buf_get(int fd) in dma_buf_get()
[all …]
/linux-4.19.296/drivers/media/common/videobuf2/
Dvideobuf2-vmalloc.c32 struct dma_buf *dbuf;
212 static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_attach()
251 static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_detach()
317 static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_release()
323 static void *vb2_vmalloc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_vmalloc_dmabuf_ops_kmap()
330 static void *vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_vmalloc_dmabuf_ops_vmap()
337 static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_vmalloc_dmabuf_ops_mmap()
354 static struct dma_buf *vb2_vmalloc_get_dmabuf(void *buf_priv, unsigned long flags) in vb2_vmalloc_get_dmabuf()
357 struct dma_buf *dbuf; in vb2_vmalloc_get_dmabuf()
411 static void *vb2_vmalloc_attach_dmabuf(struct device *dev, struct dma_buf *dbuf, in vb2_vmalloc_attach_dmabuf()
Dvideobuf2-dma-sg.c374 static int vb2_dma_sg_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_attach()
412 static void vb2_dma_sg_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_detach()
478 static void vb2_dma_sg_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_release()
484 static void *vb2_dma_sg_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_dma_sg_dmabuf_ops_kmap()
491 static void *vb2_dma_sg_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_dma_sg_dmabuf_ops_vmap()
498 static int vb2_dma_sg_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dma_sg_dmabuf_ops_mmap()
515 static struct dma_buf *vb2_dma_sg_get_dmabuf(void *buf_priv, unsigned long flags) in vb2_dma_sg_get_dmabuf()
518 struct dma_buf *dbuf; in vb2_dma_sg_get_dmabuf()
608 static void *vb2_dma_sg_attach_dmabuf(struct device *dev, struct dma_buf *dbuf, in vb2_dma_sg_attach_dmabuf()
Dvideobuf2-dma-contig.c225 static int vb2_dc_dmabuf_ops_attach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_attach()
263 static void vb2_dc_dmabuf_ops_detach(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_detach()
329 static void vb2_dc_dmabuf_ops_release(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_release()
335 static void *vb2_dc_dmabuf_ops_kmap(struct dma_buf *dbuf, unsigned long pgnum) in vb2_dc_dmabuf_ops_kmap()
342 static void *vb2_dc_dmabuf_ops_vmap(struct dma_buf *dbuf) in vb2_dc_dmabuf_ops_vmap()
349 static int vb2_dc_dmabuf_ops_mmap(struct dma_buf *dbuf, in vb2_dc_dmabuf_ops_mmap()
388 static struct dma_buf *vb2_dc_get_dmabuf(void *buf_priv, unsigned long flags) in vb2_dc_get_dmabuf()
391 struct dma_buf *dbuf; in vb2_dc_get_dmabuf()
676 static void *vb2_dc_attach_dmabuf(struct device *dev, struct dma_buf *dbuf, in vb2_dc_attach_dmabuf()
Dvideobuf2-core.c1134 struct dma_buf *dbuf = dma_buf_get(planes[plane].m.fd); in __prepare_dmabuf()
1871 struct dma_buf *dbuf; in vb2_core_expbuf()
/linux-4.19.296/drivers/i2c/busses/
Di2c-stm32.c84 dma->dma_buf = 0; in stm32_i2c_dma_free()
118 dma->dma_buf = dma_map_single(chan_dev, buf, dma->dma_len, in stm32_i2c_prep_dma_xfer()
120 if (dma_mapping_error(chan_dev, dma->dma_buf)) { in stm32_i2c_prep_dma_xfer()
125 txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf, in stm32_i2c_prep_dma_xfer()
150 dma_unmap_single(chan_dev, dma->dma_buf, dma->dma_len, in stm32_i2c_prep_dma_xfer()
Di2c-qcom-geni.c370 void *dma_buf; in geni_i2c_rx_one_msg() local
374 dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); in geni_i2c_rx_one_msg()
375 if (dma_buf) in geni_i2c_rx_one_msg()
384 ret = geni_se_rx_dma_prep(&gi2c->se, dma_buf, msg->len, in geni_i2c_rx_one_msg()
389 i2c_put_dma_safe_msg_buf(dma_buf, msg, false); in geni_i2c_rx_one_msg()
402 i2c_put_dma_safe_msg_buf(dma_buf, msg, !gi2c->err); in geni_i2c_rx_one_msg()
413 void *dma_buf; in geni_i2c_tx_one_msg() local
417 dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); in geni_i2c_tx_one_msg()
418 if (dma_buf) in geni_i2c_tx_one_msg()
427 ret = geni_se_tx_dma_prep(&gi2c->se, dma_buf, msg->len, in geni_i2c_tx_one_msg()
[all …]
Di2c-stm32.h40 dma_addr_t dma_buf; member
Di2c-imx.c179 dma_addr_t dma_buf; member
343 dma_unmap_single(dma->chan_using->device->dev, dma->dma_buf, in i2c_imx_dma_callback()
356 dma->dma_buf = dma_map_single(chan_dev, msgs->buf, in i2c_imx_dma_xfer()
358 if (dma_mapping_error(chan_dev, dma->dma_buf)) { in i2c_imx_dma_xfer()
363 txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf, in i2c_imx_dma_xfer()
385 dma_unmap_single(chan_dev, dma->dma_buf, in i2c_imx_dma_xfer()
395 dma->dma_buf = 0; in i2c_imx_dma_free()
Di2c-sh_mobile.c139 u8 *dma_buf; member
570 dma_addr = dma_map_single(chan->device->dev, pd->dma_buf, pd->msg->len, dir); in sh_mobile_i2c_xfer_dma()
622 pd->dma_buf = i2c_get_dma_safe_msg_buf(pd->msg, 8); in start_ch()
623 if (pd->dma_buf) in start_ch()
709 i2c_put_dma_safe_msg_buf(pd->dma_buf, pd->msg, pd->stop_after_dma); in sh_mobile_i2c_xfer()
Di2c-at91.c760 u8 *dma_buf = NULL; in at91_twi_xfer() local
809 dma_buf = i2c_get_dma_safe_msg_buf(m_start, 1); in at91_twi_xfer()
810 if (!dma_buf) { in at91_twi_xfer()
814 dev->buf = dma_buf; in at91_twi_xfer()
818 i2c_put_dma_safe_msg_buf(dma_buf, m_start, !ret); in at91_twi_xfer()
/linux-4.19.296/include/drm/ttm/
Dttm_object.h158 struct dma_buf *dma_buf; member
/linux-4.19.296/include/media/
Dvideobuf2-core.h122 struct dma_buf *(*get_dmabuf)(void *buf_priv, unsigned long flags);
133 struct dma_buf *dbuf,
174 struct dma_buf *dbuf;
/linux-4.19.296/drivers/parport/
Dparport_gsc.c259 priv->dma_buf = NULL; in parport_gsc_probe_port()
395 if (priv->dma_buf) in parport_remove_chip()
397 priv->dma_buf, in parport_remove_chip()
Dparport_gsc.h80 char *dma_buf; member
Dparport_pc.c616 memcpy(priv->dma_buf, buf, count); in parport_pc_fifo_write_block_dma()
2077 priv->dma_buf = NULL; in parport_pc_probe_port()
2211 priv->dma_buf = in parport_pc_probe_port()
2216 if (!priv->dma_buf) { in parport_pc_probe_port()
2291 if (priv->dma_buf) in parport_pc_unregister_port()
2293 priv->dma_buf, in parport_pc_unregister_port()
/linux-4.19.296/drivers/i2c/
Di2c-core-smbus.c298 unsigned char *dma_buf; in i2c_smbus_try_get_dmabuf() local
300 dma_buf = kzalloc(I2C_SMBUS_BLOCK_MAX + (is_read ? 2 : 3), GFP_KERNEL); in i2c_smbus_try_get_dmabuf()
301 if (!dma_buf) in i2c_smbus_try_get_dmabuf()
304 msg->buf = dma_buf; in i2c_smbus_try_get_dmabuf()
/linux-4.19.296/drivers/iio/adc/
Dstm32-dfsdm-adc.c75 dma_addr_t dma_buf; member
590 adc->dma_buf, in stm32_dfsdm_adc_dma_start()
921 adc->rx_buf, adc->dma_buf); in stm32_dfsdm_dma_release()
947 &adc->dma_buf, GFP_KERNEL); in stm32_dfsdm_dma_request()
961 adc->rx_buf, adc->dma_buf); in stm32_dfsdm_dma_request()

12