Lines Matching refs:tlb

11 #define tlb_start_vma(tlb, vma) do { } while (0)  argument
12 #define tlb_end_vma(tlb, vma) do { } while (0) argument
13 #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) argument
26 static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep, in __tlb_remove_tlb_entry() argument
29 if (tlb->start > address) in __tlb_remove_tlb_entry()
30 tlb->start = address; in __tlb_remove_tlb_entry()
31 if (tlb->end < address + PAGE_SIZE) in __tlb_remove_tlb_entry()
32 tlb->end = address + PAGE_SIZE; in __tlb_remove_tlb_entry()
35 static inline void init_tlb_gather(struct mmu_gather *tlb) in init_tlb_gather() argument
37 tlb->need_flush = 0; in init_tlb_gather()
39 tlb->start = TASK_SIZE; in init_tlb_gather()
40 tlb->end = 0; in init_tlb_gather()
42 if (tlb->fullmm) { in init_tlb_gather()
43 tlb->start = 0; in init_tlb_gather()
44 tlb->end = TASK_SIZE; in init_tlb_gather()
49 arch_tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, in arch_tlb_gather_mmu() argument
52 tlb->mm = mm; in arch_tlb_gather_mmu()
53 tlb->start = start; in arch_tlb_gather_mmu()
54 tlb->end = end; in arch_tlb_gather_mmu()
55 tlb->fullmm = !(start | (end+1)); in arch_tlb_gather_mmu()
57 init_tlb_gather(tlb); in arch_tlb_gather_mmu()
64 tlb_flush_mmu_tlbonly(struct mmu_gather *tlb) in tlb_flush_mmu_tlbonly() argument
66 flush_tlb_mm_range(tlb->mm, tlb->start, tlb->end); in tlb_flush_mmu_tlbonly()
70 tlb_flush_mmu_free(struct mmu_gather *tlb) in tlb_flush_mmu_free() argument
72 init_tlb_gather(tlb); in tlb_flush_mmu_free()
76 tlb_flush_mmu(struct mmu_gather *tlb) in tlb_flush_mmu() argument
78 if (!tlb->need_flush) in tlb_flush_mmu()
81 tlb_flush_mmu_tlbonly(tlb); in tlb_flush_mmu()
82 tlb_flush_mmu_free(tlb); in tlb_flush_mmu()
90 arch_tlb_finish_mmu(struct mmu_gather *tlb, in arch_tlb_finish_mmu() argument
94 tlb->start = start; in arch_tlb_finish_mmu()
95 tlb->end = end; in arch_tlb_finish_mmu()
96 tlb->need_flush = 1; in arch_tlb_finish_mmu()
98 tlb_flush_mmu(tlb); in arch_tlb_finish_mmu()
109 static inline int __tlb_remove_page(struct mmu_gather *tlb, struct page *page) in __tlb_remove_page() argument
111 tlb->need_flush = 1; in __tlb_remove_page()
116 static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page) in tlb_remove_page() argument
118 __tlb_remove_page(tlb, page); in tlb_remove_page()
121 static inline bool __tlb_remove_page_size(struct mmu_gather *tlb, in __tlb_remove_page_size() argument
124 return __tlb_remove_page(tlb, page); in __tlb_remove_page_size()
127 static inline void tlb_remove_page_size(struct mmu_gather *tlb, in tlb_remove_page_size() argument
130 return tlb_remove_page(tlb, page); in tlb_remove_page_size()
140 #define tlb_remove_tlb_entry(tlb, ptep, address) \ argument
142 tlb->need_flush = 1; \
143 __tlb_remove_tlb_entry(tlb, ptep, address); \
146 #define tlb_remove_huge_tlb_entry(h, tlb, ptep, address) \ argument
147 tlb_remove_tlb_entry(tlb, ptep, address)
150 static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, in tlb_remove_check_page_size_change() argument
155 #define pte_free_tlb(tlb, ptep, addr) __pte_free_tlb(tlb, ptep, addr) argument
157 #define pud_free_tlb(tlb, pudp, addr) __pud_free_tlb(tlb, pudp, addr) argument
159 #define pmd_free_tlb(tlb, pmdp, addr) __pmd_free_tlb(tlb, pmdp, addr) argument