~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/riscv/include/asm/tlbflush.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/riscv/include/asm/tlbflush.h (Architecture ppc) and /arch/sparc64/include/asm-sparc64/tlbflush.h (Architecture sparc64)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 
  2 /*                                                
  3  * Copyright (C) 2009 Chen Liqin <liqin.chen@s    
  4  * Copyright (C) 2012 Regents of the Universit    
  5  */                                               
  6                                                   
  7 #ifndef _ASM_RISCV_TLBFLUSH_H                     
  8 #define _ASM_RISCV_TLBFLUSH_H                     
  9                                                   
 10 #include <linux/mm_types.h>                       
 11 #include <asm/smp.h>                              
 12 #include <asm/errata_list.h>                      
 13                                                   
 14 #define FLUSH_TLB_MAX_SIZE      ((unsigned lon    
 15 #define FLUSH_TLB_NO_ASID       ((unsigned lon    
 16                                                   
 17 #ifdef CONFIG_MMU                                 
 18 static inline void local_flush_tlb_all(void)      
 19 {                                                 
 20         __asm__ __volatile__ ("sfence.vma" : :    
 21 }                                                 
 22                                                   
 23 static inline void local_flush_tlb_all_asid(un    
 24 {                                                 
 25         if (asid != FLUSH_TLB_NO_ASID)            
 26                 ALT_SFENCE_VMA_ASID(asid);        
 27         else                                      
 28                 local_flush_tlb_all();            
 29 }                                                 
 30                                                   
 31 /* Flush one page from local TLB */               
 32 static inline void local_flush_tlb_page(unsign    
 33 {                                                 
 34         ALT_SFENCE_VMA_ADDR(addr);                
 35 }                                                 
 36                                                   
 37 static inline void local_flush_tlb_page_asid(u    
 38                                              u    
 39 {                                                 
 40         if (asid != FLUSH_TLB_NO_ASID)            
 41                 ALT_SFENCE_VMA_ADDR_ASID(addr,    
 42         else                                      
 43                 local_flush_tlb_page(addr);       
 44 }                                                 
 45                                                   
 46 void flush_tlb_all(void);                         
 47 void flush_tlb_mm(struct mm_struct *mm);          
 48 void flush_tlb_mm_range(struct mm_struct *mm,     
 49                         unsigned long end, uns    
 50 void flush_tlb_page(struct vm_area_struct *vma    
 51 void flush_tlb_range(struct vm_area_struct *vm    
 52                      unsigned long end);          
 53 void flush_tlb_kernel_range(unsigned long star    
 54 void local_flush_tlb_kernel_range(unsigned lon    
 55 #ifdef CONFIG_TRANSPARENT_HUGEPAGE                
 56 #define __HAVE_ARCH_FLUSH_PMD_TLB_RANGE           
 57 void flush_pmd_tlb_range(struct vm_area_struct    
 58                         unsigned long end);       
 59 #endif                                            
 60                                                   
 61 bool arch_tlbbatch_should_defer(struct mm_stru    
 62 void arch_tlbbatch_add_pending(struct arch_tlb    
 63                                struct mm_struc    
 64                                unsigned long u    
 65 void arch_flush_tlb_batched_pending(struct mm_    
 66 void arch_tlbbatch_flush(struct arch_tlbflush_    
 67                                                   
 68 extern unsigned long tlb_flush_all_threshold;     
 69 #else /* CONFIG_MMU */                            
 70 #define local_flush_tlb_all()                     
 71 #endif /* CONFIG_MMU */                           
 72                                                   
 73 #endif /* _ASM_RISCV_TLBFLUSH_H */                
 74                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php