Home
last modified time | relevance | path

Searched refs:ctx_mgr (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/misc/habanalabs/common/
Dcontext.c143 struct hl_ctx_mgr *ctx_mgr = &hpriv->ctx_mgr; in hl_ctx_create() local
153 mutex_lock(&ctx_mgr->lock); in hl_ctx_create()
154 rc = idr_alloc(&ctx_mgr->handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create()
155 mutex_unlock(&ctx_mgr->lock); in hl_ctx_create()
180 mutex_lock(&ctx_mgr->lock); in hl_ctx_create()
181 idr_remove(&ctx_mgr->handles, ctx->handle); in hl_ctx_create()
182 mutex_unlock(&ctx_mgr->lock); in hl_ctx_create()
407 void hl_ctx_mgr_init(struct hl_ctx_mgr *ctx_mgr) in hl_ctx_mgr_init() argument
409 mutex_init(&ctx_mgr->lock); in hl_ctx_mgr_init()
410 idr_init(&ctx_mgr->handles); in hl_ctx_mgr_init()
[all …]
Dhabanalabs_drv.c156 hl_ctx_mgr_init(&hpriv->ctx_mgr); in hl_device_open()
227 hl_ctx_mgr_fini(hpriv->hdev, &hpriv->ctx_mgr); in hl_device_open()
Ddevice.c466 hl_ctx_mgr_fini(hdev, &hpriv->ctx_mgr); in hl_device_release()
Dhabanalabs.h2223 struct hl_ctx_mgr ctx_mgr; member
/linux-6.1.9/drivers/gpu/drm/lima/
Dlima_drv.c150 ctx = lima_ctx_get(&priv->ctx_mgr, args->ctx); in lima_ioctl_gem_submit()
197 return lima_ctx_create(ldev, &priv->ctx_mgr, &args->id); in lima_ioctl_ctx_create()
208 return lima_ctx_free(&priv->ctx_mgr, args->id); in lima_ioctl_ctx_free()
227 lima_ctx_mgr_init(&priv->ctx_mgr); in lima_drm_driver_open()
241 lima_ctx_mgr_fini(&priv->ctx_mgr); in lima_drm_driver_postclose()
Dlima_drv.h24 struct lima_ctx_mgr ctx_mgr; member
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c452 struct amdgpu_ctx_mgr *mgr = &fpriv->ctx_mgr; in amdgpu_ctx_alloc()
499 struct amdgpu_ctx_mgr *mgr = &fpriv->ctx_mgr; in amdgpu_ctx_free()
521 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_query()
559 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_query2()
620 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_stable_pstate()
700 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_get()
Damdgpu_fdinfo.c81 amdgpu_ctx_mgr_usage(&fpriv->ctx_mgr, usage); in amdgpu_show_fdinfo()
Damdgpu_sched.c54 idr_for_each_entry(&fpriv->ctx_mgr.ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
Damdgpu_kms.c1187 amdgpu_ctx_mgr_init(&fpriv->ctx_mgr, adev); in amdgpu_driver_open_kms()
1254 amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr); in amdgpu_driver_postclose_kms()
Damdgpu.h484 struct amdgpu_ctx_mgr ctx_mgr; member
Damdgpu_drv.c2714 timeout = amdgpu_ctx_mgr_entity_flush(&fpriv->ctx_mgr, timeout); in amdgpu_flush()