Searched refs:lpages (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/fs/ramfs/ |
H A D | file-nommu.c | 206 unsigned long maxpages, lpages, nr_folios, loop, ret, nr_pages, pfn; in ramfs_nommu_get_unmapped_area() local 212 lpages = (len + PAGE_SIZE - 1) >> PAGE_SHIFT; in ramfs_nommu_get_unmapped_area() 220 if (maxpages - pgoff < lpages) in ramfs_nommu_get_unmapped_area() 245 if (nr_pages >= lpages) in ramfs_nommu_get_unmapped_area() 249 if (nr_pages < lpages) { in ramfs_nommu_get_unmapped_area()
|
/openbmc/linux/fs/romfs/ |
H A D | mmap-nommu.c | 26 unsigned long isize, offset, maxpages, lpages; in romfs_get_unmapped_area() local 33 lpages = (len + PAGE_SIZE - 1) >> PAGE_SHIFT; in romfs_get_unmapped_area() 38 if ((pgoff >= maxpages) || (maxpages - pgoff < lpages)) in romfs_get_unmapped_area()
|
/openbmc/linux/arch/x86/kvm/ |
H A D | x86.c | 12560 int lpages = __kvm_mmu_slot_lpages(slot, npages, level); in memslot_rmap_alloc() local 12565 slot->arch.rmap[i] = __vcalloc(lpages, sz, GFP_KERNEL_ACCOUNT); in memslot_rmap_alloc() 12597 int lpages; in kvm_alloc_memslot_metadata() local 12600 lpages = __kvm_mmu_slot_lpages(slot, npages, level); in kvm_alloc_memslot_metadata() 12602 linfo = __vcalloc(lpages, sizeof(*linfo), GFP_KERNEL_ACCOUNT); in kvm_alloc_memslot_metadata() 12611 linfo[lpages - 1].disallow_lpage = 1; in kvm_alloc_memslot_metadata() 12620 for (j = 0; j < lpages; ++j) in kvm_alloc_memslot_metadata()
|