Lines Matching refs:tlb
10 #define tlb_start_vma(tlb, vma) do { } while (0) argument
11 #define tlb_end_vma(tlb, vma) do { } while (0) argument
12 #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) argument
25 static inline void __tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep, in __tlb_remove_tlb_entry() argument
28 if (tlb->start > address) in __tlb_remove_tlb_entry()
29 tlb->start = address; in __tlb_remove_tlb_entry()
30 if (tlb->end < address + PAGE_SIZE) in __tlb_remove_tlb_entry()
31 tlb->end = address + PAGE_SIZE; in __tlb_remove_tlb_entry()
34 static inline void init_tlb_gather(struct mmu_gather *tlb) in init_tlb_gather() argument
36 tlb->need_flush = 0; in init_tlb_gather()
38 tlb->start = TASK_SIZE; in init_tlb_gather()
39 tlb->end = 0; in init_tlb_gather()
41 if (tlb->fullmm) { in init_tlb_gather()
42 tlb->start = 0; in init_tlb_gather()
43 tlb->end = TASK_SIZE; in init_tlb_gather()
48 tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, unsigned long start, unsigned long end) in tlb_gather_mmu() argument
50 tlb->mm = mm; in tlb_gather_mmu()
51 tlb->start = start; in tlb_gather_mmu()
52 tlb->end = end; in tlb_gather_mmu()
53 tlb->fullmm = !(start | (end+1)); in tlb_gather_mmu()
55 init_tlb_gather(tlb); in tlb_gather_mmu()
62 tlb_flush_mmu_tlbonly(struct mmu_gather *tlb) in tlb_flush_mmu_tlbonly() argument
64 flush_tlb_mm_range(tlb->mm, tlb->start, tlb->end); in tlb_flush_mmu_tlbonly()
68 tlb_flush_mmu_free(struct mmu_gather *tlb) in tlb_flush_mmu_free() argument
70 init_tlb_gather(tlb); in tlb_flush_mmu_free()
74 tlb_flush_mmu(struct mmu_gather *tlb) in tlb_flush_mmu() argument
76 if (!tlb->need_flush) in tlb_flush_mmu()
79 tlb_flush_mmu_tlbonly(tlb); in tlb_flush_mmu()
80 tlb_flush_mmu_free(tlb); in tlb_flush_mmu()
88 tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long end) in tlb_finish_mmu() argument
90 tlb_flush_mmu(tlb); in tlb_finish_mmu()
101 static inline int __tlb_remove_page(struct mmu_gather *tlb, struct page *page) in __tlb_remove_page() argument
103 tlb->need_flush = 1; in __tlb_remove_page()
108 static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page) in tlb_remove_page() argument
110 __tlb_remove_page(tlb, page); in tlb_remove_page()
120 #define tlb_remove_tlb_entry(tlb, ptep, address) \ argument
122 tlb->need_flush = 1; \
123 __tlb_remove_tlb_entry(tlb, ptep, address); \
126 #define pte_free_tlb(tlb, ptep, addr) __pte_free_tlb(tlb, ptep, addr) argument
128 #define pud_free_tlb(tlb, pudp, addr) __pud_free_tlb(tlb, pudp, addr) argument
130 #define pmd_free_tlb(tlb, pmdp, addr) __pmd_free_tlb(tlb, pmdp, addr) argument