Lines Matching refs:place
57 static inline int ttm_mem_type_from_place(const struct ttm_place *place, in ttm_mem_type_from_place() argument
63 if (place->flags & (1 << i)) { in ttm_mem_type_from_place()
712 const struct ttm_place *place, in ttm_mem_evict_first() argument
725 if (place && (place->fpfn || place->lpfn)) { in ttm_mem_evict_first()
729 if (place->fpfn >= (bo->mem.start + bo->mem.size) || in ttm_mem_evict_first()
730 (place->lpfn && place->lpfn <= bo->mem.start)) { in ttm_mem_evict_first()
784 const struct ttm_place *place, in ttm_bo_mem_force_space() argument
794 ret = (*man->func->get_node)(man, bo, place, mem); in ttm_bo_mem_force_space()
799 ret = ttm_mem_evict_first(bdev, mem_type, place, in ttm_bo_mem_force_space()
837 const struct ttm_place *place, in ttm_bo_mt_compatible() argument
842 if ((cur_flags & place->flags & TTM_PL_MASK_MEM) == 0) in ttm_bo_mt_compatible()
845 if ((place->flags & man->available_caching) == 0) in ttm_bo_mt_compatible()
848 cur_flags |= (place->flags & man->available_caching); in ttm_bo_mt_compatible()
879 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_mem_space() local
881 ret = ttm_mem_type_from_place(place, &mem_type); in ttm_bo_mem_space()
888 type_ok = ttm_bo_mt_compatible(man, mem_type, place, in ttm_bo_mem_space()
901 ttm_flag_masked(&cur_flags, place->flags, in ttm_bo_mem_space()
907 ret = (*man->func->get_node)(man, bo, place, mem); in ttm_bo_mem_space()
922 const struct ttm_place *place = &placement->busy_placement[i]; in ttm_bo_mem_space() local
924 ret = ttm_mem_type_from_place(place, &mem_type); in ttm_bo_mem_space()
930 if (!ttm_bo_mt_compatible(man, mem_type, place, &cur_flags)) in ttm_bo_mem_space()
940 ttm_flag_masked(&cur_flags, place->flags, in ttm_bo_mem_space()
950 ret = ttm_bo_mem_force_space(bo, mem_type, place, mem, in ttm_bo_mem_space()