Searched refs:ctx_handles (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.4/drivers/misc/habanalabs/ |
| D | context.c | 72 rc = idr_alloc(&mgr->ctx_handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create() 99 idr_remove(&mgr->ctx_handles, ctx->handle); in hl_ctx_create() 213 idr_init(&mgr->ctx_handles); in hl_ctx_mgr_init() 231 idp = &mgr->ctx_handles; in hl_ctx_mgr_fini() 236 idr_destroy(&mgr->ctx_handles); in hl_ctx_mgr_fini()
|
| D | habanalabs.h | 674 struct idr ctx_handles; member
|
| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_ctx.c | 266 r = idr_alloc(&mgr->ctx_handles, ctx, 1, AMDGPU_VM_MAX_NUM_CTX, GFP_KERNEL); in amdgpu_ctx_alloc() 276 idr_remove(&mgr->ctx_handles, *id); in amdgpu_ctx_alloc() 305 ctx = idr_remove(&mgr->ctx_handles, id); in amdgpu_ctx_free() 325 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query() 361 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query2() 450 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_get() 567 idr_init(&mgr->ctx_handles); in amdgpu_ctx_mgr_init() 577 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_flush() 599 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_fini() 623 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_fini() [all …]
|
| D | amdgpu_ctx.h | 60 struct idr ctx_handles; member
|
| D | amdgpu_sched.c | 74 idr_for_each_entry(&fpriv->ctx_mgr.ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
|