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

TOMOYO Linux Cross Reference
Linux/arch/mips/include/asm/prefetch.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/mips/include/asm/prefetch.h (Architecture mips) and /arch/sparc64/include/asm-sparc64/prefetch.h (Architecture sparc64)


  1 /*                                                  1 
  2  * This file is subject to the terms and condi    
  3  * License.  See the file "COPYING" in the mai    
  4  * for more details.                              
  5  *                                                
  6  * Copyright (C) 2003 by Ralf Baechle             
  7  */                                               
  8 #ifndef __ASM_PREFETCH_H                          
  9 #define __ASM_PREFETCH_H                          
 10                                                   
 11                                                   
 12 /*                                                
 13  * R5000 and RM5200 implements pref and prefx     
 14  * rather than wasting time we pretend these p    
 15  * prefetching at all.                            
 16  *                                                
 17  * R5432 implements Load, Store, LoadStreamed,    
 18  * StoreRetained and WriteBackInvalidate but n    
 19  *                                                
 20  * Hell (and the book on my shelf I can't open    
 21  *                                                
 22  * RM7000 version 1.0 interprets all hints as     
 23  * Pref_PrepareForStore also.                     
 24  *                                                
 25  * RM9000 is MIPS IV but implements prefetchin    
 26  * Pref_WriteBackInvalidate is a nop and Pref_    
 27  * current versions due to erratum G105.          
 28  *                                                
 29  * VR5500 (including VR5701 and VR7701) only i    
 30  *                                                
 31  * Finally MIPS32 and MIPS64 implement all of     
 32  */                                               
 33                                                   
 34 #define Pref_Load                       0         
 35 #define Pref_Store                      1         
 36                                                   
 37 #define Pref_LoadStreamed               4         
 38 #define Pref_StoreStreamed              5         
 39 #define Pref_LoadRetained               6         
 40 #define Pref_StoreRetained              7         
 41                                                   
 42 #define Pref_WriteBackInvalidate        25        
 43 #define Pref_PrepareForStore            30        
 44                                                   
 45 #ifdef __ASSEMBLY__                               
 46                                                   
 47         .macro  __pref hint addr                  
 48 #ifdef CONFIG_CPU_HAS_PREFETCH                    
 49         pref    \hint, \addr                      
 50 #endif                                            
 51         .endm                                     
 52                                                   
 53         .macro  pref_load addr                    
 54         __pref  Pref_Load, \addr                  
 55         .endm                                     
 56                                                   
 57         .macro  pref_store addr                   
 58         __pref  Pref_Store, \addr                 
 59         .endm                                     
 60                                                   
 61         .macro  pref_load_streamed addr           
 62         __pref  Pref_LoadStreamed, \addr          
 63         .endm                                     
 64                                                   
 65         .macro  pref_store_streamed addr          
 66         __pref  Pref_StoreStreamed, \addr         
 67         .endm                                     
 68                                                   
 69         .macro  pref_load_retained addr           
 70         __pref  Pref_LoadRetained, \addr          
 71         .endm                                     
 72                                                   
 73         .macro  pref_store_retained addr          
 74         __pref  Pref_StoreRetained, \addr         
 75         .endm                                     
 76                                                   
 77         .macro  pref_wback_inv addr               
 78         __pref  Pref_WriteBackInvalidate, \add    
 79         .endm                                     
 80                                                   
 81         .macro  pref_prepare_for_store addr       
 82         __pref  Pref_PrepareForStore, \addr       
 83         .endm                                     
 84                                                   
 85 #endif                                            
 86                                                   
 87 #endif /* __ASM_PREFETCH_H */                     
 88                                                   

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