1 /* SPDX-License-Identifier: GPL-2.0 */
5 #define tlb_flush(tlb) \
6 do { if ((tlb)->fullmm) \
7 flush_tlb_mm((tlb)->mm);\
10 #define tlb_start_vma(tlb, vma) \
11 do { if (!(tlb)->fullmm) \
12 flush_cache_range(vma, vma->vm_start, vma->vm_end); \
15 #define tlb_end_vma(tlb, vma) \
16 do { if (!(tlb)->fullmm) \
17 flush_tlb_range(vma, vma->vm_start, vma->vm_end); \
20 #define __tlb_remove_tlb_entry(tlb, pte, address) \
23 #include <asm-generic/tlb.h>
25 #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd)
26 #define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, pte)