Lines Matching refs:wpwalk
35 struct wp_walk *wpwalk = walk->private; in wp_pte() local
43 wpwalk->total++; in wp_pte()
44 wpwalk->tlbflush_start = min(wpwalk->tlbflush_start, addr); in wp_pte()
45 wpwalk->tlbflush_end = max(wpwalk->tlbflush_end, in wp_pte()
89 struct wp_walk *wpwalk = walk->private; in clean_record_pte() local
90 struct clean_walk *cwalk = to_clean_walk(wpwalk); in clean_record_pte()
101 wpwalk->total++; in clean_record_pte()
102 wpwalk->tlbflush_start = min(wpwalk->tlbflush_start, addr); in clean_record_pte()
103 wpwalk->tlbflush_end = max(wpwalk->tlbflush_end, in clean_record_pte()
183 struct wp_walk *wpwalk = walk->private; in wp_clean_pre_vma() local
185 wpwalk->tlbflush_start = end; in wp_clean_pre_vma()
186 wpwalk->tlbflush_end = start; in wp_clean_pre_vma()
188 mmu_notifier_range_init(&wpwalk->range, MMU_NOTIFY_PROTECTION_PAGE, 0, in wp_clean_pre_vma()
190 mmu_notifier_invalidate_range_start(&wpwalk->range); in wp_clean_pre_vma()
211 struct wp_walk *wpwalk = walk->private; in wp_clean_post_vma() local
214 flush_tlb_range(walk->vma, wpwalk->range.start, in wp_clean_post_vma()
215 wpwalk->range.end); in wp_clean_post_vma()
216 else if (wpwalk->tlbflush_end > wpwalk->tlbflush_start) in wp_clean_post_vma()
217 flush_tlb_range(walk->vma, wpwalk->tlbflush_start, in wp_clean_post_vma()
218 wpwalk->tlbflush_end); in wp_clean_post_vma()
220 mmu_notifier_invalidate_range_end(&wpwalk->range); in wp_clean_post_vma()
277 struct wp_walk wpwalk = { .total = 0 }; in wp_shared_mapping_range() local
281 &wpwalk)); in wp_shared_mapping_range()
284 return wpwalk.total; in wp_shared_mapping_range()