Home
last modified time | relevance | path

Searched refs:p_atomic_add (Results 1 – 25 of 28) sorted by relevance

12

/third_party/mesa3d/src/util/
Du_atomic.h49 #define p_atomic_add(v, i) (void) __atomic_add_fetch((v), (i), __ATOMIC_ACQ_REL) macro
65 #define p_atomic_add(v, i) (void) __sync_add_and_fetch((v), (i)) macro
98 #define p_atomic_add(_v, _i) ((void) p_atomic_add_return((_v), (_i))) macro
157 #define p_atomic_add(_v, _i) \ macro
238 #define p_atomic_add(v, i) (void) ( \ macro
Ddisk_cache_os.c450 p_atomic_add(cache->size, - (uint64_t)size); in disk_cache_evict_lru_item()
477 p_atomic_add(cache->size, - (uint64_t)size); in disk_cache_evict_lru_item()
493 p_atomic_add(cache->size, - (uint64_t)sb.st_blocks * 512); in disk_cache_evict_item()
792 p_atomic_add(dc_job->cache->size, sb.st_blocks * 512); in disk_cache_write_item_to_disk()
/third_party/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_screen.h123 p_atomic_add(&(s)->stats.named.n, (v)); \
126 p_atomic_add(&nouveau_screen((r)->base.screen)->stats.named.n, v); \
Dnouveau_mm.c158 p_atomic_add(&cache->allocated, size); in mm_slab_new()
/third_party/mesa3d/src/gallium/frontends/nine/
Dresource9.c82 p_atomic_add(&This->base.device->available_texture_mem, -This->size); in NineResource9_ctor()
124 p_atomic_add(&This->base.device->available_texture_mem, This->size); in NineResource9_dtor()
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_bo.c357 p_atomic_add(&ws->allocated_vram, -align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_destroy()
359 p_atomic_add(&ws->allocated_vram_vis, -align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_destroy()
364 p_atomic_add(&ws->allocated_gtt, -align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_destroy()
534 p_atomic_add(&ws->allocated_vram, align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_create()
536 p_atomic_add(&ws->allocated_vram_vis, align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_create()
541 p_atomic_add(&ws->allocated_gtt, align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_create()
657 p_atomic_add(&ws->allocated_gtt, align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_from_ptr()
747 p_atomic_add(&ws->allocated_vram, align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_from_fd()
749 p_atomic_add(&ws->allocated_gtt, align64(bo->size, ws->info.gart_page_size)); in radv_amdgpu_winsys_bo_from_fd()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_upload_mgr.c160 p_atomic_add(&upload->buffer->reference.count, in u_upload_release_buffer()
237 p_atomic_add(&upload->buffer->reference.count, upload->buffer_private_refcount); in u_upload_alloc_buffer()
Du_vbuf.c1439 p_atomic_add(&info->index.resource->reference.count, draw_count - 1); in u_vbuf_split_indexed_multidraw()
1507 p_atomic_add(&info->index.resource->reference.count, num_draws - 1); in u_vbuf_draw_vbo()
Du_threaded_context.c268 p_atomic_add(&tc->num_offloaded_slots, next->num_total_slots); in tc_batch_flush()
360 p_atomic_add(&tc->num_direct_slots, next->num_total_slots); in _tc_sync()
/third_party/mesa3d/src/mesa/main/
Dglthread.c238 p_atomic_add(&glthread->stats.num_offloaded_items, glthread->used); in _mesa_glthread_flush_batch()
280 p_atomic_add(&glthread->stats.num_direct_items, glthread->used); in _mesa_glthread_finish()
Dbufferobj.h63 p_atomic_add(&buffer->reference.count, obj->private_refcount); in _mesa_get_bufferobj_reference()
Dglthread_bufferobj.c102 p_atomic_add(&glthread->upload_buffer->RefCount, in _mesa_glthread_upload()
Dbufferobj.c1021 p_atomic_add(&obj->buffer->reference.count, in _mesa_bufferobj_release_buffer()
1193 p_atomic_add(&buf->RefCount, buf->CtxRefCount); in detach_ctx_from_buffer()
/third_party/mesa3d/src/util/tests/
Du_atomic_test.cpp134 p_atomic_add(&v, 42); in TYPED_TEST()
/third_party/mesa3d/src/mesa/state_tracker/
Dst_sampler_view.c51 p_atomic_add(&sv->view->reference.count, -sv->private_refcount); in st_remove_private_references()
66 p_atomic_add(&view->reference.count, sv->private_refcount); in get_sampler_view_reference()
/third_party/mesa3d/src/mesa/vbo/
Dvbo_save_draw.c266 p_atomic_add(&state->reference.count, add_refs); in vbo_save_playback_vertex_list_gallium()
/third_party/mesa3d/docs/relnotes/
D19.2.2.rst54 - util: Make Solaris implemention of p_atomic_add work with gcc
D19.1.8.rst79 - util: Make Solaris implemention of p_atomic_add work with gcc
D10.6.0.rst168 \`r == 65 && "p_atomic_add"' failed.
/third_party/mesa3d/src/amd/common/
Dac_surface_meta_address_test.c394 p_atomic_add(&fails, local_fails); in run_dcc_address_test()
395 p_atomic_add(&total, local_total); in run_dcc_address_test()
/third_party/mesa3d/src/gallium/drivers/tegra/
Dtegra_screen.c360 p_atomic_add(&resource->gpu->reference.count, -resource->refcount); in tegra_screen_resource_destroy()
Dtegra_context.c580 p_atomic_add(&view->gpu->reference.count, view->refcount); in tegra_set_sampler_views()
876 p_atomic_add(&view->gpu->reference.count, -view->refcount); in tegra_sampler_view_destroy()
/third_party/mesa3d/src/gallium/auxiliary/driver_trace/
Dtr_context.c1127 p_atomic_add(&tr_view->sampler_view->reference.count, -tr_view->refcount); in trace_context_sampler_view_destroy()
1216 p_atomic_add(&tr_view->sampler_view->reference.count, tr_view->refcount); in trace_context_set_sampler_views()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_device.c2325 p_atomic_add(&mem_heap->used, -mem->bo->size); in tu_AllocateMemory()
2367 p_atomic_add(&device->physical_device->heap.used, -mem->bo->size); in tu_FreeMemory()
/third_party/mesa3d/src/intel/vulkan/
Danv_device.c4022 p_atomic_add(&mem_heap->used, -mem->bo->size); in anv_AllocateMemory()
4128 p_atomic_add(&device->physical->memory.heaps[mem->type->heapIndex].used, in anv_FreeMemory()

12