Lines Matching refs:end
443 unsigned long end; member
473 unsigned long end, struct mm_walk *walk) in queue_pages_pmd() argument
523 unsigned long end, struct mm_walk *walk) in queue_pages_pte_range() argument
536 ret = queue_pages_pmd(pmd, ptl, addr, end, walk); in queue_pages_pte_range()
546 for (; addr != end; pte++, addr += PAGE_SIZE) { in queue_pages_pte_range()
583 return addr != end ? -EIO : 0; in queue_pages_pte_range()
587 unsigned long addr, unsigned long end, in queue_pages_hugetlb() argument
657 unsigned long addr, unsigned long end) in change_prot_numa() argument
661 nr_updated = change_protection(vma, addr, end, PAGE_NONE, MM_CP_PROT_NUMA); in change_prot_numa()
669 unsigned long addr, unsigned long end) in change_prot_numa() argument
675 static int queue_pages_test_walk(unsigned long start, unsigned long end, in queue_pages_test_walk() argument
684 VM_BUG_ON_VMA((vma->vm_start > start) || (vma->vm_end < end), vma); in queue_pages_test_walk()
694 ((vma->vm_end < qp->end) && in queue_pages_test_walk()
707 if (endvma > end) in queue_pages_test_walk()
708 endvma = end; in queue_pages_test_walk()
746 queue_pages_range(struct mm_struct *mm, unsigned long start, unsigned long end, in queue_pages_range() argument
756 .end = end, in queue_pages_range()
760 err = walk_page_range(mm, start, end, &queue_pages_walk_ops, &qp); in queue_pages_range()
814 unsigned long end, struct mempolicy *new_pol) in mbind_range() argument
830 for (; vma && vma->vm_start < end; prev = vma, vma = vma->vm_next) { in mbind_range()
832 vmend = min(end, vma->vm_end); in mbind_range()
1280 unsigned long end; in do_mbind() local
1297 end = start + len; in do_mbind()
1299 if (end < start) in do_mbind()
1301 if (end == start) in do_mbind()
1340 ret = queue_pages_range(mm, start, end, nmask, in do_mbind()
1348 err = mbind_range(mm, start, end, new); in do_mbind()
2377 sp_lookup(struct shared_policy *sp, unsigned long start, unsigned long end) in sp_lookup() argument
2384 if (start >= p->end) in sp_lookup()
2386 else if (end <= p->start) in sp_lookup()
2399 if (w->end <= start) in sp_lookup()
2421 else if (new->end > nd->end) in sp_insert()
2428 pr_debug("inserting %lx-%lx: %d\n", new->start, new->end, in sp_insert()
2559 pr_debug("deleting %lx-l%lx\n", n->start, n->end); in sp_delete()
2565 unsigned long end, struct mempolicy *pol) in sp_node_init() argument
2568 node->end = end; in sp_node_init()
2572 static struct sp_node *sp_alloc(unsigned long start, unsigned long end, in sp_alloc() argument
2588 sp_node_init(n, start, end, newpol); in sp_alloc()
2595 unsigned long end, struct sp_node *new) in shared_policy_replace() argument
2604 n = sp_lookup(sp, start, end); in shared_policy_replace()
2606 while (n && n->start < end) { in shared_policy_replace()
2609 if (n->end <= end) in shared_policy_replace()
2612 n->start = end; in shared_policy_replace()
2615 if (n->end > end) { in shared_policy_replace()
2621 sp_node_init(n_new, end, n->end, mpol_new); in shared_policy_replace()
2622 n->end = start; in shared_policy_replace()
2628 n->end = start; in shared_policy_replace()