Lines Matching refs:busy_bo
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 && !ttm_bo_get_unless_zero(busy_bo)) in ttm_mem_evict_first()
623 busy_bo = NULL; in ttm_mem_evict_first()
625 ret = ttm_mem_evict_wait_busy(busy_bo, ctx, ticket); in ttm_mem_evict_first()
626 if (busy_bo) in ttm_mem_evict_first()
627 ttm_bo_put(busy_bo); in ttm_mem_evict_first()