Home
last modified time | relevance | path

Searched refs:pages_left (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c277 unsigned long lpfn, num_nodes, pages_per_node, pages_left; in amdgpu_vram_mgr_new() local
320 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()
Damdgpu_object.h205 unsigned long pages_left; in amdgpu_bo_in_cpu_visible_vram() local
210 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()