Searched refs:ctx_handles (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
H A D | context.c | 86 rc = idr_alloc(&mgr->ctx_handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create() 113 idr_remove(&mgr->ctx_handles, ctx->handle); in hl_ctx_create() 246 idr_init(&mgr->ctx_handles); in hl_ctx_mgr_init() 264 idp = &mgr->ctx_handles; in hl_ctx_mgr_fini() 269 idr_destroy(&mgr->ctx_handles); in hl_ctx_mgr_fini()
|
H A D | habanalabs.h | 906 * @ctx_lock: protects ctx_handles. 907 * @ctx_handles: idr to hold all ctx handles. 911 struct idr ctx_handles; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ctx.c | 249 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() 346 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query2() 419 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_get() 563 idr_init(&mgr->ctx_handles); in amdgpu_ctx_mgr_init() 572 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_flush() 598 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_fini() 628 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_fini() [all...] |
H A D | amdgpu_ctx.h | 61 struct idr ctx_handles; member
|
H A D | amdgpu_sched.c | 85 idr_for_each_entry(&mgr->ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ctx.c | 487 r = idr_alloc(&mgr->ctx_handles, ctx, 1, AMDGPU_VM_MAX_NUM_CTX, GFP_KERNEL); in amdgpu_ctx_alloc() 497 idr_remove(&mgr->ctx_handles, *id); in amdgpu_ctx_alloc() 529 ctx = idr_remove(&mgr->ctx_handles, id); in amdgpu_ctx_free() 549 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query() 587 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_query2() 649 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_stable_pstate() 732 ctx = idr_find(&mgr->ctx_handles, id); in amdgpu_ctx_get() 881 idr_init_base(&mgr->ctx_handles, 1); in amdgpu_ctx_mgr_init() 893 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_flush() 919 idp = &mgr->ctx_handles; in amdgpu_ctx_mgr_entity_fini() [all...] |
H A D | amdgpu_ctx.h | 67 struct idr ctx_handles; member
|
H A D | amdgpu_sched.c | 57 idr_for_each_entry(&mgr->ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
|
Completed in 9 milliseconds