Lines Matching refs:addr

356 static pte_t *(*pte_offset_fixmap)(pmd_t *dir, unsigned long addr);
361 static pte_t * __init pte_offset_early_fixmap(pmd_t *dir, unsigned long addr)
363 return &bm_pte[pte_index(addr)];
366 static pte_t *pte_offset_late_fixmap(pmd_t *dir, unsigned long addr)
368 return pte_offset_kernel(dir, addr);
371 static inline pmd_t * __init fixmap_pmd(unsigned long addr)
373 return pmd_off_k(addr);
729 static pte_t * __init arm_pte_alloc(pmd_t *pmd, unsigned long addr,
738 return pte_offset_kernel(pmd, addr);
741 static pte_t * __init early_pte_alloc(pmd_t *pmd, unsigned long addr,
744 return arm_pte_alloc(pmd, addr, prot, early_alloc);
747 static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr,
753 pte_t *pte = arm_pte_alloc(pmd, addr, type->prot_l1, alloc);
758 } while (pte++, addr += PAGE_SIZE, addr != end);
761 static void __init __map_init_section(pmd_t *pmd, unsigned long addr,
777 if (addr & SECTION_SIZE)
783 } while (pmd++, addr += SECTION_SIZE, addr != end);
788 static void __init alloc_init_pmd(pud_t *pud, unsigned long addr,
793 pmd_t *pmd = pmd_offset(pud, addr);
801 next = pmd_addr_end(addr, end);
804 * Try a section mapping - addr, next and phys must all be
808 ((addr | next | phys) & ~SECTION_MASK) == 0) {
809 __map_init_section(pmd, addr, next, phys, type, ng);
811 alloc_init_pte(pmd, addr, next,
815 phys += next - addr;
817 } while (pmd++, addr = next, addr != end);
820 static void __init alloc_init_pud(p4d_t *p4d, unsigned long addr,
825 pud_t *pud = pud_offset(p4d, addr);
829 next = pud_addr_end(addr, end);
830 alloc_init_pmd(pud, addr, next, phys, type, alloc, ng);
831 phys += next - addr;
832 } while (pud++, addr = next, addr != end);
835 static void __init alloc_init_p4d(pgd_t *pgd, unsigned long addr,
840 p4d_t *p4d = p4d_offset(pgd, addr);
844 next = p4d_addr_end(addr, end);
845 alloc_init_pud(p4d, addr, next, phys, type, alloc, ng);
846 phys += next - addr;
847 } while (p4d++, addr = next, addr != end);
856 unsigned long addr, length, end;
860 addr = md->virtual;
866 (long long)__pfn_to_phys((u64)md->pfn), addr);
878 (long long)__pfn_to_phys((u64)md->pfn), addr);
882 if ((addr | length | __pfn_to_phys(md->pfn)) & ~SUPERSECTION_MASK) {
884 (long long)__pfn_to_phys((u64)md->pfn), addr);
894 pgd = pgd_offset(mm, addr);
895 end = addr + length;
897 p4d_t *p4d = p4d_offset(pgd, addr);
898 pud_t *pud = pud_offset(p4d, addr);
899 pmd_t *pmd = pmd_offset(pud, addr);
906 addr += SUPERSECTION_SIZE;
909 } while (addr != end);
917 unsigned long addr, length, end;
934 addr = md->virtual & PAGE_MASK;
938 if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) {
940 (long long)__pfn_to_phys(md->pfn), addr);
944 pgd = pgd_offset(mm, addr);
945 end = addr + length;
947 unsigned long next = pgd_addr_end(addr, end);
949 alloc_init_p4d(pgd, addr, next, phys, type, alloc, ng);
951 phys += next - addr;
952 addr = next;
953 } while (pgd++, addr != end);
1020 vm->addr = (void *)(md->virtual & PAGE_MASK);
1030 void __init vm_reserve_area_early(unsigned long addr, unsigned long size,
1042 vm->addr = (void *)addr;
1064 static void __init pmd_empty_section_gap(unsigned long addr)
1066 vm_reserve_area_early(addr, SECTION_SIZE, pmd_empty_section_gap);
1073 unsigned long addr, next = 0;
1078 addr = (unsigned long)vm->addr;
1079 if (addr < next)
1087 if ((addr & ~PMD_MASK) == SECTION_SIZE) {
1088 pmd = pmd_off_k(addr);
1090 pmd_empty_section_gap(addr & PMD_MASK);
1098 addr += vm->size;
1099 if ((addr & ~PMD_MASK) == SECTION_SIZE) {
1100 pmd = pmd_off_k(addr) + 1;
1102 pmd_empty_section_gap(addr);
1106 next = (addr + PMD_SIZE - 1) & PMD_MASK;
1271 unsigned long addr;
1282 for (addr = 0; addr < KASAN_SHADOW_START; addr += PMD_SIZE)
1283 pmd_clear(pmd_off_k(addr));
1290 for (addr = KASAN_SHADOW_END; addr < MODULES_VADDR; addr += PMD_SIZE)
1291 pmd_clear(pmd_off_k(addr));
1293 for (addr = 0; addr < MODULES_VADDR; addr += PMD_SIZE)
1294 pmd_clear(pmd_off_k(addr));
1299 addr = ((unsigned long)_exiprom + PMD_SIZE - 1) & PMD_MASK;
1301 for ( ; addr < PAGE_OFFSET; addr += PMD_SIZE)
1302 pmd_clear(pmd_off_k(addr));
1315 for (addr = __phys_to_virt(end);
1316 addr < VMALLOC_START; addr += PMD_SIZE)
1317 pmd_clear(pmd_off_k(addr));
1358 unsigned long addr;
1371 for (addr = VMALLOC_START; addr < (FIXADDR_TOP & PMD_MASK); addr += PMD_SIZE)
1372 pmd_clear(pmd_off_k(addr));
1694 void set_pte_at(struct mm_struct *mm, unsigned long addr,
1699 if (addr < TASK_SIZE && pte_valid_user(pteval)) {