Lines Matching refs:man

51 	struct ttm_resource_manager *man =  in ttm_resource_alloc()  local
54 return man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc()
59 struct ttm_resource_manager *man; in ttm_resource_free() local
64 man = ttm_manager_type(bo->bdev, (*res)->mem_type); in ttm_resource_free()
65 man->func->free(man, *res); in ttm_resource_free()
127 void ttm_resource_manager_init(struct ttm_resource_manager *man, in ttm_resource_manager_init() argument
132 spin_lock_init(&man->move_lock); in ttm_resource_manager_init()
133 man->size = p_size; in ttm_resource_manager_init()
136 INIT_LIST_HEAD(&man->lru[i]); in ttm_resource_manager_init()
137 man->move = NULL; in ttm_resource_manager_init()
151 struct ttm_resource_manager *man) in ttm_resource_manager_evict_all() argument
168 while (!list_empty(&man->lru[i])) { in ttm_resource_manager_evict_all()
170 ret = ttm_mem_evict_first(bdev, man, NULL, &ctx, in ttm_resource_manager_evict_all()
179 spin_lock(&man->move_lock); in ttm_resource_manager_evict_all()
180 fence = dma_fence_get(man->move); in ttm_resource_manager_evict_all()
181 spin_unlock(&man->move_lock); in ttm_resource_manager_evict_all()
200 void ttm_resource_manager_debug(struct ttm_resource_manager *man, in ttm_resource_manager_debug() argument
203 drm_printf(p, " use_type: %d\n", man->use_type); in ttm_resource_manager_debug()
204 drm_printf(p, " use_tt: %d\n", man->use_tt); in ttm_resource_manager_debug()
205 drm_printf(p, " size: %llu\n", man->size); in ttm_resource_manager_debug()
206 if (man->func->debug) in ttm_resource_manager_debug()
207 man->func->debug(man, p); in ttm_resource_manager_debug()