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

TOMOYO Linux Cross Reference
Linux/include/asm-generic/atomic64.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 /include/asm-generic/atomic64.h (Architecture ppc) and /include/asm-i386/atomic64.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 
  2 /*                                                
  3  * Generic implementation of 64-bit atomics us    
  4  * useful on processors that don't have 64-bit    
  5  *                                                
  6  * Copyright © 2009 Paul Mackerras, IBM Corp.    
  7  */                                               
  8 #ifndef _ASM_GENERIC_ATOMIC64_H                   
  9 #define _ASM_GENERIC_ATOMIC64_H                   
 10 #include <linux/types.h>                          
 11                                                   
 12 typedef struct {                                  
 13         s64 counter;                              
 14 } atomic64_t;                                     
 15                                                   
 16 #define ATOMIC64_INIT(i)        { (i) }           
 17                                                   
 18 extern s64 generic_atomic64_read(const atomic6    
 19 extern void generic_atomic64_set(atomic64_t *v    
 20                                                   
 21 #define ATOMIC64_OP(op)                           
 22 extern void generic_atomic64_##op(s64 a, atomi    
 23                                                   
 24 #define ATOMIC64_OP_RETURN(op)                    
 25 extern s64 generic_atomic64_##op##_return(s64     
 26                                                   
 27 #define ATOMIC64_FETCH_OP(op)                     
 28 extern s64 generic_atomic64_fetch_##op(s64 a,     
 29                                                   
 30 #define ATOMIC64_OPS(op)        ATOMIC64_OP(op    
 31                                                   
 32 ATOMIC64_OPS(add)                                 
 33 ATOMIC64_OPS(sub)                                 
 34                                                   
 35 #undef ATOMIC64_OPS                               
 36 #define ATOMIC64_OPS(op)        ATOMIC64_OP(op    
 37                                                   
 38 ATOMIC64_OPS(and)                                 
 39 ATOMIC64_OPS(or)                                  
 40 ATOMIC64_OPS(xor)                                 
 41                                                   
 42 #undef ATOMIC64_OPS                               
 43 #undef ATOMIC64_FETCH_OP                          
 44 #undef ATOMIC64_OP_RETURN                         
 45 #undef ATOMIC64_OP                                
 46                                                   
 47 extern s64 generic_atomic64_dec_if_positive(at    
 48 extern s64 generic_atomic64_cmpxchg(atomic64_t    
 49 extern s64 generic_atomic64_xchg(atomic64_t *v    
 50 extern s64 generic_atomic64_fetch_add_unless(a    
 51                                                   
 52 #define arch_atomic64_read              generi    
 53 #define arch_atomic64_set               generi    
 54 #define arch_atomic64_set_release       generi    
 55                                                   
 56 #define arch_atomic64_add               generi    
 57 #define arch_atomic64_add_return        generi    
 58 #define arch_atomic64_fetch_add         generi    
 59 #define arch_atomic64_sub               generi    
 60 #define arch_atomic64_sub_return        generi    
 61 #define arch_atomic64_fetch_sub         generi    
 62                                                   
 63 #define arch_atomic64_and               generi    
 64 #define arch_atomic64_fetch_and         generi    
 65 #define arch_atomic64_or                generi    
 66 #define arch_atomic64_fetch_or          generi    
 67 #define arch_atomic64_xor               generi    
 68 #define arch_atomic64_fetch_xor         generi    
 69                                                   
 70 #define arch_atomic64_dec_if_positive   generi    
 71 #define arch_atomic64_cmpxchg           generi    
 72 #define arch_atomic64_xchg              generi    
 73 #define arch_atomic64_fetch_add_unless  generi    
 74                                                   
 75 #endif  /*  _ASM_GENERIC_ATOMIC64_H  */           
 76                                                   

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