/linux-master/scripts/atomic/ |
H A D | gen-atomic-fallback.sh | 227 local cmpxchg="$1"; shift; 231 #define raw_${prefix}try_${cmpxchg}${suffix}(_ptr, _oldp, _new) \\ 234 ___r = raw_${prefix}${cmpxchg}${suffix}((_ptr), ___o, (_new)); \\ 244 local cmpxchg="$1"; shift 248 printf "#if defined(arch_try_${cmpxchg}${order})\n" 249 printf "#define raw_try_${cmpxchg}${order} arch_try_${cmpxchg}${order}\n" 252 printf "#elif defined(arch_try_${cmpxchg}_relaxed)\n" 253 printf "#define raw_try_${cmpxchg}${order}(...) \\\\\n" 254 printf " __atomic_op${forder}(arch_try_${cmpxchg}, __VA_ARGS_ [all...] |
/linux-master/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(). */ 74 #include <asm-generic/cmpxchg-local.h>
|
H A D | cmpxchg-cas.h | 23 #include <asm/cmpxchg-xchg.h>
|
H A D | cmpxchg-llsc.h | 51 #include <asm/cmpxchg-xchg.h>
|
H A D | atomic.h | 19 #include <asm/cmpxchg.h>
|
/linux-master/net/ipv6/ |
H A D | protocol.c | 30 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], 39 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], 54 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], 63 ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol],
|
H A D | ip6_icmp.c | 18 return (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, NULL, fn) == NULL) ? 27 ret = (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, fn, NULL) == fn) ?
|
/linux-master/net/ipv4/ |
H A D | protocol.c | 34 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], 41 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], 50 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], 63 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol],
|
/linux-master/tools/arch/x86/include/asm/ |
H A D | atomic.h | 12 #include <asm/cmpxchg.h> 71 return cmpxchg(&v->counter, old, new);
|
H A D | cmpxchg.h | 12 __compiletime_error("Bad argument size for cmpxchg"); 86 #define cmpxchg(ptr, old, new) \ macro
|
/linux-master/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
|
/linux-master/arch/arc/include/asm/ |
H A D | atomic.h | 13 #include <asm/cmpxchg.h>
|
/linux-master/arch/arm64/include/asm/ |
H A D | sync_bitops.h | 6 #include <asm/cmpxchg.h>
|
/linux-master/tools/include/asm-generic/ |
H A D | atomic-gcc.h | 65 #define cmpxchg(ptr, oldval, newval) \ macro 70 return cmpxchg(&(v)->counter, oldval, newval);
|
/linux-master/arch/sh/kernel/cpu/sh2/ |
H A D | smp-j2.c | 13 #include <asm/cmpxchg.h> 28 while (cmpxchg(pmsg, messages, 0) != messages); 118 while (cmpxchg(pmsg, old, old|(1U<<message)) != old);
|
/linux-master/lib/ |
H A D | errseq.c | 95 cur = cmpxchg(eseq, old, new); 201 cmpxchg(eseq, old, new);
|
/linux-master/drivers/accessibility/speakup/ |
H A D | selection.c | 71 if (cmpxchg(&speakup_sel_work.tty, NULL, tty)) { 77 * speakup_sel_work don't happen before cmpxchg() above. 124 if (cmpxchg(&speakup_paste_work.tty, NULL, tty)) {
|
/linux-master/arch/m68k/include/asm/ |
H A D | cmpxchg.h | 80 #include <asm-generic/cmpxchg-local.h> 131 #include <asm-generic/cmpxchg.h>
|
/linux-master/arch/powerpc/include/asm/ |
H A D | pgtable-types.h | 75 #include <asm/cmpxchg.h>
|
/linux-master/arch/sparc/include/asm/ |
H A D | atomic_32.h | 17 #include <asm/cmpxchg.h>
|
H A D | cmpxchg_32.h | 2 /* 32-bit atomic xchg() and cmpxchg() definitions. 30 /* Emulate cmpxchg() the same way we emulate atomics, 41 /* we only need to support cmpxchg of a u32 on sparc */ 69 #include <asm-generic/cmpxchg-local.h>
|
/linux-master/net/xfrm/ |
H A D | xfrm_interface_bpf.c | 77 if (cmpxchg(&xfrm_bpf_md_dst, NULL, tmp))
|
/linux-master/kernel/trace/ |
H A D | trace_recursion_record.c | 44 * the cmpxchg() below to update the ip will fail. Then this 78 old = cmpxchg(&recursed_functions[index].ip, 0, ip); 102 * cmpxchg(recursed_functions[0], 112 cmpxchg(&recursed_functions[index].ip, ip, 0);
|
/linux-master/arch/arm/include/asm/ |
H A D | cmpxchg.h | 123 #include <asm-generic/cmpxchg-local.h> 147 #include <asm-generic/cmpxchg.h> 154 * cmpxchg only support 32-bits operands on ARMv6.
|
/linux-master/include/linux/ |
H A D | netpoll.h | 77 while (cmpxchg(&napi->poll_owner, -1, owner) != -1)
|