Lines Matching refs:placement

68 					struct ttm_placement *placement)  in ttm_bo_mem_space_debug()  argument
77 for (i = 0; i < placement->num_placement; i++) { in ttm_bo_mem_space_debug()
78 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug()
80 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug()
121 if (mem->placement & TTM_PL_FLAG_NO_EVICT) in ttm_bo_add_mem_to_lru()
168 if (bulk && !(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { in ttm_bo_move_to_lru_tail()
258 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement); in ttm_bo_handle_move_mem()
547 if (bo->mem.placement & TTM_PL_FLAG_NO_EVICT) { in ttm_bo_release()
548 bo->mem.placement &= ~TTM_PL_FLAG_NO_EVICT; in ttm_bo_release()
603 struct ttm_placement placement; in ttm_bo_evict() local
608 placement.num_placement = 0; in ttm_bo_evict()
609 placement.num_busy_placement = 0; in ttm_bo_evict()
610 bdev->driver->evict_flags(bo, &placement); in ttm_bo_evict()
612 if (!placement.num_placement && !placement.num_busy_placement) { in ttm_bo_evict()
624 ret = ttm_bo_mem_space(bo, &placement, &evict_mem, ctx); in ttm_bo_evict()
629 ttm_bo_mem_space_debug(bo, &placement); in ttm_bo_evict()
912 cur_flags = ttm_bo_select_caching(man, bo->mem.placement, in ttm_bo_mem_placement()
917 mem->placement = cur_flags; in ttm_bo_mem_placement()
936 struct ttm_placement *placement, in ttm_bo_mem_space() argument
948 for (i = 0; i < placement->num_placement; ++i) { in ttm_bo_mem_space()
949 const struct ttm_place *place = &placement->placement[i]; in ttm_bo_mem_space()
975 for (i = 0; i < placement->num_busy_placement; ++i) { in ttm_bo_mem_space()
976 const struct ttm_place *place = &placement->busy_placement[i]; in ttm_bo_mem_space()
1007 struct ttm_placement *placement, in ttm_bo_move_buffer() argument
1025 ret = ttm_bo_mem_space(bo, placement, &mem, ctx); in ttm_bo_move_buffer()
1050 if ((*new_flags & mem->placement & TTM_PL_MASK_CACHING) && in ttm_bo_places_compat()
1053 (mem->placement & TTM_PL_FLAG_CONTIGUOUS))) in ttm_bo_places_compat()
1059 bool ttm_bo_mem_compat(struct ttm_placement *placement, in ttm_bo_mem_compat() argument
1063 if (ttm_bo_places_compat(placement->placement, placement->num_placement, in ttm_bo_mem_compat()
1067 if ((placement->busy_placement != placement->placement || in ttm_bo_mem_compat()
1068 placement->num_busy_placement > placement->num_placement) && in ttm_bo_mem_compat()
1069 ttm_bo_places_compat(placement->busy_placement, in ttm_bo_mem_compat()
1070 placement->num_busy_placement, in ttm_bo_mem_compat()
1079 struct ttm_placement *placement, in ttm_bo_validate() argument
1090 if (!placement->num_placement && !placement->num_busy_placement) { in ttm_bo_validate()
1101 if (!ttm_bo_mem_compat(placement, &bo->mem, &new_flags)) { in ttm_bo_validate()
1102 ret = ttm_bo_move_buffer(bo, placement, ctx); in ttm_bo_validate()
1106 bo->mem.placement &= TTM_PL_MASK_CACHING; in ttm_bo_validate()
1107 bo->mem.placement |= new_flags & ~TTM_PL_MASK_CACHING; in ttm_bo_validate()
1125 struct ttm_placement *placement, in ttm_bo_init_reserved() argument
1175 bo->mem.placement = TTM_PL_FLAG_CACHED; in ttm_bo_init_reserved()
1212 ret = ttm_bo_validate(bo, placement, ctx); in ttm_bo_init_reserved()
1232 struct ttm_placement *placement, in ttm_bo_init() argument
1243 ret = ttm_bo_init_reserved(bdev, bo, size, type, placement, in ttm_bo_init()
1286 struct ttm_placement *placement, in ttm_bo_create() argument
1300 ret = ttm_bo_init(bdev, bo, size, type, placement, page_alignment, in ttm_bo_create()
1563 evict_mem.placement = TTM_PL_FLAG_CACHED; in ttm_bo_swapout()