Lines Matching defs:man

76 int ttm_mem_io_lock(struct ttm_mem_type_manager *man, bool interruptible)
78 if (likely(man->io_reserve_fastpath))
82 if (sx_xlock_sig(&man->io_reserve_mutex))
88 sx_xlock(&man->io_reserve_mutex);
92 void ttm_mem_io_unlock(struct ttm_mem_type_manager *man)
94 if (likely(man->io_reserve_fastpath))
97 sx_xunlock(&man->io_reserve_mutex);
100 static int ttm_mem_io_evict(struct ttm_mem_type_manager *man)
104 if (!man->use_io_reserve_lru || list_empty(&man->io_reserve_lru))
107 bo = list_first_entry(&man->io_reserve_lru,
119 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type];
124 if (likely(man->io_reserve_fastpath))
132 ret = ttm_mem_io_evict(man);
143 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type];
145 if (likely(man->io_reserve_fastpath))
161 struct ttm_mem_type_manager *man =
162 &bo->bdev->man[mem->mem_type];
168 if (man->use_io_reserve_lru)
170 &man->io_reserve_lru);
190 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type];
195 (void) ttm_mem_io_lock(man, false);
197 ttm_mem_io_unlock(man);
208 (void) ttm_mem_io_lock(man, false);
210 ttm_mem_io_unlock(man);
222 struct ttm_mem_type_manager *man;
224 man = &bdev->man[mem->mem_type];
228 (void) ttm_mem_io_lock(man, false);
230 ttm_mem_io_unlock(man);
298 struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type];
365 if ((man->flags & TTM_MEMTYPE_FLAG_FIXED) && (ttm != NULL)) {
533 struct ttm_mem_type_manager *man =
534 &bo->bdev->man[bo->mem.mem_type];
549 (void) ttm_mem_io_lock(man, false);
551 ttm_mem_io_unlock(man);
566 struct ttm_mem_type_manager *man =
567 &bo->bdev->man[bo->mem.mem_type];
588 (void) ttm_mem_io_lock(man, false);
590 ttm_mem_io_unlock(man);
604 struct ttm_mem_type_manager *man = &bdev->man[new_mem->mem_type];
624 if ((man->flags & TTM_MEMTYPE_FLAG_FIXED) &&
655 if (!(man->flags & TTM_MEMTYPE_FLAG_FIXED))