Searched refs:ctx_handles (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/imagination/ |
D | pvr_context.h | 164 xa_lock(&pvr_file->ctx_handles); in pvr_context_lookup() 165 ctx = pvr_context_get(xa_load(&pvr_file->ctx_handles, handle)); in pvr_context_lookup() 166 xa_unlock(&pvr_file->ctx_handles); in pvr_context_lookup()
|
D | pvr_context.c | 350 err = xa_alloc(&pvr_file->ctx_handles, &args->handle, ctx, xa_limit_32b, GFP_KERNEL); in pvr_context_create() 430 struct pvr_context *ctx = xa_erase(&pvr_file->ctx_handles, handle); in pvr_context_destroy() 457 xa_for_each(&pvr_file->ctx_handles, handle, ctx) in pvr_destroy_contexts_for_file()
|
D | pvr_device.h | 329 struct xarray ctx_handles; member
|
D | pvr_drv.c | 1332 xa_init_flags(&pvr_file->ctx_handles, XA_FLAGS_ALLOC1); in pvr_drm_driver_open()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ctx.c | 488 r = idr_alloc(&mgr->ctx_handles, ctx, 1, AMDGPU_VM_MAX_NUM_CTX, GFP_KERNEL); in amdgpu_ctx_alloc() 498 idr_remove(&mgr->ctx_handles, *id); in amdgpu_ctx_alloc() 530 ctx = idr_remove(&mgr->ctx_handles, id); in amdgpu_ctx_free() 550 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query() 588 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query2() 650 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_stable_pstate() 741 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_get() 890 idr_init_base(&mgr->ctx_handles, 1); in amdgpu_ctx_mgr_init() 902 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_flush() 928 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_fini() [all …]
|
D | amdgpu_ctx.h | 67 struct idr ctx_handles; member
|
D | amdgpu_sched.c | 56 idr_for_each_entry(&mgr->ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
|