Home
last modified time | relevance | path

Searched refs:num_pages (Results 1 – 10 of 10) sorted by relevance

/arch/m68k/sun3/
Dconfig.c46 unsigned long num_pages; variable
119 num_pages = __pa(memory_end) >> PAGE_SHIFT; in sun3_bootmem_alloc()
125 availmem += init_bootmem_node(NODE_DATA(0), start_page, 0, num_pages); in sun3_bootmem_alloc()
/arch/m68k/platform/54xx/
Dconfig.c59 unsigned long num_pages; variable
71 num_pages = (_ramend - _rambase) >> PAGE_SHIFT; in mcf54xx_bootmem_alloc()
/arch/m68k/mm/
Dsun3mmu.c31 extern unsigned long num_pages;
61 size = num_pages * sizeof(pte_t); in paging_init()
Dmcfmmu.c30 extern unsigned long num_pages;
55 size = num_pages * sizeof(pte_t); in paging_init()
84 zones_size[ZONE_DMA] = num_pages; in paging_init()
/arch/x86/platform/efi/
Defi.c319 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap()
395 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT), in print_efi_memmap()
396 (md->num_pages >> (20 - EFI_PAGE_SHIFT))); in print_efi_memmap()
408 u64 size = md->num_pages << EFI_PAGE_SHIFT; in efi_reserve_boot_services()
424 md->num_pages = 0; in efi_reserve_boot_services()
452 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_free_boot_services()
764 npages = md->num_pages; in efi_set_executable()
835 prev_size = prev_md->num_pages << EFI_PAGE_SHIFT; in efi_enter_virtual_mode()
838 prev_md->num_pages += md->num_pages; in efi_enter_virtual_mode()
856 size = md->num_pages << EFI_PAGE_SHIFT; in efi_enter_virtual_mode()
[all …]
/arch/ia64/kernel/
Defi.c268 u64 num_pages; member
273 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT)
278 return (kmd->start + (kmd->num_pages << EFI_PAGE_SHIFT)); in kmd_end()
310 end = (k->start + (k->num_pages << EFI_PAGE_SHIFT)) & PAGE_MASK; in walk()
600 size = md->num_pages << EFI_PAGE_SHIFT; in efi_init()
738 if (phys_addr - md->start < (md->num_pages << EFI_PAGE_SHIFT)) in kern_memory_descriptor()
1096 k->num_pages = md->num_pages; in efi_memmap_init()
1134 (k-1)->num_pages += in efi_memmap_init()
1140 k->num_pages = (lim - md->phys_addr) in efi_memmap_init()
1155 (k-1)->num_pages += md->num_pages; in efi_memmap_init()
[all …]
/arch/powerpc/kvm/
De500_tlb.c1168 int num_pages, ret, i; in kvm_vcpu_ioctl_config_tlb() local
1199 num_pages = DIV_ROUND_UP(cfg->array + array_len - 1, PAGE_SIZE) - in kvm_vcpu_ioctl_config_tlb()
1201 pages = kmalloc(sizeof(struct page *) * num_pages, GFP_KERNEL); in kvm_vcpu_ioctl_config_tlb()
1205 ret = get_user_pages_fast(cfg->array, num_pages, 1, pages); in kvm_vcpu_ioctl_config_tlb()
1209 if (ret != num_pages) { in kvm_vcpu_ioctl_config_tlb()
1210 num_pages = ret; in kvm_vcpu_ioctl_config_tlb()
1215 virt = vmap(pages, num_pages, VM_MAP, PAGE_KERNEL); in kvm_vcpu_ioctl_config_tlb()
1251 vcpu_e500->num_shared_tlb_pages = num_pages; in kvm_vcpu_ioctl_config_tlb()
1265 for (i = 0; i < num_pages; i++) in kvm_vcpu_ioctl_config_tlb()
/arch/x86/boot/compressed/
Deboot.c84 if (desc->num_pages < nr_pages) in high_alloc()
88 end = start + desc->num_pages * (1UL << EFI_PAGE_SHIFT); in high_alloc()
161 if (desc->num_pages < nr_pages) in low_alloc()
165 end = start + desc->num_pages * (1UL << EFI_PAGE_SHIFT); in low_alloc()
854 prev->size += d->num_pages << 12; in make_boot_params()
857 e820_map->size = d->num_pages << 12; in make_boot_params()
/arch/ia64/hp/sim/boot/
Dfw-emu.c252 md->num_pages = (end - start) >> 12; \ in sys_fw_init()
/arch/sparc/mm/
Dinit_64.c823 unsigned long paddr, num_pages, start_pfn, end_pfn; in allocate_node_data() local
845 num_pages = bootmem_bootmap_pages(p->node_spanned_pages); in allocate_node_data()
847 paddr = memblock_alloc_try_nid(num_pages << PAGE_SHIFT, PAGE_SIZE, nid); in allocate_node_data()