Home
last modified time | relevance | path

Searched refs:ctx_handles (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_context.h164 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()
Dpvr_context.c350 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()
Dpvr_device.h329 struct xarray ctx_handles; member
Dpvr_drv.c1332 xa_init_flags(&pvr_file->ctx_handles, XA_FLAGS_ALLOC1); in pvr_drm_driver_open()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c488 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 …]
Damdgpu_ctx.h67 struct idr ctx_handles; member
Damdgpu_sched.c56 idr_for_each_entry(&mgr->ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()