HomeSort by: relevance | last modified time | path
    Searched defs:dma_buf (Results 1 - 18 of 18) sorted by relevancy

  /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/amd/amdgpu/
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/vmwgfx/
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
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...]
  /src/sys/external/bsd/drm2/dist/include/drm/
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.
  /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...]
  /xsrc/external/mit/MesaLib.old/dist/src/amd/vulkan/
radv_android.c 119 /* Do not close the gralloc handle's dma_buf. The lifetime of the dma_buf
123 int dma_buf = gralloc_info->handle->data[0]; local
130 .fd = dup(dma_buf),
  /xsrc/external/mit/MesaLib.old/dist/src/freedreno/vulkan/
tu_android.c 139 /* Do not close the gralloc handle's dma_buf. The lifetime of the dma_buf
143 int dma_buf = gralloc_info->handle->data[0]; local
160 .fd = dup(dma_buf),
  /xsrc/external/mit/MesaLib/dist/src/amd/vulkan/
radv_android.c 130 /* Do not close the gralloc handle's dma_buf. The lifetime of the dma_buf
134 int dma_buf = gralloc_info->handle->data[0]; local
141 .fd = os_dupfd_cloexec(dma_buf),
765 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1; local
766 if (dma_buf < 0)
772 pProperties->allocationSize = lseek(dma_buf, 0, SEEK_END);
835 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1; local
836 if (dma_buf < 0)
841 device->ws->buffer_from_fd(device->ws, dma_buf, priority, &mem->bo, &alloc_size)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/intel/vulkan/
anv_android.c 299 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1; local
300 if (dma_buf < 0)
306 pProperties->allocationSize = lseek(dma_buf, 0, SEEK_END);
393 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1; local
394 if (dma_buf < 0)
397 VkResult result = anv_device_import_bo(device, dma_buf, 0,
500 /* Do not close the gralloc handle's dma_buf. The lifetime of the dma_buf
504 int dma_buf = gralloc_info->handle->data[0]; local
515 result = anv_device_import_bo(device, dma_buf,
606 int dma_buf = gralloc_info->handle->data[0]; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/intel/vulkan/
anv_android.c 206 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1; local
207 if (dma_buf < 0)
213 pProperties->allocationSize = lseek(dma_buf, 0, SEEK_END);
300 int dma_buf = (handle && handle->numFds) ? handle->data[0] : -1; local
301 if (dma_buf < 0)
311 dma_buf, bo_flags, &mem->bo);
454 /* Do not close the gralloc handle's dma_buf. The lifetime of the dma_buf
458 int dma_buf = gralloc_info->handle->data[0]; local
466 result = anv_bo_cache_import(device, &device->bo_cache, dma_buf, bo_flags, &bo)
    [all...]
  /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...]
  /xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/
tu_image.c 560 int dma_buf; local
562 VkResult result = tu_gralloc_info(device, gralloc_info, &dma_buf, &modifier);
734 return tu_import_memory_from_gralloc_handle(_device, dma_buf, alloc, *pImage);
  /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/dev/usb/
ehci.c 4419 usb_dma_t *dma_buf; local
4461 dma_buf = &xfer->ux_dmabuf;
4473 const bus_addr_t sba = DMAADDR(dma_buf, offs);
4479 const bus_addr_t eba = DMAADDR(dma_buf, offs - 1);
4784 usb_dma_t *dma_buf; local
4844 dma_buf = &xfer->ux_dmabuf;
4865 int addr = DMAADDR(dma_buf, froffs);
4880 EHCI_ITD_SET_OFFS(EHCI_PAGE_OFFSET(DMAADDR(dma_buf,offs))));
4904 if (page_offs >= dma_buf->udma_block->size)
4907 uint64_t page = DMAADDR(dma_buf, page_offs)
    [all...]

Completed in 108 milliseconds