Searched refs:ctx_mgr (Results 1 – 12 of 12) sorted by relevance
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | context.c | 143 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 …]
|
D | habanalabs_drv.c | 156 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()
|
D | device.c | 466 hl_ctx_mgr_fini(hdev, &hpriv->ctx_mgr); in hl_device_release()
|
D | habanalabs.h | 2223 struct hl_ctx_mgr ctx_mgr; member
|
/linux-6.1.9/drivers/gpu/drm/lima/ |
D | lima_drv.c | 150 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()
|
D | lima_drv.h | 24 struct lima_ctx_mgr ctx_mgr; member
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ctx.c | 452 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()
|
D | amdgpu_fdinfo.c | 81 amdgpu_ctx_mgr_usage(&fpriv->ctx_mgr, usage); in amdgpu_show_fdinfo()
|
D | amdgpu_sched.c | 54 idr_for_each_entry(&fpriv->ctx_mgr.ctx_handles, ctx, id) in amdgpu_sched_process_priority_override()
|
D | amdgpu_kms.c | 1187 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()
|
D | amdgpu.h | 484 struct amdgpu_ctx_mgr ctx_mgr; member
|
D | amdgpu_drv.c | 2714 timeout = amdgpu_ctx_mgr_entity_flush(&fpriv->ctx_mgr, timeout); in amdgpu_flush()
|