Lines Matching refs:addr

25 							unsigned long addr,  in hugetlb_get_unmapped_area_bottomup()  argument
42 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup()
44 if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) { in hugetlb_get_unmapped_area_bottomup()
45 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_bottomup()
48 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_bottomup()
51 return addr; in hugetlb_get_unmapped_area_bottomup()
61 unsigned long addr = addr0; in hugetlb_get_unmapped_area_topdown() local
73 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown()
81 if (addr & ~PAGE_MASK) { in hugetlb_get_unmapped_area_topdown()
82 VM_BUG_ON(addr != -ENOMEM); in hugetlb_get_unmapped_area_topdown()
86 addr = vm_unmapped_area(&info); in hugetlb_get_unmapped_area_topdown()
89 return addr; in hugetlb_get_unmapped_area_topdown()
93 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument
109 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area()
111 return addr; in hugetlb_get_unmapped_area()
114 if (addr) { in hugetlb_get_unmapped_area()
115 addr = ALIGN(addr, HPAGE_SIZE); in hugetlb_get_unmapped_area()
116 vma = find_vma(mm, addr); in hugetlb_get_unmapped_area()
117 if (task_size - len >= addr && in hugetlb_get_unmapped_area()
118 (!vma || addr + len <= vma->vm_start)) in hugetlb_get_unmapped_area()
119 return addr; in hugetlb_get_unmapped_area()
122 return hugetlb_get_unmapped_area_bottomup(file, addr, len, in hugetlb_get_unmapped_area()
125 return hugetlb_get_unmapped_area_topdown(file, addr, len, in hugetlb_get_unmapped_area()
130 unsigned long addr, unsigned long sz) in huge_pte_alloc() argument
142 addr &= HPAGE_MASK; in huge_pte_alloc()
144 pgd = pgd_offset(mm, addr); in huge_pte_alloc()
145 pud = pud_alloc(mm, pgd, addr); in huge_pte_alloc()
147 pmd = pmd_alloc(mm, pud, addr); in huge_pte_alloc()
149 pte = pte_alloc_map(mm, NULL, pmd, addr); in huge_pte_alloc()
154 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) in huge_pte_offset() argument
161 addr &= HPAGE_MASK; in huge_pte_offset()
163 pgd = pgd_offset(mm, addr); in huge_pte_offset()
165 pud = pud_offset(pgd, addr); in huge_pte_offset()
167 pmd = pmd_offset(pud, addr); in huge_pte_offset()
169 pte = pte_offset_map(pmd, addr); in huge_pte_offset()
175 int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep) in huge_pmd_unshare() argument
180 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, in set_huge_pte_at() argument
188 addr &= HPAGE_MASK; in set_huge_pte_at()
190 set_pte_at(mm, addr, ptep, entry); in set_huge_pte_at()
192 addr += PAGE_SIZE; in set_huge_pte_at()
197 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, in huge_ptep_get_and_clear() argument
207 addr &= HPAGE_MASK; in huge_ptep_get_and_clear()
210 pte_clear(mm, addr, ptep); in huge_ptep_get_and_clear()
211 addr += PAGE_SIZE; in huge_ptep_get_and_clear()