18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#ifndef __ASM_TLBFLUSH_H 58c2ecf20Sopenharmony_ci#define __ASM_TLBFLUSH_H 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* 88c2ecf20Sopenharmony_ci * TLB flushing: 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * - flush_tlb_all() flushes all processes TLB entries 118c2ecf20Sopenharmony_ci * - flush_tlb_mm(mm) flushes the specified mm context TLB entries 128c2ecf20Sopenharmony_ci * - flush_tlb_page(vma, vmaddr) flushes one page 138c2ecf20Sopenharmony_ci * - flush_tlb_range(vma, start, end) flushes a range of pages 148c2ecf20Sopenharmony_ci * - flush_tlb_kernel_range(start, end) flushes a range of kernel pages 158c2ecf20Sopenharmony_ci */ 168c2ecf20Sopenharmony_ciextern void flush_tlb_all(void); 178c2ecf20Sopenharmony_ciextern void flush_tlb_mm(struct mm_struct *mm); 188c2ecf20Sopenharmony_ciextern void flush_tlb_page(struct vm_area_struct *vma, unsigned long page); 198c2ecf20Sopenharmony_ciextern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start, 208c2ecf20Sopenharmony_ci unsigned long end); 218c2ecf20Sopenharmony_ciextern void flush_tlb_kernel_range(unsigned long start, unsigned long end); 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciextern void flush_tlb_one(unsigned long vaddr); 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif 26