drivers/accel/amdxdna/amdxdna_cbuf.c
150
static void amdxdna_cbuf_release(struct dma_buf *dbuf)
drivers/accel/amdxdna/amdxdna_cbuf.c
181
static int amdxdna_cbuf_mmap(struct dma_buf *dbuf, struct vm_area_struct *vma)
drivers/accel/amdxdna/amdxdna_cbuf.c
192
static int amdxdna_cbuf_vmap(struct dma_buf *dbuf, struct iosys_map *map)
drivers/accel/amdxdna/amdxdna_cbuf.c
207
static void amdxdna_cbuf_vunmap(struct dma_buf *dbuf, struct iosys_map *map)
drivers/accel/amdxdna/amdxdna_cbuf.c
221
static int amdxdna_cbuf_clear(struct dma_buf *dbuf)
drivers/accel/amdxdna/amdxdna_cbuf.c
235
struct dma_buf *amdxdna_get_cbuf(struct drm_device *dev, size_t size, u64 alignment)
drivers/accel/amdxdna/amdxdna_cbuf.c
241
struct dma_buf *dbuf;
drivers/accel/amdxdna/amdxdna_cbuf.h
16
struct dma_buf *amdxdna_get_cbuf(struct drm_device *dev, size_t size, u64 alignment);
drivers/accel/amdxdna/amdxdna_gem.c
469
ret = dma_buf_mmap(abo->dma_buf, vma, 0);
drivers/accel/amdxdna/amdxdna_gem.c
522
static int amdxdna_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
drivers/accel/amdxdna/amdxdna_gem.c
524
struct drm_gem_object *gobj = dma_buf->priv;
drivers/accel/amdxdna/amdxdna_gem.c
565
static struct dma_buf *amdxdna_gem_prime_export(struct drm_gem_object *gobj, int flags)
drivers/accel/amdxdna/amdxdna_gem.c
573
if (abo->dma_buf) {
drivers/accel/amdxdna/amdxdna_gem.c
574
get_dma_buf(abo->dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
575
return abo->dma_buf;
drivers/accel/amdxdna/amdxdna_gem.c
590
dma_buf_detach(abo->dma_buf, abo->attach);
drivers/accel/amdxdna/amdxdna_gem.c
591
dma_buf_put(abo->dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
709
ret = dma_buf_vmap(abo->dma_buf, map);
drivers/accel/amdxdna/amdxdna_gem.c
727
dma_buf_vunmap(abo->dma_buf, map);
drivers/accel/amdxdna/amdxdna_gem.c
811
struct dma_buf *dma_buf;
drivers/accel/amdxdna/amdxdna_gem.c
819
dma_buf = amdxdna_get_ubuf(dev, va_tbl.num_entries,
drivers/accel/amdxdna/amdxdna_gem.c
822
dma_buf = dma_buf_get(va_tbl.dmabuf_fd);
drivers/accel/amdxdna/amdxdna_gem.c
825
if (IS_ERR(dma_buf))
drivers/accel/amdxdna/amdxdna_gem.c
826
return ERR_CAST(dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
828
gobj = amdxdna_gem_prime_import(dev, dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
830
dma_buf_put(dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
834
dma_buf_put(dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
849
struct dma_buf *dma_buf;
drivers/accel/amdxdna/amdxdna_gem.c
858
dma_buf = amdxdna_get_cbuf(dev, size, align);
drivers/accel/amdxdna/amdxdna_gem.c
859
if (IS_ERR(dma_buf))
drivers/accel/amdxdna/amdxdna_gem.c
860
return ERR_CAST(dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
862
gobj = amdxdna_gem_prime_import(dev, dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
868
dma_buf_put(dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
873
amdxdna_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf)
drivers/accel/amdxdna/amdxdna_gem.c
881
get_dma_buf(dma_buf);
drivers/accel/amdxdna/amdxdna_gem.c
883
attach = dma_buf_attach(dma_buf, dev->dev);
drivers/accel/amdxdna/amdxdna_gem.c
903
abo->dma_buf = dma_buf;
drivers/accel/amdxdna/amdxdna_gem.c
905
gobj->resv = dma_buf->resv;
drivers/accel/amdxdna/amdxdna_gem.c
912
dma_buf_detach(dma_buf, attach);
drivers/accel/amdxdna/amdxdna_gem.c
914
dma_buf_put(dma_buf);
drivers/accel/amdxdna/amdxdna_gem.h
111
amdxdna_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf);
drivers/accel/amdxdna/amdxdna_gem.h
53
struct dma_buf *dma_buf;
drivers/accel/amdxdna/amdxdna_ubuf.c
61
static void amdxdna_ubuf_release(struct dma_buf *dbuf)
drivers/accel/amdxdna/amdxdna_ubuf.c
78
struct dma_buf *amdxdna_get_ubuf(struct drm_device *dev,
drivers/accel/amdxdna/amdxdna_ubuf.c
86
struct dma_buf *dbuf;
drivers/accel/amdxdna/amdxdna_ubuf.h
11
struct dma_buf *amdxdna_get_ubuf(struct drm_device *dev,
drivers/accel/habanalabs/common/habanalabs.h
1848
struct dma_buf *dmabuf;
drivers/accel/habanalabs/common/memory.c
1707
static int hl_dmabuf_attach(struct dma_buf *dmabuf,
drivers/accel/habanalabs/common/memory.c
1728
struct dma_buf *dma_buf = attachment->dmabuf;
drivers/accel/habanalabs/common/memory.c
1734
hl_dmabuf = dma_buf->priv;
drivers/accel/habanalabs/common/memory.c
1827
static void hl_release_dmabuf(struct dma_buf *dmabuf)
drivers/accel/ivpu/ivpu_gem.c
211
struct dma_buf *dma_buf)
drivers/accel/ivpu/ivpu_gem.c
220
attach = dma_buf_attach(dma_buf, attach_dev);
drivers/accel/ivpu/ivpu_gem.c
224
get_dma_buf(dma_buf);
drivers/accel/ivpu/ivpu_gem.c
233
obj->resv = dma_buf->resv;
drivers/accel/ivpu/ivpu_gem.c
246
dma_buf_detach(dma_buf, attach);
drivers/accel/ivpu/ivpu_gem.c
247
dma_buf_put(dma_buf);
drivers/accel/ivpu/ivpu_gem.h
31
struct drm_gem_object *ivpu_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf);
drivers/accel/ivpu/ivpu_gem_userptr.c
116
dma_buf = dma_buf_export(&exp_info);
drivers/accel/ivpu/ivpu_gem_userptr.c
117
if (IS_ERR(dma_buf)) {
drivers/accel/ivpu/ivpu_gem_userptr.c
118
ret = PTR_ERR(dma_buf);
drivers/accel/ivpu/ivpu_gem_userptr.c
124
return dma_buf;
drivers/accel/ivpu/ivpu_gem_userptr.c
142
struct dma_buf *dma_buf;
drivers/accel/ivpu/ivpu_gem_userptr.c
146
dma_buf = ivpu_create_userptr_dmabuf(vdev, user_ptr, size, flags);
drivers/accel/ivpu/ivpu_gem_userptr.c
147
if (IS_ERR(dma_buf))
drivers/accel/ivpu/ivpu_gem_userptr.c
148
return ERR_CAST(dma_buf);
drivers/accel/ivpu/ivpu_gem_userptr.c
150
obj = ivpu_gem_prime_import(&vdev->drm, dma_buf);
drivers/accel/ivpu/ivpu_gem_userptr.c
152
dma_buf_put(dma_buf);
drivers/accel/ivpu/ivpu_gem_userptr.c
156
dma_buf_put(dma_buf);
drivers/accel/ivpu/ivpu_gem_userptr.c
43
static void ivpu_gem_userptr_dmabuf_release(struct dma_buf *dma_buf)
drivers/accel/ivpu/ivpu_gem_userptr.c
45
struct sg_table *sgt = dma_buf->priv;
drivers/accel/ivpu/ivpu_gem_userptr.c
64
static struct dma_buf *
drivers/accel/ivpu/ivpu_gem_userptr.c
69
struct dma_buf *dma_buf;
drivers/accel/qaic/qaic.h
340
struct drm_gem_object *qaic_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf);
drivers/accel/qaic/qaic_data.c
837
struct drm_gem_object *qaic_gem_prime_import(struct drm_device *dev, struct dma_buf *dma_buf)
drivers/accel/qaic/qaic_data.c
851
get_dma_buf(dma_buf);
drivers/accel/qaic/qaic_data.c
853
attach = dma_buf_attach(dma_buf, dev->dev);
drivers/accel/qaic/qaic_data.c
873
obj->resv = dma_buf->resv;
drivers/accel/qaic/qaic_data.c
878
dma_buf_detach(dma_buf, attach);
drivers/accel/qaic/qaic_data.c
880
dma_buf_put(dma_buf);
drivers/dma-buf/dma-buf.c
1012
dma_buf_dynamic_attach(struct dma_buf *dmabuf, struct device *dev,
drivers/dma-buf/dma-buf.c
1061
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
drivers/dma-buf/dma-buf.c
1077
void dma_buf_detach(struct dma_buf *dmabuf, struct dma_buf_attachment *attach)
drivers/dma-buf/dma-buf.c
1112
struct dma_buf *dmabuf = attach->dmabuf;
drivers/dma-buf/dma-buf.c
1136
struct dma_buf *dmabuf = attach->dmabuf;
drivers/dma-buf/dma-buf.c
129
struct dma_buf *dma_buf_iter_next(struct dma_buf *dmabuf)
drivers/dma-buf/dma-buf.c
131
struct dma_buf *ret = NULL;
drivers/dma-buf/dma-buf.c
1379
void dma_buf_invalidate_mappings(struct dma_buf *dmabuf)
drivers/dma-buf/dma-buf.c
1480
static int __dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
drivers/dma-buf/dma-buf.c
1516
int dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
drivers/dma-buf/dma-buf.c
152
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
1552
int dma_buf_end_cpu_access(struct dma_buf *dmabuf,
drivers/dma-buf/dma-buf.c
1583
int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma,
drivers/dma-buf/dma-buf.c
1628
int dma_buf_vmap(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/dma-buf.c
1675
int dma_buf_vmap_unlocked(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/dma-buf.c
168
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
1697
void dma_buf_vunmap(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/dma-buf.c
1721
void dma_buf_vunmap_unlocked(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/dma-buf.c
1735
struct dma_buf *buf_obj;
drivers/dma-buf/dma-buf.c
230
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
253
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
306
struct dma_buf *dmabuf = container_of(dcb->poll, struct dma_buf, poll);
drivers/dma-buf/dma-buf.c
339
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
420
static long dma_buf_set_name(struct dma_buf *dmabuf, const char __user *buf)
drivers/dma-buf/dma-buf.c
436
static long dma_buf_export_sync_file(struct dma_buf *dmabuf,
drivers/dma-buf/dma-buf.c
492
static long dma_buf_import_sync_file(struct dma_buf *dmabuf,
drivers/dma-buf/dma-buf.c
543
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
597
struct dma_buf *dmabuf = file->private_data;
drivers/dma-buf/dma-buf.c
67
static void __dma_buf_list_add(struct dma_buf *dmabuf)
drivers/dma-buf/dma-buf.c
708
struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
drivers/dma-buf/dma-buf.c
710
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
713
size_t alloc_size = sizeof(struct dma_buf);
drivers/dma-buf/dma-buf.c
74
static void __dma_buf_list_del(struct dma_buf *dmabuf)
drivers/dma-buf/dma-buf.c
788
int dma_buf_fd(struct dma_buf *dmabuf, int flags)
drivers/dma-buf/dma-buf.c
814
struct dma_buf *dma_buf_get(int fd)
drivers/dma-buf/dma-buf.c
817
struct dma_buf *dmabuf;
drivers/dma-buf/dma-buf.c
847
void dma_buf_put(struct dma_buf *dmabuf)
drivers/dma-buf/dma-buf.c
96
struct dma_buf *dma_buf_iter_begin(void)
drivers/dma-buf/dma-buf.c
98
struct dma_buf *ret = NULL, *dmabuf;
drivers/dma-buf/dma-heap.c
62
struct dma_buf *dmabuf;
drivers/dma-buf/heaps/cma_heap.c
127
static int cma_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/cma_heap.c
148
static int cma_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/cma_heap.c
184
static int cma_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
drivers/dma-buf/heaps/cma_heap.c
210
static int cma_heap_vmap(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/heaps/cma_heap.c
237
static void cma_heap_vunmap(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/heaps/cma_heap.c
250
static void cma_heap_dma_buf_release(struct dma_buf *dmabuf)
drivers/dma-buf/heaps/cma_heap.c
281
static struct dma_buf *cma_heap_allocate(struct dma_heap *heap,
drivers/dma-buf/heaps/cma_heap.c
293
struct dma_buf *dmabuf;
drivers/dma-buf/heaps/cma_heap.c
56
static int cma_heap_attach(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/cma_heap.c
89
static void cma_heap_detach(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/system_heap.c
114
static int system_heap_attach(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/system_heap.c
145
static void system_heap_detach(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/system_heap.c
186
static int system_heap_dma_buf_begin_cpu_access(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/system_heap.c
207
static int system_heap_dma_buf_end_cpu_access(struct dma_buf *dmabuf,
drivers/dma-buf/heaps/system_heap.c
228
static int system_heap_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
drivers/dma-buf/heaps/system_heap.c
299
static int system_heap_vmap(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/heaps/system_heap.c
327
static void system_heap_vunmap(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/dma-buf/heaps/system_heap.c
340
static void system_heap_dma_buf_release(struct dma_buf *dmabuf)
drivers/dma-buf/heaps/system_heap.c
401
static struct dma_buf *system_heap_allocate(struct dma_heap *heap,
drivers/dma-buf/heaps/system_heap.c
412
struct dma_buf *dmabuf;
drivers/dma-buf/udmabuf.c
107
static int vmap_udmabuf(struct dma_buf *buf, struct iosys_map *map)
drivers/dma-buf/udmabuf.c
122
static void vunmap_udmabuf(struct dma_buf *buf, struct iosys_map *map)
drivers/dma-buf/udmabuf.c
131
static struct sg_table *get_sg_table(struct device *dev, struct dma_buf *buf,
drivers/dma-buf/udmabuf.c
210
static void release_udmabuf(struct dma_buf *buf)
drivers/dma-buf/udmabuf.c
222
static int begin_cpu_udmabuf(struct dma_buf *buf,
drivers/dma-buf/udmabuf.c
245
static int end_cpu_udmabuf(struct dma_buf *buf,
drivers/dma-buf/udmabuf.c
290
static struct dma_buf *export_udmabuf(struct udmabuf *ubuf,
drivers/dma-buf/udmabuf.c
358
struct dma_buf *dmabuf;
drivers/dma-buf/udmabuf.c
94
static int mmap_udmabuf(struct dma_buf *buf, struct vm_area_struct *vma)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
565
struct dma_buf *dma_buf;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
571
dma_buf = dma_buf_get(dma_buf_fd);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
572
if (IS_ERR(dma_buf))
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
573
return PTR_ERR(dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
575
if (dma_buf->ops != &amdgpu_dmabuf_ops)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
579
obj = dma_buf->priv;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
626
dma_buf_put(dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
344
struct dma_buf **dmabuf);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
75
struct dma_buf *dmabuf;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2368
struct dma_buf *dma_buf,
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2407
get_dma_buf(dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2408
(*mem)->dmabuf = dma_buf;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2459
ret = import_obj_create(adev, obj->dma_buf, obj, va, drm_priv, mem, size,
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2476
struct dma_buf **dma_buf)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
2486
*dma_buf = mem->dmabuf;
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
822
struct dma_buf *dmabuf;
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
808
(!bo->tbo.base.dma_buf ||
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
809
list_empty(&bo->tbo.base.dma_buf->attachments))) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
123
struct dma_buf *dmabuf = attach->dmabuf;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
181
struct dma_buf *dma_buf = attach->dmabuf;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
182
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
292
static int amdgpu_dma_buf_begin_cpu_access(struct dma_buf *dma_buf,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
295
struct amdgpu_bo *bo = gem_to_amdgpu_bo(dma_buf->priv);
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
321
static int amdgpu_dma_buf_vmap(struct dma_buf *dma_buf, struct iosys_map *map)
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
323
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
335
ret = drm_gem_dmabuf_vmap(dma_buf, map);
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
342
static void amdgpu_dma_buf_vunmap(struct dma_buf *dma_buf, struct iosys_map *map)
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
344
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
347
drm_gem_dmabuf_vunmap(dma_buf, map);
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
374
struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
378
struct dma_buf *buf;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
416
amdgpu_dma_buf_create_obj(struct drm_device *dev, struct dma_buf *dma_buf)
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
418
struct dma_resv *resv = dma_buf->resv;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
427
if (dma_buf->ops == &amdgpu_dmabuf_ops) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
428
struct amdgpu_bo *other = gem_to_amdgpu_bo(dma_buf->priv);
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
436
ret = amdgpu_gem_object_create(adev, dma_buf->size, PAGE_SIZE,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
547
struct dma_buf *dma_buf)
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
552
if (dma_buf->ops == &amdgpu_dmabuf_ops) {
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
553
obj = dma_buf->priv;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
564
obj = amdgpu_dma_buf_create_obj(dev, dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
568
attach = dma_buf_dynamic_attach(dma_buf, dev->dev,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
575
get_dma_buf(dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
599
struct dma_buf *dma_buf = obj->import_attach->dmabuf;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
601
if (dma_buf->ops != &amdgpu_dmabuf_ops)
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
605
gobj = dma_buf->priv;
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
78
static int amdgpu_dma_buf_attach(struct dma_buf *dmabuf,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h
28
struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj,
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h
31
struct dma_buf *dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1282
if (abo->tbo.base.dma_buf && !drm_gem_is_imported(&abo->tbo.base) &&
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1284
dma_buf_invalidate_mappings(abo->tbo.base.dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1627
struct dma_buf *dma_buf;
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1683
dma_buf = READ_ONCE(bo->tbo.base.dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1687
seq_printf(m, " imported from ino:%llu", file_inode(dma_buf->file)->i_ino);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1688
else if (dma_buf)
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
1689
seq_printf(m, " exported as ino:%llu", file_inode(dma_buf->file)->i_ino);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
379
struct dma_buf *dma_buf, u32 domain, struct amdgpu_bo **bo,
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
386
gem_obj = amdgpu_gem_prime_import(&adev->ddev, dma_buf);
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
266
struct dma_buf *dbuf, u32 domain,
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1302
struct dma_buf *dma_buf = obj->import_attach->dmabuf;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
1303
struct drm_gem_object *gobj = dma_buf->priv;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
1632
struct dma_buf *dmabuf;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
1988
struct dma_buf *dmabuf;
drivers/gpu/drm/armada/armada_gem.c
475
armada_gem_dmabuf_mmap(struct dma_buf *buf, struct vm_area_struct *vma)
drivers/gpu/drm/armada/armada_gem.c
487
struct dma_buf *
drivers/gpu/drm/armada/armada_gem.c
501
armada_gem_prime_import(struct drm_device *dev, struct dma_buf *buf)
drivers/gpu/drm/armada/armada_gem.h
33
struct dma_buf *armada_gem_prime_export(struct drm_gem_object *obj, int flags);
drivers/gpu/drm/armada/armada_gem.h
35
struct dma_buf *);
drivers/gpu/drm/drm_gem.c
1068
if (obj->dma_buf) {
drivers/gpu/drm/drm_gem.c
1069
ret = drm_prime_add_buf_handle(&file_priv->prime, obj->dma_buf,
drivers/gpu/drm/drm_gem.c
251
WARN_ON(obj->dma_buf);
drivers/gpu/drm/drm_gem.c
322
if (obj->dma_buf) {
drivers/gpu/drm/drm_gem.c
323
dma_buf_put(obj->dma_buf);
drivers/gpu/drm/drm_gem.c
324
obj->dma_buf = NULL;
drivers/gpu/drm/drm_gem_shmem_helper.c
747
ret = dma_buf_mmap(obj->dma_buf, vma, 0);
drivers/gpu/drm/drm_gem_shmem_helper.c
931
struct dma_buf *dma_buf)
drivers/gpu/drm/drm_gem_shmem_helper.c
939
if (drm_gem_is_prime_exported_dma_buf(dev, dma_buf)) {
drivers/gpu/drm/drm_gem_shmem_helper.c
944
obj = dma_buf->priv;
drivers/gpu/drm/drm_gem_shmem_helper.c
949
attach = dma_buf_attach(dma_buf, dev->dev);
drivers/gpu/drm/drm_gem_shmem_helper.c
953
get_dma_buf(dma_buf);
drivers/gpu/drm/drm_gem_shmem_helper.c
966
shmem->base.resv = dma_buf->resv;
drivers/gpu/drm/drm_gem_shmem_helper.c
971
dma_buf_detach(dma_buf, attach);
drivers/gpu/drm/drm_gem_shmem_helper.c
972
dma_buf_put(dma_buf);
drivers/gpu/drm/drm_internal.h
100
struct dma_buf *dma_buf, uint32_t handle);
drivers/gpu/drm/drm_internal.h
39
struct dma_buf;
drivers/gpu/drm/drm_prime.c
1009
obj->resv = dma_buf->resv;
drivers/gpu/drm/drm_prime.c
1016
dma_buf_detach(dma_buf, attach);
drivers/gpu/drm/drm_prime.c
1017
dma_buf_put(dma_buf);
drivers/gpu/drm/drm_prime.c
1037
struct dma_buf *dma_buf)
drivers/gpu/drm/drm_prime.c
1039
return drm_gem_prime_import_dev(dev, dma_buf, drm_dev_dma_dev(dev));
drivers/gpu/drm/drm_prime.c
107
get_dma_buf(dma_buf);
drivers/gpu/drm/drm_prime.c
108
member->dma_buf = dma_buf;
drivers/gpu/drm/drm_prime.c
1108
struct dma_buf *dma_buf;
drivers/gpu/drm/drm_prime.c
1113
dma_buf = attach->dmabuf;
drivers/gpu/drm/drm_prime.c
1116
dma_buf_put(dma_buf);
drivers/gpu/drm/drm_prime.c
118
if (dma_buf > pos->dma_buf)
drivers/gpu/drm/drm_prime.c
144
static struct dma_buf *drm_prime_lookup_buf_by_handle(struct drm_prime_file_private *prime_fpriv,
drivers/gpu/drm/drm_prime.c
155
return member->dma_buf;
drivers/gpu/drm/drm_prime.c
166
struct dma_buf *dma_buf,
drivers/gpu/drm/drm_prime.c
176
if (member->dma_buf == dma_buf) {
drivers/gpu/drm/drm_prime.c
179
} else if (member->dma_buf < dma_buf) {
drivers/gpu/drm/drm_prime.c
203
dma_buf_put(member->dma_buf);
drivers/gpu/drm/drm_prime.c
239
struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev,
drivers/gpu/drm/drm_prime.c
243
struct dma_buf *dma_buf;
drivers/gpu/drm/drm_prime.c
245
dma_buf = dma_buf_export(exp_info);
drivers/gpu/drm/drm_prime.c
246
if (IS_ERR(dma_buf))
drivers/gpu/drm/drm_prime.c
247
return dma_buf;
drivers/gpu/drm/drm_prime.c
251
dma_buf->file->f_mapping = obj->dev->anon_inode->i_mapping;
drivers/gpu/drm/drm_prime.c
253
return dma_buf;
drivers/gpu/drm/drm_prime.c
266
void drm_gem_dmabuf_release(struct dma_buf *dma_buf)
drivers/gpu/drm/drm_prime.c
268
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
296
struct dma_buf *dma_buf;
drivers/gpu/drm/drm_prime.c
300
dma_buf = dma_buf_get(prime_fd);
drivers/gpu/drm/drm_prime.c
301
if (IS_ERR(dma_buf))
drivers/gpu/drm/drm_prime.c
302
return PTR_ERR(dma_buf);
drivers/gpu/drm/drm_prime.c
307
dma_buf, handle);
drivers/gpu/drm/drm_prime.c
314
obj = dev->driver->gem_prime_import(dev, dma_buf);
drivers/gpu/drm/drm_prime.c
316
obj = drm_gem_prime_import(dev, dma_buf);
drivers/gpu/drm/drm_prime.c
322
if (obj->dma_buf) {
drivers/gpu/drm/drm_prime.c
323
WARN_ON(obj->dma_buf != dma_buf);
drivers/gpu/drm/drm_prime.c
325
obj->dma_buf = dma_buf;
drivers/gpu/drm/drm_prime.c
326
get_dma_buf(dma_buf);
drivers/gpu/drm/drm_prime.c
336
dma_buf, *handle);
drivers/gpu/drm/drm_prime.c
341
dma_buf_put(dma_buf);
drivers/gpu/drm/drm_prime.c
350
dma_buf_put(dma_buf);
drivers/gpu/drm/drm_prime.c
357
dma_buf_put(dma_buf);
drivers/gpu/drm/drm_prime.c
375
static struct dma_buf *export_and_register_object(struct drm_device *dev,
drivers/gpu/drm/drm_prime.c
379
struct dma_buf *dmabuf;
drivers/gpu/drm/drm_prime.c
403
obj->dma_buf = dmabuf;
drivers/gpu/drm/drm_prime.c
404
get_dma_buf(obj->dma_buf);
drivers/gpu/drm/drm_prime.c
431
struct dma_buf *drm_gem_prime_handle_to_dmabuf(struct drm_device *dev,
drivers/gpu/drm/drm_prime.c
437
struct dma_buf *dmabuf;
drivers/gpu/drm/drm_prime.c
460
if (obj->dma_buf) {
drivers/gpu/drm/drm_prime.c
461
get_dma_buf(obj->dma_buf);
drivers/gpu/drm/drm_prime.c
462
dmabuf = obj->dma_buf;
drivers/gpu/drm/drm_prime.c
515
struct dma_buf *dmabuf;
drivers/gpu/drm/drm_prime.c
601
int drm_gem_map_attach(struct dma_buf *dma_buf,
drivers/gpu/drm/drm_prime.c
604
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
611
if (dma_buf->ops->map_dma_buf == drm_gem_map_dma_buf &&
drivers/gpu/drm/drm_prime.c
637
void drm_gem_map_detach(struct dma_buf *dma_buf,
drivers/gpu/drm/drm_prime.c
640
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
727
int drm_gem_dmabuf_vmap(struct dma_buf *dma_buf, struct iosys_map *map)
drivers/gpu/drm/drm_prime.c
729
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
743
void drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, struct iosys_map *map)
drivers/gpu/drm/drm_prime.c
745
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
819
int drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
drivers/gpu/drm/drm_prime.c
821
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
90
struct dma_buf *dma_buf;
drivers/gpu/drm/drm_prime.c
916
struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj,
drivers/gpu/drm/drm_prime.c
946
struct dma_buf *dma_buf)
drivers/gpu/drm/drm_prime.c
948
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
950
return (dma_buf->ops == &drm_gem_prime_dmabuf_ops) && (obj->dev == dev);
drivers/gpu/drm/drm_prime.c
969
struct dma_buf *dma_buf,
drivers/gpu/drm/drm_prime.c
977
if (drm_gem_is_prime_exported_dma_buf(dev, dma_buf)) {
drivers/gpu/drm/drm_prime.c
98
struct dma_buf *dma_buf, uint32_t handle)
drivers/gpu/drm/drm_prime.c
982
obj = dma_buf->priv;
drivers/gpu/drm/drm_prime.c
990
attach = dma_buf_attach(dma_buf, attach_dev);
drivers/gpu/drm/drm_prime.c
994
get_dma_buf(dma_buf);
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c
96
ret = dma_buf_mmap(etnaviv_obj->base.dma_buf, vma, 0);
drivers/gpu/drm/exynos/exynos_drm_gem.c
371
return dma_buf_mmap(obj->dma_buf, vma, 0);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
117
static int i915_gem_begin_cpu_access(struct dma_buf *dma_buf, enum dma_data_direction direction)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
119
struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
142
static int i915_gem_end_cpu_access(struct dma_buf *dma_buf, enum dma_data_direction direction)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
144
struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
166
static int i915_gem_dmabuf_attach(struct dma_buf *dmabuf,
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
195
static void i915_gem_dmabuf_detach(struct dma_buf *dmabuf,
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
216
struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int flags)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
22
static struct drm_i915_gem_object *dma_buf_to_obj(struct dma_buf *buf)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
282
struct dma_buf *dma_buf)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
290
if (dma_buf->ops == &i915_dmabuf_ops) {
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
291
obj = dma_buf_to_obj(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
303
if (i915_gem_object_size_2big(dma_buf->size))
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
307
attach = dma_buf_attach(dma_buf, dev->dev);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
311
get_dma_buf(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
319
drm_gem_private_object_init(dev, &obj->base, dma_buf->size);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
323
obj->base.resv = dma_buf->resv;
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
338
dma_buf_detach(dma_buf, attach);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
339
dma_buf_put(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
69
static int i915_gem_dmabuf_vmap(struct dma_buf *dma_buf,
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
72
struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
84
static void i915_gem_dmabuf_vunmap(struct dma_buf *dma_buf,
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
87
struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
93
static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c
95
struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.h
11
struct dma_buf;
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.h
14
struct dma_buf *dma_buf);
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.h
16
struct dma_buf *i915_gem_prime_export(struct drm_gem_object *gem_obj, int flags);
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
22
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
225
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
348
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
432
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
45
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
483
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
99
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
103
struct dma_buf *dmabuf;
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
54
static void mock_dmabuf_release(struct dma_buf *dma_buf)
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
56
struct mock_dmabuf *mock = to_mock(dma_buf);
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
65
static int mock_dmabuf_vmap(struct dma_buf *dma_buf, struct iosys_map *map)
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
67
struct mock_dmabuf *mock = to_mock(dma_buf);
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
78
static void mock_dmabuf_vunmap(struct dma_buf *dma_buf, struct iosys_map *map)
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
80
struct mock_dmabuf *mock = to_mock(dma_buf);
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
85
static int mock_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma)
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.c
99
static struct dma_buf *mock_dmabuf(int npages)
drivers/gpu/drm/i915/gem/selftests/mock_dmabuf.h
17
static inline struct mock_dmabuf *to_mock(struct dma_buf *buf)
drivers/gpu/drm/i915/gvt/dmabuf.c
118
if (obj->base.dma_buf) {
drivers/gpu/drm/i915/gvt/dmabuf.c
181
gem_obj->base.dma_buf = NULL;
drivers/gpu/drm/i915/gvt/dmabuf.c
186
gem_obj->base.dma_buf = NULL;
drivers/gpu/drm/i915/gvt/dmabuf.c
506
struct dma_buf *dmabuf;
drivers/gpu/drm/imagination/pvr_gem.c
34
static struct dma_buf *pvr_gem_export(struct drm_gem_object *obj, int flags)
drivers/gpu/drm/msm/msm_drv.h
249
struct drm_gem_object *msm_gem_prime_import(struct drm_device *dev, struct dma_buf *buf);
drivers/gpu/drm/msm/msm_drv.h
252
struct dma_buf *msm_gem_prime_export(struct drm_gem_object *obj, int flags);
drivers/gpu/drm/msm/msm_gem.c
1285
struct dma_buf *dmabuf, struct sg_table *sgt)
drivers/gpu/drm/msm/msm_gem.h
305
struct dma_buf *dmabuf, struct sg_table *sgt);
drivers/gpu/drm/msm/msm_gem_prime.c
46
static void msm_gem_dmabuf_release(struct dma_buf *dma_buf)
drivers/gpu/drm/msm/msm_gem_prime.c
48
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/msm/msm_gem_prime.c
51
drm_gem_dmabuf_release(dma_buf);
drivers/gpu/drm/msm/msm_gem_prime.c
66
struct dma_buf *buf)
drivers/gpu/drm/msm/msm_gem_prime.c
89
struct dma_buf *msm_gem_prime_export(struct drm_gem_object *obj, int flags)
drivers/gpu/drm/nouveau/nouveau_gem.h
40
struct dma_buf *nouveau_gem_prime_export(struct drm_gem_object *gobj,
drivers/gpu/drm/nouveau/nouveau_prime.c
107
struct dma_buf *nouveau_gem_prime_export(struct drm_gem_object *gobj,
drivers/gpu/drm/omapdrm/omap_gem.h
17
struct dma_buf;
drivers/gpu/drm/omapdrm/omap_gem.h
64
struct dma_buf *omap_gem_prime_export(struct drm_gem_object *obj, int flags);
drivers/gpu/drm/omapdrm/omap_gem.h
66
struct dma_buf *buffer);
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
105
if (dma_buf->ops == &omap_dmabuf_ops) {
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
106
obj = dma_buf->priv;
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
117
attach = dma_buf_attach(dma_buf, dev->dev);
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
121
get_dma_buf(dma_buf);
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
129
obj = omap_gem_new_dmabuf(dev, dma_buf->size, sgt);
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
142
dma_buf_detach(dma_buf, attach);
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
143
dma_buf_put(dma_buf);
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
40
static int omap_gem_dmabuf_begin_cpu_access(struct dma_buf *buffer,
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
55
static int omap_gem_dmabuf_end_cpu_access(struct dma_buf *buffer,
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
63
static int omap_gem_dmabuf_mmap(struct dma_buf *buffer,
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
80
struct dma_buf *omap_gem_prime_export(struct drm_gem_object *obj, int flags)
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
98
struct dma_buf *dma_buf)
drivers/gpu/drm/panfrost/panfrost_gem.c
302
panfrost_gem_prime_begin_cpu_access(struct dma_buf *dma_buf,
drivers/gpu/drm/panfrost/panfrost_gem.c
305
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/panfrost/panfrost_gem.c
317
list_for_each_entry(attach, &dma_buf->attachments, node) {
drivers/gpu/drm/panfrost/panfrost_gem.c
329
panfrost_gem_prime_end_cpu_access(struct dma_buf *dma_buf,
drivers/gpu/drm/panfrost/panfrost_gem.c
332
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/panfrost/panfrost_gem.c
338
list_for_each_entry(attach, &dma_buf->attachments, node) {
drivers/gpu/drm/panfrost/panfrost_gem.c
368
static struct dma_buf *
drivers/gpu/drm/panfrost/panfrost_gem.c
387
struct dma_buf *dma_buf)
drivers/gpu/drm/panfrost/panfrost_gem.c
389
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/panfrost/panfrost_gem.c
391
if (dma_buf->ops == &panfrost_dma_buf_ops && obj->dev == dev) {
drivers/gpu/drm/panfrost/panfrost_gem.c
399
return drm_gem_prime_import(dev, dma_buf);
drivers/gpu/drm/panfrost/panfrost_gem.c
707
if (bo->base.base.dma_buf)
drivers/gpu/drm/panfrost/panfrost_gem.h
142
struct dma_buf *dma_buf);
drivers/gpu/drm/panthor/panthor_gem.c
1654
if (bo->base.dma_buf)
drivers/gpu/drm/panthor/panthor_gem.c
496
panthor_gem_prime_begin_cpu_access(struct dma_buf *dma_buf,
drivers/gpu/drm/panthor/panthor_gem.c
499
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/panthor/panthor_gem.c
511
list_for_each_entry(attach, &dma_buf->attachments, node) {
drivers/gpu/drm/panthor/panthor_gem.c
523
panthor_gem_prime_end_cpu_access(struct dma_buf *dma_buf,
drivers/gpu/drm/panthor/panthor_gem.c
526
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/panthor/panthor_gem.c
532
list_for_each_entry(attach, &dma_buf->attachments, node) {
drivers/gpu/drm/panthor/panthor_gem.c
562
static struct dma_buf *
drivers/gpu/drm/panthor/panthor_gem.c
585
struct dma_buf *dma_buf)
drivers/gpu/drm/panthor/panthor_gem.c
587
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/panthor/panthor_gem.c
589
if (dma_buf->ops == &panthor_dma_buf_ops && obj->dev == dev) {
drivers/gpu/drm/panthor/panthor_gem.c
597
return drm_gem_prime_import(dev, dma_buf);
drivers/gpu/drm/panthor/panthor_gem.c
755
ret = dma_buf_mmap(obj->dma_buf, vma, 0);
drivers/gpu/drm/panthor/panthor_gem.h
279
struct dma_buf *dma_buf);
drivers/gpu/drm/radeon/radeon_gem.c
42
struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
drivers/gpu/drm/radeon/radeon_prime.c
94
struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
drivers/gpu/drm/radeon/radeon_prime.h
29
struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
drivers/gpu/drm/tegra/gem.c
186
if (obj->dma_buf) {
drivers/gpu/drm/tegra/gem.c
187
ret = dma_buf_vmap_unlocked(obj->dma_buf, &map);
drivers/gpu/drm/tegra/gem.c
210
if (obj->dma_buf)
drivers/gpu/drm/tegra/gem.c
211
return dma_buf_vunmap_unlocked(obj->dma_buf, &map);
drivers/gpu/drm/tegra/gem.c
459
struct dma_buf *buf)
drivers/gpu/drm/tegra/gem.c
495
bo->dma_buf = buf;
drivers/gpu/drm/tegra/gem.c
530
if (bo->dma_buf)
drivers/gpu/drm/tegra/gem.c
531
dma_buf_put(bo->dma_buf);
drivers/gpu/drm/tegra/gem.c
675
static void tegra_gem_prime_release(struct dma_buf *buf)
drivers/gpu/drm/tegra/gem.c
680
static int tegra_gem_prime_begin_cpu_access(struct dma_buf *buf,
drivers/gpu/drm/tegra/gem.c
693
static int tegra_gem_prime_end_cpu_access(struct dma_buf *buf,
drivers/gpu/drm/tegra/gem.c
706
static int tegra_gem_prime_mmap(struct dma_buf *buf, struct vm_area_struct *vma)
drivers/gpu/drm/tegra/gem.c
718
static int tegra_gem_prime_vmap(struct dma_buf *buf, struct iosys_map *map)
drivers/gpu/drm/tegra/gem.c
733
static void tegra_gem_prime_vunmap(struct dma_buf *buf, struct iosys_map *map)
drivers/gpu/drm/tegra/gem.c
752
struct dma_buf *tegra_gem_prime_export(struct drm_gem_object *gem,
drivers/gpu/drm/tegra/gem.c
768
struct dma_buf *buf)
drivers/gpu/drm/tegra/gem.c
79
if (obj->dma_buf) {
drivers/gpu/drm/tegra/gem.c
80
struct dma_buf *buf = obj->dma_buf;
drivers/gpu/drm/tegra/gem.h
102
struct dma_buf *buf);
drivers/gpu/drm/tegra/gem.h
62
struct dma_buf *dma_buf;
drivers/gpu/drm/tegra/gem.h
99
struct dma_buf *tegra_gem_prime_export(struct drm_gem_object *gem,
drivers/gpu/drm/tests/drm_gem_shmem_test.c
73
struct dma_buf buf_mock;
drivers/gpu/drm/vc4/vc4_bo.c
686
static struct dma_buf *vc4_prime_export(struct drm_gem_object *obj, int flags)
drivers/gpu/drm/vc4/vc4_bo.c
689
struct dma_buf *dmabuf;
drivers/gpu/drm/virtio/virtgpu_drv.h
488
struct dma_buf *virtgpu_gem_prime_export(struct drm_gem_object *obj,
drivers/gpu/drm/virtio/virtgpu_drv.h
491
struct dma_buf *buf);
drivers/gpu/drm/virtio/virtgpu_prime.c
105
struct dma_buf *virtgpu_gem_prime_export(struct drm_gem_object *obj,
drivers/gpu/drm/virtio/virtgpu_prime.c
108
struct dma_buf *buf;
drivers/gpu/drm/virtio/virtgpu_prime.c
208
struct dma_buf *dmabuf = attach->dmabuf;
drivers/gpu/drm/virtio/virtgpu_prime.c
293
struct dma_buf *buf)
drivers/gpu/drm/virtio/virtgpu_prime.c
32
static int virtgpu_virtio_get_uuid(struct dma_buf *buf,
drivers/gpu/drm/vmwgfx/ttm_object.c
130
static void ttm_prime_dmabuf_release(struct dma_buf *dma_buf);
drivers/gpu/drm/vmwgfx/ttm_object.c
472
static bool __must_check get_dma_buf_unless_doomed(struct dma_buf *dmabuf)
drivers/gpu/drm/vmwgfx/ttm_object.c
494
BUG_ON(prime->dma_buf != NULL);
drivers/gpu/drm/vmwgfx/ttm_object.c
510
static void ttm_prime_dmabuf_release(struct dma_buf *dma_buf)
drivers/gpu/drm/vmwgfx/ttm_object.c
513
(struct ttm_prime_object *) dma_buf->priv;
drivers/gpu/drm/vmwgfx/ttm_object.c
518
tdev->dmabuf_release(dma_buf);
drivers/gpu/drm/vmwgfx/ttm_object.c
520
if (prime->dma_buf == dma_buf)
drivers/gpu/drm/vmwgfx/ttm_object.c
521
prime->dma_buf = NULL;
drivers/gpu/drm/vmwgfx/ttm_object.c
541
struct dma_buf *dma_buf;
drivers/gpu/drm/vmwgfx/ttm_object.c
546
dma_buf = dma_buf_get(fd);
drivers/gpu/drm/vmwgfx/ttm_object.c
547
if (IS_ERR(dma_buf))
drivers/gpu/drm/vmwgfx/ttm_object.c
548
return PTR_ERR(dma_buf);
drivers/gpu/drm/vmwgfx/ttm_object.c
550
if (dma_buf->ops != &tdev->ops)
drivers/gpu/drm/vmwgfx/ttm_object.c
553
prime = (struct ttm_prime_object *) dma_buf->priv;
drivers/gpu/drm/vmwgfx/ttm_object.c
558
dma_buf_put(dma_buf);
drivers/gpu/drm/vmwgfx/ttm_object.c
578
struct dma_buf *dma_buf;
drivers/gpu/drm/vmwgfx/ttm_object.c
601
dma_buf = prime->dma_buf;
drivers/gpu/drm/vmwgfx/ttm_object.c
602
if (!dma_buf || !get_dma_buf_unless_doomed(dma_buf)) {
drivers/gpu/drm/vmwgfx/ttm_object.c
613
dma_buf = dma_buf_export(&exp_info);
drivers/gpu/drm/vmwgfx/ttm_object.c
614
if (IS_ERR(dma_buf)) {
drivers/gpu/drm/vmwgfx/ttm_object.c
615
ret = PTR_ERR(dma_buf);
drivers/gpu/drm/vmwgfx/ttm_object.c
624
prime->dma_buf = dma_buf;
drivers/gpu/drm/vmwgfx/ttm_object.c
628
ret = dma_buf_fd(dma_buf, flags);
drivers/gpu/drm/vmwgfx/ttm_object.c
633
dma_buf_put(dma_buf);
drivers/gpu/drm/vmwgfx/ttm_object.c
662
prime->dma_buf = NULL;
drivers/gpu/drm/vmwgfx/ttm_object.c
96
void (*dmabuf_release)(struct dma_buf *dma_buf);
drivers/gpu/drm/vmwgfx/ttm_object.h
132
struct dma_buf *dma_buf;
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
433
ret = dma_buf_vmap(bo->tbo.base.dma_buf, map);
drivers/gpu/drm/vmwgfx/vmwgfx_blit.c
451
dma_buf_vunmap(bo->tbo.base.dma_buf, map);
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c
123
ret = dma_buf_mmap(obj->dma_buf, vma, 0);
drivers/gpu/drm/vmwgfx/vmwgfx_prime.c
44
static int vmw_prime_map_attach(struct dma_buf *dma_buf,
drivers/gpu/drm/vmwgfx/vmwgfx_prime.c
50
static void vmw_prime_map_detach(struct dma_buf *dma_buf,
drivers/gpu/drm/xe/tests/xe_dma_buf.c
114
struct dma_buf *dmabuf;
drivers/gpu/drm/xe/tests/xe_dma_buf.c
143
bo->ttm.base.dma_buf = dmabuf;
drivers/gpu/drm/xe/tests/xe_dma_buf.c
192
bo->ttm.base.dma_buf = NULL;
drivers/gpu/drm/xe/tests/xe_dma_buf.c
29
struct xe_bo *imported, struct dma_buf *dmabuf,
drivers/gpu/drm/xe/xe_bo.c
1841
if (bo->dma_buf)
drivers/gpu/drm/xe/xe_bo.c
1842
dma_buf_put(bo->dma_buf);
drivers/gpu/drm/xe/xe_bo.c
2313
u32 flags, struct dma_buf *dma_buf,
drivers/gpu/drm/xe/xe_bo.c
2409
if (dma_buf) {
drivers/gpu/drm/xe/xe_bo.c
2410
get_dma_buf(dma_buf);
drivers/gpu/drm/xe/xe_bo.c
2411
bo->dma_buf = dma_buf;
drivers/gpu/drm/xe/xe_bo.c
339
if (device_unplugged && !tbo->base.dma_buf) {
drivers/gpu/drm/xe/xe_bo.c
816
if (ttm_bo->base.dma_buf && !ttm_bo->base.import_attach)
drivers/gpu/drm/xe/xe_bo.c
817
dma_buf_invalidate_mappings(ttm_bo->base.dma_buf);
drivers/gpu/drm/xe/xe_bo.h
121
u32 flags, struct dma_buf *dma_buf,
drivers/gpu/drm/xe/xe_bo_types.h
40
struct dma_buf *dma_buf;
drivers/gpu/drm/xe/xe_dma_buf.c
100
struct dma_buf *dma_buf = attach->dmabuf;
drivers/gpu/drm/xe/xe_dma_buf.c
101
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/xe/xe_dma_buf.c
166
static int xe_dma_buf_begin_cpu_access(struct dma_buf *dma_buf,
drivers/gpu/drm/xe/xe_dma_buf.c
169
struct drm_gem_object *obj = dma_buf->priv;
drivers/gpu/drm/xe/xe_dma_buf.c
196
static void xe_dma_buf_release(struct dma_buf *dmabuf)
drivers/gpu/drm/xe/xe_dma_buf.c
222
struct dma_buf *xe_gem_prime_export(struct drm_gem_object *obj, int flags)
drivers/gpu/drm/xe/xe_dma_buf.c
225
struct dma_buf *buf;
drivers/gpu/drm/xe/xe_dma_buf.c
25
static int xe_dma_buf_attach(struct dma_buf *dmabuf,
drivers/gpu/drm/xe/xe_dma_buf.c
282
xe_dma_buf_create_obj(struct drm_device *dev, struct dma_buf *dma_buf)
drivers/gpu/drm/xe/xe_dma_buf.c
284
struct dma_resv *resv = dma_buf->resv;
drivers/gpu/drm/xe/xe_dma_buf.c
303
bo = xe_bo_init_locked(xe, NULL, NULL, resv, NULL, dma_buf->size,
drivers/gpu/drm/xe/xe_dma_buf.c
305
ttm_bo_type_sg, XE_BO_FLAG_SYSTEM, dma_buf, &exec);
drivers/gpu/drm/xe/xe_dma_buf.c
346
struct dma_buf *dma_buf)
drivers/gpu/drm/xe/xe_dma_buf.c
355
if (dma_buf->ops == &xe_dmabuf_ops) {
drivers/gpu/drm/xe/xe_dma_buf.c
356
obj = dma_buf->priv;
drivers/gpu/drm/xe/xe_dma_buf.c
375
obj = xe_dma_buf_create_obj(dev, dma_buf);
drivers/gpu/drm/xe/xe_dma_buf.c
385
attach = dma_buf_dynamic_attach(dma_buf, dev->dev, attach_ops, obj);
drivers/gpu/drm/xe/xe_dma_buf.c
391
get_dma_buf(dma_buf);
drivers/gpu/drm/xe/xe_dma_buf.c
41
static void xe_dma_buf_detach(struct dma_buf *dmabuf,
drivers/gpu/drm/xe/xe_dma_buf.c
51
struct dma_buf *dmabuf = attach->dmabuf;
drivers/gpu/drm/xe/xe_dma_buf.h
11
struct dma_buf *xe_gem_prime_export(struct drm_gem_object *obj, int flags);
drivers/gpu/drm/xe/xe_dma_buf.h
13
struct dma_buf *dma_buf);
drivers/gpu/drm/xe/xe_validation.c
37
xe_assert(xe, !!obj->dma_buf);
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
639
void *dma_buf;
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
664
dma_buf = dma_alloc_coherent(devc, payload_max_size, &dma_buf_phy, GFP_KERNEL);
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
665
if (!dma_buf) {
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
687
memcpy(dma_buf, &fw->data[fragment_offset], fragment_size);
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
690
clflush_cache_range(dma_buf, payload_max_size);
drivers/hid/intel-ish-hid/ishtp-fw-loader.c
713
dma_free_coherent(devc, payload_max_size, dma_buf, dma_buf_phy);
drivers/i2c/busses/i2c-amd-mp2-plat.c
49
i2c_common->dma_buf = i2c_get_dma_safe_msg_buf(i2c_common->msg, 0);
drivers/i2c/busses/i2c-amd-mp2-plat.c
50
i2c_common->dma_addr = dma_map_single(dev_pci, i2c_common->dma_buf,
drivers/i2c/busses/i2c-amd-mp2-plat.c
57
i2c_common->dma_buf);
drivers/i2c/busses/i2c-amd-mp2-plat.c
74
i2c_put_dma_safe_msg_buf(i2c_common->dma_buf, i2c_common->msg, true);
drivers/i2c/busses/i2c-amd-mp2.h
161
u8 *dma_buf;
drivers/i2c/busses/i2c-at91-master.c
658
u8 *dma_buf = NULL;
drivers/i2c/busses/i2c-at91-master.c
707
dma_buf = i2c_get_dma_safe_msg_buf(m_start, 1);
drivers/i2c/busses/i2c-at91-master.c
708
if (!dma_buf) {
drivers/i2c/busses/i2c-at91-master.c
712
dev->buf = dma_buf;
drivers/i2c/busses/i2c-at91-master.c
716
i2c_put_dma_safe_msg_buf(dma_buf, m_start, !ret);
drivers/i2c/busses/i2c-imx-lpi2c.c
1044
dma->dma_buf = i2c_get_dma_safe_msg_buf(msg, I2C_DMA_THRESHOLD);
drivers/i2c/busses/i2c-imx-lpi2c.c
1045
if (!dma->dma_buf)
drivers/i2c/busses/i2c-imx-lpi2c.c
1102
i2c_put_dma_safe_msg_buf(dma->dma_buf, msg, false);
drivers/i2c/busses/i2c-imx-lpi2c.c
1104
i2c_put_dma_safe_msg_buf(dma->dma_buf, msg, true);
drivers/i2c/busses/i2c-imx-lpi2c.c
162
u8 *dma_buf;
drivers/i2c/busses/i2c-imx-lpi2c.c
871
dma->dma_buf, dma->dma_len, dma->dma_data_dir);
drivers/i2c/busses/i2c-imx.c
221
dma_addr_t dma_buf;
drivers/i2c/busses/i2c-imx.c
472
dma_unmap_single(dma->chan_using->device->dev, dma->dma_buf,
drivers/i2c/busses/i2c-imx.c
485
dma->dma_buf = dma_map_single(chan_dev, msgs->buf,
drivers/i2c/busses/i2c-imx.c
487
if (dma_mapping_error(chan_dev, dma->dma_buf)) {
drivers/i2c/busses/i2c-imx.c
492
txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf,
drivers/i2c/busses/i2c-imx.c
514
dma_unmap_single(chan_dev, dma->dma_buf,
drivers/i2c/busses/i2c-imx.c
524
dma->dma_buf = 0;
drivers/i2c/busses/i2c-mxs.c
573
u8 *dma_buf;
drivers/i2c/busses/i2c-mxs.c
599
dma_buf = i2c_get_dma_safe_msg_buf(msg, 1);
drivers/i2c/busses/i2c-mxs.c
600
if (!dma_buf)
drivers/i2c/busses/i2c-mxs.c
604
ret = mxs_i2c_dma_setup_xfer(adap, msg, dma_buf, flags);
drivers/i2c/busses/i2c-mxs.c
606
i2c_put_dma_safe_msg_buf(dma_buf, msg, false);
drivers/i2c/busses/i2c-mxs.c
612
i2c_put_dma_safe_msg_buf(dma_buf, msg, true);
drivers/i2c/busses/i2c-qcom-geni.c
113
void *dma_buf;
drivers/i2c/busses/i2c-qcom-geni.c
420
if (gi2c->dma_buf) {
drivers/i2c/busses/i2c-qcom-geni.c
424
i2c_put_dma_safe_msg_buf(gi2c->dma_buf, cur, !gi2c->err);
drivers/i2c/busses/i2c-qcom-geni.c
432
if (gi2c->dma_buf) {
drivers/i2c/busses/i2c-qcom-geni.c
436
i2c_put_dma_safe_msg_buf(gi2c->dma_buf, cur, !gi2c->err);
drivers/i2c/busses/i2c-qcom-geni.c
445
void *dma_buf;
drivers/i2c/busses/i2c-qcom-geni.c
450
dma_buf = gi2c->no_dma ? NULL : i2c_get_dma_safe_msg_buf(msg, 32);
drivers/i2c/busses/i2c-qcom-geni.c
451
if (dma_buf)
drivers/i2c/busses/i2c-qcom-geni.c
459
if (dma_buf && geni_se_rx_dma_prep(se, dma_buf, len, &rx_dma)) {
drivers/i2c/busses/i2c-qcom-geni.c
461
i2c_put_dma_safe_msg_buf(dma_buf, msg, false);
drivers/i2c/busses/i2c-qcom-geni.c
462
dma_buf = NULL;
drivers/i2c/busses/i2c-qcom-geni.c
466
gi2c->dma_buf = dma_buf;
drivers/i2c/busses/i2c-qcom-geni.c
484
void *dma_buf;
drivers/i2c/busses/i2c-qcom-geni.c
489
dma_buf = gi2c->no_dma ? NULL : i2c_get_dma_safe_msg_buf(msg, 32);
drivers/i2c/busses/i2c-qcom-geni.c
490
if (dma_buf)
drivers/i2c/busses/i2c-qcom-geni.c
498
if (dma_buf && geni_se_tx_dma_prep(se, dma_buf, len, &tx_dma)) {
drivers/i2c/busses/i2c-qcom-geni.c
500
i2c_put_dma_safe_msg_buf(dma_buf, msg, false);
drivers/i2c/busses/i2c-qcom-geni.c
501
dma_buf = NULL;
drivers/i2c/busses/i2c-qcom-geni.c
505
gi2c->dma_buf = dma_buf;
drivers/i2c/busses/i2c-qcom-geni.c
508
if (!dma_buf) /* Get FIFO IRQ */
drivers/i2c/busses/i2c-qcom-geni.c
574
tx_multi_xfer->dma_buf[wr_idx],
drivers/i2c/busses/i2c-qcom-geni.c
579
kfree(tx_multi_xfer->dma_buf);
drivers/i2c/busses/i2c-qcom-geni.c
627
void *dma_buf = NULL;
drivers/i2c/busses/i2c-qcom-geni.c
651
dma_buf = i2c_get_dma_safe_msg_buf(&msgs[msg_idx], 1);
drivers/i2c/busses/i2c-qcom-geni.c
652
if (!dma_buf) {
drivers/i2c/busses/i2c-qcom-geni.c
662
addr = dma_map_single(gi2c->se.dev->parent, dma_buf,
drivers/i2c/busses/i2c-qcom-geni.c
665
i2c_put_dma_safe_msg_buf(dma_buf, &msgs[msg_idx], false);
drivers/i2c/busses/i2c-qcom-geni.c
729
gi2c_gpi_xfer->dma_buf[msg_idx] = dma_buf;
drivers/i2c/busses/i2c-qcom-geni.c
747
*buf = dma_buf;
drivers/i2c/busses/i2c-qcom-geni.c
754
if (dma_buf) {
drivers/i2c/busses/i2c-qcom-geni.c
757
i2c_put_dma_safe_msg_buf(dma_buf, &msgs[msg_idx], false);
drivers/i2c/busses/i2c-qcom-geni.c
814
tx_multi_xfer->dma_buf = kcalloc(num, sizeof(void *), GFP_KERNEL);
drivers/i2c/busses/i2c-qcom-geni.c
816
if (!tx_multi_xfer->dma_buf || !tx_multi_xfer->dma_addr) {
drivers/i2c/busses/i2c-qcom-geni.c
95
void **dma_buf;
drivers/i2c/busses/i2c-sh_mobile.c
140
u8 *dma_buf;
drivers/i2c/busses/i2c-sh_mobile.c
529
dma_addr = dma_map_single(chan->device->dev, pd->dma_buf, pd->msg->len, dir);
drivers/i2c/busses/i2c-sh_mobile.c
584
pd->dma_buf = i2c_get_dma_safe_msg_buf(pd->msg, 8);
drivers/i2c/busses/i2c-sh_mobile.c
585
if (pd->dma_buf)
drivers/i2c/busses/i2c-sh_mobile.c
687
i2c_put_dma_safe_msg_buf(pd->dma_buf, pd->msg,
drivers/i2c/busses/i2c-stm32.c
118
dma->dma_buf = dma_map_single(dev, buf, dma->dma_len,
drivers/i2c/busses/i2c-stm32.c
120
if (dma_mapping_error(dev, dma->dma_buf)) {
drivers/i2c/busses/i2c-stm32.c
125
txdesc = dmaengine_prep_slave_single(dma->chan_using, dma->dma_buf,
drivers/i2c/busses/i2c-stm32.c
150
dma_unmap_single(dev, dma->dma_buf, dma->dma_len,
drivers/i2c/busses/i2c-stm32.c
86
dma->dma_buf = 0;
drivers/i2c/busses/i2c-stm32.h
40
dma_addr_t dma_buf;
drivers/i2c/busses/i2c-stm32f7.c
740
dma_unmap_single(i2c_dev->dev, dma->dma_buf, dma->dma_len,
drivers/i2c/busses/i2c-stm32f7.c
879
u8 *dma_buf;
drivers/i2c/busses/i2c-stm32f7.c
928
dma_buf = i2c_get_dma_safe_msg_buf(msg, STM32F7_I2C_DMA_LEN_MIN);
drivers/i2c/busses/i2c-stm32f7.c
929
if (dma_buf) {
drivers/i2c/busses/i2c-stm32f7.c
930
f7_msg->buf = dma_buf;
drivers/i2c/busses/i2c-tegra.c
1447
u32 *dma_buf = i2c_dev->dma_buf;
drivers/i2c/busses/i2c-tegra.c
1457
*dma_buf++ = packet_header;
drivers/i2c/busses/i2c-tegra.c
1464
*dma_buf++ = packet_header;
drivers/i2c/busses/i2c-tegra.c
1492
*dma_buf++ = packet_header;
drivers/i2c/busses/i2c-tegra.c
1567
i2c_dev->dma_buf && !i2c_dev->atomic_mode;
drivers/i2c/busses/i2c-tegra.c
1593
memcpy(i2c_dev->dma_buf + I2C_PACKET_HEADER_SIZE,
drivers/i2c/busses/i2c-tegra.c
1636
memcpy(i2c_dev->msg_buf, i2c_dev->dma_buf, i2c_dev->msg_len);
drivers/i2c/busses/i2c-tegra.c
482
void *dma_buf;
drivers/i2c/busses/i2c-tegra.c
671
if (i2c_dev->dma_buf) {
drivers/i2c/busses/i2c-tegra.c
673
i2c_dev->dma_buf, i2c_dev->dma_phys);
drivers/i2c/busses/i2c-tegra.c
674
i2c_dev->dma_buf = NULL;
drivers/i2c/busses/i2c-tegra.c
686
u32 *dma_buf;
drivers/i2c/busses/i2c-tegra.c
723
dma_buf = dma_alloc_coherent(i2c_dev->dma_dev, i2c_dev->dma_buf_size,
drivers/i2c/busses/i2c-tegra.c
725
if (!dma_buf) {
drivers/i2c/busses/i2c-tegra.c
731
i2c_dev->dma_buf = dma_buf;
drivers/i2c/i2c-core-smbus.c
306
unsigned char *dma_buf;
drivers/i2c/i2c-core-smbus.c
308
dma_buf = kzalloc(I2C_SMBUS_BLOCK_MAX + (is_read ? 2 : 3), GFP_KERNEL);
drivers/i2c/i2c-core-smbus.c
309
if (!dma_buf)
drivers/i2c/i2c-core-smbus.c
312
msg->buf = dma_buf;
drivers/i3c/master.c
1969
void *dma_buf = buf;
drivers/i3c/master.c
1992
dma_buf = bounce;
drivers/i3c/master.c
1995
dma_xfer->addr = dma_map_single(dev, dma_buf, dma_xfer->map_len, dir);
drivers/iio/adc/nxp-sar-adc.c
140
struct circ_buf dma_buf;
drivers/iio/adc/nxp-sar-adc.c
597
struct circ_buf *dma_buf;
drivers/iio/adc/nxp-sar-adc.c
605
dma_buf = &info->dma_buf;
drivers/iio/adc/nxp-sar-adc.c
606
dma_samples = (u32 *)dma_buf->buf;
drivers/iio/adc/nxp-sar-adc.c
627
dma_buf->head = (NXP_SAR_ADC_DMA_BUFF_SZ - state.residue) /
drivers/iio/adc/nxp-sar-adc.c
632
dma_buf->head--;
drivers/iio/adc/nxp-sar-adc.c
637
dma_buf->head -= dma_buf->head % info->channels_used;
drivers/iio/adc/nxp-sar-adc.c
643
while (dma_buf->tail != dma_buf->head) {
drivers/iio/adc/nxp-sar-adc.c
644
idx = dma_buf->tail % info->channels_used;
drivers/iio/adc/nxp-sar-adc.c
645
info->buffer[idx] = dma_samples[dma_buf->tail];
drivers/iio/adc/nxp-sar-adc.c
646
dma_buf->tail = (dma_buf->tail + 1) % NXP_SAR_ADC_DMA_SAMPLE_CNT;
drivers/iio/adc/nxp-sar-adc.c
665
dma_buf->tail = dma_buf->head;
drivers/iio/adc/nxp-sar-adc.c
679
info->dma_buf.head = 0;
drivers/iio/adc/nxp-sar-adc.c
680
info->dma_buf.tail = 0;
drivers/iio/adc/nxp-sar-adc.c
877
info->dma_buf.buf = rx_buf;
drivers/iio/adc/stm32-dfsdm-adc.c
1005
adc->dma_buf,
drivers/iio/adc/stm32-dfsdm-adc.c
1492
adc->rx_buf, adc->dma_buf);
drivers/iio/adc/stm32-dfsdm-adc.c
1512
&adc->dma_buf, GFP_KERNEL);
drivers/iio/adc/stm32-dfsdm-adc.c
98
dma_addr_t dma_buf;
drivers/iio/industrialio-buffer.c
1588
struct dma_buf *dmabuf = attach->dmabuf;
drivers/iio/industrialio-buffer.c
1637
static int iio_dma_resv_lock(struct dma_buf *dmabuf, bool nonblock)
drivers/iio/industrialio-buffer.c
1659
struct dma_buf *dmabuf, bool nonblock)
drivers/iio/industrialio-buffer.c
1690
struct dma_buf *dmabuf;
drivers/iio/industrialio-buffer.c
1795
struct dma_buf *dmabuf;
drivers/iio/industrialio-buffer.c
1853
struct dma_buf *dmabuf;
drivers/infiniband/core/umem_dmabuf.c
123
struct dma_buf *dmabuf;
drivers/infiniband/core/umem_dmabuf.c
329
struct dma_buf *dmabuf = umem_dmabuf->attach->dmabuf;
drivers/infiniband/core/umem_dmabuf.c
337
struct dma_buf *dmabuf = umem_dmabuf->attach->dmabuf;
drivers/infiniband/core/umem_dmabuf.c
345
struct dma_buf *dmabuf = umem_dmabuf->attach->dmabuf;
drivers/infiniband/core/umem_dmabuf.c
355
struct dma_buf *dmabuf = umem_dmabuf->attach->dmabuf;
drivers/infiniband/core/uverbs.h
138
struct dma_buf *dmabuf;
drivers/infiniband/core/uverbs_std_types_dmabuf.c
15
static int uverbs_dmabuf_attach(struct dma_buf *dmabuf,
drivers/infiniband/core/uverbs_std_types_dmabuf.c
66
static void uverbs_dmabuf_release(struct dma_buf *dmabuf)
drivers/iommu/iommufd/io_pagetable.c
488
struct dma_buf *dmabuf;
drivers/iommu/iommufd/io_pagetable.h
273
struct dma_buf *dmabuf,
drivers/iommu/iommufd/pages.c
1485
struct dma_buf *dmabuf)
drivers/iommu/iommufd/pages.c
1528
struct dma_buf *dmabuf,
drivers/iommu/iommufd/pages.c
1660
struct dma_buf *dmabuf = pages->dmabuf.attach->dmabuf;
drivers/iommu/iommufd/selftest.c
1933
static int iommufd_test_dma_buf_attach(struct dma_buf *dmabuf,
drivers/iommu/iommufd/selftest.c
1939
static void iommufd_test_dma_buf_detach(struct dma_buf *dmabuf,
drivers/iommu/iommufd/selftest.c
1957
static void iommufd_test_dma_buf_release(struct dma_buf *dmabuf)
drivers/iommu/iommufd/selftest.c
1997
struct dma_buf *dmabuf;
drivers/iommu/iommufd/selftest.c
2038
struct dma_buf *dmabuf;
drivers/media/common/videobuf2/videobuf2-core.c
1392
struct dma_buf *dbuf = dma_buf_get(planes[plane].m.fd);
drivers/media/common/videobuf2/videobuf2-core.c
2427
struct dma_buf *dbuf;
drivers/media/common/videobuf2/videobuf2-dma-contig.c
318
static int vb2_dc_dmabuf_ops_attach(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-contig.c
356
static void vb2_dc_dmabuf_ops_detach(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-contig.c
421
static void vb2_dc_dmabuf_ops_release(struct dma_buf *dbuf)
drivers/media/common/videobuf2/videobuf2-dma-contig.c
428
vb2_dc_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-contig.c
435
vb2_dc_dmabuf_ops_end_cpu_access(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-contig.c
441
static int vb2_dc_dmabuf_ops_vmap(struct dma_buf *dbuf, struct iosys_map *map)
drivers/media/common/videobuf2/videobuf2-dma-contig.c
456
static int vb2_dc_dmabuf_ops_mmap(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-contig.c
499
static struct dma_buf *vb2_dc_get_dmabuf(struct vb2_buffer *vb,
drivers/media/common/videobuf2/videobuf2-dma-contig.c
504
struct dma_buf *dbuf;
drivers/media/common/videobuf2/videobuf2-dma-contig.c
771
struct dma_buf *dbuf, unsigned long size)
drivers/media/common/videobuf2/videobuf2-dma-sg.c
369
static int vb2_dma_sg_dmabuf_ops_attach(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-sg.c
407
static void vb2_dma_sg_dmabuf_ops_detach(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-sg.c
460
static void vb2_dma_sg_dmabuf_ops_release(struct dma_buf *dbuf)
drivers/media/common/videobuf2/videobuf2-dma-sg.c
467
vb2_dma_sg_dmabuf_ops_begin_cpu_access(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-sg.c
478
vb2_dma_sg_dmabuf_ops_end_cpu_access(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-sg.c
488
static int vb2_dma_sg_dmabuf_ops_vmap(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-sg.c
504
static int vb2_dma_sg_dmabuf_ops_mmap(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-dma-sg.c
522
static struct dma_buf *vb2_dma_sg_get_dmabuf(struct vb2_buffer *vb,
drivers/media/common/videobuf2/videobuf2-dma-sg.c
527
struct dma_buf *dbuf;
drivers/media/common/videobuf2/videobuf2-dma-sg.c
619
struct dma_buf *dbuf, unsigned long size)
drivers/media/common/videobuf2/videobuf2-vmalloc.c
212
static int vb2_vmalloc_dmabuf_ops_attach(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-vmalloc.c
251
static void vb2_vmalloc_dmabuf_ops_detach(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-vmalloc.c
304
static void vb2_vmalloc_dmabuf_ops_release(struct dma_buf *dbuf)
drivers/media/common/videobuf2/videobuf2-vmalloc.c
310
static int vb2_vmalloc_dmabuf_ops_vmap(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-vmalloc.c
32
struct dma_buf *dbuf;
drivers/media/common/videobuf2/videobuf2-vmalloc.c
320
static int vb2_vmalloc_dmabuf_ops_mmap(struct dma_buf *dbuf,
drivers/media/common/videobuf2/videobuf2-vmalloc.c
336
static struct dma_buf *vb2_vmalloc_get_dmabuf(struct vb2_buffer *vb,
drivers/media/common/videobuf2/videobuf2-vmalloc.c
341
struct dma_buf *dbuf;
drivers/media/common/videobuf2/videobuf2-vmalloc.c
404
struct dma_buf *dbuf,
drivers/media/pci/pluto2/pluto2.c
111
u8 dma_buf[TS_DMA_BYTES];
drivers/media/pci/pluto2/pluto2.c
231
pluto->dma_addr = dma_map_single(&pluto->pdev->dev, pluto->dma_buf,
drivers/media/pci/pluto2/pluto2.c
294
while (pluto->dma_buf[i] == 0x47)
drivers/media/pci/pluto2/pluto2.c
303
dvb_dmx_swfilter_packets(&pluto->demux, pluto->dma_buf, nbpackets);
drivers/media/pci/pluto2/pluto2.c
307
memset(pluto->dma_buf, 0, nbpackets * 188);
drivers/media/platform/amd/isp4/isp4_video.h
24
struct dma_buf *dbuf;
drivers/media/platform/nvidia/tegra-vde/dmabuf-cache.c
34
struct dma_buf *dmabuf = entry->a->dmabuf;
drivers/media/platform/nvidia/tegra-vde/dmabuf-cache.c
64
struct dma_buf *dmabuf,
drivers/media/platform/nvidia/tegra-vde/vde.h
196
struct dma_buf *dmabuf,
drivers/media/platform/nvidia/tegra-vde/vde.h
43
struct dma_buf;
drivers/media/platform/st/stm32/stm32-dcmi.c
476
dma_addr_t dma_buf;
drivers/media/platform/st/stm32/stm32-dcmi.c
524
dma_buf = vb2_dma_contig_plane_dma_addr(&buf->vb.vb2_buf, 0);
drivers/media/platform/st/stm32/stm32-dcmi.c
527
vb->index, &dma_buf, buf->size);
drivers/media/platform/st/stm32/stm32-dcmi.c
533
sg_dma_address(sg) = dma_buf;
drivers/media/platform/st/stm32/stm32-dcmi.c
534
dma_buf += bytes;
drivers/media/platform/st/stm32/stm32-dcmi.c
588
sg_dma_address(sg) = dma_buf;
drivers/media/platform/st/stm32/stm32-dcmi.c
590
dma_buf += bytes;
drivers/media/platform/ti/vpe/vpdma.h
200
#define ADB_ADDR(dma_buf, str, fld) ((dma_buf)->addr + offsetof(str, fld))
drivers/mfd/stm32-timers.c
146
dma_unmap_single(dev, dma_buf, len, DMA_FROM_DEVICE);
drivers/mfd/stm32-timers.c
65
dma_addr_t dma_buf;
drivers/mfd/stm32-timers.c
84
dma_buf = dma_map_single(dev, buf, len, DMA_FROM_DEVICE);
drivers/mfd/stm32-timers.c
85
if (dma_mapping_error(dev, dma_buf)) {
drivers/mfd/stm32-timers.c
98
desc = dmaengine_prep_slave_single(dma->chan, dma_buf, len,
drivers/misc/fastrpc.c
194
struct dma_buf *dmabuf;
drivers/misc/fastrpc.c
217
struct dma_buf *buf;
drivers/misc/fastrpc.c
394
struct dma_buf *buf;
drivers/misc/fastrpc.c
747
static void fastrpc_release(struct dma_buf *dmabuf)
drivers/misc/fastrpc.c
754
static int fastrpc_dma_buf_attach(struct dma_buf *dmabuf,
drivers/misc/fastrpc.c
785
static void fastrpc_dma_buf_detatch(struct dma_buf *dmabuf,
drivers/misc/fastrpc.c
798
static int fastrpc_vmap(struct dma_buf *dmabuf, struct iosys_map *map)
drivers/misc/fastrpc.c
807
static int fastrpc_mmap(struct dma_buf *dmabuf,
drivers/most/most_usb.c
142
__le16 *dma_buf;
drivers/most/most_usb.c
145
dma_buf = kzalloc_obj(*dma_buf);
drivers/most/most_usb.c
146
if (!dma_buf)
drivers/most/most_usb.c
152
reg, dma_buf, sizeof(*dma_buf),
drivers/most/most_usb.c
154
*buf = le16_to_cpu(*dma_buf);
drivers/most/most_usb.c
155
kfree(dma_buf);
drivers/mtd/nand/raw/cadence-nand-controller.c
1323
dma_addr_t dma_buf, dma_ctrl_dat = 0;
drivers/mtd/nand/raw/cadence-nand-controller.c
1335
dma_buf = dma_map_single(cdns_ctrl->dev, buf, buf_size, dir);
drivers/mtd/nand/raw/cadence-nand-controller.c
1336
if (dma_mapping_error(cdns_ctrl->dev, dma_buf)) {
drivers/mtd/nand/raw/cadence-nand-controller.c
1345
dma_unmap_single(cdns_ctrl->dev, dma_buf,
drivers/mtd/nand/raw/cadence-nand-controller.c
1353
dma_buf, dma_ctrl_dat, ctype);
drivers/mtd/nand/raw/cadence-nand-controller.c
1357
dma_unmap_single(cdns_ctrl->dev, dma_buf,
drivers/mtd/nand/raw/loongson-nand-controller.c
415
char *dma_buf = NULL;
drivers/mtd/nand/raw/loongson-nand-controller.c
427
dma_buf = dma_alloc_coherent(dev, op->len, &dma_addr, GFP_KERNEL);
drivers/mtd/nand/raw/loongson-nand-controller.c
428
if (!dma_buf)
drivers/mtd/nand/raw/loongson-nand-controller.c
461
if (dma_buf)
drivers/mtd/nand/raw/loongson-nand-controller.c
462
memcpy(buf, dma_buf + op->aligned_offset, op->orig_len);
drivers/mtd/nand/raw/loongson-nand-controller.c
464
if (dma_buf)
drivers/mtd/nand/raw/loongson-nand-controller.c
465
dma_free_coherent(dev, op->len, dma_buf, dma_addr);
drivers/mtd/nand/raw/lpc32xx_mlc.c
201
uint8_t *dma_buf;
drivers/mtd/nand/raw/lpc32xx_mlc.c
451
uint8_t *dma_buf;
drivers/mtd/nand/raw/lpc32xx_mlc.c
455
dma_buf = buf;
drivers/mtd/nand/raw/lpc32xx_mlc.c
458
dma_buf = host->dma_buf;
drivers/mtd/nand/raw/lpc32xx_mlc.c
484
res = lpc32xx_xmit_dma(mtd, dma_buf + i * 512, 512,
drivers/mtd/nand/raw/lpc32xx_mlc.c
503
memcpy(buf, dma_buf, mtd->writesize);
drivers/mtd/nand/raw/lpc32xx_mlc.c
515
uint8_t *dma_buf = (uint8_t *)buf;
drivers/mtd/nand/raw/lpc32xx_mlc.c
520
dma_buf = host->dma_buf;
drivers/mtd/nand/raw/lpc32xx_mlc.c
521
memcpy(dma_buf, buf, mtd->writesize);
drivers/mtd/nand/raw/lpc32xx_mlc.c
532
res = lpc32xx_xmit_dma(mtd, dma_buf + i * 512, 512,
drivers/mtd/nand/raw/lpc32xx_mlc.c
664
host->dma_buf = devm_kzalloc(dev, mtd->writesize, GFP_KERNEL);
drivers/mtd/nand/raw/lpc32xx_mlc.c
665
if (!host->dma_buf)
drivers/mtd/nand/raw/lpc32xx_slc.c
503
uint8_t *dma_buf;
drivers/mtd/nand/raw/lpc32xx_slc.c
507
dma_buf = buf;
drivers/mtd/nand/raw/lpc32xx_slc.c
510
dma_buf = host->data_buf;
drivers/mtd/nand/raw/lpc32xx_slc.c
540
dma_buf + i * chip->ecc.size,
drivers/mtd/nand/raw/marvell_nand.c
1079
memcpy(data_buf, nfc->dma_buf, lt->data_bytes);
drivers/mtd/nand/raw/marvell_nand.c
1080
memcpy(oob_buf, nfc->dma_buf + lt->data_bytes, oob_bytes);
drivers/mtd/nand/raw/marvell_nand.c
1187
memcpy(nfc->dma_buf, data_buf, lt->data_bytes);
drivers/mtd/nand/raw/marvell_nand.c
1188
memcpy(nfc->dma_buf + lt->data_bytes, oob_buf, oob_bytes);
drivers/mtd/nand/raw/marvell_nand.c
2864
nfc->dma_buf = kmalloc(MAX_CHUNK_SIZE, GFP_KERNEL | GFP_DMA);
drivers/mtd/nand/raw/marvell_nand.c
2865
if (!nfc->dma_buf) {
drivers/mtd/nand/raw/marvell_nand.c
424
u8 *dma_buf;
drivers/mtd/nand/raw/marvell_nand.c
878
sg_init_one(&sg, nfc->dma_buf, dma_len);
drivers/mtd/spi-nor/controllers/hisi-sfc.c
230
dma_addr_t dma_buf, size_t len, u8 op_type)
drivers/mtd/spi-nor/controllers/hisi-sfc.c
245
writel(dma_buf, host->regbase + FMC_DMA_SADDR_D0);
drivers/net/can/esd/esd_402_pci-core.c
281
card->dma_buf = dma_alloc_coherent(&pdev->dev, PCI402_DMA_SIZE,
drivers/net/can/esd/esd_402_pci-core.c
283
if (!card->dma_buf)
drivers/net/can/esd/esd_402_pci-core.c
286
acc_init_bm_ptr(&card->ov, card->cores, card->dma_buf);
drivers/net/can/esd/esd_402_pci-core.c
322
dma_free_coherent(&pdev->dev, PCI402_DMA_SIZE, card->dma_buf,
drivers/net/can/esd/esd_402_pci-core.c
324
card->dma_buf = NULL;
drivers/net/can/esd/esd_402_pci-core.c
46
void *dma_buf;
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
1552
int dma_buf)
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
1554
__le32 *buffer = pcie->dma_data[dma_buf];
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
1635
static int kvaser_pciefd_read_buffer(struct kvaser_pciefd *pcie, int dma_buf)
drivers/net/can/kvaser_pciefd/kvaser_pciefd_core.c
1642
res = kvaser_pciefd_read_packet(pcie, &pos, dma_buf);
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
125
memcpy(info->dest_buf + off, dma_buf, copylen);
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
72
void *dma_buf, *resp;
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
75
dma_buf = hwrm_req_dma_slice(bp, msg, info->dma_len, &dma_handle);
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
76
if (!dma_buf) {
drivers/net/ethernet/intel/ice/ice_controlq.c
1064
dma_buf = &cq->sq.r.sq_bi[cq->sq.next_to_use];
drivers/net/ethernet/intel/ice/ice_controlq.c
1066
memcpy(dma_buf->va, buf, buf_size);
drivers/net/ethernet/intel/ice/ice_controlq.c
1073
cpu_to_le32(upper_32_bits(dma_buf->pa));
drivers/net/ethernet/intel/ice/ice_controlq.c
1075
cpu_to_le32(lower_32_bits(dma_buf->pa));
drivers/net/ethernet/intel/ice/ice_controlq.c
1103
memcpy(buf, dma_buf->va, copy_size);
drivers/net/ethernet/intel/ice/ice_controlq.c
999
struct ice_dma_mem *dma_buf = NULL;
drivers/net/ethernet/micrel/ksz884x.c
4062
static void free_dma_buf(struct dev_info *adapter, struct ksz_dma_buf *dma_buf,
drivers/net/ethernet/micrel/ksz884x.c
4065
dma_unmap_single(&adapter->pdev->dev, dma_buf->dma, dma_buf->len,
drivers/net/ethernet/micrel/ksz884x.c
4067
dev_kfree_skb(dma_buf->skb);
drivers/net/ethernet/micrel/ksz884x.c
4068
dma_buf->skb = NULL;
drivers/net/ethernet/micrel/ksz884x.c
4069
dma_buf->dma = 0;
drivers/net/ethernet/micrel/ksz884x.c
4082
struct ksz_dma_buf *dma_buf;
drivers/net/ethernet/micrel/ksz884x.c
4089
dma_buf = DMA_BUFFER(desc);
drivers/net/ethernet/micrel/ksz884x.c
4090
if (dma_buf->skb && dma_buf->len != adapter->mtu)
drivers/net/ethernet/micrel/ksz884x.c
4091
free_dma_buf(adapter, dma_buf, DMA_FROM_DEVICE);
drivers/net/ethernet/micrel/ksz884x.c
4092
dma_buf->len = adapter->mtu;
drivers/net/ethernet/micrel/ksz884x.c
4093
if (!dma_buf->skb)
drivers/net/ethernet/micrel/ksz884x.c
4094
dma_buf->skb = alloc_skb(dma_buf->len, GFP_ATOMIC);
drivers/net/ethernet/micrel/ksz884x.c
4095
if (dma_buf->skb && !dma_buf->dma)
drivers/net/ethernet/micrel/ksz884x.c
4096
dma_buf->dma = dma_map_single(&adapter->pdev->dev,
drivers/net/ethernet/micrel/ksz884x.c
4097
skb_tail_pointer(dma_buf->skb),
drivers/net/ethernet/micrel/ksz884x.c
4098
dma_buf->len,
drivers/net/ethernet/micrel/ksz884x.c
4102
set_rx_buf(desc, dma_buf->dma);
drivers/net/ethernet/micrel/ksz884x.c
4103
set_rx_len(desc, dma_buf->len);
drivers/net/ethernet/micrel/ksz884x.c
4204
struct ksz_dma_buf *dma_buf;
drivers/net/ethernet/micrel/ksz884x.c
4208
dma_buf = DMA_BUFFER(desc);
drivers/net/ethernet/micrel/ksz884x.c
4209
if (dma_buf->skb)
drivers/net/ethernet/micrel/ksz884x.c
4210
free_dma_buf(adapter, dma_buf, direction);
drivers/net/ethernet/micrel/ksz884x.c
4264
struct ksz_dma_buf *dma_buf;
drivers/net/ethernet/micrel/ksz884x.c
4282
dma_buf = DMA_BUFFER(desc);
drivers/net/ethernet/micrel/ksz884x.c
4287
dma_buf->len = skb_headlen(skb);
drivers/net/ethernet/micrel/ksz884x.c
4289
dma_buf->dma = dma_map_single(&hw_priv->pdev->dev, skb->data,
drivers/net/ethernet/micrel/ksz884x.c
4290
dma_buf->len, DMA_TO_DEVICE);
drivers/net/ethernet/micrel/ksz884x.c
4291
set_tx_buf(desc, dma_buf->dma);
drivers/net/ethernet/micrel/ksz884x.c
4292
set_tx_len(desc, dma_buf->len);
drivers/net/ethernet/micrel/ksz884x.c
4304
dma_buf = DMA_BUFFER(desc);
drivers/net/ethernet/micrel/ksz884x.c
4305
dma_buf->len = skb_frag_size(this_frag);
drivers/net/ethernet/micrel/ksz884x.c
4307
dma_buf->dma = dma_map_single(&hw_priv->pdev->dev,
drivers/net/ethernet/micrel/ksz884x.c
4309
dma_buf->len,
drivers/net/ethernet/micrel/ksz884x.c
4311
set_tx_buf(desc, dma_buf->dma);
drivers/net/ethernet/micrel/ksz884x.c
4312
set_tx_len(desc, dma_buf->len);
drivers/net/ethernet/micrel/ksz884x.c
4328
dma_buf->len = len;
drivers/net/ethernet/micrel/ksz884x.c
4330
dma_buf->dma = dma_map_single(&hw_priv->pdev->dev, skb->data,
drivers/net/ethernet/micrel/ksz884x.c
4331
dma_buf->len, DMA_TO_DEVICE);
drivers/net/ethernet/micrel/ksz884x.c
4332
set_tx_buf(desc, dma_buf->dma);
drivers/net/ethernet/micrel/ksz884x.c
4333
set_tx_len(desc, dma_buf->len);
drivers/net/ethernet/micrel/ksz884x.c
4345
dma_buf->skb = skb;
drivers/net/ethernet/micrel/ksz884x.c
4368
struct ksz_dma_buf *dma_buf;
drivers/net/ethernet/micrel/ksz884x.c
4385
dma_buf = DMA_BUFFER(desc);
drivers/net/ethernet/micrel/ksz884x.c
4386
dma_unmap_single(&hw_priv->pdev->dev, dma_buf->dma,
drivers/net/ethernet/micrel/ksz884x.c
4387
dma_buf->len, DMA_TO_DEVICE);
drivers/net/ethernet/micrel/ksz884x.c
4390
if (dma_buf->skb) {
drivers/net/ethernet/micrel/ksz884x.c
4391
dev = dma_buf->skb->dev;
drivers/net/ethernet/micrel/ksz884x.c
4394
dev_kfree_skb_irq(dma_buf->skb);
drivers/net/ethernet/micrel/ksz884x.c
4395
dma_buf->skb = NULL;
drivers/net/ethernet/micrel/ksz884x.c
4613
struct ksz_dma_buf *dma_buf;
drivers/net/ethernet/micrel/ksz884x.c
4619
dma_buf = DMA_BUFFER(desc);
drivers/net/ethernet/micrel/ksz884x.c
4620
dma_sync_single_for_cpu(&hw_priv->pdev->dev, dma_buf->dma,
drivers/net/ethernet/micrel/ksz884x.c
4637
skb_put_data(skb, dma_buf->skb->data, packet_len);
drivers/net/ethernet/micrel/ksz884x.c
914
struct ksz_dma_buf dma_buf;
drivers/net/ethernet/micrel/ksz884x.c
917
#define DMA_BUFFER(desc) ((struct ksz_dma_buf *)(&(desc)->dma_buf))
drivers/net/ethernet/microsoft/mana/hw_channel.c
465
struct hwc_dma_buf *dma_buf;
drivers/net/ethernet/microsoft/mana/hw_channel.c
473
dma_buf = kzalloc_flex(*dma_buf, reqs, q_depth);
drivers/net/ethernet/microsoft/mana/hw_channel.c
474
if (!dma_buf)
drivers/net/ethernet/microsoft/mana/hw_channel.c
477
dma_buf->num_reqs = q_depth;
drivers/net/ethernet/microsoft/mana/hw_channel.c
481
gmi = &dma_buf->mem_info;
drivers/net/ethernet/microsoft/mana/hw_channel.c
489
virt_addr = dma_buf->mem_info.virt_addr;
drivers/net/ethernet/microsoft/mana/hw_channel.c
490
base_pa = (u8 *)dma_buf->mem_info.dma_handle;
drivers/net/ethernet/microsoft/mana/hw_channel.c
493
hwc_wr = &dma_buf->reqs[i];
drivers/net/ethernet/microsoft/mana/hw_channel.c
501
*dma_buf_ptr = dma_buf;
drivers/net/ethernet/microsoft/mana/hw_channel.c
504
kfree(dma_buf);
drivers/net/ethernet/microsoft/mana/hw_channel.c
509
struct hwc_dma_buf *dma_buf)
drivers/net/ethernet/microsoft/mana/hw_channel.c
511
if (!dma_buf)
drivers/net/ethernet/microsoft/mana/hw_channel.c
514
mana_gd_free_memory(&dma_buf->mem_info);
drivers/net/ethernet/microsoft/mana/hw_channel.c
516
kfree(dma_buf);
drivers/net/ethernet/sfc/falcon/nic.c
479
u64 *stats, const void *dma_buf, bool accumulate)
drivers/net/ethernet/sfc/falcon/nic.c
485
const void *addr = dma_buf + desc[index].offset;
drivers/net/ethernet/sfc/falcon/nic.h
503
const void *dma_buf, bool accumulate);
drivers/net/ethernet/sfc/mcdi.h
93
struct efx_buffer dma_buf;
drivers/net/ethernet/sfc/mcdi_mon.c
151
hwmon->dma_buf.dma_addr);
drivers/net/ethernet/sfc/mcdi_mon.c
152
MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len);
drivers/net/ethernet/sfc/mcdi_mon.c
179
*entry = ((efx_dword_t *)hwmon->dma_buf.addr)[index];
drivers/net/ethernet/sfc/mcdi_mon.c
339
efx, &hwmon->dma_buf,
drivers/net/ethernet/sfc/mcdi_mon.c
527
efx_nic_free_buffer(efx, &hwmon->dma_buf);
drivers/net/ethernet/sfc/nic.c
377
u64 *stats, const void *dma_buf, bool accumulate)
drivers/net/ethernet/sfc/nic.c
383
const void *addr = dma_buf + desc[index].offset;
drivers/net/ethernet/sfc/nic_common.h
248
const void *dma_buf, bool accumulate);
drivers/net/ethernet/sfc/siena/mcdi.h
93
struct efx_buffer dma_buf;
drivers/net/ethernet/sfc/siena/mcdi_mon.c
151
hwmon->dma_buf.dma_addr);
drivers/net/ethernet/sfc/siena/mcdi_mon.c
152
MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len);
drivers/net/ethernet/sfc/siena/mcdi_mon.c
179
*entry = ((efx_dword_t *)hwmon->dma_buf.addr)[index];
drivers/net/ethernet/sfc/siena/mcdi_mon.c
339
rc = efx_siena_alloc_buffer(efx, &hwmon->dma_buf,
drivers/net/ethernet/sfc/siena/mcdi_mon.c
527
efx_siena_free_buffer(efx, &hwmon->dma_buf);
drivers/net/ethernet/sfc/siena/nic.c
488
u64 *stats, const void *dma_buf, bool accumulate)
drivers/net/ethernet/sfc/siena/nic.c
494
const void *addr = dma_buf + desc[index].offset;
drivers/net/ethernet/sfc/siena/nic_common.h
247
const void *dma_buf, bool accumulate);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1100
dma_addr_t dma_desc, dma_buf;
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1112
dma_buf = dma_map_single(tx_chn->dma_dev, xdpf->data,
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1114
if (unlikely(dma_mapping_error(tx_chn->dma_dev, dma_buf))) {
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1127
k3_udma_glue_tx_dma_to_cppi5_addr(tx_chn->tx_chn, &dma_buf);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1128
cppi5_hdesc_attach_buf(host_desc, dma_buf, pkt_len, dma_buf, pkt_len);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1159
k3_udma_glue_tx_cppi5_to_dma_addr(tx_chn->tx_chn, &dma_buf);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
1160
dma_unmap_single(tx_chn->dma_dev, dma_buf, pkt_len, DMA_TO_DEVICE);
drivers/net/ethernet/ti/icssg/icssg_common.c
103
dma_addr_t dma_desc, dma_buf;
drivers/net/ethernet/ti/icssg/icssg_common.c
126
dma_buf = xsk_buff_raw_get_dma(pool, xdp_desc.addr);
drivers/net/ethernet/ti/icssg/icssg_common.c
128
xsk_buff_raw_dma_sync_for_device(pool, dma_buf, pkt_len);
drivers/net/ethernet/ti/icssg/icssg_common.c
152
k3_udma_glue_tx_dma_to_cppi5_addr(tx_chn->tx_chn, &dma_buf);
drivers/net/ethernet/ti/icssg/icssg_common.c
153
cppi5_hdesc_attach_buf(host_desc, dma_buf, pkt_len, dma_buf,
drivers/net/ethernet/ti/netcp_core.c
581
dma_addr_t dma_desc, dma_buf;
drivers/net/ethernet/ti/netcp_core.c
594
get_pkt_info(&dma_buf, &tmp, &dma_desc, ndesc);
drivers/net/ethernet/ti/netcp_core.c
600
dma_unmap_page(netcp->dev, dma_buf, PAGE_SIZE, DMA_FROM_DEVICE);
drivers/net/ethernet/ti/netcp_core.c
977
dma_addr_t dma_desc, dma_buf;
drivers/net/ethernet/ti/netcp_core.c
981
get_pkt_info(&dma_buf, &buf_len, &dma_desc, ndesc);
drivers/net/ethernet/ti/netcp_core.c
983
if (dma_buf && buf_len)
drivers/net/ethernet/ti/netcp_core.c
984
dma_unmap_single(netcp->dev, dma_buf, buf_len,
drivers/net/ethernet/ti/netcp_core.c
988
&dma_buf, buf_len);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
551
void *dma_buf;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
556
dma_buf = msgbuf->flowrings[flowid]->buf_addr;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
557
dma_free_coherent(msgbuf->drvr->bus_if->dev, dma_sz, dma_buf,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
591
void *dma_buf;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
598
dma_buf = dma_alloc_coherent(msgbuf->drvr->bus_if->dev, dma_sz,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
601
if (!dma_buf) {
drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c
609
BRCMF_H2D_TXFLOWRING_ITEMSIZE, dma_buf);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1134
void *dma_buf;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1147
dma_buf = brcmf_pcie_init_dmabuffer_for_device(devinfo, size,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1150
if (!dma_buf)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1160
dma_free_coherent(&devinfo->pdev->dev, size, dma_buf,
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1165
ring_itemsize_array[ring_id], dma_buf);
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1182
void *dma_buf;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1188
dma_buf = ring->commonring.buf_addr;
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1189
if (dma_buf) {
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c
1191
dma_free_coherent(dev, size, dma_buf, ring->dma_handle);
drivers/net/wireless/mediatek/mt7601u/mcu.c
284
const struct mt7601u_dma_buf *dma_buf,
drivers/net/wireless/mediatek/mt7601u/mcu.c
288
struct mt7601u_dma_buf buf = *dma_buf; /* we need to fake length */
drivers/net/wireless/mediatek/mt7601u/mcu.c
336
mt7601u_dma_fw(struct mt7601u_dev *dev, struct mt7601u_dma_buf *dma_buf,
drivers/net/wireless/mediatek/mt7601u/mcu.c
345
ret = __mt7601u_dma_fw(dev, dma_buf, data, n, dst_addr);
drivers/net/wireless/mediatek/mt7601u/mcu.c
352
return mt7601u_dma_fw(dev, dma_buf, data + n, len - n, dst_addr + n);
drivers/net/wireless/mediatek/mt7601u/mcu.c
358
struct mt7601u_dma_buf dma_buf;
drivers/net/wireless/mediatek/mt7601u/mcu.c
366
if (mt7601u_usb_alloc_buf(dev, MCU_FW_URB_SIZE, &dma_buf)) {
drivers/net/wireless/mediatek/mt7601u/mcu.c
374
ret = mt7601u_dma_fw(dev, &dma_buf, fw->ilm, ilm_len, sizeof(fw->ivb));
drivers/net/wireless/mediatek/mt7601u/mcu.c
380
ret = mt7601u_dma_fw(dev, &dma_buf, fw->ilm + ilm_len,
drivers/net/wireless/mediatek/mt7601u/mcu.c
401
mt7601u_usb_free_buf(dev, &dma_buf);
drivers/nvmem/zynqmp_nvmem.c
104
&dma_buf, GFP_KERNEL);
drivers/nvmem/zynqmp_nvmem.c
117
efuse->src = dma_buf;
drivers/nvmem/zynqmp_nvmem.c
138
data, dma_buf);
drivers/nvmem/zynqmp_nvmem.c
66
dma_addr_t dma_buf;
drivers/parport/parport_pc.c
2082
priv->dma_buf = NULL;
drivers/parport/parport_pc.c
2220
priv->dma_buf =
drivers/parport/parport_pc.c
2225
if (!priv->dma_buf) {
drivers/parport/parport_pc.c
2308
if (priv->dma_buf)
drivers/parport/parport_pc.c
2310
priv->dma_buf,
drivers/parport/parport_pc.c
629
memcpy(priv->dma_buf, buf, count);
drivers/scsi/aacraid/commsup.c
2158
char *dma_buf;
drivers/scsi/aacraid/commsup.c
2167
dma_buf = dma_alloc_coherent(&dev->pdev->dev, datasize, &addr,
drivers/scsi/aacraid/commsup.c
2169
if (!dma_buf)
drivers/scsi/aacraid/commsup.c
2192
memcpy(dma_buf, (char *)wellness_str, datasize);
drivers/scsi/aacraid/commsup.c
2204
dma_free_coherent(&dev->pdev->dev, datasize, dma_buf, addr);
drivers/scsi/csiostor/csio_lnode.c
1708
wr->rsp_dmalen = cpu_to_be32(io_req->dma_buf.len);
drivers/scsi/csiostor/csio_lnode.c
1709
wr->rsp_dmaaddr = cpu_to_be64(io_req->dma_buf.paddr);
drivers/scsi/csiostor/csio_lnode.c
1837
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_lnode.c
1848
dma_buf = &ln->mgmt_req->dma_buf;
drivers/scsi/csiostor/csio_lnode.c
1849
dma_buf->len = 2048;
drivers/scsi/csiostor/csio_lnode.c
1850
dma_buf->vaddr = dma_alloc_coherent(&hw->pdev->dev, dma_buf->len,
drivers/scsi/csiostor/csio_lnode.c
1851
&dma_buf->paddr, GFP_KERNEL);
drivers/scsi/csiostor/csio_lnode.c
1852
if (!dma_buf->vaddr) {
drivers/scsi/csiostor/csio_lnode.c
1870
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_lnode.c
1876
dma_buf = &ln->mgmt_req->dma_buf;
drivers/scsi/csiostor/csio_lnode.c
1877
if (dma_buf->vaddr)
drivers/scsi/csiostor/csio_lnode.c
1878
dma_free_coherent(&hw->pdev->dev, dma_buf->len, dma_buf->vaddr,
drivers/scsi/csiostor/csio_lnode.c
1879
dma_buf->paddr);
drivers/scsi/csiostor/csio_lnode.c
278
cmd = fdmi_req->dma_buf.vaddr;
drivers/scsi/csiostor/csio_lnode.c
312
cmd = fdmi_req->dma_buf.vaddr;
drivers/scsi/csiostor/csio_lnode.c
391
FCOE_CT, &fdmi_req->dma_buf, len)) {
drivers/scsi/csiostor/csio_lnode.c
428
cmd = fdmi_req->dma_buf.vaddr;
drivers/scsi/csiostor/csio_lnode.c
498
FCOE_CT, &fdmi_req->dma_buf, len)) {
drivers/scsi/csiostor/csio_lnode.c
529
cmd = fdmi_req->dma_buf.vaddr;
drivers/scsi/csiostor/csio_lnode.c
550
FCOE_CT, &fdmi_req->dma_buf, len)) {
drivers/scsi/csiostor/csio_lnode.c
588
cmd = fdmi_req->dma_buf.vaddr;
drivers/scsi/csiostor/csio_lnode.c
599
FCOE_CT, &fdmi_req->dma_buf, len)) {
drivers/scsi/csiostor/csio_scsi.c
1504
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
1508
dma_buf = (struct csio_dma_buf *)csio_list_next(&req->gen_list);
drivers/scsi/csiostor/csio_scsi.c
1511
while (bytes_left > 0 && sg && dma_buf) {
drivers/scsi/csiostor/csio_scsi.c
1512
if (buf_off >= dma_buf->len) {
drivers/scsi/csiostor/csio_scsi.c
1514
dma_buf = (struct csio_dma_buf *)
drivers/scsi/csiostor/csio_scsi.c
1515
csio_list_next(dma_buf);
drivers/scsi/csiostor/csio_scsi.c
1525
buf_addr = dma_buf->vaddr + buf_off;
drivers/scsi/csiostor/csio_scsi.c
1527
bytes_copy = min((dma_buf->len - buf_off),
drivers/scsi/csiostor/csio_scsi.c
1568
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
1585
dma_buf = &req->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
1586
fcp_resp = (struct fcp_resp_with_ext *)dma_buf->vaddr;
drivers/scsi/csiostor/csio_scsi.c
2020
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
2043
dma_buf = &req->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
2044
fcp_resp = (struct fcp_resp_with_ext *)dma_buf->vaddr;
drivers/scsi/csiostor/csio_scsi.c
206
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
222
dma_buf = &req->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
225
wr->rsp_dmalen = cpu_to_be32(dma_buf->len);
drivers/scsi/csiostor/csio_scsi.c
226
wr->rsp_dmaaddr = cpu_to_be64(dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
2423
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
2449
dma_buf = &ioreq->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
2450
dma_buf->vaddr = dma_pool_alloc(hw->scsi_dma_pool, GFP_KERNEL,
drivers/scsi/csiostor/csio_scsi.c
2451
&dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
2452
if (!dma_buf->vaddr) {
drivers/scsi/csiostor/csio_scsi.c
2460
dma_buf->len = scm->proto_rsp_len;
drivers/scsi/csiostor/csio_scsi.c
2489
dma_buf = &ioreq->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
2490
dma_pool_free(hw->scsi_dma_pool, dma_buf->vaddr,
drivers/scsi/csiostor/csio_scsi.c
2491
dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
2510
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
2520
dma_buf = &ioreq->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
2521
dma_pool_free(scm->hw->scsi_dma_pool, dma_buf->vaddr,
drivers/scsi/csiostor/csio_scsi.c
2522
dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
298
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
329
dma_buf = (struct csio_dma_buf *)tmp;
drivers/scsi/csiostor/csio_scsi.c
331
sgl->addr0 = cpu_to_be64(dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
333
min(xfer_len, dma_buf->len));
drivers/scsi/csiostor/csio_scsi.c
336
sge_pair->addr[1] = cpu_to_be64(dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
338
min(xfer_len, dma_buf->len));
drivers/scsi/csiostor/csio_scsi.c
341
sge_pair->addr[0] = cpu_to_be64(dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
343
min(xfer_len, dma_buf->len));
drivers/scsi/csiostor/csio_scsi.c
345
xfer_len -= min(xfer_len, dma_buf->len);
drivers/scsi/csiostor/csio_scsi.c
366
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
381
dma_buf = &req->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
384
wr->rsp_dmalen = cpu_to_be32(dma_buf->len);
drivers/scsi/csiostor/csio_scsi.c
385
wr->rsp_dmaaddr = cpu_to_be64(dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
419
struct csio_dma_buf *dma_buf;
drivers/scsi/csiostor/csio_scsi.c
434
dma_buf = &req->dma_buf;
drivers/scsi/csiostor/csio_scsi.c
437
wr->rsp_dmalen = cpu_to_be32(dma_buf->len);
drivers/scsi/csiostor/csio_scsi.c
438
wr->rsp_dmaaddr = cpu_to_be64(dma_buf->paddr);
drivers/scsi/csiostor/csio_scsi.c
563
struct csio_dma_buf *dma_buf = NULL;
drivers/scsi/csiostor/csio_scsi.c
613
dma_buf = csio_get_scsi_ddp(scsim);
drivers/scsi/csiostor/csio_scsi.c
614
if (dma_buf == NULL || i > scsim->max_sge) {
drivers/scsi/csiostor/csio_scsi.c
618
alloc_len += dma_buf->len;
drivers/scsi/csiostor/csio_scsi.c
620
list_add_tail(&dma_buf->list, &req->gen_list);
drivers/scsi/csiostor/csio_wr.h
248
struct csio_dma_buf dma_buf; /* Req/resp DMA buffers */
drivers/scsi/lpfc/lpfc_mem.c
562
struct hbq_dmabuf *dma_buf;
drivers/scsi/lpfc/lpfc_mem.c
564
dma_buf = kzalloc_obj(struct hbq_dmabuf);
drivers/scsi/lpfc/lpfc_mem.c
565
if (!dma_buf)
drivers/scsi/lpfc/lpfc_mem.c
568
dma_buf->hbuf.virt = dma_pool_alloc(phba->lpfc_hrb_pool, GFP_KERNEL,
drivers/scsi/lpfc/lpfc_mem.c
569
&dma_buf->hbuf.phys);
drivers/scsi/lpfc/lpfc_mem.c
570
if (!dma_buf->hbuf.virt) {
drivers/scsi/lpfc/lpfc_mem.c
571
kfree(dma_buf);
drivers/scsi/lpfc/lpfc_mem.c
574
dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL,
drivers/scsi/lpfc/lpfc_mem.c
575
&dma_buf->dbuf.phys);
drivers/scsi/lpfc/lpfc_mem.c
576
if (!dma_buf->dbuf.virt) {
drivers/scsi/lpfc/lpfc_mem.c
577
dma_pool_free(phba->lpfc_hrb_pool, dma_buf->hbuf.virt,
drivers/scsi/lpfc/lpfc_mem.c
578
dma_buf->hbuf.phys);
drivers/scsi/lpfc/lpfc_mem.c
579
kfree(dma_buf);
drivers/scsi/lpfc/lpfc_mem.c
582
dma_buf->total_size = LPFC_DATA_BUF_SIZE;
drivers/scsi/lpfc/lpfc_mem.c
583
return dma_buf;
drivers/scsi/lpfc/lpfc_mem.c
620
struct rqb_dmabuf *dma_buf;
drivers/scsi/lpfc/lpfc_mem.c
622
dma_buf = kzalloc_obj(*dma_buf);
drivers/scsi/lpfc/lpfc_mem.c
623
if (!dma_buf)
drivers/scsi/lpfc/lpfc_mem.c
626
dma_buf->hbuf.virt = dma_pool_alloc(phba->lpfc_hrb_pool, GFP_KERNEL,
drivers/scsi/lpfc/lpfc_mem.c
627
&dma_buf->hbuf.phys);
drivers/scsi/lpfc/lpfc_mem.c
628
if (!dma_buf->hbuf.virt) {
drivers/scsi/lpfc/lpfc_mem.c
629
kfree(dma_buf);
drivers/scsi/lpfc/lpfc_mem.c
632
dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_nvmet_drb_pool,
drivers/scsi/lpfc/lpfc_mem.c
633
GFP_KERNEL, &dma_buf->dbuf.phys);
drivers/scsi/lpfc/lpfc_mem.c
634
if (!dma_buf->dbuf.virt) {
drivers/scsi/lpfc/lpfc_mem.c
635
dma_pool_free(phba->lpfc_hrb_pool, dma_buf->hbuf.virt,
drivers/scsi/lpfc/lpfc_mem.c
636
dma_buf->hbuf.phys);
drivers/scsi/lpfc/lpfc_mem.c
637
kfree(dma_buf);
drivers/scsi/lpfc/lpfc_mem.c
640
dma_buf->total_size = LPFC_NVMET_DATA_BUF_SIZE;
drivers/scsi/lpfc/lpfc_mem.c
641
return dma_buf;
drivers/scsi/lpfc/lpfc_sli.c
14640
struct hbq_dmabuf *dma_buf;
drivers/scsi/lpfc/lpfc_sli.c
14664
dma_buf = lpfc_sli_hbqbuf_get(&phba->hbqs[0].hbq_buffer_list);
drivers/scsi/lpfc/lpfc_sli.c
14665
if (!dma_buf) {
drivers/scsi/lpfc/lpfc_sli.c
14672
memcpy(&dma_buf->cq_event.cqe.rcqe_cmpl, rcqe, sizeof(*rcqe));
drivers/scsi/lpfc/lpfc_sli.c
14674
fc_hdr = (struct fc_frame_header *)dma_buf->hbuf.virt;
drivers/scsi/lpfc/lpfc_sli.c
14682
dma_buf);
drivers/scsi/lpfc/lpfc_sli.c
14684
lpfc_in_buf_free(phba, &dma_buf->dbuf);
drivers/scsi/lpfc/lpfc_sli.c
14689
list_add_tail(&dma_buf->cq_event.list,
drivers/scsi/lpfc/lpfc_sli.c
14741
dma_buf = lpfc_sli_hbqbuf_get(&phba->hbqs[0].hbq_buffer_list);
drivers/scsi/lpfc/lpfc_sli.c
14742
if (!dma_buf) {
drivers/scsi/lpfc/lpfc_sli.c
14750
lpfc_in_buf_free(phba, &dma_buf->dbuf);
drivers/scsi/lpfc/lpfc_sli.c
15188
struct rqb_dmabuf *dma_buf;
drivers/scsi/lpfc/lpfc_sli.c
15225
dma_buf = lpfc_sli_rqbuf_get(phba, hrq);
drivers/scsi/lpfc/lpfc_sli.c
15226
if (!dma_buf) {
drivers/scsi/lpfc/lpfc_sli.c
15234
fc_hdr = (struct fc_frame_header *)dma_buf->hbuf.virt;
drivers/scsi/lpfc/lpfc_sli.c
15247
dma_buf->bytes_recv = bf_get(lpfc_rcqe_length, rcqe);
drivers/scsi/lpfc/lpfc_sli.c
15249
phba, idx, dma_buf, cq->isr_timestamp,
drivers/scsi/lpfc/lpfc_sli.c
15254
lpfc_rq_buf_free(phba, &dma_buf->hbuf);
drivers/scsi/lpfc/lpfc_sli.c
15288
dma_buf = lpfc_sli_rqbuf_get(phba, hrq);
drivers/scsi/lpfc/lpfc_sli.c
15289
if (!dma_buf) {
drivers/scsi/lpfc/lpfc_sli.c
15297
lpfc_rq_buf_free(phba, &dma_buf->hbuf);
drivers/spi/spi-amd.c
558
u8 *dma_buf = (u8 *)amd_spi->dma_virt_addr;
drivers/spi/spi-amd.c
561
*dma_buf = op->cmd.opcode;
drivers/spi/spi-amd.c
563
dma_buf = (u8 *)dma_buf64;
drivers/spi/spi-amd.c
565
*--dma_buf = addr_val & GENMASK(7, 0);
drivers/spi/spi-amd.c
576
dma_buf = (u8 *)dma_buf64;
drivers/spi/spi-amd.c
578
*dma_buf++ = *buf++;
drivers/spi/spi-amd.c
678
u8 *dma_buf;
drivers/spi/spi-amd.c
689
dma_buf = (u8 *)dma_buf64;
drivers/spi/spi-amd.c
691
*buf++ = *dma_buf++;
drivers/spi/spi-rockchip-sfc.c
449
static int rockchip_sfc_fifo_transfer_dma(struct rockchip_sfc *sfc, dma_addr_t dma_buf, size_t len)
drivers/spi/spi-rockchip-sfc.c
452
writel((u32)dma_buf, sfc->regbase + SFC_DMA_ADDR);
drivers/spi/spi-stm32.c
1538
dma_addr_t dma_buf;
drivers/spi/spi-stm32.c
1564
dma_buf = spi->sram_dma_rx_buf;
drivers/spi/spi-stm32.c
1569
sg_dma_address(s) = dma_buf;
drivers/spi/spi-stm32.c
1575
dma_buf = spi->sram_dma_rx_buf;
drivers/spi/spi-stm32.c
1578
dma_buf += sram_period;
drivers/spi/spi-stm32.c
1580
dma_buf = spi->sram_dma_rx_buf;
drivers/spi/spi-stm32.c
1601
dma_buf = sg_dma_address(spi_s);
drivers/spi/spi-stm32.c
1606
sg_dma_address(s) = dma_buf;
drivers/spi/spi-stm32.c
1612
dma_buf = sg_dma_address(spi_s);
drivers/spi/spi-stm32.c
1614
dma_buf += bytes;
drivers/spi/spi-tegra114.c
664
u32 *dma_buf;
drivers/spi/spi-tegra114.c
672
dma_buf = dma_alloc_coherent(tspi->dev, tspi->dma_buf_size,
drivers/spi/spi-tegra114.c
674
if (!dma_buf) {
drivers/spi/spi-tegra114.c
682
tspi->rx_dma_buf = dma_buf;
drivers/spi/spi-tegra114.c
686
tspi->tx_dma_buf = dma_buf;
drivers/spi/spi-tegra114.c
695
u32 *dma_buf;
drivers/spi/spi-tegra114.c
700
dma_buf = tspi->rx_dma_buf;
drivers/spi/spi-tegra114.c
706
dma_buf = tspi->tx_dma_buf;
drivers/spi/spi-tegra114.c
715
dma_free_coherent(tspi->dev, tspi->dma_buf_size, dma_buf, dma_phys);
drivers/spi/spi-tegra20-slink.c
596
u32 *dma_buf;
drivers/spi/spi-tegra20-slink.c
606
dma_buf = dma_alloc_coherent(tspi->dev, tspi->dma_buf_size,
drivers/spi/spi-tegra20-slink.c
608
if (!dma_buf) {
drivers/spi/spi-tegra20-slink.c
629
tspi->rx_dma_buf = dma_buf;
drivers/spi/spi-tegra20-slink.c
633
tspi->tx_dma_buf = dma_buf;
drivers/spi/spi-tegra20-slink.c
639
dma_free_coherent(tspi->dev, tspi->dma_buf_size, dma_buf, dma_phys);
drivers/spi/spi-tegra20-slink.c
647
u32 *dma_buf;
drivers/spi/spi-tegra20-slink.c
652
dma_buf = tspi->rx_dma_buf;
drivers/spi/spi-tegra20-slink.c
658
dma_buf = tspi->tx_dma_buf;
drivers/spi/spi-tegra20-slink.c
667
dma_free_coherent(tspi->dev, tspi->dma_buf_size, dma_buf, dma_phys);
drivers/spi/spi-tegra210-quad.c
776
u32 *dma_buf;
drivers/spi/spi-tegra210-quad.c
808
dma_buf = dma_alloc_coherent(tqspi->rx_dma_dev, tqspi->dma_buf_size, &dma_phys, GFP_KERNEL);
drivers/spi/spi-tegra210-quad.c
809
if (!dma_buf) {
drivers/spi/spi-tegra210-quad.c
814
tqspi->rx_dma_buf = dma_buf;
drivers/spi/spi-tegra210-quad.c
817
dma_buf = dma_alloc_coherent(tqspi->tx_dma_dev, tqspi->dma_buf_size, &dma_phys, GFP_KERNEL);
drivers/spi/spi-tegra210-quad.c
818
if (!dma_buf) {
drivers/spi/spi-tegra210-quad.c
823
tqspi->tx_dma_buf = dma_buf;
drivers/tee/tee_heap.c
113
static void tee_heap_detach(struct dma_buf *dmabuf,
drivers/tee/tee_heap.c
149
static void tee_heap_buf_free(struct dma_buf *dmabuf)
drivers/tee/tee_heap.c
168
static struct dma_buf *tee_dma_heap_alloc(struct dma_heap *heap,
drivers/tee/tee_heap.c
177
struct dma_buf *dmabuf;
drivers/tee/tee_heap.c
341
struct dma_buf *dmabuf, size_t *offset,
drivers/tee/tee_heap.c
382
struct dma_buf *dmabuf __always_unused,
drivers/tee/tee_heap.c
90
static int tee_heap_attach(struct dma_buf *dmabuf,
drivers/tee/tee_private.h
20
struct dma_buf *dmabuf;
drivers/tee/tee_private.h
31
struct dma_buf *dmabuf, size_t *offset,
drivers/tty/serial/serial-tegra.c
1145
unsigned char *dma_buf;
drivers/tty/serial/serial-tegra.c
1159
dma_buf = dma_alloc_coherent(tup->uport.dev,
drivers/tty/serial/serial-tegra.c
1162
if (!dma_buf) {
drivers/tty/serial/serial-tegra.c
1175
tup->rx_dma_buf_virt = dma_buf;
drivers/tty/serial/serial-tegra.c
1178
dma_buf = tup->uport.state->port.xmit_buf;
drivers/tty/serial/serial-tegra.c
1180
dma_buf, UART_XMIT_SIZE, DMA_TO_DEVICE);
drivers/tty/serial/serial-tegra.c
1190
tup->tx_dma_buf_virt = dma_buf;
drivers/usb/gadget/function/f_fs.c
1331
struct dma_buf *dmabuf = attach->dmabuf;
drivers/usb/gadget/function/f_fs.c
1462
static int ffs_dma_resv_lock(struct dma_buf *dmabuf, bool nonblock)
drivers/usb/gadget/function/f_fs.c
1474
ffs_dmabuf_find_attachment(struct ffs_epfile *epfile, struct dma_buf *dmabuf)
drivers/usb/gadget/function/f_fs.c
1507
struct dma_buf *dmabuf;
drivers/usb/gadget/function/f_fs.c
1575
struct dma_buf *dmabuf;
drivers/usb/gadget/function/f_fs.c
1618
struct dma_buf *dmabuf;
drivers/usb/gadget/udc/aspeed_udc.c
474
static int ast_dma_descriptor_setup(struct ast_udc_ep *ep, u32 dma_buf,
drivers/usb/gadget/udc/aspeed_udc.c
493
"wptr", ep->descs_wptr, "dma_buf", dma_buf,
drivers/usb/gadget/udc/aspeed_udc.c
499
ep->descs[ep->descs_wptr].des_0 = dma_buf + offset;
drivers/vfio/pci/vfio_pci_dmabuf.c
13
struct dma_buf *dmabuf;
drivers/vfio/pci/vfio_pci_dmabuf.c
192
static int validate_dmabuf_input(struct vfio_device_feature_dma_buf *dma_buf,
drivers/vfio/pci/vfio_pci_dmabuf.c
199
for (i = 0; i < dma_buf->nr_ranges; i++) {
drivers/vfio/pci/vfio_pci_dmabuf.c
25
static int vfio_pci_dma_buf_attach(struct dma_buf *dmabuf,
drivers/vfio/pci/vfio_pci_dmabuf.c
84
static void vfio_pci_dma_buf_release(struct dma_buf *dmabuf)
drivers/virtio/virtio_dma_buf.c
20
struct dma_buf *virtio_dma_buf_export
drivers/virtio/virtio_dma_buf.c
42
int virtio_dma_buf_attach(struct dma_buf *dma_buf,
drivers/virtio/virtio_dma_buf.c
47
container_of(dma_buf->ops,
drivers/virtio/virtio_dma_buf.c
51
ret = ops->device_attach(dma_buf, attach);
drivers/virtio/virtio_dma_buf.c
63
bool is_virtio_dma_buf(struct dma_buf *dma_buf)
drivers/virtio/virtio_dma_buf.c
65
return dma_buf->ops->attach == &virtio_dma_buf_attach;
drivers/virtio/virtio_dma_buf.c
76
int virtio_dma_buf_get_uuid(struct dma_buf *dma_buf,
drivers/virtio/virtio_dma_buf.c
80
container_of(dma_buf->ops,
drivers/virtio/virtio_dma_buf.c
83
if (!is_virtio_dma_buf(dma_buf))
drivers/virtio/virtio_dma_buf.c
86
return ops->get_uuid(dma_buf, uuid);
drivers/xen/gntdev-dmabuf.c
220
static int dmabuf_exp_ops_attach(struct dma_buf *dma_buf,
drivers/xen/gntdev-dmabuf.c
234
static void dmabuf_exp_ops_detach(struct dma_buf *dma_buf,
drivers/xen/gntdev-dmabuf.c
30
struct dma_buf *dmabuf;
drivers/xen/gntdev-dmabuf.c
326
static void dmabuf_exp_ops_release(struct dma_buf *dma_buf)
drivers/xen/gntdev-dmabuf.c
328
struct gntdev_dmabuf *gntdev_dmabuf = dma_buf->priv;
drivers/xen/gntdev-dmabuf.c
560
struct dma_buf *dma_buf;
drivers/xen/gntdev-dmabuf.c
567
dma_buf = dma_buf_get(fd);
drivers/xen/gntdev-dmabuf.c
568
if (IS_ERR(dma_buf))
drivers/xen/gntdev-dmabuf.c
569
return ERR_CAST(dma_buf);
drivers/xen/gntdev-dmabuf.c
580
attach = dma_buf_attach(dma_buf, dev);
drivers/xen/gntdev-dmabuf.c
653
dma_buf_detach(dma_buf, attach);
drivers/xen/gntdev-dmabuf.c
657
dma_buf_put(dma_buf);
drivers/xen/gntdev-dmabuf.c
687
struct dma_buf *dma_buf;
drivers/xen/gntdev-dmabuf.c
703
dma_buf = attach->dmabuf;
drivers/xen/gntdev-dmabuf.c
705
dma_buf_put(dma_buf);
include/drm/drm_drv.h
317
struct dma_buf *dma_buf);
include/drm/drm_drv.h
44
struct dma_buf;
include/drm/drm_gem.h
127
struct dma_buf *(*export)(struct drm_gem_object *obj, int flags);
include/drm/drm_gem.h
357
struct dma_buf *dma_buf;
include/drm/drm_gem.h
634
return (obj->handle_count > 1) || obj->dma_buf;
include/drm/drm_gem_shmem_helper.h
134
!shmem->base.dma_buf && !drm_gem_is_imported(&shmem->base);
include/drm/drm_gem_shmem_helper.h
291
struct dma_buf *buf);
include/drm/drm_prime.h
104
struct dma_buf *dma_buf);
include/drm/drm_prime.h
107
struct dma_buf *dma_buf,
include/drm/drm_prime.h
110
struct dma_buf *dma_buf);
include/drm/drm_prime.h
55
struct dma_buf;
include/drm/drm_prime.h
66
struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev,
include/drm/drm_prime.h
68
void drm_gem_dmabuf_release(struct dma_buf *dma_buf);
include/drm/drm_prime.h
72
struct dma_buf *drm_gem_prime_handle_to_dmabuf(struct drm_device *dev,
include/drm/drm_prime.h
80
int drm_gem_map_attach(struct dma_buf *dma_buf,
include/drm/drm_prime.h
82
void drm_gem_map_detach(struct dma_buf *dma_buf,
include/drm/drm_prime.h
89
int drm_gem_dmabuf_vmap(struct dma_buf *dma_buf, struct iosys_map *map);
include/drm/drm_prime.h
90
void drm_gem_dmabuf_vunmap(struct dma_buf *dma_buf, struct iosys_map *map);
include/drm/drm_prime.h
93
int drm_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma);
include/drm/drm_prime.h
97
struct dma_buf *drm_gem_prime_export(struct drm_gem_object *obj,
include/linux/dma-buf.h
195
void (*release)(struct dma_buf *);
include/linux/dma-buf.h
222
int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction);
include/linux/dma-buf.h
239
int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
include/linux/dma-buf.h
276
int (*mmap)(struct dma_buf *, struct vm_area_struct *vma);
include/linux/dma-buf.h
278
int (*vmap)(struct dma_buf *dmabuf, struct iosys_map *map);
include/linux/dma-buf.h
279
void (*vunmap)(struct dma_buf *dmabuf, struct iosys_map *map);
include/linux/dma-buf.h
28
struct dma_buf;
include/linux/dma-buf.h
486
struct dma_buf *dmabuf;
include/linux/dma-buf.h
538
static inline void get_dma_buf(struct dma_buf *dmabuf)
include/linux/dma-buf.h
551
static inline bool dma_buf_is_dynamic(struct dma_buf *dmabuf)
include/linux/dma-buf.h
556
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
include/linux/dma-buf.h
559
dma_buf_dynamic_attach(struct dma_buf *dmabuf, struct device *dev,
include/linux/dma-buf.h
562
void dma_buf_detach(struct dma_buf *dmabuf,
include/linux/dma-buf.h
567
struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);
include/linux/dma-buf.h
569
int dma_buf_fd(struct dma_buf *dmabuf, int flags);
include/linux/dma-buf.h
570
struct dma_buf *dma_buf_get(int fd);
include/linux/dma-buf.h
571
void dma_buf_put(struct dma_buf *dmabuf);
include/linux/dma-buf.h
577
void dma_buf_invalidate_mappings(struct dma_buf *dma_buf);
include/linux/dma-buf.h
579
int dma_buf_begin_cpu_access(struct dma_buf *dma_buf,
include/linux/dma-buf.h
581
int dma_buf_end_cpu_access(struct dma_buf *dma_buf,
include/linux/dma-buf.h
590
int dma_buf_mmap(struct dma_buf *, struct vm_area_struct *,
include/linux/dma-buf.h
592
int dma_buf_vmap(struct dma_buf *dmabuf, struct iosys_map *map);
include/linux/dma-buf.h
593
void dma_buf_vunmap(struct dma_buf *dmabuf, struct iosys_map *map);
include/linux/dma-buf.h
594
int dma_buf_vmap_unlocked(struct dma_buf *dmabuf, struct iosys_map *map);
include/linux/dma-buf.h
595
void dma_buf_vunmap_unlocked(struct dma_buf *dmabuf, struct iosys_map *map);
include/linux/dma-buf.h
596
struct dma_buf *dma_buf_iter_begin(void);
include/linux/dma-buf.h
597
struct dma_buf *dma_buf_iter_next(struct dma_buf *dmbuf);
include/linux/dma-buf.h
64
int (*attach)(struct dma_buf *, struct dma_buf_attachment *);
include/linux/dma-buf.h
75
void (*detach)(struct dma_buf *, struct dma_buf_attachment *);
include/linux/dma-heap.h
23
struct dma_buf *(*allocate)(struct dma_heap *heap,
include/linux/parport_pc.h
43
char *dma_buf;
include/linux/virtio_dma_buf.h
24
int (*device_attach)(struct dma_buf *dma_buf,
include/linux/virtio_dma_buf.h
26
int (*get_uuid)(struct dma_buf *dma_buf, uuid_t *uuid);
include/linux/virtio_dma_buf.h
29
int virtio_dma_buf_attach(struct dma_buf *dma_buf,
include/linux/virtio_dma_buf.h
32
struct dma_buf *virtio_dma_buf_export
include/linux/virtio_dma_buf.h
34
bool is_virtio_dma_buf(struct dma_buf *dma_buf);
include/linux/virtio_dma_buf.h
35
int virtio_dma_buf_get_uuid(struct dma_buf *dma_buf, uuid_t *uuid);
include/media/videobuf2-core.h
123
struct dma_buf *(*get_dmabuf)(struct vb2_buffer *vb,
include/media/videobuf2-core.h
138
struct dma_buf *dbuf,
include/media/videobuf2-core.h
182
struct dma_buf *dbuf;
include/sound/compress_driver.h
36
struct dma_buf *input;
include/sound/compress_driver.h
37
struct dma_buf *output;
include/trace/events/dma_buf.h
103
DEFINE_EVENT(dma_buf, dma_buf_mmap_internal,
include/trace/events/dma_buf.h
105
TP_PROTO(struct dma_buf *dmabuf),
include/trace/events/dma_buf.h
11
DECLARE_EVENT_CLASS(dma_buf,
include/trace/events/dma_buf.h
110
DEFINE_EVENT(dma_buf, dma_buf_mmap,
include/trace/events/dma_buf.h
112
TP_PROTO(struct dma_buf *dmabuf),
include/trace/events/dma_buf.h
117
DEFINE_EVENT(dma_buf, dma_buf_put,
include/trace/events/dma_buf.h
119
TP_PROTO(struct dma_buf *dmabuf),
include/trace/events/dma_buf.h
126
TP_PROTO(struct dma_buf *dmabuf, struct dma_buf_attachment *attach,
include/trace/events/dma_buf.h
13
TP_PROTO(struct dma_buf *dmabuf),
include/trace/events/dma_buf.h
134
TP_PROTO(struct dma_buf *dmabuf, struct dma_buf_attachment *attach,
include/trace/events/dma_buf.h
142
TP_PROTO(struct dma_buf *dmabuf, int fd),
include/trace/events/dma_buf.h
151
TP_PROTO(struct dma_buf *dmabuf, int fd),
include/trace/events/dma_buf.h
3
#define TRACE_SYSTEM dma_buf
include/trace/events/dma_buf.h
37
TP_PROTO(struct dma_buf *dmabuf, struct dma_buf_attachment *attach,
include/trace/events/dma_buf.h
71
TP_PROTO(struct dma_buf *dmabuf, int fd),
include/trace/events/dma_buf.h
96
DEFINE_EVENT(dma_buf, dma_buf_export,
include/trace/events/dma_buf.h
98
TP_PROTO(struct dma_buf *dmabuf),
io_uring/zcrx.h
28
struct dma_buf *dmabuf;
kernel/bpf/dmabuf_iter.c
135
DEFINE_BPF_ITER_FUNC(dmabuf, struct bpf_iter_meta *meta, struct dma_buf *dmabuf)
kernel/bpf/dmabuf_iter.c
136
BTF_ID_LIST_SINGLE(bpf_dmabuf_btf_id, struct, dma_buf)
kernel/bpf/dmabuf_iter.c
156
struct dma_buf *dmabuf;
kernel/bpf/dmabuf_iter.c
16
struct dma_buf *dmabuf;
kernel/bpf/dmabuf_iter.c
172
__bpf_kfunc struct dma_buf *bpf_iter_dmabuf_next(struct bpf_iter_dmabuf *it)
kernel/bpf/dmabuf_iter.c
24
struct dma_buf *dmabuf = p->dmabuf;
kernel/bpf/dmabuf_iter.c
42
struct dma_buf *dmabuf = v;
kernel/bpf/dmabuf_iter.c
51
__bpf_md_ptr(struct dma_buf *, dmabuf);
kernel/bpf/dmabuf_iter.c
78
struct dma_buf *dmabuf = v;
net/core/devmem.c
193
struct dma_buf *dmabuf;
net/core/devmem.h
19
struct dma_buf *dmabuf;
samples/vfio-mdev/mbochs.c
1005
struct dma_buf *buf;
samples/vfio-mdev/mbochs.c
162
struct dma_buf *buf;
samples/vfio-mdev/mbochs.c
829
static int mbochs_mmap_dmabuf(struct dma_buf *buf, struct vm_area_struct *vma)
samples/vfio-mdev/mbochs.c
902
static void mbochs_release_dmabuf(struct dma_buf *buf)
sound/soc/fsl/fsl_asrc_m2m.c
410
static int fsl_asrc_m2m_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
sound/soc/fsl/fsl_asrc_m2m.c
448
static void fsl_asrc_m2m_release(struct dma_buf *dmabuf)
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
593
struct snd_dma_buffer *dma_buf = &substream->dma_buffer;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
595
dma_buf->dev.type = SNDRV_DMA_TYPE_DEV;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
596
dma_buf->dev.dev = substream->pcm->card->dev;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
597
dma_buf->area = (unsigned char *)fe_data->sram_vir_addr;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
598
dma_buf->addr = fe_data->sram_phy_addr;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
599
dma_buf->bytes = request_size;
sound/soc/mediatek/mt8365/mt8365-afe-pcm.c
600
snd_pcm_set_runtime_buffer(substream, dma_buf);
sound/soc/qcom/lpass-platform.c
1237
void __iomem *dma_buf = (void __iomem *) (rt->dma_area + pos +
sound/soc/qcom/lpass-platform.c
1242
if (copy_from_iter_toio(dma_buf, bytes, buf) != bytes)
sound/soc/qcom/lpass-platform.c
1245
if (copy_from_iter((void __force *)dma_buf, bytes, buf) != bytes)
sound/soc/qcom/lpass-platform.c
1250
if (copy_to_iter_fromio(dma_buf, bytes, buf) != bytes)
sound/soc/qcom/lpass-platform.c
1253
if (copy_to_iter((void __force *)dma_buf, bytes, buf) != bytes)
tools/testing/selftests/bpf/bpf_experimental.h
361
extern struct dma_buf *bpf_iter_dmabuf_next(struct bpf_iter_dmabuf *it) __weak __ksym;
tools/testing/selftests/bpf/progs/dmabuf_iter.c
33
const struct dma_buf *dmabuf = ctx->dmabuf;
tools/testing/selftests/bpf/progs/dmabuf_iter.c
65
struct dma_buf *d;