Searched refs:ctx_mgr (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/accel/habanalabs/common/ |
| H A D | context.c | 154 struct hl_ctx_mgr *ctx_mgr = &hpriv->ctx_mgr; in hl_ctx_create() local 164 mutex_lock(&ctx_mgr->lock); in hl_ctx_create() 165 rc = idr_alloc(&ctx_mgr->handles, ctx, 1, 0, GFP_KERNEL); in hl_ctx_create() 166 mutex_unlock(&ctx_mgr->lock); in hl_ctx_create() 191 mutex_lock(&ctx_mgr->lock); in hl_ctx_create() 192 idr_remove(&ctx_mgr->handles, ctx->handle); in hl_ctx_create() 193 mutex_unlock(&ctx_mgr->lock); in hl_ctx_create() 420 void hl_ctx_mgr_init(struct hl_ctx_mgr *ctx_mgr) in hl_ctx_mgr_init() argument 422 mutex_init(&ctx_mgr->lock); in hl_ctx_mgr_init() 423 idr_init(&ctx_mgr->handles); in hl_ctx_mgr_init() [all …]
|
| H A D | habanalabs_drv.c | 194 hl_ctx_mgr_init(&hpriv->ctx_mgr); in hl_device_open() 267 hl_ctx_mgr_fini(hpriv->hdev, &hpriv->ctx_mgr); in hl_device_open()
|
| H A D | device.c | 609 hl_ctx_mgr_fini(hdev, &hpriv->ctx_mgr); in hl_device_release()
|
| /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 | 25 struct lima_ctx_mgr ctx_mgr; member
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_kms.c | 1517 amdgpu_ctx_mgr_init(&fpriv->ctx_mgr, adev); in amdgpu_driver_open_kms() 1583 amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr); in amdgpu_driver_postclose_kms()
|
| H A D | amdgpu_drv.c | 3007 timeout = amdgpu_ctx_mgr_entity_flush(&fpriv->ctx_mgr, timeout); in amdgpu_flush()
|