Lines Matching refs:lret
508 s64 lret; in ttm_bo_evict_cb() local
514 lret = ttm_bo_wait_ctx(bo, walk->ctx); in ttm_bo_evict_cb()
515 if (!lret) in ttm_bo_evict_cb()
518 lret = ttm_bo_evict(bo, walk->ctx); in ttm_bo_evict_cb()
521 if (lret) in ttm_bo_evict_cb()
526 lret = ttm_resource_alloc(evict_walk->evictor, evict_walk->place, in ttm_bo_evict_cb()
528 if (lret == 0) in ttm_bo_evict_cb()
532 if (lret == -ENOSPC) in ttm_bo_evict_cb()
535 return lret; in ttm_bo_evict_cb()
560 s64 lret; in ttm_bo_evict_alloc() local
563 lret = ttm_lru_walk_for_evict(&evict_walk.walk, bdev, man, 1); in ttm_bo_evict_alloc()
564 if (lret || !ticket) in ttm_bo_evict_alloc()
573 lret = ttm_lru_walk_for_evict(&evict_walk.walk, bdev, man, 1); in ttm_bo_evict_alloc()
574 } while (!lret && evict_walk.evicted); in ttm_bo_evict_alloc()
576 if (lret < 0) in ttm_bo_evict_alloc()
577 return lret; in ttm_bo_evict_alloc()
578 if (lret == 0) in ttm_bo_evict_alloc()