Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  * Based on arch/arm/include/asm/atomic.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  * Copyright (C) 1996 Russell King.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * Copyright (C) 2002 Deep Blue Solutions Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * Copyright (C) 2012 ARM Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) #ifndef __ASM_ATOMIC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) #define __ASM_ATOMIC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) #include <linux/compiler.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) #include <asm/barrier.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <asm/cmpxchg.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <asm/lse.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) #define ATOMIC_OP(op)							\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) static __always_inline void arch_##op(int i, atomic_t *v)		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) {									\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) 	__lse_ll_sc_body(op, i, v);					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) ATOMIC_OP(atomic_andnot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) ATOMIC_OP(atomic_or)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) ATOMIC_OP(atomic_xor)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) ATOMIC_OP(atomic_add)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) ATOMIC_OP(atomic_and)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) ATOMIC_OP(atomic_sub)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) #undef ATOMIC_OP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) #define ATOMIC_FETCH_OP(name, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) static __always_inline int arch_##op##name(int i, atomic_t *v)		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) {									\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 	return __lse_ll_sc_body(op##name, i, v);			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) #define ATOMIC_FETCH_OPS(op)						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 	ATOMIC_FETCH_OP(_relaxed, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 	ATOMIC_FETCH_OP(_acquire, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 	ATOMIC_FETCH_OP(_release, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	ATOMIC_FETCH_OP(        , op)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) ATOMIC_FETCH_OPS(atomic_fetch_andnot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) ATOMIC_FETCH_OPS(atomic_fetch_or)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) ATOMIC_FETCH_OPS(atomic_fetch_xor)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) ATOMIC_FETCH_OPS(atomic_fetch_add)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) ATOMIC_FETCH_OPS(atomic_fetch_and)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) ATOMIC_FETCH_OPS(atomic_fetch_sub)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) ATOMIC_FETCH_OPS(atomic_add_return)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) ATOMIC_FETCH_OPS(atomic_sub_return)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) #undef ATOMIC_FETCH_OP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) #undef ATOMIC_FETCH_OPS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) #define ATOMIC64_OP(op)							\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) static __always_inline void arch_##op(long i, atomic64_t *v)		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) {									\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	__lse_ll_sc_body(op, i, v);					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) ATOMIC64_OP(atomic64_andnot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) ATOMIC64_OP(atomic64_or)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) ATOMIC64_OP(atomic64_xor)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) ATOMIC64_OP(atomic64_add)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) ATOMIC64_OP(atomic64_and)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) ATOMIC64_OP(atomic64_sub)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) #undef ATOMIC64_OP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) #define ATOMIC64_FETCH_OP(name, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) static __always_inline long arch_##op##name(long i, atomic64_t *v)	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) {									\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	return __lse_ll_sc_body(op##name, i, v);			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) #define ATOMIC64_FETCH_OPS(op)						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	ATOMIC64_FETCH_OP(_relaxed, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	ATOMIC64_FETCH_OP(_acquire, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	ATOMIC64_FETCH_OP(_release, op)					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	ATOMIC64_FETCH_OP(        , op)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) ATOMIC64_FETCH_OPS(atomic64_fetch_andnot)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) ATOMIC64_FETCH_OPS(atomic64_fetch_or)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) ATOMIC64_FETCH_OPS(atomic64_fetch_xor)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) ATOMIC64_FETCH_OPS(atomic64_fetch_add)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) ATOMIC64_FETCH_OPS(atomic64_fetch_and)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) ATOMIC64_FETCH_OPS(atomic64_fetch_sub)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) ATOMIC64_FETCH_OPS(atomic64_add_return)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) ATOMIC64_FETCH_OPS(atomic64_sub_return)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) #undef ATOMIC64_FETCH_OP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) #undef ATOMIC64_FETCH_OPS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) static __always_inline long arch_atomic64_dec_if_positive(atomic64_t *v)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	return __lse_ll_sc_body(atomic64_dec_if_positive, v);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) #define arch_atomic_read(v)			__READ_ONCE((v)->counter)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #define arch_atomic_set(v, i)			__WRITE_ONCE(((v)->counter), (i))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) #define arch_atomic_add_return_relaxed		arch_atomic_add_return_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) #define arch_atomic_add_return_acquire		arch_atomic_add_return_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define arch_atomic_add_return_release		arch_atomic_add_return_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define arch_atomic_add_return			arch_atomic_add_return
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #define arch_atomic_sub_return_relaxed		arch_atomic_sub_return_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) #define arch_atomic_sub_return_acquire		arch_atomic_sub_return_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) #define arch_atomic_sub_return_release		arch_atomic_sub_return_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define arch_atomic_sub_return			arch_atomic_sub_return
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define arch_atomic_fetch_add_relaxed		arch_atomic_fetch_add_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) #define arch_atomic_fetch_add_acquire		arch_atomic_fetch_add_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) #define arch_atomic_fetch_add_release		arch_atomic_fetch_add_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) #define arch_atomic_fetch_add			arch_atomic_fetch_add
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) #define arch_atomic_fetch_sub_relaxed		arch_atomic_fetch_sub_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) #define arch_atomic_fetch_sub_acquire		arch_atomic_fetch_sub_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) #define arch_atomic_fetch_sub_release		arch_atomic_fetch_sub_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #define arch_atomic_fetch_sub			arch_atomic_fetch_sub
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) #define arch_atomic_fetch_and_relaxed		arch_atomic_fetch_and_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) #define arch_atomic_fetch_and_acquire		arch_atomic_fetch_and_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) #define arch_atomic_fetch_and_release		arch_atomic_fetch_and_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) #define arch_atomic_fetch_and			arch_atomic_fetch_and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define arch_atomic_fetch_andnot_relaxed	arch_atomic_fetch_andnot_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define arch_atomic_fetch_andnot_acquire	arch_atomic_fetch_andnot_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #define arch_atomic_fetch_andnot_release	arch_atomic_fetch_andnot_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) #define arch_atomic_fetch_andnot		arch_atomic_fetch_andnot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) #define arch_atomic_fetch_or_relaxed		arch_atomic_fetch_or_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) #define arch_atomic_fetch_or_acquire		arch_atomic_fetch_or_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define arch_atomic_fetch_or_release		arch_atomic_fetch_or_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #define arch_atomic_fetch_or			arch_atomic_fetch_or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) #define arch_atomic_fetch_xor_relaxed		arch_atomic_fetch_xor_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) #define arch_atomic_fetch_xor_acquire		arch_atomic_fetch_xor_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) #define arch_atomic_fetch_xor_release		arch_atomic_fetch_xor_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) #define arch_atomic_fetch_xor			arch_atomic_fetch_xor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) #define arch_atomic_xchg_relaxed(v, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 	arch_xchg_relaxed(&((v)->counter), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) #define arch_atomic_xchg_acquire(v, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 	arch_xchg_acquire(&((v)->counter), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) #define arch_atomic_xchg_release(v, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 	arch_xchg_release(&((v)->counter), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) #define arch_atomic_xchg(v, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	arch_xchg(&((v)->counter), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) #define arch_atomic_cmpxchg_relaxed(v, old, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 	arch_cmpxchg_relaxed(&((v)->counter), (old), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) #define arch_atomic_cmpxchg_acquire(v, old, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 	arch_cmpxchg_acquire(&((v)->counter), (old), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) #define arch_atomic_cmpxchg_release(v, old, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 	arch_cmpxchg_release(&((v)->counter), (old), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) #define arch_atomic_cmpxchg(v, old, new) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 	arch_cmpxchg(&((v)->counter), (old), (new))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) #define arch_atomic_andnot			arch_atomic_andnot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166)  * 64-bit arch_atomic operations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) #define ATOMIC64_INIT				ATOMIC_INIT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) #define arch_atomic64_read			arch_atomic_read
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) #define arch_atomic64_set			arch_atomic_set
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) #define arch_atomic64_add_return_relaxed	arch_atomic64_add_return_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) #define arch_atomic64_add_return_acquire	arch_atomic64_add_return_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) #define arch_atomic64_add_return_release	arch_atomic64_add_return_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) #define arch_atomic64_add_return		arch_atomic64_add_return
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) #define arch_atomic64_sub_return_relaxed	arch_atomic64_sub_return_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) #define arch_atomic64_sub_return_acquire	arch_atomic64_sub_return_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) #define arch_atomic64_sub_return_release	arch_atomic64_sub_return_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) #define arch_atomic64_sub_return		arch_atomic64_sub_return
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) #define arch_atomic64_fetch_add_relaxed		arch_atomic64_fetch_add_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) #define arch_atomic64_fetch_add_acquire		arch_atomic64_fetch_add_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) #define arch_atomic64_fetch_add_release		arch_atomic64_fetch_add_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) #define arch_atomic64_fetch_add			arch_atomic64_fetch_add
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) #define arch_atomic64_fetch_sub_relaxed		arch_atomic64_fetch_sub_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) #define arch_atomic64_fetch_sub_acquire		arch_atomic64_fetch_sub_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) #define arch_atomic64_fetch_sub_release		arch_atomic64_fetch_sub_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) #define arch_atomic64_fetch_sub			arch_atomic64_fetch_sub
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) #define arch_atomic64_fetch_and_relaxed		arch_atomic64_fetch_and_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) #define arch_atomic64_fetch_and_acquire		arch_atomic64_fetch_and_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) #define arch_atomic64_fetch_and_release		arch_atomic64_fetch_and_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) #define arch_atomic64_fetch_and			arch_atomic64_fetch_and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) #define arch_atomic64_fetch_andnot_relaxed	arch_atomic64_fetch_andnot_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) #define arch_atomic64_fetch_andnot_acquire	arch_atomic64_fetch_andnot_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) #define arch_atomic64_fetch_andnot_release	arch_atomic64_fetch_andnot_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) #define arch_atomic64_fetch_andnot		arch_atomic64_fetch_andnot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) #define arch_atomic64_fetch_or_relaxed		arch_atomic64_fetch_or_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) #define arch_atomic64_fetch_or_acquire		arch_atomic64_fetch_or_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #define arch_atomic64_fetch_or_release		arch_atomic64_fetch_or_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) #define arch_atomic64_fetch_or			arch_atomic64_fetch_or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) #define arch_atomic64_fetch_xor_relaxed		arch_atomic64_fetch_xor_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) #define arch_atomic64_fetch_xor_acquire		arch_atomic64_fetch_xor_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) #define arch_atomic64_fetch_xor_release		arch_atomic64_fetch_xor_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) #define arch_atomic64_fetch_xor			arch_atomic64_fetch_xor
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) #define arch_atomic64_xchg_relaxed		arch_atomic_xchg_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) #define arch_atomic64_xchg_acquire		arch_atomic_xchg_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) #define arch_atomic64_xchg_release		arch_atomic_xchg_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) #define arch_atomic64_xchg			arch_atomic_xchg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) #define arch_atomic64_cmpxchg_relaxed		arch_atomic_cmpxchg_relaxed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) #define arch_atomic64_cmpxchg_acquire		arch_atomic_cmpxchg_acquire
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) #define arch_atomic64_cmpxchg_release		arch_atomic_cmpxchg_release
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) #define arch_atomic64_cmpxchg			arch_atomic_cmpxchg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) #define arch_atomic64_andnot			arch_atomic64_andnot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) #define arch_atomic64_dec_if_positive		arch_atomic64_dec_if_positive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) #define ARCH_ATOMIC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) #endif /* __ASM_ATOMIC_H */