/dragonfly/sys/dev/drm/ |
H A D | linux_dma-buf.c | 44 sb->st_size = dmabuf->size; in dmabuf_stat() 69 struct dma_buf *dmabuf; in dma_buf_export() local 79 fp->private_data = dmabuf; in dma_buf_export() 83 dmabuf->file = fp; in dma_buf_export() 85 return dmabuf; in dma_buf_export() 93 if (dmabuf == NULL) in dma_buf_fd() 96 if (dmabuf->file == NULL) in dma_buf_fd() 121 struct dma_buf *dmabuf; in dma_buf_get() local 132 dmabuf = fp->private_data; in dma_buf_get() 135 return dmabuf; in dma_buf_get() [all …]
|
H A D | drm_prime.c | 477 return dmabuf; in export_and_register_object() 481 if (IS_ERR(dmabuf)) { in export_and_register_object() 485 return dmabuf; in export_and_register_object() 493 obj->dma_buf = dmabuf; in export_and_register_object() 496 return dmabuf; in export_and_register_object() 529 if (dmabuf) { in drm_gem_prime_handle_to_fd() 530 get_dma_buf(dmabuf); in drm_gem_prime_handle_to_fd() 537 dmabuf = obj->import_attach->dmabuf; in drm_gem_prime_handle_to_fd() 538 get_dma_buf(dmabuf); in drm_gem_prime_handle_to_fd() 549 if (IS_ERR(dmabuf)) { in drm_gem_prime_handle_to_fd() [all …]
|
/dragonfly/sys/dev/drm/include/linux/ |
H A D | dma-buf.h | 72 struct dma_buf *dmabuf; member 97 dma_buf_attach(struct dma_buf *dmabuf, struct device *dev) in dma_buf_attach() argument 108 get_dma_buf(struct dma_buf *dmabuf) in get_dma_buf() argument 110 fhold(dmabuf->file); in get_dma_buf() 114 dma_buf_put(struct dma_buf *dmabuf) in dma_buf_put() argument 116 if (dmabuf == NULL) in dma_buf_put() 119 if (dmabuf->file == NULL) in dma_buf_put() 122 fdrop(dmabuf->file); in dma_buf_put() 125 int dma_buf_fd(struct dma_buf *dmabuf, int flags); 130 dma_buf_detach(struct dma_buf *dmabuf, in dma_buf_detach() argument
|
/dragonfly/sys/dev/sound/pci/ |
H A D | envy24.c | 1406 sample32_t *dmabuf; in envy24_p32sl() local 1412 dmabuf = ch->parent->pbuf; in envy24_p32sl() 1436 sample32_t *dmabuf; in envy24_p16sl() local 1445 dmabuf = ch->parent->pbuf; in envy24_p16sl() 1461 printf("%08x", dmabuf[dst * ENVY24_PLAY_CHNUM + slot]); in envy24_p16sl() 1481 sample32_t *dmabuf; in envy24_p8u() local 1487 dmabuf = ch->parent->pbuf; in envy24_p8u() 1511 sample32_t *dmabuf; in envy24_r32sl() local 1517 dmabuf = ch->parent->rbuf; in envy24_r32sl() 1541 sample32_t *dmabuf; in envy24_r16sl() local [all …]
|
H A D | envy24ht.c | 1315 sample32_t *dmabuf; in envy24ht_p32sl() local 1321 dmabuf = ch->parent->pbuf; in envy24ht_p32sl() 1345 sample32_t *dmabuf; in envy24ht_p16sl() local 1354 dmabuf = ch->parent->pbuf; in envy24ht_p16sl() 1370 printf("%08x", dmabuf[dst * ENVY24HT_PLAY_CHNUM + slot]); in envy24ht_p16sl() 1390 sample32_t *dmabuf; in envy24ht_p8u() local 1396 dmabuf = ch->parent->pbuf; in envy24ht_p8u() 1420 sample32_t *dmabuf; in envy24ht_r32sl() local 1426 dmabuf = ch->parent->rbuf; in envy24ht_r32sl() 1450 sample32_t *dmabuf; in envy24ht_r16sl() local [all …]
|
H A D | emu10kx.c | 382 static void emu_free(struct emu_mem *mem, void *dmabuf, bus_dmamap_t map); 1064 void *dmabuf; in emu_malloc() local 1068 if ((error = bus_dmamem_alloc(mem->dmat, &dmabuf, BUS_DMA_NOWAIT, map))) { in emu_malloc() 1073 if ((error = bus_dmamap_load(mem->dmat, *map, dmabuf, sz, emu_setmap, addr, 0)) || !*addr) { in emu_malloc() 1076 bus_dmamem_free(mem->dmat, dmabuf, *map); in emu_malloc() 1079 return (dmabuf); in emu_malloc() 1083 emu_free(struct emu_mem *mem, void *dmabuf, bus_dmamap_t map) in emu_free() argument 1086 bus_dmamem_free(mem->dmat, dmabuf, map); in emu_free()
|
/dragonfly/sys/dev/drm/radeon/ |
H A D | radeon_prime.c | 77 struct reservation_object *resv = attach->dmabuf->resv; in radeon_gem_prime_import_sg_table() 83 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false, in radeon_gem_prime_import_sg_table()
|
/dragonfly/sys/dev/drm/amd/amdgpu/ |
H A D | amdgpu_prime.c | 163 struct reservation_object *resv = attach->dmabuf->resv; in amdgpu_gem_prime_import_sg_table() 170 bp.size = attach->dmabuf->size; in amdgpu_gem_prime_import_sg_table() 185 if (attach->dmabuf->ops != &amdgpu_dmabuf_ops) in amdgpu_gem_prime_import_sg_table()
|
/dragonfly/sys/dev/drm/i915/ |
H A D | i915_gem_dmabuf.c | 42 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_map_dma_buf() 91 struct drm_i915_gem_object *obj = dma_buf_to_obj(attachment->dmabuf); in i915_gem_unmap_dma_buf()
|
/dragonfly/sys/dev/drm/ttm/ |
H A D | ttm_object.c | 560 static bool __must_check get_dma_buf_unless_doomed(struct dma_buf *dmabuf) in get_dma_buf_unless_doomed() argument 564 return atomic_long_inc_not_zero(&dmabuf->file->f_count) != 0L; in get_dma_buf_unless_doomed()
|