Lines Matching refs:tlb
28 static inline void init_tlb_gather(struct mmu_gather *tlb) in init_tlb_gather() argument
30 tlb->start = TASK_SIZE; in init_tlb_gather()
31 tlb->end = 0; in init_tlb_gather()
33 if (tlb->fullmm) { in init_tlb_gather()
34 tlb->start = 0; in init_tlb_gather()
35 tlb->end = TASK_SIZE; in init_tlb_gather()
40 arch_tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, in arch_tlb_gather_mmu() argument
43 tlb->mm = mm; in arch_tlb_gather_mmu()
44 tlb->start = start; in arch_tlb_gather_mmu()
45 tlb->end = end; in arch_tlb_gather_mmu()
46 tlb->fullmm = !(start | (end+1)); in arch_tlb_gather_mmu()
48 init_tlb_gather(tlb); in arch_tlb_gather_mmu()
52 arch_tlb_finish_mmu(struct mmu_gather *tlb, in arch_tlb_finish_mmu() argument
55 if (tlb->fullmm || force) in arch_tlb_finish_mmu()
56 flush_tlb_mm(tlb->mm); in arch_tlb_finish_mmu()
63 tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep, unsigned long address) in tlb_remove_tlb_entry() argument
65 if (tlb->start > address) in tlb_remove_tlb_entry()
66 tlb->start = address; in tlb_remove_tlb_entry()
67 if (tlb->end < address + PAGE_SIZE) in tlb_remove_tlb_entry()
68 tlb->end = address + PAGE_SIZE; in tlb_remove_tlb_entry()
71 #define tlb_remove_huge_tlb_entry(h, tlb, ptep, address) \ argument
72 tlb_remove_tlb_entry(tlb, ptep, address)
80 tlb_start_vma(struct mmu_gather *tlb, struct vm_area_struct *vma) in tlb_start_vma() argument
82 if (!tlb->fullmm) in tlb_start_vma()
87 tlb_end_vma(struct mmu_gather *tlb, struct vm_area_struct *vma) in tlb_end_vma() argument
89 if (!tlb->fullmm && tlb->end) { in tlb_end_vma()
90 flush_tlb_range(vma, tlb->start, tlb->end); in tlb_end_vma()
91 init_tlb_gather(tlb); in tlb_end_vma()
95 static inline void tlb_flush_mmu_tlbonly(struct mmu_gather *tlb) in tlb_flush_mmu_tlbonly() argument
99 static inline void tlb_flush_mmu_free(struct mmu_gather *tlb) in tlb_flush_mmu_free() argument
103 static inline void tlb_flush_mmu(struct mmu_gather *tlb) in tlb_flush_mmu() argument
107 static inline int __tlb_remove_page(struct mmu_gather *tlb, struct page *page) in __tlb_remove_page() argument
113 static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page) in tlb_remove_page() argument
115 __tlb_remove_page(tlb, page); in tlb_remove_page()
118 static inline bool __tlb_remove_page_size(struct mmu_gather *tlb, in __tlb_remove_page_size() argument
121 return __tlb_remove_page(tlb, page); in __tlb_remove_page_size()
124 static inline void tlb_remove_page_size(struct mmu_gather *tlb, in tlb_remove_page_size() argument
127 return tlb_remove_page(tlb, page); in tlb_remove_page_size()
131 static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, in tlb_remove_check_page_size_change() argument
136 #define pte_free_tlb(tlb, ptep, addr) pte_free((tlb)->mm, ptep) argument
137 #define pmd_free_tlb(tlb, pmdp, addr) pmd_free((tlb)->mm, pmdp) argument
138 #define pud_free_tlb(tlb, pudp, addr) pud_free((tlb)->mm, pudp) argument
160 #define tlb_start_vma(tlb, vma) do { } while (0) argument
161 #define tlb_end_vma(tlb, vma) do { } while (0) argument
162 #define __tlb_remove_tlb_entry(tlb, pte, address) do { } while (0) argument
163 #define tlb_flush(tlb) do { } while (0) argument