Home
last modified time | relevance | path

Searched refs:cmpxchg (Results 1 – 19 of 19) sorted by relevance

/tools/testing/memblock/
A DMakefile33 test -L asm/cmpxchg.h || ln -s ../../../arch/x86/include/asm/cmpxchg.h asm/cmpxchg.h
39 $(RM) $(TARGETS) $(OFILES) linux/memblock.h memblock.c asm/asm.h asm/cmpxchg.h
A D.gitignore5 asm/cmpxchg.h
/tools/include/asm-generic/
A Datomic-gcc.h65 #define cmpxchg(ptr, oldval, newval) \ macro
70 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
/tools/testing/selftests/bpf/
A Dbpf_atomic.h47 #define cmpxchg(p, old, new) __sync_val_compare_and_swap((p), old, new) macro
52 __unqual_typeof(*(p)) __r = cmpxchg(p, __o, new); \
/tools/arch/x86/include/asm/
A Datomic.h71 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
A Dcmpxchg.h86 #define cmpxchg(ptr, old, new) \ macro
/tools/testing/selftests/powerpc/benchmarks/
A Dcontext_switch.c264 static unsigned long cmpxchg(unsigned long *p, unsigned long expected, in cmpxchg() function
288 c = cmpxchg(m, 0, 1); in mutex_lock()
/tools/testing/selftests/bpf/progs/
A Datomics.c136 int cmpxchg(const void *ctx) in cmpxchg() function
A Darena_atomics.c177 int cmpxchg(const void *ctx) in cmpxchg() function
/tools/memory-model/Documentation/
A Daccess-marking.txt112 is not a problem. For example, if a bogus value is fed into cmpxchg(),
113 all that happens is that this cmpxchg() fails, which normally results
120 the failing cmpxchg() for the next iteration of the loop, an approach
122 Capturing the return value from cmpxchg() also saves a memory reference
558 newold = data_race(foo); /* Checked by cmpxchg(). */
562 newold = cmpxchg(&foo, old, new);
589 newold = data_race(foo); /* Checked by cmpxchg(). */
594 newold = cmpxchg(&foo, old, new);
A Dherd-representation.txt103 | cmpxchg | |
A Dordering.txt86 cmpxchg(), and xchg(). Note that conditional RMW atomic operations such
87 as cmpxchg() are only guaranteed to provide ordering when they succeed.
A Dsimple.txt181 For example, cmpxchg() provides ordering only upon success.
A Dexplanation.txt309 a cmpxchg() where the comparison fails.)
2030 and the read part of the cmpxchg operation acts as an acquire fence.
2041 true if it succeeds (the read part of the cmpxchg operation acts as an
/tools/testing/selftests/bpf/prog_tests/
A Datomics.c129 prog_fd = skel->progs.cmpxchg.prog_fd; in test_cmpxchg()
A Darena_atomics.c113 prog_fd = bpf_program__fd(skel->progs.cmpxchg); in test_cmpxchg()
/tools/memory-model/
A Dlinux-kernel.bell20 'MB (*xchg(),cmpxchg(),...*)
A Dlinux-kernel.def35 cmpxchg(X,V,W) __cmpxchg{MB}(X,V,W)
A Dlinux-kernel.cat38 * full-barrier RMWs (successful cmpxchg(), xchg(), etc.) act as

Completed in 23 milliseconds