/src/sys/arch/arm/broadcom/ |
bcm2835_mbox.c | 166 void *dma_buf; local in function:bcmmbox_request 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 in function:amdgpu_dma_buf_map 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 in function:amdgpu_amdkfd_get_dmabuf_info 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 in function:amdgpu_debugfs_gem_bo_info 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 in function:ttm_prime_fd_to_handle 708 struct dma_buf *dma_buf; local in function:ttm_prime_handle_to_fd [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...] |
/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 in function:drm_gem_dmabuf_export 434 struct dma_buf *dma_buf; local in function:drm_gem_prime_fd_to_handle 1290 struct dma_buf *dma_buf; local in function:drm_prime_gem_destroy [all...] |
/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 | 4405 usb_dma_t *dma_buf; local in function:ehci_device_fs_isoc_transfer 4447 dma_buf = &xfer->ux_dmabuf; 4459 const bus_addr_t sba = DMAADDR(dma_buf, offs); 4465 const bus_addr_t eba = DMAADDR(dma_buf, offs - 1); 4770 usb_dma_t *dma_buf; local in function:ehci_device_isoc_transfer 4830 dma_buf = &xfer->ux_dmabuf; 4851 int addr = DMAADDR(dma_buf, froffs); 4866 EHCI_ITD_SET_OFFS(EHCI_PAGE_OFFSET(DMAADDR(dma_buf,offs)))); 4890 if (page_offs >= dma_buf->udma_block->size) 4893 uint64_t page = DMAADDR(dma_buf, page_offs) [all...] |