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.c42 static struct hash_table *fd_tab = NULL; variable
56 _mesa_hash_table_remove_key(fd_tab, intptr_to_pointer(fd)); in fd_drm_screen_destroy()
72 if (!fd_tab) { in fd_drm_screen_create()
73 fd_tab = util_hash_table_create_fd_keys(); in fd_drm_screen_create()
74 if (!fd_tab) in fd_drm_screen_create()
78 pscreen = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in fd_drm_screen_create()
90 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(fd), pscreen); in fd_drm_screen_create()
/external/mesa3d/src/gallium/winsys/lima/drm/
Dlima_drm_winsys.c38 static struct hash_table *fd_tab = NULL; variable
51 _mesa_hash_table_remove_key(fd_tab, intptr_to_pointer(fd)); in lima_drm_screen_destroy()
67 if (!fd_tab) { in lima_drm_screen_create()
68 fd_tab = util_hash_table_create_fd_keys(); in lima_drm_screen_create()
69 if (!fd_tab) in lima_drm_screen_create()
73 pscreen = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in lima_drm_screen_create()
81 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dup_fd), pscreen); in lima_drm_screen_create()
/external/mesa3d/src/gallium/winsys/nouveau/drm/
Dnouveau_drm_winsys.c22 static struct hash_table *fd_tab = NULL; variable
36 _mesa_hash_table_remove_key(fd_tab, intptr_to_pointer(screen->drm->fd)); in nouveau_drm_screen_unref()
51 if (!fd_tab) { in nouveau_drm_screen_create()
52 fd_tab = util_hash_table_create_fd_keys(); in nouveau_drm_screen_create()
53 if (!fd_tab) { in nouveau_drm_screen_create()
59 screen = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in nouveau_drm_screen_create()
126 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dupfd), screen); in nouveau_drm_screen_create()
/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_winsys.c46 static struct hash_table *fd_tab = NULL; variable
785 if (destroy && fd_tab) { in radeon_winsys_unref()
786 _mesa_hash_table_remove_key(fd_tab, intptr_to_pointer(rws->fd)); in radeon_winsys_unref()
787 if (_mesa_hash_table_num_entries(fd_tab) == 0) { in radeon_winsys_unref()
788 _mesa_hash_table_destroy(fd_tab, NULL); in radeon_winsys_unref()
789 fd_tab = NULL; in radeon_winsys_unref()
821 if (!fd_tab) { in radeon_drm_winsys_create()
822 fd_tab = util_hash_table_create_fd_keys(); in radeon_drm_winsys_create()
825 ws = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in radeon_drm_winsys_create()
946 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(ws->fd), ws); in radeon_drm_winsys_create()
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c1118 static struct hash_table *fd_tab = NULL; variable
1131 _mesa_hash_table_remove_key(fd_tab, intptr_to_pointer(fd)); in virgl_drm_screen_destroy()
1148 if (!fd_tab) { in virgl_drm_screen_create()
1149 fd_tab = util_hash_table_create_fd_keys(); in virgl_drm_screen_create()
1150 if (!fd_tab) in virgl_drm_screen_create()
1154 pscreen = util_hash_table_get(fd_tab, intptr_to_pointer(fd)); in virgl_drm_screen_create()
1169 _mesa_hash_table_insert(fd_tab, intptr_to_pointer(dup_fd), pscreen); in virgl_drm_screen_create()