Home
last modified time | relevance | path

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

12345678910

/linux-5.19.10/scripts/atomic/
Dgen-atomic-fallback.sh167 local cmpxchg="$1"; shift;
175 ___r = arch_${cmpxchg}${order}((_ptr), ___o, (_new)); \\
187 local cmpxchg="$1"; shift;
189 printf "#ifndef arch_try_${cmpxchg}_relaxed\n"
190 printf "#ifdef arch_try_${cmpxchg}\n"
192 gen_basic_fallbacks "arch_try_${cmpxchg}"
194 printf "#endif /* arch_try_${cmpxchg} */\n\n"
197 gen_try_cmpxchg_fallback "${cmpxchg}" "${order}"
200 printf "#else /* arch_try_${cmpxchg}_relaxed */\n"
202 gen_order_fallbacks "arch_try_${cmpxchg}"
[all …]
/linux-5.19.10/net/ipv4/
Dprotocol.c34 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()
Dgre_demux.c36 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ? in gre_add_protocol()
48 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? in gre_del_protocol()
/linux-5.19.10/net/ipv6/
Dprotocol.c30 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()
Dip6_icmp.c18 return (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, NULL, fn) == NULL) ? in inet6_register_icmp_sender()
27 ret = (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, fn, NULL) == fn) ? in inet6_unregister_icmp_sender()
/linux-5.19.10/tools/testing/memblock/
DMakefile32 test -L asm/cmpxchg.h || ln -s ../../../arch/x86/include/asm/cmpxchg.h asm/cmpxchg.h
38 $(RM) $(TARGETS) $(OFILES) linux/memblock.h memblock.c asm/cmpxchg.h
D.gitignore4 asm/cmpxchg.h
/linux-5.19.10/kernel/
Dtask_work.c55 } while (cmpxchg(&task->task_works, head, work) != head); in task_work_add()
106 else if (cmpxchg(pprev, work, work->next) == work) in task_work_cancel_match()
163 } while (cmpxchg(&task->task_works, work, head) != work); in task_work_run()
/linux-5.19.10/tools/include/asm-generic/
Datomic-gcc.h64 #define cmpxchg(ptr, oldval, newval) \ macro
69 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
/linux-5.19.10/lib/
Dllist.c33 } while (cmpxchg(&head->first, first, new_first) != first); in llist_add_batch()
63 entry = cmpxchg(&head->first, old_entry, next); in llist_del_first()
Derrseq.c95 cur = cmpxchg(eseq, old, new); in errseq_set()
201 cmpxchg(eseq, old, new); in errseq_check_and_advance()
/linux-5.19.10/drivers/gpu/drm/
Ddrm_lock.c75 prev = cmpxchg(lock, old, new); in drm_lock_take()
118 prev = cmpxchg(lock, old, new); in drm_lock_transfer()
141 prev = cmpxchg(lock, old, new); in drm_legacy_lock_free()
319 prev = cmpxchg(lock, old, DRM_KERNEL_CONTEXT); in drm_legacy_idlelock_release()
/linux-5.19.10/arch/ia64/include/uapi/asm/
Dcmpxchg.h133 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) macro
136 #define cmpxchg_local cmpxchg
/linux-5.19.10/net/rxrpc/
Dcall_event.c341 cmpxchg(&call->ack_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call()
348 cmpxchg(&call->ack_lost_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call()
355 cmpxchg(&call->keepalive_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call()
364 cmpxchg(&call->ping_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call()
371 cmpxchg(&call->resend_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call()
/linux-5.19.10/drivers/accessibility/speakup/
Dselection.c71 if (cmpxchg(&speakup_sel_work.tty, NULL, tty)) { in speakup_set_selection()
124 if (cmpxchg(&speakup_paste_work.tty, NULL, tty)) { in speakup_paste_selection()
/linux-5.19.10/arch/sh/kernel/cpu/sh2/
Dsmp-j2.c28 while (cmpxchg(pmsg, messages, 0) != messages); in j2_ipi_interrupt_handler()
118 while (cmpxchg(pmsg, old, old|(1U<<message)) != old); in j2_send_ipi()
/linux-5.19.10/kernel/kcsan/
Dselftest.c160 KCSAN_CHECK_READ_BARRIER(cmpxchg(&test_var, 0, 0)); in test_barrier()
189 KCSAN_CHECK_WRITE_BARRIER(cmpxchg(&test_var, 0, 0)); in test_barrier()
221 KCSAN_CHECK_RW_BARRIER(cmpxchg(&test_var, 0, 0)); in test_barrier()
/linux-5.19.10/kernel/trace/
Dtrace_recursion_record.c78 old = cmpxchg(&recursed_functions[index].ip, 0, ip); in ftrace_record_recursion()
112 cmpxchg(&recursed_functions[index].ip, ip, 0); in ftrace_record_recursion()
/linux-5.19.10/Documentation/locking/
Drt-mutex.rst42 without waiters. The optimized fastpath operations require cmpxchg
66 with ->wait_lock is held. To prevent any fast path cmpxchg to the lock,
72 To prevent a cmpxchg of the owner releasing the lock, we need to
/linux-5.19.10/arch/nios2/include/asm/
DKbuild2 generic-y += cmpxchg.h
/linux-5.19.10/drivers/dma-buf/
Ddma-fence-array.c36 cmpxchg(&array->base.error, PENDING_ERROR, error); in dma_fence_array_set_pending_error()
42 cmpxchg(&array->base.error, PENDING_ERROR, 0); in dma_fence_array_clear_pending_error()
/linux-5.19.10/include/linux/
Dbitops.h283 } while (cmpxchg(ptr, old__, new__) != old__); \
299 cmpxchg(ptr, old__, new__) != old__); \
/linux-5.19.10/fs/nfs/
Dnfs3acl.c24 if (cmpxchg(p, ACL_NOT_CACHED, sentinel) != ACL_NOT_CACHED) { in nfs3_prepare_get_acl()
35 if (cmpxchg(p, sentinel, acl) != sentinel) in nfs3_complete_get_acl()
44 cmpxchg(p, sentinel, ACL_NOT_CACHED); in nfs3_abort_get_acl()
/linux-5.19.10/arch/microblaze/include/asm/
DKbuild3 generic-y += cmpxchg.h
/linux-5.19.10/tools/arch/x86/include/asm/
Datomic.h70 return cmpxchg(&v->counter, old, new); in atomic_cmpxchg()

12345678910