Defined in 28 files as a macro:
- arch/alpha/include/asm/cmpxchg.h, line 52 (as a macro)
- arch/arc/include/asm/cmpxchg.h, line 95 (as a macro)
- arch/arm64/include/asm/cmpxchg.h, line 159 (as a macro)
- arch/avr32/include/asm/cmpxchg.h, line 87 (as a macro)
- arch/blackfin/include/asm/cmpxchg.h, line 68 (as a macro)
- arch/blackfin/include/asm/cmpxchg.h, line 125 (as a macro)
- arch/frv/include/asm/cmpxchg.h, line 82 (as a macro)
- arch/frv/include/asm/cmpxchg.h, line 122 (as a macro)
- arch/hexagon/include/asm/cmpxchg.h, line 68 (as a macro)
- arch/ia64/include/uapi/asm/cmpxchg.h, line 129 (as a macro)
- arch/m32r/include/asm/cmpxchg.h, line 190 (as a macro)
- arch/m68k/include/asm/cmpxchg.h, line 120 (as a macro)
- arch/metag/include/asm/cmpxchg.h, line 54 (as a macro)
- arch/mips/include/asm/cmpxchg.h, line 227 (as a macro)
- arch/mn10300/include/asm/cmpxchg.h, line 110 (as a macro)
- arch/parisc/include/asm/cmpxchg.h, line 72 (as a macro)
- arch/powerpc/include/asm/cmpxchg.h, line 480 (as a macro)
- arch/s390/include/asm/cmpxchg.h, line 14 (as a macro)
- arch/score/include/asm/cmpxchg.h, line 40 (as a macro)
- arch/sh/include/asm/cmpxchg.h, line 65 (as a macro)
- arch/sparc/include/asm/cmpxchg_32.h, line 57 (as a macro)
- arch/sparc/include/asm/cmpxchg_64.h, line 107 (as a macro)
- arch/tile/include/asm/cmpxchg.h, line 51 (as a macro)
- arch/tile/include/asm/cmpxchg.h, line 102 (as a macro)
- arch/x86/include/asm/cmpxchg.h, line 389 (as a macro)
- arch/xtensa/include/asm/cmpxchg.h, line 65 (as a macro)
- include/asm-generic/cmpxchg.h, line 105 (as a macro)
- include/linux/atomic.h, line 445 (as a macro)
Defined in 1 files as a function:
Referenced in 164 files:
- arch/alpha/include/asm/atomic.h, 2 times
- arch/alpha/include/asm/cmpxchg.h, line 63
- arch/arc/include/asm/cmpxchg.h, line 104
- arch/arc/kernel/smp.c, line 250
- arch/arm/include/asm/sync_bitops.h, line 23
- arch/arm64/include/asm/atomic.h, line 120
- arch/arm64/include/asm/cmpxchg.h, line 166
- arch/arm64/include/asm/sync_bitops.h, line 24
- arch/avr32/include/asm/atomic.h, line 226
- arch/frv/include/asm/atomic.h, line 144
- arch/frv/include/asm/cmpxchg.h, line 153
- arch/ia64/include/asm/atomic.h, 2 times
- arch/ia64/include/asm/pgtable.h, line 445
- arch/ia64/include/uapi/asm/cmpxchg.h, line 132
- arch/ia64/kernel/setup.c, line 1033
- arch/ia64/kernel/time.c, line 344
- arch/m32r/include/asm/atomic.h, line 247
- arch/m68k/include/asm/atomic.h, line 160
- arch/mips/include/asm/atomic.h, 2 times
- arch/mips/include/asm/cmpxchg.h, line 240
- arch/mn10300/include/asm/atomic.h, line 157
- arch/parisc/include/asm/atomic.h, 2 times
- arch/powerpc/include/asm/atomic.h, 2 times
- arch/powerpc/include/asm/cmpxchg.h, line 518
- arch/powerpc/include/asm/cputime.h, line 36
- arch/powerpc/kvm/book3s_hv_builtin.c, 2 times
- arch/powerpc/kvm/booke.c, line 616
- arch/powerpc/xmon/xmon.c, 2 times
- arch/s390/include/asm/cmpxchg.h, 3 times
- arch/s390/include/asm/percpu.h, 2 times
- arch/s390/kvm/gaccess.c, 4 times
- arch/s390/kvm/interrupt.c, 4 times
- arch/sh/include/asm/atomic.h, line 45
- arch/sh/kernel/cpu/sh2/smp-j2.c, 2 times
- arch/sparc/include/asm/atomic_64.h, 2 times
- arch/tile/gxio/dma_queue.c, 2 times
- arch/tile/include/asm/atomic.h, line 141
- arch/tile/include/asm/atomic_64.h, 2 times
- arch/tile/include/asm/bitops_64.h, 2 times
- arch/tile/include/asm/cmpxchg.h, line 126
- arch/tile/kernel/pmc.c, line 38
- arch/tile/lib/spinlock_64.c, line 60
- arch/x86/events/amd/core.c, 3 times
- arch/x86/events/amd/uncore.c, 2 times
- arch/x86/include/asm/atomic.h, line 186
- arch/x86/include/asm/atomic64_64.h, line 176
- arch/x86/include/asm/cmpxchg_64.h, line 12
- arch/x86/include/asm/uaccess.h, line 568
- arch/x86/kernel/acpi/boot.c, 2 times
- arch/x86/kernel/cpu/mcheck/mce.c, 3 times
- arch/x86/kvm/paging_tmpl.h, 2 times
- arch/x86/kvm/vmx.c, 3 times
- arch/x86/kvm/x86.c, line 4705
- arch/x86/mm/pat.c, line 143
- arch/x86/xen/p2m.c, line 578
- arch/xtensa/include/asm/atomic.h, line 274
- drivers/block/ataflop.c, 2 times
- drivers/block/drbd/drbd_worker.c, line 2029
- drivers/char/random.c, 2 times
- drivers/gpu/drm/armada/armada_crtc.c, line 239
- drivers/gpu/drm/drm_lock.c, 4 times
- drivers/gpu/drm/i810/i810_dma.c, 6 times
- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c, line 171
- drivers/hv/hyperv_vmbus.h, line 641
- drivers/infiniband/hw/hfi1/rc.c, line 2453
- drivers/infiniband/hw/hfi1/ruc.c, line 527
- drivers/infiniband/hw/qib/qib_rc.c, line 2152
- drivers/infiniband/hw/qib/qib_ruc.c, line 512
- drivers/md/bcache/btree.c, line 836
- drivers/md/dm-bufio.c, 2 times
- drivers/md/dm.c, 2 times
- drivers/md/raid5-cache.c, line 1454
- drivers/misc/genwqe/card_ddcb.c, 2 times
- drivers/misc/sgi-xp/xpc_main.c, line 1102
- drivers/misc/sgi-xp/xpc_sn2.c, 4 times
- drivers/misc/sgi-xp/xpc_uv.c, 2 times
- drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c, line 633
- drivers/net/ethernet/sfc/falcon/net_driver.h, 2 times
- drivers/net/ethernet/sfc/mcdi.c, 4 times
- drivers/net/ethernet/sfc/net_driver.h, 2 times
- drivers/net/ethernet/sfc/ptp.c, line 1718
- drivers/nvme/target/fabrics-cmd.c, line 107
- drivers/pci/host/pci-hyperv.c, line 2025
- drivers/phy/phy-rcar-gen2.c, line 84
- drivers/staging/speakup/selection.c, line 178
- drivers/target/iscsi/iscsi_target.c, 4 times
- drivers/target/target_core_transport.c, line 672
- drivers/tty/tty_audit.c, line 194
- drivers/usb/gadget/function/f_fs.c, 3 times
- drivers/xen/mcelog.c, line 170
- fs/aio.c, line 578
- fs/btrfs/inode.c, line 3409
- fs/btrfs/raid56.c, line 240
- fs/buffer.c, line 1498
- fs/ceph/file.c, line 722
- fs/crypto/keyinfo.c, 2 times
- fs/dcache.c, line 2386
- fs/direct-io.c, line 568
- fs/exec.c, line 1884
- fs/ext4/inode.c, 2 times
- fs/fs-writeback.c, line 255
- fs/inode.c, line 2107
- fs/iomap.c, line 672
- fs/libfs.c, line 129
- fs/locks.c, line 237
- fs/nfs/flexfilelayout/flexfilelayoutdev.c, line 205
- fs/nfs/nfs3acl.c, 3 times
- fs/posix_acl.c, 3 times
- fs/xfs/xfs_buf.c, line 1214
- include/asm-generic/atomic.h, 4 times
- include/asm-generic/cputime_jiffies.h, line 6
- include/linux/atomic.h, 7 times
- include/linux/bitops.h, 2 times
- include/linux/kvm_host.h, line 272
- include/linux/netpoll.h, line 83
- kernel/acct.c, line 174
- kernel/debug/kdb/kdb_io.c, line 573
- kernel/exit.c, line 1079
- kernel/irq_work.c, 2 times
- kernel/locking/osq_lock.c, line 147
- kernel/locking/qspinlock_paravirt.h, 5 times
- kernel/pid.c, line 150
- kernel/rcu/tree_plugin.h, 4 times
- kernel/sched/core.c, 3 times
- kernel/sched/fair.c, line 2459
- kernel/task_work.c, 3 times
- kernel/trace/blktrace.c, 2 times
- kernel/trace/ring_buffer.c, 4 times
- kernel/trace/trace_functions.c, line 401
- kernel/trace/tracing_map.c, line 436
- kernel/watchdog.c, line 686
- lib/atomic64_test.c, 2 times
- lib/genalloc.c, 2 times
- lib/llist.c, 2 times
- lib/lru_cache.c, 2 times
- mm/cleancache.c, line 54
- mm/frontswap.c, line 142
- mm/huge_memory.c, line 77
- mm/kmemleak.c, line 1864
- mm/memcontrol.c, 3 times
- mm/mmzone.c, line 110
- mm/oom_kill.c, line 662
- mm/page_alloc.c, line 444
- net/core/dev.c, line 5031
- net/core/dst.c, 2 times
- net/core/lwtunnel.c, 2 times
- net/core/netpoll.c, line 177
- net/ipv4/gre_demux.c, 2 times
- net/ipv4/ip_tunnel.c, 2 times
- net/ipv4/protocol.c, 4 times
- net/ipv4/route.c, 2 times
- net/ipv4/tcp_output.c, 2 times
- net/ipv6/ip6_icmp.c, 2 times
- net/ipv6/ip6_tunnel.c, 2 times
- net/ipv6/protocol.c, 4 times
- net/ipv6/route.c, line 1026
- net/netfilter/ipvs/ip_vs_sync.c, line 529
- net/netfilter/nf_conntrack_labels.c, line 28
- net/rds/ib_recv.c, line 495
- net/sunrpc/auth_gss/svcauth_gss.c, line 1287
- sound/soc/dwc/designware_pcm.c, line 83
- sound/soc/xtensa/xtfpga-i2s.c, line 172
- tools/testing/selftests/powerpc/benchmarks/context_switch.c, line 265
- virt/kvm/kvm_main.c, line 224