Lines Matching full:place
59 static inline int ttm_mem_type_from_place(const struct ttm_place *place, in ttm_mem_type_from_place() argument
64 pos = ffs(place->flags & TTM_PL_MASK_MEM); in ttm_mem_type_from_place()
330 * This is the place to put in driver specific hooks to release
669 const struct ttm_place *place) in ttm_bo_eviction_valuable() argument
674 if (place->fpfn >= (bo->mem.start + bo->mem.num_pages) || in ttm_bo_eviction_valuable()
675 (place->lpfn && place->lpfn <= bo->mem.start)) in ttm_bo_eviction_valuable()
713 const struct ttm_place *place, in ttm_mem_evict_first() argument
729 if (place && !bdev->driver->eviction_valuable(bo, in ttm_mem_evict_first()
730 place)) { in ttm_mem_evict_first()
818 const struct ttm_place *place, in ttm_bo_mem_force_space() argument
827 ret = (*man->func->get_node)(man, bo, place, mem); in ttm_bo_mem_force_space()
832 ret = ttm_mem_evict_first(bdev, mem_type, place, ctx); in ttm_bo_mem_force_space()
867 const struct ttm_place *place, in ttm_bo_mt_compatible() argument
872 if ((cur_flags & place->flags & TTM_PL_MASK_MEM) == 0) in ttm_bo_mt_compatible()
875 if ((place->flags & man->available_caching) == 0) in ttm_bo_mt_compatible()
878 cur_flags |= (place->flags & man->available_caching); in ttm_bo_mt_compatible()
912 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_mem_space() local
914 ret = ttm_mem_type_from_place(place, &mem_type); in ttm_bo_mem_space()
921 type_ok = ttm_bo_mt_compatible(man, mem_type, place, in ttm_bo_mem_space()
934 ttm_flag_masked(&cur_flags, place->flags, in ttm_bo_mem_space()
940 ret = (*man->func->get_node)(man, bo, place, mem); in ttm_bo_mem_space()
961 const struct ttm_place *place = &placement->busy_placement[i]; in ttm_bo_mem_space() local
963 ret = ttm_mem_type_from_place(place, &mem_type); in ttm_bo_mem_space()
969 if (!ttm_bo_mt_compatible(man, mem_type, place, &cur_flags)) in ttm_bo_mem_space()
979 ttm_flag_masked(&cur_flags, place->flags, in ttm_bo_mem_space()
989 ret = ttm_bo_mem_force_space(bo, mem_type, place, mem, ctx); in ttm_bo_mem_space()