Searched refs:pages_left (Results 1 – 2 of 2) sorted by relevance
277 unsigned long lpfn, num_nodes, pages_per_node, pages_left; in amdgpu_vram_mgr_new() local320 pages_left = mem->num_pages; in amdgpu_vram_mgr_new()323 for (i = 0; pages_left >= pages_per_node; ++i) { in amdgpu_vram_mgr_new()324 unsigned long pages = rounddown_pow_of_two(pages_left); in amdgpu_vram_mgr_new()335 pages_left -= pages; in amdgpu_vram_mgr_new()338 for (; pages_left; ++i) { in amdgpu_vram_mgr_new()339 unsigned long pages = min(pages_left, pages_per_node); in amdgpu_vram_mgr_new()354 pages_left -= pages; in amdgpu_vram_mgr_new()
205 unsigned long pages_left; in amdgpu_bo_in_cpu_visible_vram() local210 for (pages_left = bo->tbo.mem.num_pages; pages_left; in amdgpu_bo_in_cpu_visible_vram()211 pages_left -= node->size, node++) in amdgpu_bo_in_cpu_visible_vram()