Lines Matching defs:tlb
3 * Based on arch/arm/include/asm/tlb.h
20 static void tlb_flush(struct mmu_gather *tlb);
22 #include <asm-generic/tlb.h>
29 static inline int tlb_get_level(struct mmu_gather *tlb)
32 if (tlb->freed_tables)
35 if (tlb->cleared_ptes && !(tlb->cleared_pmds ||
36 tlb->cleared_puds ||
37 tlb->cleared_p4ds))
40 if (tlb->cleared_pmds && !(tlb->cleared_ptes ||
41 tlb->cleared_puds ||
42 tlb->cleared_p4ds))
45 if (tlb->cleared_puds && !(tlb->cleared_ptes ||
46 tlb->cleared_pmds ||
47 tlb->cleared_p4ds))
50 if (tlb->cleared_p4ds && !(tlb->cleared_ptes ||
51 tlb->cleared_pmds ||
52 tlb->cleared_puds))
58 static inline void tlb_flush(struct mmu_gather *tlb)
60 struct vm_area_struct vma = TLB_FLUSH_VMA(tlb->mm, 0);
61 bool last_level = !tlb->freed_tables;
62 unsigned long stride = tlb_get_unmap_size(tlb);
63 int tlb_level = tlb_get_level(tlb);
70 if (tlb->fullmm) {
72 flush_tlb_mm(tlb->mm);
76 __flush_tlb_range(&vma, tlb->start, tlb->end, stride,
80 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t pte,
86 tlb_remove_ptdesc(tlb, ptdesc);
90 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp,
96 tlb_remove_ptdesc(tlb, ptdesc);
101 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pudp,
110 tlb_remove_ptdesc(tlb, ptdesc);