/Linux-v4.19/net/ipv4/ |
D | protocol.c | 43 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol() 50 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload() 59 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol() 72 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_del_offload()
|
D | gre_demux.c | 40 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ? in gre_add_protocol() 52 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? in gre_del_protocol()
|
/Linux-v4.19/net/ipv6/ |
D | protocol.c | 34 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol() 43 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol() 58 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload() 67 ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_del_offload()
|
D | ip6_icmp.c | 16 return (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, NULL, fn) == NULL) ? in inet6_register_icmp_sender() 25 ret = (cmpxchg((ip6_icmp_send_t **)&ip6_icmp_send, fn, NULL) == fn) ? in inet6_unregister_icmp_sender()
|
/Linux-v4.19/arch/s390/include/asm/ |
D | cmpxchg.h | 15 #define cmpxchg(ptr, o, n) \ macro 22 #define cmpxchg64 cmpxchg 23 #define cmpxchg_local cmpxchg 24 #define cmpxchg64_local cmpxchg
|
/Linux-v4.19/include/asm-generic/ |
D | atomic.h | 46 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 56 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 68 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 200 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new)))
|
/Linux-v4.19/kernel/ |
D | task_work.c | 37 } while (cmpxchg(&task->task_works, head, work) != head); in task_work_add() 74 else if (cmpxchg(pprev, work, work->next) == work) in task_work_cancel() 105 } while (cmpxchg(&task->task_works, work, head) != work); in task_work_run()
|
D | irq_work.c | 40 oflags = cmpxchg(&work->flags, flags, nflags); in irq_work_claim() 160 (void)cmpxchg(&work->flags, flags, flags & ~IRQ_WORK_BUSY); in irq_work_run_list()
|
/Linux-v4.19/tools/include/asm-generic/ |
D | atomic-gcc.h | 64 #define cmpxchg(ptr, oldval, newval) \ macro 69 return cmpxchg(&(v)->counter, oldval, newval); in atomic_cmpxchg()
|
/Linux-v4.19/lib/ |
D | llist.c | 45 } while (cmpxchg(&head->first, first, new_first) != first); in llist_add_batch() 75 entry = cmpxchg(&head->first, old_entry, next); in llist_del_first()
|
D | errseq.c | 94 cur = cmpxchg(eseq, old, new); in errseq_set() 200 cmpxchg(eseq, old, new); in errseq_check_and_advance()
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_lock.c | 71 prev = cmpxchg(lock, old, new); in drm_lock_take() 114 prev = cmpxchg(lock, old, new); in drm_lock_transfer() 137 prev = cmpxchg(lock, old, new); in drm_legacy_lock_free() 316 prev = cmpxchg(lock, old, DRM_KERNEL_CONTEXT); in drm_legacy_idlelock_release()
|
/Linux-v4.19/arch/mips/kernel/ |
D | cmpxchg.c | 48 load32 = cmpxchg(ptr32, old32, new32); in __xchg_small() 105 load32 = cmpxchg(ptr32, old32, new32); in __cmpxchg_small()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | atomic_64.h | 53 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS() 61 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | cmpxchg.h | 56 #define cmpxchg(ptr, o, n) \ macro 71 cmpxchg((ptr), (o), (n)); \
|
/Linux-v4.19/arch/arc/include/asm/ |
D | cmpxchg.h | 95 #define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \ macro 104 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
|
/Linux-v4.19/arch/ia64/include/uapi/asm/ |
D | cmpxchg.h | 130 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) macro 133 #define cmpxchg_local cmpxchg
|
/Linux-v4.19/arch/sh/kernel/cpu/sh2/ |
D | smp-j2.c | 31 while (cmpxchg(pmsg, messages, 0) != messages); in j2_ipi_interrupt_handler() 121 while (cmpxchg(pmsg, old, old|(1U<<message)) != old); in j2_send_ipi()
|
/Linux-v4.19/include/linux/ |
D | atomic.h | 496 #define cmpxchg_relaxed cmpxchg 497 #define cmpxchg_acquire cmpxchg 498 #define cmpxchg_release cmpxchg 504 __atomic_op_acquire(cmpxchg, __VA_ARGS__) 509 __atomic_op_release(cmpxchg, __VA_ARGS__) 512 #ifndef cmpxchg 513 #define cmpxchg(...) \ macro 514 __atomic_op_fence(cmpxchg, __VA_ARGS__)
|
/Linux-v4.19/net/rxrpc/ |
D | call_event.c | 357 cmpxchg(&call->ack_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call() 364 cmpxchg(&call->ack_lost_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call() 371 cmpxchg(&call->keepalive_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call() 380 cmpxchg(&call->ping_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call() 387 cmpxchg(&call->resend_at, t, now + MAX_JIFFY_OFFSET); in rxrpc_process_call()
|
/Linux-v4.19/arch/mips/include/asm/ |
D | cmpxchg.h | 181 #define cmpxchg(ptr, old, new) \ macro 202 cmpxchg((ptr), (o), (n)); \
|
/Linux-v4.19/arch/riscv/include/asm/ |
D | cmpxchg.h | 348 #define cmpxchg(ptr, o, n) \ macro 362 cmpxchg((ptr), (o), (n)); \ 374 cmpxchg((ptr), (o), (n)); \
|
/Linux-v4.19/arch/nds32/include/asm/ |
D | Kbuild | 10 generic-y += cmpxchg.h 11 generic-y += cmpxchg-local.h
|
/Linux-v4.19/Documentation/locking/ |
D | rt-mutex.txt | 41 without waiters. The optimized fastpath operations require cmpxchg 62 with ->wait_lock is held. To prevent any fast path cmpxchg to the lock, 68 To prevent a cmpxchg of the owner releasing the lock, we need to
|
/Linux-v4.19/arch/sh/include/asm/ |
D | atomic.h | 36 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
|