Lines Matching refs:smPriv

533    struct st_manager_private *smPriv =  in st_framebuffer_iface_lookup()  local
537 assert(smPriv); in st_framebuffer_iface_lookup()
538 assert(smPriv->stfbi_ht); in st_framebuffer_iface_lookup()
540 mtx_lock(&smPriv->st_mutex); in st_framebuffer_iface_lookup()
541 entry = _mesa_hash_table_search(smPriv->stfbi_ht, stfbi); in st_framebuffer_iface_lookup()
542 mtx_unlock(&smPriv->st_mutex); in st_framebuffer_iface_lookup()
552 struct st_manager_private *smPriv = in st_framebuffer_iface_insert() local
556 assert(smPriv); in st_framebuffer_iface_insert()
557 assert(smPriv->stfbi_ht); in st_framebuffer_iface_insert()
559 mtx_lock(&smPriv->st_mutex); in st_framebuffer_iface_insert()
560 entry = _mesa_hash_table_insert(smPriv->stfbi_ht, stfbi, stfbi); in st_framebuffer_iface_insert()
561 mtx_unlock(&smPriv->st_mutex); in st_framebuffer_iface_insert()
571 struct st_manager_private *smPriv = in st_framebuffer_iface_remove() local
575 if (!smPriv || !smPriv->stfbi_ht) in st_framebuffer_iface_remove()
578 mtx_lock(&smPriv->st_mutex); in st_framebuffer_iface_remove()
579 entry = _mesa_hash_table_search(smPriv->stfbi_ht, stfbi); in st_framebuffer_iface_remove()
583 _mesa_hash_table_remove(smPriv->stfbi_ht, entry); in st_framebuffer_iface_remove()
586 mtx_unlock(&smPriv->st_mutex); in st_framebuffer_iface_remove()
816 struct st_manager_private *smPriv = smapi->st_manager_private; in st_manager_destroy() local
818 if (smPriv && smPriv->stfbi_ht) { in st_manager_destroy()
819 _mesa_hash_table_destroy(smPriv->stfbi_ht, NULL); in st_manager_destroy()
820 mtx_destroy(&smPriv->st_mutex); in st_manager_destroy()
821 free(smPriv); in st_manager_destroy()
866 struct st_manager_private *smPriv; in st_api_create_context() local
868 smPriv = CALLOC_STRUCT(st_manager_private); in st_api_create_context()
869 mtx_init(&smPriv->st_mutex, mtx_plain); in st_api_create_context()
870 smPriv->stfbi_ht = _mesa_hash_table_create(NULL, in st_api_create_context()
873 smapi->st_manager_private = smPriv; in st_api_create_context()