/kernel/linux/linux-6.6/scripts/atomic/ |
H A D | gen-atomic-fallback.sh | 226 local cmpxchg="$1"; shift; 230 #define raw_try_${cmpxchg}${order}(_ptr, _oldp, _new) \\ 233 ___r = raw_${cmpxchg}${order}((_ptr), ___o, (_new)); \\ 243 local cmpxchg="$1"; shift 247 printf "#if defined(arch_try_${cmpxchg}${order})\n" 248 printf "#define raw_try_${cmpxchg}${order} arch_try_${cmpxchg}${order}\n" 251 printf "#elif defined(arch_try_${cmpxchg}_relaxed)\n" 252 printf "#define raw_try_${cmpxchg}${order}(...) \\\\\n" 253 printf " __atomic_op${forder}(arch_try_${cmpxchg}, __VA_ARGS_ [all...] |
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | cmpxchg.h | 14 #include <asm/cmpxchg-grb.h> 16 #include <asm/cmpxchg-llsc.h> 18 #include <asm/cmpxchg-cas.h> 20 #include <asm/cmpxchg-irq.h> 52 * if something tries to do an invalid cmpxchg(). */ 66 #define cmpxchg(ptr,o,n) \ macro
|
H A D | atomic.h | 19 #include <asm/cmpxchg.h> 34 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | cmpxchg.h | 14 #include <asm/cmpxchg-grb.h> 16 #include <asm/cmpxchg-llsc.h> 18 #include <asm/cmpxchg-cas.h> 20 #include <asm/cmpxchg-irq.h> 52 * if something tries to do an invalid cmpxchg(). */
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | protocol.c | 40 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol() 47 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload() 56 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol() 69 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_del_offload()
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | protocol.c | 30 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol() 39 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol() 54 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload() 63 ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_del_offload()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | protocol.c | 30 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol() 39 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol() 54 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload() 63 ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_del_offload()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | protocol.c | 34 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol() 41 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload() 50 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol() 63 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_del_offload()
|
/kernel/linux/linux-5.10/include/asm-generic/ |
H A D | atomic.h | 12 #include <asm/cmpxchg.h> 34 /* we can build all atomic primitives from cmpxchg */ 42 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 52 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 64 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 194 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | cmpxchg.h | 15 #define cmpxchg(ptr, o, n) \ macro 22 #define cmpxchg64 cmpxchg 23 #define cmpxchg_local cmpxchg 24 #define cmpxchg64_local cmpxchg
|
/kernel/linux/linux-6.6/tools/testing/memblock/ |
H 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
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
H A D | cmpxchg.c | 8 #include <asm/cmpxchg.h> 44 load32 = cmpxchg(ptr32, old32, new32); in __xchg_small() 100 load32 = cmpxchg(ptr32, old32, new32); in __cmpxchg_small()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
H A D | atomic_64.h | 12 #include <asm/cmpxchg.h> 52 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) 60 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
|
/kernel/linux/linux-5.10/kernel/ |
H A D | task_work.c | 42 } while (cmpxchg(&task->task_works, head, work) != head); in task_work_add() 81 * If cmpxchg() fails we continue without updating pprev. in task_work_cancel_match() 90 else if (cmpxchg(pprev, work, work->next) == work) in task_work_cancel_match() 147 } while (cmpxchg(&task->task_works, work, head) != work); in task_work_run() 153 * the first entry == work, cmpxchg(task_works) must fail. in task_work_run()
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | protocol.c | 31 return !cmpxchg((const struct ninet_protocol **)&ninet_protos[protocol], in ninet_add_protocol() 40 ret = (cmpxchg((const struct ninet_protocol **)&ninet_protos[protocol], in ninet_del_protocol()
|
/kernel/linux/linux-5.10/tools/include/asm-generic/ |
H A D | atomic-gcc.h | 64 #define cmpxchg(ptr, oldval, newval) \ macro 69 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
|
/kernel/linux/linux-5.10/tools/arch/x86/include/asm/ |
H A D | atomic.h | 11 #include <asm/cmpxchg.h> 70 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
|
/kernel/linux/linux-5.10/arch/c6x/include/asm/ |
H A D | cmpxchg.h | 48 #include <asm-generic/cmpxchg-local.h> 61 #include <asm-generic/cmpxchg.h>
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
H A D | cmpxchg.h | 67 #define cmpxchg(ptr, o, n) \ macro 70 #include <asm-generic/cmpxchg.h>
|
/kernel/linux/linux-6.6/tools/arch/x86/include/asm/ |
H A D | atomic.h | 12 #include <asm/cmpxchg.h> 71 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()
|
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | cmpxchg.h | 110 #define cmpxchg(ptr, old, new) \ macro 129 cmpxchg((ptr), (o), (n)); \ 132 #include <asm-generic/cmpxchg-local.h>
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
H A D | cmpxchg.h | 81 #include <asm-generic/cmpxchg-local.h> 121 #define cmpxchg(ptr, o, n) \ macro 132 #include <asm-generic/cmpxchg.h>
|
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2/ |
H A D | smp-j2.c | 13 #include <asm/cmpxchg.h> 28 while (cmpxchg(pmsg, messages, 0) != messages); in j2_ipi_interrupt_handler() 118 while (cmpxchg(pmsg, old, old|(1U<<message)) != old); in j2_send_ipi()
|
/kernel/linux/linux-6.6/arch/sh/kernel/cpu/sh2/ |
H A D | smp-j2.c | 13 #include <asm/cmpxchg.h> 28 while (cmpxchg(pmsg, messages, 0) != messages); in j2_ipi_interrupt_handler() 118 while (cmpxchg(pmsg, old, old|(1U<<message)) != old); in j2_send_ipi()
|
/kernel/linux/linux-5.10/arch/h8300/include/asm/ |
H A D | cmpxchg.h | 47 #include <asm-generic/cmpxchg-local.h> 61 #include <asm-generic/cmpxchg.h>
|