• Home
  • Raw
  • Download

Lines Matching refs:phys

229 static void __init __init_extra_mapping(unsigned long phys, unsigned long size,  in __init_extra_mapping()  argument
236 BUG_ON((phys & ~PMD_MASK) || (size & ~PMD_MASK)); in __init_extra_mapping()
237 for (; size; phys += PMD_SIZE, size -= PMD_SIZE) { in __init_extra_mapping()
238 pgd = pgd_offset_k((unsigned long)__va(phys)); in __init_extra_mapping()
244 pud = pud_offset(pgd, (unsigned long)__va(phys)); in __init_extra_mapping()
250 pmd = pmd_offset(pud, phys); in __init_extra_mapping()
252 set_pmd(pmd, __pmd(phys | pgprot_val(prot))); in __init_extra_mapping()
256 void __init init_extra_mapping_wb(unsigned long phys, unsigned long size) in init_extra_mapping_wb() argument
258 __init_extra_mapping(phys, size, PAGE_KERNEL_LARGE); in init_extra_mapping_wb()
261 void __init init_extra_mapping_uc(unsigned long phys, unsigned long size) in init_extra_mapping_uc() argument
263 __init_extra_mapping(phys, size, PAGE_KERNEL_LARGE_NOCACHE); in init_extra_mapping_uc()
298 static __ref void *alloc_low_page(unsigned long *phys) in alloc_low_page() argument
305 *phys = __pa(adr); in alloc_low_page()
315 *phys = pfn * PAGE_SIZE; in alloc_low_page()
1032 int __init reserve_bootmem_generic(unsigned long phys, unsigned long len, in reserve_bootmem_generic() argument
1039 unsigned long pfn = phys >> PAGE_SHIFT; in reserve_bootmem_generic()
1050 phys, len); in reserve_bootmem_generic()
1056 nid = phys_to_nid(phys); in reserve_bootmem_generic()
1057 next_nid = phys_to_nid(phys + len - 1); in reserve_bootmem_generic()
1059 ret = reserve_bootmem_node(NODE_DATA(nid), phys, len, flags); in reserve_bootmem_generic()
1061 ret = reserve_bootmem(phys, len, flags); in reserve_bootmem_generic()
1067 reserve_bootmem(phys, len, BOOTMEM_DEFAULT); in reserve_bootmem_generic()
1070 if (phys+len <= MAX_DMA_PFN*PAGE_SIZE) { in reserve_bootmem_generic()