Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c249 r = idr_alloc(&mgr->ctx_handles, ctx, 1, AMDGPU_VM_MAX_NUM_CTX, GFP_KERNEL); in amdgpu_ctx_alloc()
259 idr_remove(&mgr->ctx_handles, *id); in amdgpu_ctx_alloc()
291 ctx = idr_remove(&mgr->ctx_handles, id); in amdgpu_ctx_free()
311 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query()
349 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query2()
446 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_get()
590 idr_init(&mgr->ctx_handles); in amdgpu_ctx_mgr_init()
599 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_flush()
625 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_fini()
655 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_fini()
[all …]
Damdgpu_ctx.h62 struct idr ctx_handles; member
Damdgpu_sched.c82 idr_for_each_entry(&fpriv->ctx_mgr.ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
/Linux-v5.15/drivers/misc/habanalabs/common/
Dcontext.c149 rc = idr_alloc(&mgr->ctx_handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create()
176 idr_remove(&mgr->ctx_handles, ctx->handle); in hl_ctx_create()
374 idr_init(&mgr->ctx_handles); in hl_ctx_mgr_init()
392 idp = &mgr->ctx_handles; in hl_ctx_mgr_fini()
397 idr_destroy(&mgr->ctx_handles); in hl_ctx_mgr_fini()
Dhabanalabs.h1426 struct idr ctx_handles; member