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()
78 void ttm_resource_manager_init(struct ttm_resource_manager *man, in ttm_resource_manager_init() argument
83 spin_lock_init(&man->move_lock); in ttm_resource_manager_init()
84 man->size = p_size; in ttm_resource_manager_init()
87 INIT_LIST_HEAD(&man->lru[i]); in ttm_resource_manager_init()
88 man->move = NULL; in ttm_resource_manager_init()
102 struct ttm_resource_manager *man) in ttm_resource_manager_evict_all() argument
119 while (!list_empty(&man->lru[i])) { in ttm_resource_manager_evict_all()
121 ret = ttm_mem_evict_first(bdev, man, NULL, &ctx, in ttm_resource_manager_evict_all()
130 spin_lock(&man->move_lock); in ttm_resource_manager_evict_all()
131 fence = dma_fence_get(man->move); in ttm_resource_manager_evict_all()
132 spin_unlock(&man->move_lock); in ttm_resource_manager_evict_all()
151 void ttm_resource_manager_debug(struct ttm_resource_manager *man, in ttm_resource_manager_debug() argument
154 drm_printf(p, " use_type: %d\n", man->use_type); in ttm_resource_manager_debug()
155 drm_printf(p, " use_tt: %d\n", man->use_tt); in ttm_resource_manager_debug()
156 drm_printf(p, " size: %llu\n", man->size); in ttm_resource_manager_debug()
157 if (man->func->debug) in ttm_resource_manager_debug()
158 man->func->debug(man, p); in ttm_resource_manager_debug()