• Home
  • Raw
  • Download

Lines Matching refs:end

40 static int hmm_pfns_fill(unsigned long addr, unsigned long end,  in hmm_pfns_fill()  argument
45 for (; addr < end; addr += PAGE_SIZE, i++) in hmm_pfns_fill()
61 static int hmm_vma_fault(unsigned long addr, unsigned long end, in hmm_vma_fault() argument
77 for (; addr < end; addr += PAGE_SIZE) in hmm_vma_fault()
145 static int hmm_vma_walk_hole(unsigned long addr, unsigned long end, in hmm_vma_walk_hole() argument
155 npages = (end - addr) >> PAGE_SHIFT; in hmm_vma_walk_hole()
162 return hmm_pfns_fill(addr, end, range, HMM_PFN_ERROR); in hmm_vma_walk_hole()
165 return hmm_vma_fault(addr, end, required_fault, walk); in hmm_vma_walk_hole()
166 return hmm_pfns_fill(addr, end, range, 0); in hmm_vma_walk_hole()
186 unsigned long end, unsigned long hmm_pfns[], in hmm_vma_handle_pmd() argument
195 npages = (end - addr) >> PAGE_SHIFT; in hmm_vma_handle_pmd()
200 return hmm_vma_fault(addr, end, required_fault, walk); in hmm_vma_handle_pmd()
203 for (i = 0; addr < end; addr += PAGE_SIZE, i++, pfn++) in hmm_vma_handle_pmd()
210 unsigned long end, unsigned long hmm_pfns[], pmd_t pmd);
230 unsigned long end, pmd_t *pmdp, pte_t *ptep, in hmm_vma_handle_pte() argument
316 return hmm_vma_fault(addr, end, required_fault, walk); in hmm_vma_handle_pte()
321 unsigned long end, in hmm_vma_walk_pmd() argument
328 unsigned long npages = (end - start) >> PAGE_SHIFT; in hmm_vma_walk_pmd()
336 return hmm_vma_walk_hole(start, end, -1, walk); in hmm_vma_walk_pmd()
344 return hmm_pfns_fill(start, end, range, 0); in hmm_vma_walk_pmd()
350 return hmm_pfns_fill(start, end, range, HMM_PFN_ERROR); in hmm_vma_walk_pmd()
368 return hmm_vma_handle_pmd(walk, addr, end, hmm_pfns, pmd); in hmm_vma_walk_pmd()
380 return hmm_pfns_fill(start, end, range, HMM_PFN_ERROR); in hmm_vma_walk_pmd()
384 for (; addr < end; addr += PAGE_SIZE, ptep++, hmm_pfns++) { in hmm_vma_walk_pmd()
387 r = hmm_vma_handle_pte(walk, addr, end, pmdp, ptep, hmm_pfns); in hmm_vma_walk_pmd()
409 static int hmm_vma_walk_pud(pud_t *pudp, unsigned long start, unsigned long end, in hmm_vma_walk_pud() argument
428 return hmm_vma_walk_hole(start, end, -1, walk); in hmm_vma_walk_pud()
439 return hmm_vma_walk_hole(start, end, -1, walk); in hmm_vma_walk_pud()
443 npages = (end - addr) >> PAGE_SHIFT; in hmm_vma_walk_pud()
451 return hmm_vma_fault(addr, end, required_fault, walk); in hmm_vma_walk_pud()
473 unsigned long start, unsigned long end, in hmm_vma_walk_hugetlb_entry() argument
497 return hmm_vma_fault(addr, end, required_fault, walk); in hmm_vma_walk_hugetlb_entry()
501 for (; addr < end; addr += PAGE_SIZE, i++, pfn++) in hmm_vma_walk_hugetlb_entry()
511 static int hmm_vma_walk_test(unsigned long start, unsigned long end, in hmm_vma_walk_test() argument
536 (end - start) >> PAGE_SHIFT, 0)) in hmm_vma_walk_test()
539 hmm_pfns_fill(start, end, range, HMM_PFN_ERROR); in hmm_vma_walk_test()
588 ret = walk_page_range(mm, hmm_vma_walk.last, range->end, in hmm_range_fault()