Home
last modified time | relevance | path

Searched refs:context_xa (Results 1 – 9 of 9) sorted by relevance

/linux-6.3-rc2/drivers/accel/ivpu/
A Divpu_drv.c70 xa_lock_irq(&vdev->context_xa); in ivpu_file_priv_get_by_ctx_id()
71 file_priv = xa_load(&vdev->context_xa, id); in ivpu_file_priv_get_by_ctx_id()
75 xa_unlock_irq(&vdev->context_xa); in ivpu_file_priv_get_by_ctx_id()
95 drm_WARN_ON(&vdev->drm, xa_erase_irq(&vdev->context_xa, file_priv->ctx.id) != file_priv); in file_priv_release()
205 ret = xa_alloc_irq(&vdev->context_xa, &ctx_id, NULL, vdev->context_xa_limit, GFP_KERNEL); in ivpu_open()
226 old = xa_store_irq(&vdev->context_xa, ctx_id, file_priv, GFP_KERNEL); in ivpu_open()
245 xa_erase_irq(&vdev->context_xa, ctx_id); in ivpu_open()
476 xa_init_flags(&vdev->context_xa, XA_FLAGS_ALLOC); in ivpu_dev_init()
570 xa_destroy(&vdev->context_xa); in ivpu_dev_init()
585 drm_WARN_ON(&vdev->drm, !xa_empty(&vdev->context_xa)); in ivpu_dev_fini()
[all …]
A Divpu_mmu_context.c358 xa_lock(&vdev->context_xa); in ivpu_mmu_user_context_mark_invalid()
360 file_priv = xa_load(&vdev->context_xa, ssid); in ivpu_mmu_user_context_mark_invalid()
364 xa_unlock(&vdev->context_xa); in ivpu_mmu_user_context_mark_invalid()
A Divpu_drv.h96 struct xarray context_xa; member
A Divpu_job.c169 xa_for_each(&vdev->context_xa, ctx_id, file_priv) { in ivpu_cmdq_reset_all_contexts()
A Divpu_gem.c730 xa_for_each(&vdev->context_xa, ctx_id, file_priv) { in ivpu_bo_list()
/linux-6.3-rc2/drivers/gpu/drm/i915/
A Di915_file_private.h87 struct xarray context_xa; member
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/
A Di915_gem_throttle.c53 xa_for_each(&file_priv->context_xa, idx, ctx) { in i915_gem_throttle_ioctl()
A Di915_gem_context.c322 ret = xa_alloc(&fpriv->context_xa, id, NULL, xa_limit_32b, GFP_KERNEL); in proto_context_register_locked()
328 xa_erase(&fpriv->context_xa, *id); in proto_context_register_locked()
1718 old = xa_store(&fpriv->context_xa, id, ctx, GFP_KERNEL); in gem_context_register()
1734 xa_init_flags(&file_priv->context_xa, XA_FLAGS_ALLOC1); in i915_gem_context_open()
1758 xa_destroy(&file_priv->context_xa); in i915_gem_context_open()
1777 xa_for_each(&file_priv->context_xa, idx, ctx) in i915_gem_context_close()
1779 xa_destroy(&file_priv->context_xa); in i915_gem_context_close()
2192 ctx = xa_load(&file_priv->context_xa, id); in __context_lookup()
2300 ret = xa_alloc(&ext_data.fpriv->context_xa, &id, NULL, in i915_gem_context_create_ioctl()
2346 ctx = xa_erase(&file_priv->context_xa, args->ctx_id); in i915_gem_context_destroy_ioctl()
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/selftests/
A Dmock_context.c97 err = xa_alloc(&fpriv->context_xa, &id, NULL, xa_limit_32b, GFP_KERNEL); in live_context()

Completed in 18 milliseconds