Lines Matching refs:end
53 unsigned long start, unsigned long end, int behavior) in madvise_behavior() argument
92 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior()
110 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_behavior()
126 if (end != vma->vm_end) { in madvise_behavior()
127 error = split_vma(mm, vma, end, 0); in madvise_behavior()
146 unsigned long end, struct mm_walk *walk) in swapin_walk_pmd_entry() argument
155 for (index = start; index != end; index += PAGE_SIZE) { in swapin_walk_pmd_entry()
181 unsigned long start, unsigned long end) in force_swapin_readahead() argument
189 walk_page_range(start, end, &walk); in force_swapin_readahead()
195 unsigned long start, unsigned long end, in force_shm_swapin_readahead() argument
202 for (; start < end; start += PAGE_SIZE) { in force_shm_swapin_readahead()
227 unsigned long start, unsigned long end) in madvise_willneed() argument
234 force_swapin_readahead(vma, start, end); in madvise_willneed()
239 force_shm_swapin_readahead(vma, start, end, in madvise_willneed()
254 if (end > vma->vm_end) in madvise_willneed()
255 end = vma->vm_end; in madvise_willneed()
256 end = ((end - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff; in madvise_willneed()
258 force_page_cache_readahead(file->f_mapping, file, start, end - start); in madvise_willneed()
263 unsigned long end, struct mm_walk *walk) in madvise_free_pte_range() argument
275 next = pmd_addr_end(addr, end); in madvise_free_pte_range()
286 for (; addr != end; pte++, addr += PAGE_SIZE) { in madvise_free_pte_range()
397 unsigned long addr, unsigned long end) in madvise_free_page_range() argument
406 walk_page_range(addr, end, &free_walk); in madvise_free_page_range()
413 unsigned long start, end; in madvise_free_single_vma() local
427 end = min(vma->vm_end, end_addr); in madvise_free_single_vma()
428 if (end <= vma->vm_start) in madvise_free_single_vma()
432 tlb_gather_mmu(&tlb, mm, start, end); in madvise_free_single_vma()
435 mmu_notifier_invalidate_range_start(mm, start, end); in madvise_free_single_vma()
436 madvise_free_page_range(&tlb, vma, start, end); in madvise_free_single_vma()
437 mmu_notifier_invalidate_range_end(mm, start, end); in madvise_free_single_vma()
438 tlb_finish_mmu(&tlb, start, end); in madvise_free_single_vma()
445 unsigned long start, unsigned long end) in madvise_free() argument
448 return madvise_free_single_vma(vma, start, end); in madvise_free()
472 unsigned long start, unsigned long end) in madvise_dontneed() argument
478 zap_page_range(vma, start, end - start, NULL); in madvise_dontneed()
488 unsigned long start, unsigned long end) in madvise_remove() argument
521 offset, end - start); in madvise_remove()
531 static int madvise_hwpoison(int bhv, unsigned long start, unsigned long end) in madvise_hwpoison() argument
538 for (; start < end; start += PAGE_SIZE << in madvise_hwpoison()
575 unsigned long start, unsigned long end, int behavior) in madvise_vma() argument
579 return madvise_remove(vma, prev, start, end); in madvise_vma()
581 return madvise_willneed(vma, prev, start, end); in madvise_vma()
588 return madvise_free(vma, prev, start, end); in madvise_vma()
591 return madvise_dontneed(vma, prev, start, end); in madvise_vma()
593 return madvise_behavior(vma, prev, start, end, behavior); in madvise_vma()
685 unsigned long end, tmp; in SYSCALL_DEFINE3() local
708 end = start + len; in SYSCALL_DEFINE3()
709 if (end < start) in SYSCALL_DEFINE3()
713 if (end == start) in SYSCALL_DEFINE3()
744 if (start >= end) in SYSCALL_DEFINE3()
750 if (end < tmp) in SYSCALL_DEFINE3()
751 tmp = end; in SYSCALL_DEFINE3()
761 if (start >= end) in SYSCALL_DEFINE3()