Lines Matching refs:addr

355 static pte_t *(*pte_offset_fixmap)(pmd_t *dir, unsigned long addr);
360 static pte_t * __init pte_offset_early_fixmap(pmd_t *dir, unsigned long addr)
362 return &bm_pte[pte_index(addr)];
365 static pte_t *pte_offset_late_fixmap(pmd_t *dir, unsigned long addr)
367 return pte_offset_kernel(dir, addr);
370 static inline pmd_t * __init fixmap_pmd(unsigned long addr)
372 return pmd_off_k(addr);
748 static pte_t * __init arm_pte_alloc(pmd_t *pmd, unsigned long addr,
757 return pte_offset_kernel(pmd, addr);
760 static pte_t * __init early_pte_alloc(pmd_t *pmd, unsigned long addr,
763 return arm_pte_alloc(pmd, addr, prot, early_alloc);
766 static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr,
772 pte_t *pte = arm_pte_alloc(pmd, addr, type->prot_l1, alloc);
777 } while (pte++, addr += PAGE_SIZE, addr != end);
780 static void __init __map_init_section(pmd_t *pmd, unsigned long addr,
796 if (addr & SECTION_SIZE)
802 } while (pmd++, addr += SECTION_SIZE, addr != end);
807 static void __init alloc_init_pmd(pud_t *pud, unsigned long addr,
812 pmd_t *pmd = pmd_offset(pud, addr);
820 next = pmd_addr_end(addr, end);
823 * Try a section mapping - addr, next and phys must all be
827 ((addr | next | phys) & ~SECTION_MASK) == 0) {
828 __map_init_section(pmd, addr, next, phys, type, ng);
830 alloc_init_pte(pmd, addr, next,
834 phys += next - addr;
836 } while (pmd++, addr = next, addr != end);
839 static void __init alloc_init_pud(p4d_t *p4d, unsigned long addr,
844 pud_t *pud = pud_offset(p4d, addr);
848 next = pud_addr_end(addr, end);
849 alloc_init_pmd(pud, addr, next, phys, type, alloc, ng);
850 phys += next - addr;
851 } while (pud++, addr = next, addr != end);
854 static void __init alloc_init_p4d(pgd_t *pgd, unsigned long addr,
859 p4d_t *p4d = p4d_offset(pgd, addr);
863 next = p4d_addr_end(addr, end);
864 alloc_init_pud(p4d, addr, next, phys, type, alloc, ng);
865 phys += next - addr;
866 } while (p4d++, addr = next, addr != end);
875 unsigned long addr, length, end;
879 addr = md->virtual;
885 (long long)__pfn_to_phys((u64)md->pfn), addr);
897 (long long)__pfn_to_phys((u64)md->pfn), addr);
901 if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) {
903 (long long)__pfn_to_phys((u64)md->pfn), addr);
913 pgd = pgd_offset(mm, addr);
914 end = addr + length;
916 p4d_t *p4d = p4d_offset(pgd, addr);
917 pud_t *pud = pud_offset(p4d, addr);
918 pmd_t *pmd = pmd_offset(pud, addr);
925 addr += SUPERSECTION_SIZE;
928 } while (addr != end);
936 unsigned long addr, length, end;
953 addr = md->virtual & PAGE_MASK;
957 if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) {
959 (long long)__pfn_to_phys(md->pfn), addr);
963 pgd = pgd_offset(mm, addr);
964 end = addr + length;
966 unsigned long next = pgd_addr_end(addr, end);
968 alloc_init_p4d(pgd, addr, next, phys, type, alloc, ng);
970 phys += next - addr;
971 addr = next;
972 } while (pgd++, addr != end);
1039 vm->addr = (void *)(md->virtual & PAGE_MASK);
1049 void __init vm_reserve_area_early(unsigned long addr, unsigned long size,
1061 vm->addr = (void *)addr;
1083 static void __init pmd_empty_section_gap(unsigned long addr)
1085 vm_reserve_area_early(addr, SECTION_SIZE, pmd_empty_section_gap);
1092 unsigned long addr, next = 0;
1097 addr = (unsigned long)vm->addr;
1098 if (addr < next)
1106 if ((addr & ~PMD_MASK) == SECTION_SIZE) {
1107 pmd = pmd_off_k(addr);
1109 pmd_empty_section_gap(addr & PMD_MASK);
1117 addr += vm->size;
1118 if ((addr & ~PMD_MASK) == SECTION_SIZE) {
1119 pmd = pmd_off_k(addr) + 1;
1121 pmd_empty_section_gap(addr);
1125 next = (addr + PMD_SIZE - 1) & PMD_MASK;
1293 unsigned long addr;
1304 for (addr = 0; addr < KASAN_SHADOW_START; addr += PMD_SIZE)
1305 pmd_clear(pmd_off_k(addr));
1312 for (addr = KASAN_SHADOW_END; addr < MODULES_VADDR; addr += PMD_SIZE)
1313 pmd_clear(pmd_off_k(addr));
1315 for (addr = 0; addr < MODULES_VADDR; addr += PMD_SIZE)
1316 pmd_clear(pmd_off_k(addr));
1321 addr = ((unsigned long)_exiprom + PMD_SIZE - 1) & PMD_MASK;
1323 for ( ; addr < PAGE_OFFSET; addr += PMD_SIZE)
1324 pmd_clear(pmd_off_k(addr));
1337 for (addr = __phys_to_virt(end);
1338 addr < VMALLOC_START; addr += PMD_SIZE)
1339 pmd_clear(pmd_off_k(addr));
1380 unsigned long addr;
1393 for (addr = VMALLOC_START; addr < (FIXADDR_TOP & PMD_MASK); addr += PMD_SIZE)
1394 pmd_clear(pmd_off_k(addr));
1801 void set_ptes(struct mm_struct *mm, unsigned long addr,
1806 if (addr < TASK_SIZE && pte_valid_user(pteval)) {