Home
last modified time | relevance | path

Searched refs:atomic64_t (Results 1 – 25 of 33) sorted by relevance

12

/arch/x86/include/asm/
Datomic64_64.h19 static inline long atomic64_read(const atomic64_t *v) in atomic64_read()
31 static inline void atomic64_set(atomic64_t *v, long i) in atomic64_set()
43 static __always_inline void atomic64_add(long i, atomic64_t *v) in atomic64_add()
57 static inline void atomic64_sub(long i, atomic64_t *v) in atomic64_sub()
73 static inline int atomic64_sub_and_test(long i, atomic64_t *v) in atomic64_sub_and_test()
84 static __always_inline void atomic64_inc(atomic64_t *v) in atomic64_inc()
97 static __always_inline void atomic64_dec(atomic64_t *v) in atomic64_dec()
112 static inline int atomic64_dec_and_test(atomic64_t *v) in atomic64_dec_and_test()
125 static inline int atomic64_inc_and_test(atomic64_t *v) in atomic64_inc_and_test()
139 static inline int atomic64_add_negative(long i, atomic64_t *v) in atomic64_add_negative()
[all …]
Datomic64_32.h12 } atomic64_t; typedef
16 #define __ATOMIC64_DECL(sym) void atomic64_##sym(atomic64_t *, ...)
73 static inline long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n) in atomic64_cmpxchg()
86 static inline long long atomic64_xchg(atomic64_t *v, long long n) in atomic64_xchg()
104 static inline void atomic64_set(atomic64_t *v, long long i) in atomic64_set()
119 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read()
133 static inline long long atomic64_add_return(long long i, atomic64_t *v) in atomic64_add_return()
144 static inline long long atomic64_sub_return(long long i, atomic64_t *v) in atomic64_sub_return()
152 static inline long long atomic64_inc_return(atomic64_t *v) in atomic64_inc_return()
160 static inline long long atomic64_dec_return(atomic64_t *v) in atomic64_dec_return()
[all …]
/arch/frv/include/asm/
Datomic.h92 } atomic64_t; typedef
96 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read()
107 static inline void atomic64_set(atomic64_t *v, long long i) in atomic64_set()
114 static inline long long atomic64_inc_return(atomic64_t *v) in atomic64_inc_return()
119 static inline long long atomic64_dec_return(atomic64_t *v) in atomic64_dec_return()
124 static inline long long atomic64_add_return(long long i, atomic64_t *v) in atomic64_add_return()
129 static inline long long atomic64_sub_return(long long i, atomic64_t *v) in atomic64_sub_return()
134 static inline long long atomic64_add_negative(long long i, atomic64_t *v) in atomic64_add_negative()
139 static inline void atomic64_add(long long i, atomic64_t *v) in atomic64_add()
144 static inline void atomic64_sub(long long i, atomic64_t *v) in atomic64_sub()
[all …]
/arch/sparc/include/asm/
Drwsem.h28 if (unlikely(atomic64_inc_return((atomic64_t *)(&sem->count)) <= 0L)) in __down_read()
53 (atomic64_t *)(&sem->count)); in __down_write_nested()
79 tmp = atomic64_dec_return((atomic64_t *)(&sem->count)); in __up_read()
90 (atomic64_t *)(&sem->count)) < 0L)) in __up_write()
99 atomic64_add(delta, (atomic64_t *)(&sem->count)); in rwsem_atomic_add()
109 tmp = atomic64_add_return(-RWSEM_WAITING_BIAS, (atomic64_t *)(&sem->count)); in __downgrade_write()
119 return atomic64_add_return(delta, (atomic64_t *)(&sem->count)); in rwsem_atomic_update()
Datomic_64.h25 void atomic64_##op(long, atomic64_t *);
29 long atomic64_##op##_return(long, atomic64_t *);
102 static inline long atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
119 long atomic64_dec_if_positive(atomic64_t *v);
/arch/arm64/include/asm/
Datomic_lse.h171 static inline void atomic64_andnot(long i, atomic64_t *v) in atomic64_andnot()
174 register atomic64_t *x1 asm ("x1") = v; in atomic64_andnot()
183 static inline void atomic64_or(long i, atomic64_t *v) in atomic64_or()
186 register atomic64_t *x1 asm ("x1") = v; in atomic64_or()
195 static inline void atomic64_xor(long i, atomic64_t *v) in atomic64_xor()
198 register atomic64_t *x1 asm ("x1") = v; in atomic64_xor()
207 static inline void atomic64_add(long i, atomic64_t *v) in atomic64_add()
210 register atomic64_t *x1 asm ("x1") = v; in atomic64_add()
220 static inline long atomic64_add_return##name(long i, atomic64_t *v) \
223 register atomic64_t *x1 asm ("x1") = v; \
[all …]
Dmmu.h25 atomic64_t id;
Datomic_ll_sc.h105 __LL_SC_PREFIX(atomic64_##op(long i, atomic64_t *v)) \ in ATOMIC_OPS_RLX()
123 __LL_SC_PREFIX(atomic64_##op##_return##name(long i, atomic64_t *v)) \
167 __LL_SC_PREFIX(atomic64_dec_if_positive(atomic64_t *v))
/arch/powerpc/include/asm/
Datomic.h259 static __inline__ long atomic64_read(const atomic64_t *v) in atomic64_read()
268 static __inline__ void atomic64_set(atomic64_t *v, long i) in atomic64_set()
274 static __inline__ void atomic64_##op(long a, atomic64_t *v) \
289 static __inline__ long atomic64_##op##_return(long a, atomic64_t *v) \
321 static __inline__ void atomic64_inc(atomic64_t *v) in ATOMIC64_OPS()
335 static __inline__ long atomic64_inc_return(atomic64_t *v) in atomic64_inc_return()
363 static __inline__ void atomic64_dec(atomic64_t *v) in atomic64_dec()
377 static __inline__ long atomic64_dec_return(atomic64_t *v) in atomic64_dec_return()
402 static __inline__ long atomic64_dec_if_positive(atomic64_t *v) in atomic64_dec_if_positive()
434 static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
[all …]
/arch/s390/include/asm/
Datomic.h180 typecheck(atomic64_t *, ptr); \
202 typecheck(atomic64_t *, ptr); \
217 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read()
227 static inline void atomic64_set(atomic64_t *v, long long i) in atomic64_set()
234 static inline long long atomic64_add_return(long long i, atomic64_t *v) in atomic64_add_return()
239 static inline void atomic64_add(long long i, atomic64_t *v) in atomic64_add()
256 static inline long long atomic64_cmpxchg(atomic64_t *v, in atomic64_cmpxchg()
268 static inline void atomic64_##op(long i, atomic64_t *v) \
280 static inline int atomic64_add_unless(atomic64_t *v, long long i, long long u) in ATOMIC64_OP()
296 static inline long long atomic64_dec_if_positive(atomic64_t *v) in atomic64_dec_if_positive()
Dpci.h116 atomic64_t allocated_pages;
117 atomic64_t mapped_pages;
118 atomic64_t unmapped_pages;
/arch/tile/include/asm/
Datomic_32.h97 } atomic64_t; typedef
107 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read()
124 static inline void atomic64_add(long long i, atomic64_t *v) in atomic64_add()
131 static inline void atomic64_##op(long long i, atomic64_t *v) \
147 static inline long long atomic64_add_return(long long i, atomic64_t *v) in ATOMIC64_OP()
162 static inline long long atomic64_add_unless(atomic64_t *v, long long a, in atomic64_add_unless()
179 static inline void atomic64_set(atomic64_t *v, long long n) in atomic64_set()
Datomic_64.h88 static inline void atomic64_add(long i, atomic64_t *v) in atomic64_add()
93 static inline long atomic64_add_return(long i, atomic64_t *v) in atomic64_add_return()
102 static inline long atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
114 static inline void atomic64_and(long i, atomic64_t *v) in atomic64_and()
119 static inline void atomic64_or(long i, atomic64_t *v) in atomic64_or()
124 static inline void atomic64_xor(long i, atomic64_t *v) in atomic64_xor()
Datomic.h169 static inline long long atomic64_xchg(atomic64_t *v, long long n) in atomic64_xchg()
183 static inline long long atomic64_cmpxchg(atomic64_t *v, long long o, in atomic64_cmpxchg()
189 static inline long long atomic64_dec_if_positive(atomic64_t *v) in atomic64_dec_if_positive()
/arch/arm/include/asm/
Datomic.h222 } atomic64_t; typedef
227 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read()
240 static inline void atomic64_set(atomic64_t *v, long long i) in atomic64_set()
249 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read()
262 static inline void atomic64_set(atomic64_t *v, long long i) in atomic64_set()
279 static inline void atomic64_##op(long long i, atomic64_t *v) \
299 atomic64_##op##_return_relaxed(long long i, atomic64_t *v) \
342 atomic64_cmpxchg_relaxed(atomic64_t *ptr, long long old, long long new) in ATOMIC64_OPS()
365 static inline long long atomic64_xchg_relaxed(atomic64_t *ptr, long long new) in atomic64_xchg_relaxed()
385 static inline long long atomic64_dec_if_positive(atomic64_t *v) in atomic64_dec_if_positive()
[all …]
Dmmu.h8 atomic64_t id;
/arch/parisc/include/asm/
Datomic.h166 static __inline__ void atomic64_##op(s64 i, atomic64_t *v) \
176 static __inline__ s64 atomic64_##op##_return(s64 i, atomic64_t *v) \
201 atomic64_set(atomic64_t *v, s64 i) in atomic64_set()
214 atomic64_read(const atomic64_t *v) in atomic64_read()
245 static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
269 static inline long atomic64_dec_if_positive(atomic64_t *v) in atomic64_dec_if_positive()
/arch/alpha/include/asm/
Datomic.h69 static __inline__ void atomic64_##op(long i, atomic64_t * v) \
85 static __inline__ long atomic64_##op##_return(long i, atomic64_t * v) \
178 static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
207 static inline long atomic64_dec_if_positive(atomic64_t *v) in atomic64_dec_if_positive()
/arch/ia64/include/asm/
Drwsem.h142 #define rwsem_atomic_add(delta, sem) atomic64_add(delta, (atomic64_t *)(&(sem)->count))
143 #define rwsem_atomic_update(delta, sem) atomic64_add_return(delta, (atomic64_t *)(&(sem)->count))
Datomic.h84 ia64_atomic64_##op (__s64 i, atomic64_t *v) \
93 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic64_t)) != old); \
157 static __inline__ long atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
185 atomic64_add_negative (__s64 i, atomic64_t *v) in atomic64_add_negative()
/arch/arm/include/asm/xen/
Devents.h20 atomic64_t, \
/arch/mips/include/asm/
Datomic.h328 static __inline__ void atomic64_##op(long i, atomic64_t * v) \
365 static __inline__ long atomic64_##op##_return(long i, atomic64_t * v) \
440 static __inline__ long atomic64_sub_if_positive(long i, atomic64_t * v) in atomic64_sub_if_positive()
512 static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u) in atomic64_add_unless()
/arch/arm64/mm/
Dcontext.c32 static atomic64_t asid_generation;
35 static DEFINE_PER_CPU(atomic64_t, active_asids);
/arch/arm/mm/
Dcontext.c46 static atomic64_t asid_generation = ATOMIC64_INIT(ASID_FIRST_VERSION);
49 static DEFINE_PER_CPU(atomic64_t, active_asids);
/arch/x86/kernel/
Dpvclock.c54 static atomic64_t last_value = ATOMIC64_INIT(0);

12