Searched refs:ctx_mgr (Results 1 – 13 of 13) sorted by relevance
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | context.c | 153 struct hl_ctx_mgr *ctx_mgr = &hpriv->ctx_mgr; in hl_ctx_create() local 163 mutex_lock(&ctx_mgr->lock); in hl_ctx_create() 164 rc = idr_alloc(&ctx_mgr->handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create() 165 mutex_unlock(&ctx_mgr->lock); in hl_ctx_create() 190 mutex_lock(&ctx_mgr->lock); in hl_ctx_create() 191 idr_remove(&ctx_mgr->handles, ctx->handle); in hl_ctx_create() 192 mutex_unlock(&ctx_mgr->lock); in hl_ctx_create() 417 void hl_ctx_mgr_init(struct hl_ctx_mgr *ctx_mgr) in hl_ctx_mgr_init() argument 419 mutex_init(&ctx_mgr->lock); in hl_ctx_mgr_init() 420 idr_init(&ctx_mgr->handles); in hl_ctx_mgr_init() [all …]
|
H A D | habanalabs_drv.c | 167 hl_ctx_mgr_init(&hpriv->ctx_mgr); in hl_device_open() 237 hl_ctx_mgr_fini(hpriv->hdev, &hpriv->ctx_mgr); in hl_device_open()
|
H A D | device.c | 539 hl_ctx_mgr_fini(hdev, &hpriv->ctx_mgr); in hl_device_release()
|
H A D | habanalabs.h | 2273 struct hl_ctx_mgr ctx_mgr; member
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_ctx.c | 234 fpriv = container_of(ctx->ctx_mgr, struct amdgpu_fpriv, ctx_mgr); in amdgpu_ctx_init_entity() 351 ctx->ctx_mgr = &(fpriv->ctx_mgr); in amdgpu_ctx_init() 478 struct amdgpu_ctx_mgr *mgr = &fpriv->ctx_mgr; in amdgpu_ctx_alloc() 525 struct amdgpu_ctx_mgr *mgr = &fpriv->ctx_mgr; in amdgpu_ctx_free() 547 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_query() 585 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_query2() 647 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_stable_pstate() 737 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_get()
|
H A D | amdgpu_ctx.h | 60 struct amdgpu_ctx_mgr *ctx_mgr; member
|
H A D | amdgpu_sched.c | 55 mgr = &fpriv->ctx_mgr; in amdgpu_sched_process_priority_override()
|
H A D | amdgpu_fdinfo.c | 81 amdgpu_ctx_mgr_usage(&fpriv->ctx_mgr, usage); in amdgpu_show_fdinfo()
|
H A D | amdgpu_kms.c | 1296 amdgpu_ctx_mgr_init(&fpriv->ctx_mgr, adev); in amdgpu_driver_open_kms() 1363 amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr); in amdgpu_driver_postclose_kms()
|
H A D | amdgpu.h | 471 struct amdgpu_ctx_mgr ctx_mgr; member
|
H A D | amdgpu_drv.c | 2743 timeout = amdgpu_ctx_mgr_entity_flush(&fpriv->ctx_mgr, timeout); in amdgpu_flush()
|
/openbmc/linux/drivers/gpu/drm/lima/ |
H A D | lima_drv.c | 151 ctx = lima_ctx_get(&priv->ctx_mgr, args->ctx); in lima_ioctl_gem_submit() 198 return lima_ctx_create(ldev, &priv->ctx_mgr, &args->id); in lima_ioctl_ctx_create() 209 return lima_ctx_free(&priv->ctx_mgr, args->id); in lima_ioctl_ctx_free() 228 lima_ctx_mgr_init(&priv->ctx_mgr); in lima_drm_driver_open() 242 lima_ctx_mgr_fini(&priv->ctx_mgr); in lima_drm_driver_postclose()
|
H A D | lima_drv.h | 24 struct lima_ctx_mgr ctx_mgr; member
|