Searched refs:cmpxchg (Results 1 - 25 of 254) sorted by relevance

1234567891011

/linux-master/scripts/atomic/
H A Dgen-atomic-fallback.sh227 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 Dcmpxchg.h14 #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 Dcmpxchg-cas.h23 #include <asm/cmpxchg-xchg.h>
H A Dcmpxchg-llsc.h51 #include <asm/cmpxchg-xchg.h>
H A Datomic.h19 #include <asm/cmpxchg.h>
/linux-master/net/ipv6/
H A Dprotocol.c30 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 Dip6_icmp.c18 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 Dprotocol.c34 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 Datomic.h12 #include <asm/cmpxchg.h>
71 return cmpxchg(&v->counter, old, new);
H A Dcmpxchg.h12 __compiletime_error("Bad argument size for cmpxchg");
86 #define cmpxchg(ptr, old, new) \ macro
/linux-master/tools/testing/memblock/
H 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
/linux-master/arch/arc/include/asm/
H A Datomic.h13 #include <asm/cmpxchg.h>
/linux-master/arch/arm64/include/asm/
H A Dsync_bitops.h6 #include <asm/cmpxchg.h>
/linux-master/tools/include/asm-generic/
H A Datomic-gcc.h65 #define cmpxchg(ptr, oldval, newval) \ macro
70 return cmpxchg(&(v)->counter, oldval, newval);
/linux-master/arch/sh/kernel/cpu/sh2/
H A Dsmp-j2.c13 #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 Derrseq.c95 cur = cmpxchg(eseq, old, new);
201 cmpxchg(eseq, old, new);
/linux-master/drivers/accessibility/speakup/
H A Dselection.c71 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 Dcmpxchg.h80 #include <asm-generic/cmpxchg-local.h>
131 #include <asm-generic/cmpxchg.h>
/linux-master/arch/powerpc/include/asm/
H A Dpgtable-types.h75 #include <asm/cmpxchg.h>
/linux-master/arch/sparc/include/asm/
H A Datomic_32.h17 #include <asm/cmpxchg.h>
H A Dcmpxchg_32.h2 /* 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 Dxfrm_interface_bpf.c77 if (cmpxchg(&xfrm_bpf_md_dst, NULL, tmp))
/linux-master/kernel/trace/
H A Dtrace_recursion_record.c44 * 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 Dcmpxchg.h123 #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 Dnetpoll.h77 while (cmpxchg(&napi->poll_owner, -1, owner) != -1)

Completed in 303 milliseconds

1234567891011