Home
last modified time | relevance | path

Searched refs:handle_table (Results 1 – 25 of 27) sorted by relevance

12

/third_party/mesa3d/src/gallium/auxiliary/util/
Du_handle_table.h49 struct handle_table;
52 struct handle_table *
63 handle_table_set_destroy(struct handle_table *ht,
73 handle_table_add(struct handle_table *ht,
80 handle_table_set(struct handle_table *ht,
90 handle_table_get(struct handle_table *ht,
95 handle_table_remove(struct handle_table *ht,
100 handle_table_destroy(struct handle_table *ht);
104 handle_table_get_first_handle(struct handle_table *ht);
108 handle_table_get_next_handle(struct handle_table *ht,
Du_handle_table.c46 struct handle_table struct
61 struct handle_table * argument
64 struct handle_table *ht; in handle_table_create()
66 ht = MALLOC_STRUCT(handle_table); in handle_table_create()
86 handle_table_set_destroy(struct handle_table *ht, in handle_table_set_destroy()
100 handle_table_resize(struct handle_table *ht, in handle_table_resize()
130 handle_table_clear(struct handle_table *ht, in handle_table_clear()
152 handle_table_add(struct handle_table *ht, in handle_table_add()
190 handle_table_set(struct handle_table *ht, in handle_table_set()
220 handle_table_get(struct handle_table *ht, in handle_table_get()
[all …]
/third_party/libdrm/amdgpu/
Dhandle_table.h30 struct handle_table { struct
35 drm_private int handle_table_insert(struct handle_table *table, uint32_t key, argument
37 drm_private void handle_table_remove(struct handle_table *table, uint32_t key);
38 drm_private void *handle_table_lookup(struct handle_table *table, uint32_t key);
39 drm_private void handle_table_fini(struct handle_table *table);
Dhandle_table.c31 drm_private int handle_table_insert(struct handle_table *table, uint32_t key, in handle_table_insert()
53 drm_private void handle_table_remove(struct handle_table *table, uint32_t key) in handle_table_remove()
59 drm_private void *handle_table_lookup(struct handle_table *table, uint32_t key) in handle_table_lookup()
67 drm_private void handle_table_fini(struct handle_table *table) in handle_table_fini()
DMakefile.sources10 handle_table.c \
11 handle_table.h
Damdgpu_internal.h77 struct handle_table bo_handles;
79 struct handle_table bo_flink_names;
Dmeson.build29 'amdgpu_gpu_info.c', 'amdgpu_vamgr.c', 'amdgpu_vm.c', 'handle_table.c',
/third_party/libdrm/omap/
Domap_drm.c65 void *handle_table; member
87 dev->handle_table = drmHashCreate(); in omap_device_new_impl()
125 drmHashDestroy(dev->handle_table); in omap_device_del()
164 if (!drmHashLookup(dev->handle_table, handle, (void **)&bo)) { in lookup_bo()
188 drmHashInsert(dev->handle_table, handle, bo); in bo_from_handle()
372 drmHashDelete(bo->dev->handle_table, bo->handle); in omap_bo_del()
/third_party/libdrm/freedreno/
Dfreedreno_bo.c77 drmHashInsert(dev->handle_table, handle, bo); in bo_from_handle()
136 bo = lookup_bo(dev->handle_table, handle); in fd_bo_from_handle()
164 bo = lookup_bo(dev->handle_table, handle); in fd_bo_from_dmabuf()
201 bo = lookup_bo(dev->handle_table, req.handle); in fd_bo_from_name()
269 drmHashDelete(bo->dev->handle_table, bo->handle); in bo_del()
Dfreedreno_device.c82 dev->handle_table = drmHashCreate(); in fd_device_new()
114 drmHashDestroy(dev->handle_table); in fd_device_del_impl()
Dfreedreno_priv.h96 void *handle_table, *name_table; member
/third_party/libdrm/etnaviv/
Detnaviv_device.c53 dev->handle_table = drmHashCreate(); in etna_device_new()
85 drmHashDestroy(dev->handle_table); in etna_device_del_impl()
Detnaviv_bo.c55 drmHashDelete(bo->dev->handle_table, bo->handle); in bo_del()
101 drmHashInsert(dev->handle_table, handle, bo); in bo_from_handle()
182 bo = lookup_bo(dev->handle_table, req.handle); in etna_bo_from_name()
218 bo = lookup_bo(dev->handle_table, handle); in etna_bo_from_dmabuf()
Detnaviv_priv.h74 void *handle_table, *name_table; member
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_bo.c67 _mesa_hash_table_remove_key(bo->dev->handle_table, &bo->handle); in _etna_bo_del()
120 _mesa_hash_table_insert(dev->handle_table, &bo->handle, bo); in bo_from_handle()
206 bo = lookup_bo(dev->handle_table, req.handle); in etna_bo_from_name()
244 bo = lookup_bo(dev->handle_table, handle); in etna_bo_from_dmabuf()
Detnaviv_device.c64 dev->handle_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in etna_device_new()
108 _mesa_hash_table_destroy(dev->handle_table, NULL); in etna_device_del_impl()
Detnaviv_priv.h80 void *handle_table, *name_table; member
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_bufmgr.c154 struct hash_table *handle_table; member
555 bo = find_and_ref_external_bo(bufmgr->handle_table, open_arg.handle); in crocus_bo_gem_create_from_name()
575 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in crocus_bo_gem_create_from_name()
611 entry = _mesa_hash_table_search(bufmgr->handle_table, &bo->gem_handle); in bo_close()
612 _mesa_hash_table_remove(bufmgr->handle_table, entry); in bo_close()
1161 _mesa_hash_table_destroy(bufmgr->handle_table, NULL); in crocus_bufmgr_destroy()
1231 bo = find_and_ref_external_bo(bufmgr->handle_table, handle); in crocus_bo_import_dmabuf()
1256 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in crocus_bo_import_dmabuf()
1303 bo = find_and_ref_external_bo(bufmgr->handle_table, handle); in crocus_bo_import_dmabuf_no_mods()
1328 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in crocus_bo_import_dmabuf_no_mods()
[all …]
/third_party/mesa3d/src/freedreno/drm/
Dfreedreno_bo.c85 _mesa_hash_table_insert(dev->handle_table, &bo->handle, bo); in bo_from_handle()
162 bo = lookup_bo(dev->handle_table, handle); in fd_bo_from_handle()
190 bo = lookup_bo(dev->handle_table, handle); in fd_bo_from_dmabuf()
228 bo = lookup_bo(dev->handle_table, req.handle); in fd_bo_from_name()
360 _mesa_hash_table_remove_key(bo->dev->handle_table, &bo->handle); in bo_del()
Dfreedreno_device.c80 dev->handle_table = in fd_device_new()
135 _mesa_hash_table_destroy(dev->handle_table, NULL); in fd_device_del_impl()
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_bufmgr.c180 struct hash_table *handle_table; member
801 bo = hash_find_bo(bufmgr->handle_table, open_arg.handle); in brw_bo_gem_create_from_name()
826 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in brw_bo_gem_create_from_name()
875 entry = _mesa_hash_table_search(bufmgr->handle_table, &bo->gem_handle); in bo_free()
876 _mesa_hash_table_remove(bufmgr->handle_table, entry); in bo_free()
1414 _mesa_hash_table_destroy(bufmgr->handle_table, NULL); in brw_bufmgr_unref()
1491 bo = hash_find_bo(bufmgr->handle_table, handle); in brw_bo_gem_create_from_prime_internal()
1515 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in brw_bo_gem_create_from_prime_internal()
1575 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in brw_bo_make_external()
1924 bufmgr->handle_table = in brw_bufmgr_create()
/third_party/mesa3d/src/gallium/frontends/vdpau/
Dhtab.c32 static struct handle_table *htab = NULL;
/third_party/mesa3d/src/gallium/frontends/wgl/
Dstw_device.h72 struct handle_table *ctx_table;
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_bufmgr.c217 struct hash_table *handle_table; member
1186 bo = find_and_ref_external_bo(bufmgr->handle_table, open_arg.handle); in iris_bo_gem_create_from_name()
1207 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in iris_bo_gem_create_from_name()
1233 entry = _mesa_hash_table_search(bufmgr->handle_table, &bo->gem_handle); in bo_close()
1234 _mesa_hash_table_remove(bufmgr->handle_table, entry); in bo_close()
1684 _mesa_hash_table_destroy(bufmgr->handle_table, NULL); in iris_bufmgr_destroy()
1772 bo = find_and_ref_external_bo(bufmgr->handle_table, handle); in iris_bo_import_dmabuf()
1812 _mesa_hash_table_insert(bufmgr->handle_table, &bo->gem_handle, bo); in iris_bo_import_dmabuf()
1826 _mesa_hash_table_insert(bo->bufmgr->handle_table, &bo->gem_handle, bo); in iris_bo_mark_exported_locked()
2334 bufmgr->handle_table = in iris_bufmgr_create()
/third_party/libdrm/intel/
Dintel_bufmgr_gem.c131 drm_intel_bo_gem *handle_table; member
813 HASH_ADD(handle_hh, bufmgr_gem->handle_table, in drm_intel_gem_bo_alloc_internal()
986 HASH_ADD(handle_hh, bufmgr_gem->handle_table, in drm_intel_gem_bo_alloc_userptr()
1139 HASH_FIND(handle_hh, bufmgr_gem->handle_table, in drm_intel_bo_gem_create_from_name()
1165 HASH_ADD(handle_hh, bufmgr_gem->handle_table, in drm_intel_bo_gem_create_from_name()
1215 HASH_DELETE(handle_hh, bufmgr_gem->handle_table, bo_gem); in drm_intel_gem_bo_free()
2667 HASH_FIND(handle_hh, bufmgr_gem->handle_table, in drm_intel_bo_gem_create_from_prime()
2696 HASH_ADD(handle_hh, bufmgr_gem->handle_table, in drm_intel_bo_gem_create_from_prime()

12