1 #ifndef _ASM_POWERPC_TLBFLUSH_RADIX_H 2 #define _ASM_POWERPC_TLBFLUSH_RADIX_H 3 4 struct vm_area_struct; 5 struct mm_struct; 6 struct mmu_gather; 7 8 static inline int mmu_get_ap(int psize) 9 { 10 return mmu_psize_defs[psize].ap; 11 } 12 13 extern void radix__flush_hugetlb_tlb_range(struct vm_area_struct *vma, 14 unsigned long start, unsigned long end); 15 extern void radix__flush_tlb_range_psize(struct mm_struct *mm, unsigned long start, 16 unsigned long end, int psize); 17 extern void radix__flush_pmd_tlb_range(struct vm_area_struct *vma, 18 unsigned long start, unsigned long end); 19 extern void radix__flush_tlb_range(struct vm_area_struct *vma, unsigned long start, 20 unsigned long end); 21 extern void radix__flush_tlb_kernel_range(unsigned long start, unsigned long end); 22 23 extern void radix__local_flush_tlb_mm(struct mm_struct *mm); 24 extern void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr); 25 extern void radix__local_flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr); 26 extern void radix__local_flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, 27 int psize); 28 extern void radix__tlb_flush(struct mmu_gather *tlb); 29 #ifdef CONFIG_SMP 30 extern void radix__flush_tlb_mm(struct mm_struct *mm); 31 extern void radix__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr); 32 extern void radix__flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr); 33 extern void radix__flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, 34 int psize); 35 #else 36 #define radix__flush_tlb_mm(mm) radix__local_flush_tlb_mm(mm) 37 #define radix__flush_tlb_page(vma,addr) radix__local_flush_tlb_page(vma,addr) 38 #define radix__flush_tlb_page_psize(mm,addr,p) radix__local_flush_tlb_page_psize(mm,addr,p) 39 #define radix__flush_tlb_pwc(tlb, addr) radix__local_flush_tlb_pwc(tlb, addr) 40 #endif 41 extern void radix__flush_tlb_lpid_va(unsigned long lpid, unsigned long gpa, 42 unsigned long page_size); 43 extern void radix__flush_tlb_lpid(unsigned long lpid); 44 extern void radix__flush_tlb_all(void); 45 extern void radix__flush_tlb_pte_p9_dd1(unsigned long old_pte, struct mm_struct *mm, 46 unsigned long address); 47 #endif 48