Home
last modified time | relevance | path

Searched refs:fd_tab (Results 1 – 5 of 5) sorted by relevance

/external/mesa3d/src/gallium/winsys/freedreno/drm/
Dfreedreno_drm_winsys.c43 static struct util_hash_table *fd_tab = NULL; variable
57 util_hash_table_remove(fd_tab, intptr_to_pointer(fd)); in fd_drm_screen_destroy()
95 if (!fd_tab) { in fd_drm_screen_create()
96 fd_tab = util_hash_table_create(hash_fd, compare_fd); in fd_drm_screen_create()
97 if (!fd_tab) in fd_drm_screen_create()
101 pscreen = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in fd_drm_screen_create()
113 util_hash_table_set(fd_tab, intptr_to_pointer(fd), pscreen); in fd_drm_screen_create()
/external/mesa3d/src/gallium/winsys/nouveau/drm/
Dnouveau_drm_winsys.c20 static struct util_hash_table *fd_tab = NULL; variable
34 util_hash_table_remove(fd_tab, intptr_to_pointer(screen->drm->fd)); in nouveau_drm_screen_unref()
71 if (!fd_tab) { in nouveau_drm_screen_create()
72 fd_tab = util_hash_table_create(hash_fd, compare_fd); in nouveau_drm_screen_create()
73 if (!fd_tab) { in nouveau_drm_screen_create()
79 screen = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in nouveau_drm_screen_create()
144 util_hash_table_set(fd_tab, intptr_to_pointer(dupfd), screen); in nouveau_drm_screen_create()
/external/libdrm/amdgpu/
Damdgpu_device.c48 static struct util_hash_table *fd_tab; variable
134 util_hash_table_remove(fd_tab, UINT_TO_PTR(dev->fd)); in amdgpu_device_free_internal()
180 if (!fd_tab) in amdgpu_device_initialize()
181 fd_tab = util_hash_table_create(fd_hash, fd_compare); in amdgpu_device_initialize()
189 dev = util_hash_table_get(fd_tab, UINT_TO_PTR(fd)); in amdgpu_device_initialize()
290 util_hash_table_set(fd_tab, UINT_TO_PTR(dev->fd), dev); in amdgpu_device_initialize()
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.c43 static struct util_hash_table *fd_tab = NULL; variable
719 if (destroy && fd_tab) in radeon_winsys_unref()
720 util_hash_table_remove(fd_tab, intptr_to_pointer(rws->fd)); in radeon_winsys_unref()
745 if (!fd_tab) { in radeon_drm_winsys_create()
746 fd_tab = util_hash_table_create(hash_fd, compare_fd); in radeon_drm_winsys_create()
749 ws = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in radeon_drm_winsys_create()
842 util_hash_table_set(fd_tab, intptr_to_pointer(ws->fd), ws); in radeon_drm_winsys_create()
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c818 static struct util_hash_table *fd_tab = NULL; variable
831 util_hash_table_remove(fd_tab, intptr_to_pointer(fd)); in virgl_drm_screen_destroy()
869 if (!fd_tab) { in virgl_drm_screen_create()
870 fd_tab = util_hash_table_create(hash_fd, compare_fd); in virgl_drm_screen_create()
871 if (!fd_tab) in virgl_drm_screen_create()
875 pscreen = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in virgl_drm_screen_create()
886 util_hash_table_set(fd_tab, intptr_to_pointer(dup_fd), pscreen); in virgl_drm_screen_create()