Searched refs:cmpxchg (Results 1 – 19 of 19) sorted by relevance
| /tools/testing/memblock/ |
| A D | Makefile | 33 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 | .gitignore | 5 asm/cmpxchg.h
|
| /tools/include/asm-generic/ |
| A D | atomic-gcc.h | 65 #define cmpxchg(ptr, oldval, newval) \ macro 70 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
|
| /tools/testing/selftests/bpf/ |
| A D | bpf_atomic.h | 47 #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 D | atomic.h | 71 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
|
| A D | cmpxchg.h | 86 #define cmpxchg(ptr, old, new) \ macro
|
| /tools/testing/selftests/powerpc/benchmarks/ |
| A D | context_switch.c | 264 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 D | atomics.c | 136 int cmpxchg(const void *ctx) in cmpxchg() function
|
| A D | arena_atomics.c | 177 int cmpxchg(const void *ctx) in cmpxchg() function
|
| /tools/memory-model/Documentation/ |
| A D | access-marking.txt | 112 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 D | herd-representation.txt | 103 | cmpxchg | |
|
| A D | ordering.txt | 86 cmpxchg(), and xchg(). Note that conditional RMW atomic operations such 87 as cmpxchg() are only guaranteed to provide ordering when they succeed.
|
| A D | simple.txt | 181 For example, cmpxchg() provides ordering only upon success.
|
| A D | explanation.txt | 309 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 D | atomics.c | 129 prog_fd = skel->progs.cmpxchg.prog_fd; in test_cmpxchg()
|
| A D | arena_atomics.c | 113 prog_fd = bpf_program__fd(skel->progs.cmpxchg); in test_cmpxchg()
|
| /tools/memory-model/ |
| A D | linux-kernel.bell | 20 'MB (*xchg(),cmpxchg(),...*)
|
| A D | linux-kernel.def | 35 cmpxchg(X,V,W) __cmpxchg{MB}(X,V,W)
|
| A D | linux-kernel.cat | 38 * full-barrier RMWs (successful cmpxchg(), xchg(), etc.) act as
|
Completed in 23 milliseconds