Lines Matching refs:addr
57 unsigned long align_vdso_addr(unsigned long addr) in align_vdso_addr() argument
60 addr = (addr + align_mask) & ~align_mask; in align_vdso_addr()
61 return addr | get_align_bits(); in align_vdso_addr()
91 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
100 error = sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); in SYSCALL_DEFINE6()
105 static void find_start_end(unsigned long addr, unsigned long flags, in find_start_end() argument
128 *end = task_size_64bit(addr > DEFAULT_MAP_WINDOW); in find_start_end()
132 arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
140 addr = mpx_unmapped_area_check(addr, len, flags); in arch_get_unmapped_area()
141 if (IS_ERR_VALUE(addr)) in arch_get_unmapped_area()
142 return addr; in arch_get_unmapped_area()
145 return addr; in arch_get_unmapped_area()
147 find_start_end(addr, flags, &begin, &end); in arch_get_unmapped_area()
152 if (addr) { in arch_get_unmapped_area()
153 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area()
154 vma = find_vma(mm, addr); in arch_get_unmapped_area()
155 if (end - len >= addr && in arch_get_unmapped_area()
156 (!vma || addr + len <= vm_start_gap(vma))) in arch_get_unmapped_area()
157 return addr; in arch_get_unmapped_area()
180 unsigned long addr = addr0; in arch_get_unmapped_area_topdown() local
183 addr = mpx_unmapped_area_check(addr, len, flags); in arch_get_unmapped_area_topdown()
184 if (IS_ERR_VALUE(addr)) in arch_get_unmapped_area_topdown()
185 return addr; in arch_get_unmapped_area_topdown()
192 return addr; in arch_get_unmapped_area_topdown()
199 if (addr) { in arch_get_unmapped_area_topdown()
200 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
201 vma = find_vma(mm, addr); in arch_get_unmapped_area_topdown()
202 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown()
203 (!vma || addr + len <= vm_start_gap(vma))) in arch_get_unmapped_area_topdown()
204 return addr; in arch_get_unmapped_area_topdown()
218 if (addr > DEFAULT_MAP_WINDOW && !in_compat_syscall()) in arch_get_unmapped_area_topdown()
227 addr = vm_unmapped_area(&info); in arch_get_unmapped_area_topdown()
228 if (!(addr & ~PAGE_MASK)) in arch_get_unmapped_area_topdown()
229 return addr; in arch_get_unmapped_area_topdown()
230 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()