Lines Matching refs:context_xa
74 xa_lock_irq(&vdev->context_xa); in ivpu_file_priv_get_by_ctx_id()
75 file_priv = xa_load(&vdev->context_xa, id); in ivpu_file_priv_get_by_ctx_id()
79 xa_unlock_irq(&vdev->context_xa); in ivpu_file_priv_get_by_ctx_id()
99 drm_WARN_ON(&vdev->drm, xa_erase_irq(&vdev->context_xa, file_priv->ctx.id) != file_priv); in file_priv_release()
233 ret = xa_alloc_irq(&vdev->context_xa, &ctx_id, NULL, vdev->context_xa_limit, GFP_KERNEL); in ivpu_open()
254 old = xa_store_irq(&vdev->context_xa, ctx_id, file_priv, GFP_KERNEL); in ivpu_open()
273 xa_erase_irq(&vdev->context_xa, ctx_id); in ivpu_open()
521 xa_init_flags(&vdev->context_xa, XA_FLAGS_ALLOC); in ivpu_dev_init()
617 xa_destroy(&vdev->context_xa); in ivpu_dev_init()
636 drm_WARN_ON(&vdev->drm, !xa_empty(&vdev->context_xa)); in ivpu_dev_fini()
637 xa_destroy(&vdev->context_xa); in ivpu_dev_fini()