Lines Matching refs:addr

55 		      unsigned long addr, unsigned long sz)  in huge_pte_alloc()  argument
60 addr &= -sz; /* Mask off any low bits in the address. */ in huge_pte_alloc()
62 pgd = pgd_offset(mm, addr); in huge_pte_alloc()
63 pud = pud_alloc(mm, pgd, addr); in huge_pte_alloc()
71 pmd_t *pmd = pmd_alloc(mm, pud, addr); in huge_pte_alloc()
80 return pte_alloc_map(mm, NULL, pmd, addr); in huge_pte_alloc()
85 return (pte_t *) pmd_alloc(mm, pud, addr); in huge_pte_alloc()
104 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset() argument
114 pgd = (pgd_t *)get_pte((pte_t *)mm->pgd, pgd_index(addr), 0); in huge_pte_offset()
117 pud = pud_offset(pgd, addr); in huge_pte_offset()
130 pmd_index(addr), 1); in huge_pte_offset()
134 pmd = pmd_offset(pud, addr); in huge_pte_offset()
143 pte = get_pte((pte_t *)pmd_page_vaddr(*pmd), pte_index(addr), 2); in huge_pte_offset()
165 unsigned long addr, unsigned long len, in hugetlb_get_unmapped_area_bottomup() argument
186 unsigned long addr; in hugetlb_get_unmapped_area_topdown() local
194 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown()
202 if (addr & ~PAGE_MASK) { in hugetlb_get_unmapped_area_topdown()
203 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown()
207 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown()
210 return addr; in hugetlb_get_unmapped_area_topdown()
213 unsigned long hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument
226 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area()
228 return addr; in hugetlb_get_unmapped_area()
231 if (addr) { in hugetlb_get_unmapped_area()
232 addr = ALIGN(addr, huge_page_size(h)); in hugetlb_get_unmapped_area()
233 vma = find_vma(mm, addr); in hugetlb_get_unmapped_area()
234 if (TASK_SIZE - len >= addr && in hugetlb_get_unmapped_area()
235 (!vma || addr + len <= vma->vm_start)) in hugetlb_get_unmapped_area()
236 return addr; in hugetlb_get_unmapped_area()
239 return hugetlb_get_unmapped_area_bottomup(file, addr, len, in hugetlb_get_unmapped_area()
242 return hugetlb_get_unmapped_area_topdown(file, addr, len, in hugetlb_get_unmapped_area()