Home
last modified time | relevance | path

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

/arch/riscv/include/asm/
Dset_memory.h21 int num_pages)) in set_kernel_memory() argument
25 int num_pages = PAGE_ALIGN(end - start) >> PAGE_SHIFT; in set_kernel_memory() local
27 return set_memory(start, num_pages); in set_kernel_memory()
37 int num_pages)) in set_kernel_memory() argument
/arch/x86/platform/efi/
Defi_32.c43 size = md->num_pages << PAGE_SHIFT; in efi_map_region()
51 set_memory_uc((unsigned long)va, md->num_pages); in efi_map_region()
82 int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages) in efi_setup_page_tables() argument
139 set_memory_x(md->virt_addr, md->num_pages); in efi_runtime_update_mappings()
Defi.c118 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_find_mirror()
147 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap()
262 u64 end = (md->num_pages << EFI_PAGE_SHIFT) + md->phys_addr - 1; in efi_memmap_entry_valid()
266 if (md->num_pages == 0) { in efi_memmap_entry_valid()
268 } else if (md->num_pages > EFI_PAGES_MAX || in efi_memmap_entry_valid()
269 EFI_PAGES_MAX - md->num_pages < in efi_memmap_entry_valid()
271 end_hi = (md->num_pages & OVERFLOW_ADDR_MASK) in efi_memmap_entry_valid()
337 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1, in efi_print_memmap()
338 (md->num_pages >> (20 - EFI_PAGE_SHIFT))); in efi_print_memmap()
520 prev_size = prev_md->num_pages << EFI_PAGE_SHIFT; in efi_merge_regions()
[all …]
Dquirks.c259 if (addr + size > md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT)) { in efi_arch_mem_reserve()
325 u64 size = md->num_pages << EFI_PAGE_SHIFT; in efi_reserve_boot_services()
392 if (kernel_unmap_pages_in_pgd(pgd, pa, md->num_pages)) in efi_unmap_pages()
395 if (kernel_unmap_pages_in_pgd(pgd, va, md->num_pages)) in efi_unmap_pages()
412 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_free_boot_services()
Defi_64.c177 int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages) in efi_setup_page_tables() argument
192 if (kernel_map_pages_in_pgd(pgd, pfn, pa_memmap, num_pages, pf)) { in efi_setup_page_tables()
291 if (kernel_map_pages_in_pgd(pgd, pfn, va, md->num_pages, flags)) in __map_region()
298 unsigned long size = md->num_pages << PAGE_SHIFT; in efi_map_region()
368 err1 = kernel_map_pages_in_pgd(pgd, pfn, md->phys_addr, md->num_pages, pf); in efi_update_mappings()
374 err2 = kernel_map_pages_in_pgd(pgd, pfn, md->virt_addr, md->num_pages, pf); in efi_update_mappings()
/arch/x86/hyperv/
Dhv_proc.c24 int hv_call_deposit_pages(int node, u64 partition_id, u32 num_pages) in hv_call_deposit_pages() argument
37 if (num_pages > HV_DEPOSIT_MAX) in hv_call_deposit_pages()
39 if (!num_pages) in hv_call_deposit_pages()
57 while (num_pages) { in hv_call_deposit_pages()
59 order = 31 - __builtin_clz(num_pages); in hv_call_deposit_pages()
75 num_pages -= counts[i]; in hv_call_deposit_pages()
/arch/arm64/kernel/
Defi.c20 !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT); in region_is_misaligned()
94 md->num_pages << EFI_PAGE_SHIFT, in efi_create_mapping()
129 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions()
Dacpi.c285 u64 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in acpi_os_ioremap()
/arch/arm/kernel/
Defi.c30 size = md->num_pages << EFI_PAGE_SHIFT; in efi_set_mapping_permissions()
50 .length = md->num_pages * EFI_PAGE_SIZE, in efi_create_mapping()
/arch/m68k/mm/
Dsun3mmu.c31 extern unsigned long num_pages;
57 size = num_pages * sizeof(pte_t); in paging_init()
Dmcfmmu.c31 unsigned long num_pages; variable
53 size = num_pages * sizeof(pte_t); in paging_init()
181 num_pages = PFN_DOWN(_ramend - _rambase); in cf_bootmem_alloc()
/arch/mips/kernel/
Dvdso.c43 unsigned long num_pages, i; in init_vdso_image() local
49 num_pages = image->size / PAGE_SIZE; in init_vdso_image()
52 for (i = 0; i < num_pages; i++) in init_vdso_image()
/arch/riscv/kernel/
Defi.c53 for (i = 0; i < md->num_pages; i++) in efi_create_mapping()
94 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions()
/arch/ia64/kernel/
Defi.c288 u64 num_pages; member
293 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT)
298 return (kmd->start + (kmd->num_pages << EFI_PAGE_SHIFT)); in kmd_end()
330 end = (k->start + (k->num_pages << EFI_PAGE_SHIFT)) & PAGE_MASK; in walk()
573 size = md->num_pages << EFI_PAGE_SHIFT; in efi_init()
714 if (phys_addr - md->start < (md->num_pages << EFI_PAGE_SHIFT)) in kern_memory_descriptor()
1071 k->num_pages = md->num_pages; in efi_memmap_init()
1104 (k-1)->num_pages += in efi_memmap_init()
1110 k->num_pages = (lim - md->phys_addr) in efi_memmap_init()
1125 (k-1)->num_pages += md->num_pages; in efi_memmap_init()
[all …]
/arch/m68k/sun3/
Dconfig.c44 unsigned long num_pages; variable
117 max_pfn = num_pages = __pa(memory_end) >> PAGE_SHIFT; in sun3_bootmem_alloc()
/arch/powerpc/kvm/
De500_mmu.c742 int num_pages, ret, i; in kvm_vcpu_ioctl_config_tlb() local
773 num_pages = DIV_ROUND_UP(cfg->array + array_len - 1, PAGE_SIZE) - in kvm_vcpu_ioctl_config_tlb()
775 pages = kmalloc_array(num_pages, sizeof(*pages), GFP_KERNEL); in kvm_vcpu_ioctl_config_tlb()
779 ret = get_user_pages_fast(cfg->array, num_pages, FOLL_WRITE, pages); in kvm_vcpu_ioctl_config_tlb()
783 if (ret != num_pages) { in kvm_vcpu_ioctl_config_tlb()
784 num_pages = ret; in kvm_vcpu_ioctl_config_tlb()
789 virt = vmap(pages, num_pages, VM_MAP, PAGE_KERNEL); in kvm_vcpu_ioctl_config_tlb()
834 vcpu_e500->num_shared_tlb_pages = num_pages; in kvm_vcpu_ioctl_config_tlb()
849 for (i = 0; i < num_pages; i++) in kvm_vcpu_ioctl_config_tlb()
/arch/s390/include/asm/
Dpgalloc.h150 unsigned long base_asce_alloc(unsigned long addr, unsigned long num_pages);
/arch/x86/mm/pat/
Dset_memory.c1250 unsigned num_pages, pmd_t *pmd, pgprot_t pgprot) in populate_pte() argument
1258 while (num_pages-- && start < end) { in populate_pte()
1269 unsigned num_pages, pud_t *pud, pgprot_t pgprot) in populate_pmd() argument
1279 unsigned long pre_end = start + (num_pages << PAGE_SHIFT); in populate_pmd()
1284 cur_pages = min_t(unsigned int, num_pages, cur_pages); in populate_pmd()
1302 if (num_pages == cur_pages) in populate_pmd()
1335 populate_pte(cpa, start, end, num_pages - cur_pages, in populate_pmd()
1338 return num_pages; in populate_pmd()
/arch/x86/include/asm/
Dmshyperv.h42 int hv_call_deposit_pages(int node, u64 partition_id, u32 num_pages);
Defi.h152 extern int __init efi_setup_page_tables(unsigned long pa_memmap, unsigned num_pages);
/arch/s390/mm/
Dpgalloc.c570 unsigned long base_asce_alloc(unsigned long addr, unsigned long num_pages) in base_asce_alloc() argument
577 end = addr + num_pages * PAGE_SIZE; in base_asce_alloc()
/arch/x86/boot/compressed/
Dkaslr.c746 region.size = md->num_pages << EFI_PAGE_SHIFT; in process_efi_entries()