Home
last modified time | relevance | path

Searched refs:p_atomic_read (Results 1 – 25 of 57) sorted by relevance

123

/external/mesa3d/src/util/
Dos_time.c141 if (!p_atomic_read(var)) in os_wait_until_zero()
148 while (p_atomic_read(var)) { in os_wait_until_zero()
159 while (p_atomic_read(var)) { in os_wait_until_zero()
175 if (!p_atomic_read(var)) in os_wait_until_zero_abs_timeout()
181 while (p_atomic_read(var)) { in os_wait_until_zero_abs_timeout()
Dsparse_array.c135 uintptr_t root = p_atomic_read(&arr->root); in util_sparse_array_get()
178 uintptr_t child = p_atomic_read(&children[child_idx]); in util_sparse_array_get()
213 uintptr_t root = p_atomic_read(&arr->root); in util_sparse_array_validate()
251 old_head = p_atomic_read(&fl->head); in util_sparse_array_free_list_push()
265 current_head = p_atomic_read(&fl->head); in util_sparse_array_free_list_pop_idx()
273 uint64_t new_head = free_list_head(current_head, p_atomic_read(head_next)); in util_sparse_array_free_list_pop_idx()
286 current_head = p_atomic_read(&fl->head); in util_sparse_array_free_list_pop_elem()
294 uint64_t new_head = free_list_head(current_head, p_atomic_read(head_next)); in util_sparse_array_free_list_pop_elem()
Du_atomic.h44 #define p_atomic_read(_v) __atomic_load_n((_v), __ATOMIC_ACQUIRE) macro
58 #define p_atomic_read(_v) (*(_v)) macro
88 #define p_atomic_read(_v) (*(_v)) macro
125 #define p_atomic_read(_v) (*(_v)) macro
175 #define p_atomic_read(_v) (*(_v)) macro
242 uint32_t actual = p_atomic_read(v); in p_atomic_xchg_32()
253 uint64_t actual = p_atomic_read(v); in p_atomic_xchg_64()
Du_atomic_test.c53 r = p_atomic_read(&v); \
79 r = p_atomic_read(&v); \
Dslab.c250 if (p_atomic_read(&elt->owner) == (intptr_t)pool) { in slab_free()
265 owner_int = p_atomic_read(&elt->owner); in slab_free()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_atomic.h46 #define p_atomic_read(_v) (*(_v)) macro
93 #define p_atomic_read(_v) (*(_v)) macro
143 #define p_atomic_read(_v) (*(_v)) macro
185 #define p_atomic_read(_v) (*(_v)) macro
205 #define p_atomic_read(_v) (*(_v)) macro
277 #define p_atomic_read(_v) (*(_v)) macro
320 #define p_atomic_read(_v) (*(_v)) macro
/external/mesa3d/src/gallium/tests/unit/
Dpipe_barrier_test.c79 CHECK(p_atomic_read(&proceeded) == 0); in thread_function()
84 CHECK(p_atomic_read(&waiting) == NUM_THREADS); in thread_function()
124 CHECK(p_atomic_read(&proceeded) == NUM_THREADS); in main()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_viewport.c58 stdraw->iface_stamp = p_atomic_read(&stdraw->iface->stamp) - 1; in st_viewport()
60 stread->iface_stamp = p_atomic_read(&stread->iface->stamp) - 1; in st_viewport()
Dst_manager.c215 new_stamp = p_atomic_read(&stfb->iface->stamp); in st_framebuffer_validate()
228 new_stamp = p_atomic_read(&stfb->iface->stamp); in st_framebuffer_validate()
498 stfb->iface_stamp = p_atomic_read(&stfbi->stamp) - 1; in st_framebuffer_create()
1245 stfb->iface_stamp = p_atomic_read(&stfb->iface->stamp) - 1; in st_manager_add_color_renderbuffer()
/external/mesa3d/src/gallium/winsys/svga/drm/
Dvmw_surface.c146 p_atomic_read(&vsrf->validated)) { in vmw_svga_winsys_surface_map()
161 if (!p_atomic_read(&vsrf->validated)) { in vmw_svga_winsys_surface_map()
207 p_atomic_read(&vsrf->validated)) { in vmw_svga_winsys_surface_map()
267 assert(p_atomic_read(&dst->validated) == 0); in vmw_svga_winsys_surface_reference()
Dvmw_fence.c309 old = p_atomic_read(&vfence->signalled); in vmw_fence_signalled()
369 old = p_atomic_read(&vfence->signalled); in vmw_fence_finish()
Dvmw_shader.c59 assert(p_atomic_read(&dst->validated) == 0); in vmw_svga_winsys_shader_reference()
Dpb_buffer_simple_fenced.c179 p_atomic_read(&fenced_buf->base.reference.count), in fenced_manager_dump_locked()
195 p_atomic_read(&fenced_buf->base.reference.count), in fenced_manager_dump_locked()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_gpu_load.c121 while (!p_atomic_read(&rscreen->gpu_load_stop_thread)) { in r600_gpu_load_thread()
168 unsigned busy = p_atomic_read(&rscreen->mmio_counters.array[busy_index]); in r600_read_mmio_counter()
169 unsigned idle = p_atomic_read(&rscreen->mmio_counters.array[busy_index + 1]); in r600_read_mmio_counter()
Dr600_query.c220 query->begin_result = p_atomic_read(&rctx->screen->num_compilations); in r600_query_sw_begin()
223 query->begin_result = p_atomic_read(&rctx->screen->num_shaders_created); in r600_query_sw_begin()
227 p_atomic_read(&rctx->screen->num_shader_cache_hits); in r600_query_sw_begin()
372 query->end_result = p_atomic_read(&rctx->screen->num_compilations); in r600_query_sw_end()
375 query->end_result = p_atomic_read(&rctx->screen->num_shaders_created); in r600_query_sw_end()
379 p_atomic_read(&rctx->screen->num_shader_cache_hits); in r600_query_sw_end()
/external/mesa3d/src/gallium/frontends/nine/
Dresource9.c85 p_atomic_read(&This->base.device->available_texture_mem) <= in NineResource9_ctor()
88 if (p_atomic_read(&This->base.device->available_texture_mem) <= in NineResource9_ctor()
Dvolume9.c159 if (p_atomic_read(&This->pending_uploads_counter)) in NineVolume9_dtor()
319 if (p_atomic_read(&This->pending_uploads_counter)) in NineVolume9_LockBox()
340 bool no_refs = !p_atomic_read(&This->base.bind) && in NineVolume9_LockBox()
341 !p_atomic_read(&This->base.container->bind); in NineVolume9_LockBox()
Dsurface9.c223 if (p_atomic_read(&This->pending_uploads_counter)) in NineSurface9_dtor()
485 if (p_atomic_read(&This->pending_uploads_counter)) in NineSurface9_LockRect()
514 bool no_refs = !p_atomic_read(&This->base.base.bind) && in NineSurface9_LockRect()
515 !(This->base.base.container && p_atomic_read(&This->base.base.container->bind)); in NineSurface9_LockRect()
726 if (p_atomic_read(&This->pending_uploads_counter)) in NineSurface9_CopyDefaultToMem()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_gpu_load.c137 while (!p_atomic_read(&sscreen->gpu_load_stop_thread)) { in si_gpu_load_thread()
181 unsigned busy = p_atomic_read(&sscreen->mmio_counters.array[busy_index]); in si_read_mmio_counter()
182 unsigned idle = p_atomic_read(&sscreen->mmio_counters.array[busy_index + 1]); in si_read_mmio_counter()
/external/mesa3d/src/intel/common/
Dgen_aux_map.c197 return p_atomic_read(&ctx->state_num); in gen_aux_map_get_state_num()
546 return p_atomic_read(&ctx->num_buffers); in gen_aux_map_get_num_buffers()
553 assert(p_atomic_read(&ctx->num_buffers) >= max_bos); in gen_aux_map_fill_bos()
/external/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c96 if (!p_atomic_read(&res->maybe_busy) && !p_atomic_read(&res->external)) in virgl_drm_resource_is_busy()
137 p_atomic_read(&old->external)) { in virgl_drm_resource_reference()
585 if (!p_atomic_read(&res->maybe_busy) && !p_atomic_read(&res->external)) in virgl_drm_resource_wait()
725 if (!p_atomic_read(&res->num_cs_references)) in virgl_drm_res_is_ref()
/external/mesa3d/src/panfrost/lib/
Dpan_bo.c435 if (p_atomic_read(&bo->refcnt) == 0) { in panfrost_bo_unreference()
491 if (p_atomic_read(&bo->refcnt) == 0) in panfrost_bo_import()
/external/mesa3d/src/gallium/drivers/zink/
Dzink_query.c153 assert(!p_atomic_read(&query->fences)); in destroy_query()
168 if (p_atomic_read(&query->fences)) { in zink_destroy_query()
183 if (p_atomic_read(&query->dead)) in zink_prune_queries()
/external/mesa3d/src/gallium/drivers/iris/
Diris_bufmgr.h447 uint64_t tmp, prev_seqno = p_atomic_read(last_seqno); in iris_bo_bump_seqno()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_buffer_fenced.c215 p_atomic_read(&fenced_buf->base.reference.count), in fenced_manager_dump_locked()
231 p_atomic_read(&fenced_buf->base.reference.count), in fenced_manager_dump_locked()

123