Home
last modified time | relevance | path

Searched refs:busy_bo (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-6.6/drivers/gpu/drm/ttm/
H A Dttm_bo.c557 * @busy_bo: BO which couldn't be locked with trylock
563 static int ttm_mem_evict_wait_busy(struct ttm_buffer_object *busy_bo, in ttm_mem_evict_wait_busy() argument
569 if (!busy_bo || !ticket) in ttm_mem_evict_wait_busy()
573 r = dma_resv_lock_interruptible(busy_bo->base.resv, in ttm_mem_evict_wait_busy()
576 r = dma_resv_lock(busy_bo->base.resv, ticket); in ttm_mem_evict_wait_busy()
584 dma_resv_unlock(busy_bo->base.resv); in ttm_mem_evict_wait_busy()
595 struct ttm_buffer_object *bo = NULL, *busy_bo = NULL; in ttm_mem_evict_first() local
607 if (busy && !busy_bo && ticket != in ttm_mem_evict_first()
609 busy_bo = res->bo; in ttm_mem_evict_first()
622 if (busy_bo in ttm_mem_evict_first()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/
H A Dttm_bo.c702 * @busy_bo: BO which couldn't be locked with trylock
708 static int ttm_mem_evict_wait_busy(struct ttm_buffer_object *busy_bo, in ttm_mem_evict_wait_busy() argument
714 if (!busy_bo || !ticket) in ttm_mem_evict_wait_busy()
718 r = dma_resv_lock_interruptible(busy_bo->base.resv, in ttm_mem_evict_wait_busy()
721 r = dma_resv_lock(busy_bo->base.resv, ticket); in ttm_mem_evict_wait_busy()
729 dma_resv_unlock(busy_bo->base.resv); in ttm_mem_evict_wait_busy()
740 struct ttm_buffer_object *bo = NULL, *busy_bo = NULL; in ttm_mem_evict_first() local
752 if (busy && !busy_bo && ticket != in ttm_mem_evict_first()
754 busy_bo = bo; in ttm_mem_evict_first()
780 if (busy_bo in ttm_mem_evict_first()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_gem_evict.c444 * @busy_bo: Optional pointer to struct drm_i915_gem_object. If not NULL, then
446 * then @busy_bo will point to it. -EBUSY is also returned. The caller must drop
459 struct drm_i915_gem_object **busy_bo) in i915_gem_evict_vm()
499 if (busy_bo) { in i915_gem_evict_vm()
500 *busy_bo = vma->obj; /* holds ref */ in i915_gem_evict_vm()
458 i915_gem_evict_vm(struct i915_address_space *vm, struct i915_gem_ww_ctx *ww, struct drm_i915_gem_object **busy_bo) i915_gem_evict_vm() argument
H A Di915_gem_evict.h28 struct drm_i915_gem_object **busy_bo);
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/
H A Di915_gem_execbuffer.c765 * the busy_bo, using the full lock (after dropping the vm->mutex to in eb_reserve()
794 struct drm_i915_gem_object *busy_bo = NULL; in eb_reserve() local
796 err = i915_gem_evict_vm(eb->context->vm, &eb->ww, &busy_bo); in eb_reserve()
798 if (err && busy_bo) { in eb_reserve()
799 err = i915_gem_object_lock(busy_bo, &eb->ww); in eb_reserve()
800 i915_gem_object_put(busy_bo); in eb_reserve()

Completed in 8 milliseconds