Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
H A 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 …]
H A Damdgpu_ctx.h67 struct idr ctx_handles; member
H A Damdgpu_sched.c56 idr_for_each_entry(&mgr->ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_context.h143 xa_lock(&pvr_file->ctx_handles); in pvr_context_lookup()
144 ctx = pvr_context_get(xa_load(&pvr_file->ctx_handles, handle)); in pvr_context_lookup()
145 xa_unlock(&pvr_file->ctx_handles); in pvr_context_lookup()
H A Dpvr_context.c346 err = xa_alloc(&pvr_file->ctx_handles, &args->handle, ctx, xa_limit_32b, GFP_KERNEL); in pvr_context_create()
417 struct pvr_context *ctx = xa_erase(&pvr_file->ctx_handles, handle); in pvr_context_destroy()
443 xa_for_each(&pvr_file->ctx_handles, handle, ctx) in pvr_destroy_contexts_for_file()
H A Dpvr_device.h317 * @ctx_handles: Array of contexts belonging to this file. Array members
322 struct xarray ctx_handles; member
H A Dpvr_drv.c1329 xa_init_flags(&pvr_file->ctx_handles, XA_FLAGS_ALLOC1); in pvr_drm_driver_open()