Searched refs:num_cs_references (Results 1 – 10 of 10) sorted by relevance
109 int num_refs = bo->num_cs_references; in radeon_bo_is_referenced_by_cs()120 if (!bo->num_cs_references) in radeon_bo_is_referenced_by_cs_for_write()136 return bo->num_cs_references != 0; in radeon_bo_is_referenced_by_any_cs()
137 p_atomic_dec(&csc->relocs_bo[i].bo->num_cs_references); in radeon_cs_context_cleanup()141 p_atomic_dec(&csc->slab_buffers[i].bo->num_cs_references); in radeon_cs_context_cleanup()289 p_atomic_inc(&bo->num_cs_references); in radeon_lookup_or_add_real_buffer()342 p_atomic_inc(&bo->num_cs_references); in radeon_lookup_or_add_slab_buffer()421 p_atomic_dec(&cs->csc->relocs_bo[i].bo->num_cs_references); in radeon_drm_cs_validate()526 assert(fence->num_cs_references); in radeon_bo_slab_fence()531 if (bo->u.slab.fences[src]->num_cs_references) { in radeon_bo_slab_fence()746 if (!bo->num_cs_references) in radeon_bo_is_referenced()
66 int num_cs_references; member
245 int num_refs = bo->num_cs_references; in amdgpu_bo_is_referenced_by_cs()258 if (!bo->num_cs_references) in amdgpu_bo_is_referenced_by_cs_with_usage()275 return bo->num_cs_references != 0; in amdgpu_bo_is_referenced_by_any_cs()
102 int num_cs_references; member
487 p_atomic_inc(&bo->num_cs_references); in amdgpu_do_add_real_buffer()556 p_atomic_inc(&bo->num_cs_references); in amdgpu_lookup_or_add_slab_buffer()599 p_atomic_inc(&bo->num_cs_references); in amdgpu_lookup_or_add_sparse_buffer()909 p_atomic_dec(&cs->real_buffers[i].bo->num_cs_references); in amdgpu_cs_context_cleanup()913 p_atomic_dec(&cs->slab_buffers[i].bo->num_cs_references); in amdgpu_cs_context_cleanup()917 p_atomic_dec(&cs->sparse_buffers[i].bo->num_cs_references); in amdgpu_cs_context_cleanup()
214 p_atomic_set(&res->num_cs_references, 0); in virgl_drm_winsys_resource_create_blob()271 p_atomic_set(&res->num_cs_references, 0); in virgl_drm_winsys_resource_create()500 res->num_cs_references = 0; in virgl_drm_winsys_resource_create_handle()622 p_atomic_dec(&cbuf->res_bo[i]->num_cs_references); in virgl_drm_free_res_list()684 p_atomic_inc(&res->num_cs_references); in virgl_drm_add_res()697 p_atomic_dec(&cbuf->res_bo[i]->num_cs_references); in virgl_drm_clear_res_list()725 if (!p_atomic_read(&res->num_cs_references)) in virgl_drm_res_is_ref()
42 int num_cs_references; member
297 p_atomic_set(&res->num_cs_references, 0); in virgl_vtest_winsys_resource_create()407 p_atomic_dec(&cbuf->res_bo[i]->num_cs_references); in virgl_vtest_release_all_res()438 p_atomic_inc(&res->num_cs_references); in virgl_vtest_add_res()536 if (!p_atomic_read(&res->num_cs_references)) in virgl_vtest_res_is_ref()
58 int num_cs_references; member