Lines Matching refs:max_nr
974 int max_nr, int *rss, struct folio **prealloc) in copy_present_ptes() argument
993 if (unlikely(!*prealloc && folio_test_large(folio) && max_nr != 1)) { in copy_present_ptes()
999 nr = folio_pte_batch(folio, addr, src_pte, pte, max_nr, flags, in copy_present_ptes()
1082 int progress, max_nr, ret = 0; in copy_pte_range() local
1166 max_nr = (end - addr) / PAGE_SIZE; in copy_pte_range()
1168 ptent, addr, max_nr, rss, &prealloc); in copy_pte_range()
1544 unsigned int max_nr, unsigned long addr, in zap_present_ptes() argument
1577 if (unlikely(folio_test_large(folio) && max_nr != 1)) { in zap_present_ptes()
1578 nr = folio_pte_batch(folio, addr, pte, ptent, max_nr, fpb_flags, in zap_present_ptes()
1593 unsigned int max_nr, unsigned long addr, in zap_nonpresent_ptes() argument
1623 nr = swap_pte_batch(pte, max_nr, ptent); in zap_nonpresent_ptes()
1669 int max_nr = (end - addr) / PAGE_SIZE; in do_zap_pte_range() local
1674 for (nr = 1; nr < max_nr; nr++) { in do_zap_pte_range()
1679 max_nr -= nr; in do_zap_pte_range()
1680 if (!max_nr) in do_zap_pte_range()
1687 nr += zap_present_ptes(tlb, vma, pte, ptent, max_nr, addr, in do_zap_pte_range()
1691 nr += zap_nonpresent_ptes(tlb, vma, pte, ptent, max_nr, addr, in do_zap_pte_range()
4227 static inline int non_swapcache_batch(swp_entry_t entry, int max_nr) in non_swapcache_batch() argument
4239 for (i = 0; i < max_nr; i++) { in non_swapcache_batch()