| /src/sys/external/bsd/drm2/include/linux/ |
| dma-buf.h | 45 struct dma_buf; 58 int (*attach)(struct dma_buf *, struct dma_buf_attachment *); 59 void (*detach)(struct dma_buf *, struct dma_buf_attachment *); 65 void (*release)(struct dma_buf *); 66 int (*begin_cpu_access)(struct dma_buf *, enum dma_data_direction); 67 int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction); 68 int (*mmap)(struct dma_buf *, off_t *, size_t, int, int *, 70 void * (*vmap)(struct dma_buf *); 71 void (*vunmap)(struct dma_buf *, void *); 74 struct dma_buf { struct [all...] |
| /src/sys/external/bsd/drm2/dist/include/drm/ |
| drm_prime.h | 44 * This just contains the internal &struct dma_buf and handle caches for each 57 struct dma_buf; 67 struct dma_buf *drm_gem_dmabuf_export(struct drm_device *dev, 69 void drm_gem_dmabuf_release(struct dma_buf *dma_buf); 78 int drm_gem_map_attach(struct dma_buf *dma_buf, 80 void drm_gem_map_detach(struct dma_buf *dma_buf, 87 void *drm_gem_dmabuf_vmap(struct dma_buf *dma_buf) [all...] |
| drm_gem.h | 105 * Export backing buffer as a &dma_buf. 110 struct dma_buf *(*export)(struct drm_gem_object *obj, int flags); 278 * @dma_buf: 288 struct dma_buf *dma_buf; member in struct:drm_gem_object 295 * Any foreign dma_buf imported as a gem object has this set to the 300 * up the dma_buf attachment and references acquired at import time.
|
| drm_drv.h | 592 struct dma_buf * (*gem_prime_export)(struct drm_gem_object *obj, 602 struct dma_buf *dma_buf);
|
| /src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/ |
| amdgpu_dma_buf.h | 30 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj, 33 struct dma_buf *dma_buf);
|
| amdgpu_dma_buf.c | 194 static int amdgpu_dma_buf_attach(struct dma_buf *dmabuf, 238 static void amdgpu_dma_buf_detach(struct dma_buf *dmabuf, 270 struct dma_buf *dma_buf = attach->dmabuf; local 271 struct drm_gem_object *obj = dma_buf->priv; 320 * @dma_buf: Shared DMA buffer 330 static int amdgpu_dma_buf_begin_cpu_access(struct dma_buf *dma_buf, 333 struct drm_gem_object *gem = dma_buf->priv; 382 struct dma_buf *amdgpu_gem_prime_export(struct drm_gem_object *gobj [all...] |
| amdgpu_amdkfd.c | 475 struct dma_buf *dma_buf; local 481 dma_buf = dma_buf_get(dma_buf_fd); 482 if (IS_ERR(dma_buf)) 483 return PTR_ERR(dma_buf); 485 if (dma_buf->ops != &amdgpu_dmabuf_ops) 489 obj = dma_buf->priv; 520 dma_buf_put(dma_buf);
|
| amdgpu_gem.c | 843 struct dma_buf *dma_buf; local 868 dma_buf = READ_ONCE(bo->tbo.base.dma_buf); 872 seq_printf(m, " imported from %p", dma_buf); 873 else if (dma_buf) 874 seq_printf(m, " exported as %p", dma_buf);
|
| /src/sys/external/bsd/drm2/dist/drm/i915/gem/selftests/ |
| mock_dmabuf.c | 59 static void mock_dmabuf_release(struct dma_buf *dma_buf) 61 struct mock_dmabuf *mock = to_mock(dma_buf); 70 static void *mock_dmabuf_vmap(struct dma_buf *dma_buf) 72 struct mock_dmabuf *mock = to_mock(dma_buf); 77 static void mock_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr) 79 struct mock_dmabuf *mock = to_mock(dma_buf); 84 static int mock_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma [all...] |
| mock_dmabuf.h | 19 static inline struct mock_dmabuf *to_mock(struct dma_buf *buf)
|
| i915_gem_dmabuf.c | 22 struct dma_buf *dmabuf; 45 struct dma_buf *dmabuf; 88 struct dma_buf *dmabuf; 170 struct dma_buf *dmabuf; 219 struct dma_buf *dmabuf;
|
| /src/sys/external/bsd/drm2/dist/drm/ |
| drm_prime.c | 79 * On the export the &dma_buf holds a reference to the exported buffer object, 82 * and stores the exporting GEM object in the &dma_buf.priv field. This 83 * reference needs to be released when the final reference to the &dma_buf 85 * GEM-based drivers, the &dma_buf should be exported using 106 struct dma_buf *dma_buf; member in struct:drm_prime_member 120 if (ma->dma_buf < mb->dma_buf) 122 if (ma->dma_buf > mb->dma_buf) 379 struct dma_buf *dma_buf; local 434 struct dma_buf *dma_buf; local 1290 struct dma_buf *dma_buf; local [all...] |
| drm_internal.h | 35 struct dma_buf; 88 struct dma_buf *dma_buf);
|
| drm_gem.c | 216 * Note: obj->dma_buf can't disappear as long as we still hold a 220 if (obj->dma_buf) { 222 obj->dma_buf); 251 /* Unbreak the reference cycle if we have an exported dma_buf. */ 252 if (obj->dma_buf) { 253 dma_buf_put(obj->dma_buf); 254 obj->dma_buf = NULL; 1063 WARN_ON(obj->dma_buf);
|
| /src/sys/external/bsd/drm2/dist/drm/i915/gem/ |
| i915_gem_dmabuf.c | 20 static struct drm_i915_gem_object *dma_buf_to_obj(struct dma_buf *buf) 97 static void *i915_gem_dmabuf_vmap(struct dma_buf *dma_buf) 99 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); 104 static void i915_gem_dmabuf_vunmap(struct dma_buf *dma_buf, void *vaddr) 106 struct drm_i915_gem_object *obj = dma_buf_to_obj(dma_buf); 113 static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, off_t *offp, 117 static int i915_gem_dmabuf_mmap(struct dma_buf *dma_buf, struct vm_area_struct *vma [all...] |
| /src/sys/external/bsd/drm2/dist/drm/vmwgfx/ |
| vmwgfx_prime.c | 47 static int vmw_prime_map_attach(struct dma_buf *dma_buf, 53 static void vmw_prime_map_detach(struct dma_buf *dma_buf,
|
| ttm_object.c | 102 void (*dmabuf_release)(struct dma_buf *dma_buf); 138 static void ttm_prime_dmabuf_release(struct dma_buf *dma_buf); 554 tdev->dma_buf_size = ttm_round_pot(sizeof(struct dma_buf)) + 577 * get_dma_buf_unless_doomed - get a dma_buf reference if possible. 579 * @dma_buf: Non-refcounted pointer to a struct dma-buf. 589 static bool __must_check get_dma_buf_unless_doomed(struct dma_buf *dmabuf) 623 BUG_ON(prime->dma_buf != NULL); 632 * @dma_buf 671 struct dma_buf *dma_buf; local 708 struct dma_buf *dma_buf; local [all...] |
| ttm_object.h | 145 * @mutex: Mutex protecting the @dma_buf member. 146 * @size: Size of the dma_buf associated with this object 149 * @dma_buf: Non ref-coutned pointer to a struct dma_buf created from this 160 struct dma_buf *dma_buf; member in struct:ttm_prime_object
|
| /src/sys/external/bsd/drm2/linux/ |
| linux_dma_buf.c | 69 struct dma_buf * 72 struct dma_buf *dmabuf; 75 dmabuf = kmem_zalloc(offsetof(struct dma_buf, db_resv_int[1]), 99 dma_buf_fd(struct dma_buf *dmabuf, int flags) 125 struct dma_buf * 129 struct dma_buf *dmabuf; 154 get_dma_buf(struct dma_buf *dmabuf) 163 dma_buf_put(struct dma_buf *dmabuf) 175 kmem_free(dmabuf, offsetof(struct dma_buf, db_resv_int[1])); 182 dma_buf_dynamic_attach(struct dma_buf *dmabuf, bus_dma_tag_t dmat [all...] |
| /src/sys/arch/arm/broadcom/ |
| bcm2835_mbox.c | 166 void *dma_buf; local 178 error = bus_dmamem_map(sc->sc_dmat, segs, nsegs, buflen, &dma_buf, 186 error = bus_dmamap_load(sc->sc_dmat, map, dma_buf, buflen, NULL, 191 memcpy(dma_buf, buf, buflen); 200 memcpy(buf, dma_buf, buflen); 206 bus_dmamem_unmap(sc->sc_dmat, dma_buf, buflen);
|
| /src/sys/external/bsd/drm2/dist/drm/radeon/ |
| radeon_prime.c | 125 struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj,
|
| /src/sys/external/bsd/drm2/dist/drm/vgem/ |
| vgem_drv.c | 358 struct dma_buf *dma_buf) 362 return drm_gem_prime_import_dev(dev, dma_buf, &vgem->platform->dev);
|
| /src/sys/arch/acorn32/podulebus/ |
| escvar.h | 94 void *dma_buf; /* Current DMA address */ member in struct:nexus
|
| sfasvar.h | 94 void *dma_buf; /* Current DMA address */ member in struct:nexus
|
| /src/sys/external/bsd/drm2/dist/drm/i915/gvt/ |
| dmabuf.c | 131 if (obj->base.dma_buf) { 195 gem_obj->base.dma_buf = NULL; 200 gem_obj->base.dma_buf = NULL; 536 struct dma_buf *dmabuf;
|