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

TOMOYO Linux Cross Reference
Linux/arch/parisc/include/asm/cacheflush.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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/parisc/include/asm/cacheflush.h (Architecture ppc) and /arch/alpha/include/asm-alpha/cacheflush.h (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _PARISC_CACHEFLUSH_H                      
  3 #define _PARISC_CACHEFLUSH_H                      
  4                                                   
  5 #include <linux/mm.h>                             
  6 #include <linux/uaccess.h>                        
  7 #include <asm/tlbflush.h>                         
  8                                                   
  9 /* The usual comment is "Caches aren't brain-d    
 10  * Unfortunately, that doesn't apply to PA-RIS    
 11                                                   
 12 #include <linux/jump_label.h>                     
 13                                                   
 14 DECLARE_STATIC_KEY_TRUE(parisc_has_cache);        
 15 DECLARE_STATIC_KEY_TRUE(parisc_has_dcache);       
 16 DECLARE_STATIC_KEY_TRUE(parisc_has_icache);       
 17                                                   
 18 #define flush_cache_dup_mm(mm) flush_cache_mm(    
 19                                                   
 20 void flush_user_icache_range_asm(unsigned long    
 21 void flush_kernel_icache_range_asm(unsigned lo    
 22 void flush_user_dcache_range_asm(unsigned long    
 23 void flush_kernel_dcache_range_asm(unsigned lo    
 24 void purge_kernel_dcache_range_asm(unsigned lo    
 25 void flush_kernel_dcache_page_asm(const void *    
 26 void flush_kernel_icache_page(void *);            
 27                                                   
 28 /* Cache flush operations */                      
 29                                                   
 30 void flush_cache_all_local(void);                 
 31 void flush_cache_all(void);                       
 32 void flush_cache_mm(struct mm_struct *mm);        
 33                                                   
 34 #define flush_kernel_dcache_range(start,size)     
 35         flush_kernel_dcache_range_asm((start),    
 36                                                   
 37 /* The only way to flush a vmap range is to fl    
 38 #define ARCH_IMPLEMENTS_FLUSH_KERNEL_VMAP_RANG    
 39 void flush_kernel_vmap_range(void *vaddr, int     
 40 void invalidate_kernel_vmap_range(void *vaddr,    
 41                                                   
 42 void flush_cache_vmap(unsigned long start, uns    
 43 #define flush_cache_vmap_early(start, end)        
 44 void flush_cache_vunmap(unsigned long start, u    
 45                                                   
 46 void flush_dcache_folio(struct folio *folio);     
 47 #define flush_dcache_folio flush_dcache_folio     
 48 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1       
 49 static inline void flush_dcache_page(struct pa    
 50 {                                                 
 51         flush_dcache_folio(page_folio(page));     
 52 }                                                 
 53                                                   
 54 #define flush_dcache_mmap_lock(mapping)           
 55 #define flush_dcache_mmap_unlock(mapping)         
 56 #define flush_dcache_mmap_lock_irqsave(mapping    
 57                 xa_lock_irqsave(&mapping->i_pa    
 58 #define flush_dcache_mmap_unlock_irqrestore(ma    
 59                 xa_unlock_irqrestore(&mapping-    
 60                                                   
 61 void flush_icache_pages(struct vm_area_struct     
 62                 unsigned int nr);                 
 63 #define flush_icache_pages flush_icache_pages     
 64                                                   
 65 #define flush_icache_range(s,e)         do {      
 66         flush_kernel_dcache_range_asm(s,e);       
 67         flush_kernel_icache_range_asm(s,e);       
 68 } while (0)                                       
 69                                                   
 70 void copy_to_user_page(struct vm_area_struct *    
 71                 unsigned long user_vaddr, void    
 72 void copy_from_user_page(struct vm_area_struct    
 73                 unsigned long user_vaddr, void    
 74 void flush_cache_page(struct vm_area_struct *v    
 75                 unsigned long pfn);               
 76 void flush_cache_range(struct vm_area_struct *    
 77                 unsigned long start, unsigned     
 78                                                   
 79 #define ARCH_HAS_FLUSH_ANON_PAGE                  
 80 void flush_anon_page(struct vm_area_struct *vm    
 81                                                   
 82 #define ARCH_HAS_FLUSH_ON_KUNMAP                  
 83 void kunmap_flush_on_unmap(const void *addr);     
 84                                                   
 85 #endif /* _PARISC_CACHEFLUSH_H */                 
 86                                                   
 87                                                   

~ [ 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