Searched refs:pages_per_node (Results 1 – 1 of 1) sorted by relevance
319 unsigned long lpfn, num_nodes, pages_per_node, pages_left; in amdgpu_vram_mgr_new() local340 pages_per_node = ~0ul; in amdgpu_vram_mgr_new()344 pages_per_node = HPAGE_PMD_NR; in amdgpu_vram_mgr_new()347 pages_per_node = (2UL << (20UL - PAGE_SHIFT)); in amdgpu_vram_mgr_new()349 pages_per_node = max((uint32_t)pages_per_node, mem->page_alignment); in amdgpu_vram_mgr_new()350 num_nodes = DIV_ROUND_UP(mem->num_pages, pages_per_node); in amdgpu_vram_mgr_new()368 for (i = 0; pages_left >= pages_per_node; ++i) { in amdgpu_vram_mgr_new()372 pages_per_node, 0, in amdgpu_vram_mgr_new()384 unsigned long pages = min(pages_left, pages_per_node); in amdgpu_vram_mgr_new()387 if (pages == pages_per_node) in amdgpu_vram_mgr_new()[all …]