Lines Matching defs:lru
183 BUG_ON(!list_empty(&bo->lru));
202 if (!list_empty(&bo->lru))
209 list_add_tail(&bo->lru, &man->lru[bo->priority]);
235 if (!list_empty(&bo->lru)) {
236 list_del_init(&bo->lru);
293 list_bulk_move_tail(&man->lru[i], &pos->first->lru,
294 &pos->last->lru);
308 list_bulk_move_tail(&man->lru[i], &pos->first->lru,
309 &pos->last->lru);
314 struct list_head *lru;
322 lru = &ttm_bo_glob.swap_lru[i];
323 list_bulk_move_tail(lru, &pos->first->swap, &pos->last->swap);
541 * If bo idle, remove from delayed- and lru lists, and unref.
545 * will drop the lru lock and optionally the reservation lock before returning.
865 list_for_each_entry(bo, &man->lru[i], lru) {
886 if (&bo->lru != &man->lru[i])
965 * Repeatedly evict memory from the LRU for @mem_type until we create enough
1174 if (bo->mem.mem_type == TTM_PL_SYSTEM && !list_empty(&bo->lru)) {
1337 INIT_LIST_HEAD(&bo->lru);
1517 while (!list_empty(&man->lru[i])) {
1629 INIT_LIST_HEAD(&man->lru[i]);
1749 if (list_empty(&bdev->man[0].lru[0]))
1990 * Unreserve without putting on LRU to avoid swapping out an