Lines Matching refs:tlb

27 static inline void init_tlb_gather(struct mmu_gather *tlb)  in init_tlb_gather()  argument
29 tlb->start = TASK_SIZE; in init_tlb_gather()
30 tlb->end = 0; in init_tlb_gather()
32 if (tlb->fullmm) { in init_tlb_gather()
33 tlb->start = 0; in init_tlb_gather()
34 tlb->end = TASK_SIZE; in init_tlb_gather()
39 tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, unsigned long start, unsigned long end) in tlb_gather_mmu() argument
41 tlb->mm = mm; in tlb_gather_mmu()
42 tlb->start = start; in tlb_gather_mmu()
43 tlb->end = end; in tlb_gather_mmu()
44 tlb->fullmm = !(start | (end+1)); in tlb_gather_mmu()
46 init_tlb_gather(tlb); in tlb_gather_mmu()
50 tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start, unsigned long end) in tlb_finish_mmu() argument
52 if (tlb->fullmm) in tlb_finish_mmu()
53 flush_tlb_mm(tlb->mm); in tlb_finish_mmu()
60 tlb_remove_tlb_entry(struct mmu_gather *tlb, pte_t *ptep, unsigned long address) in tlb_remove_tlb_entry() argument
62 if (tlb->start > address) in tlb_remove_tlb_entry()
63 tlb->start = address; in tlb_remove_tlb_entry()
64 if (tlb->end < address + PAGE_SIZE) in tlb_remove_tlb_entry()
65 tlb->end = address + PAGE_SIZE; in tlb_remove_tlb_entry()
74 tlb_start_vma(struct mmu_gather *tlb, struct vm_area_struct *vma) in tlb_start_vma() argument
76 if (!tlb->fullmm) in tlb_start_vma()
81 tlb_end_vma(struct mmu_gather *tlb, struct vm_area_struct *vma) in tlb_end_vma() argument
83 if (!tlb->fullmm && tlb->end) { in tlb_end_vma()
84 flush_tlb_range(vma, tlb->start, tlb->end); in tlb_end_vma()
85 init_tlb_gather(tlb); in tlb_end_vma()
89 static inline void tlb_flush_mmu_tlbonly(struct mmu_gather *tlb) in tlb_flush_mmu_tlbonly() argument
93 static inline void tlb_flush_mmu_free(struct mmu_gather *tlb) in tlb_flush_mmu_free() argument
97 static inline void tlb_flush_mmu(struct mmu_gather *tlb) in tlb_flush_mmu() argument
101 static inline int __tlb_remove_page(struct mmu_gather *tlb, struct page *page) in __tlb_remove_page() argument
107 static inline void tlb_remove_page(struct mmu_gather *tlb, struct page *page) in tlb_remove_page() argument
109 __tlb_remove_page(tlb, page); in tlb_remove_page()
112 #define pte_free_tlb(tlb, ptep, addr) pte_free((tlb)->mm, ptep) argument
113 #define pmd_free_tlb(tlb, pmdp, addr) pmd_free((tlb)->mm, pmdp) argument
114 #define pud_free_tlb(tlb, pudp, addr) pud_free((tlb)->mm, pudp) argument
136 #define tlb_start_vma(tlb, vma) do { } while (0) argument
137 #define tlb_end_vma(tlb, vma) do { } while (0) argument
138 #define __tlb_remove_tlb_entry(tlb, pte, address) do { } while (0) argument
139 #define tlb_flush(tlb) do { } while (0) argument