Searched refs:pages_left (Results 1 – 2 of 2) sorted by relevance
319 unsigned long lpfn, num_nodes, pages_per_node, pages_left; in amdgpu_vram_mgr_new() local365 pages_left = mem->num_pages; in amdgpu_vram_mgr_new()368 for (i = 0; pages_left >= pages_per_node; ++i) { in amdgpu_vram_mgr_new()369 unsigned long pages = rounddown_pow_of_two(pages_left); in amdgpu_vram_mgr_new()380 pages_left -= pages; in amdgpu_vram_mgr_new()383 for (; pages_left; ++i) { in amdgpu_vram_mgr_new()384 unsigned long pages = min(pages_left, pages_per_node); in amdgpu_vram_mgr_new()399 pages_left -= pages; in amdgpu_vram_mgr_new()
211 unsigned long pages_left; in amdgpu_bo_in_cpu_visible_vram() local216 for (pages_left = bo->tbo.mem.num_pages; pages_left; in amdgpu_bo_in_cpu_visible_vram()217 pages_left -= node->size, node++) in amdgpu_bo_in_cpu_visible_vram()