Defined in 21 files as a macro:
- arch/alpha/include/asm/cmpxchg.h, line 56 (as a macro)
- arch/arc/include/asm/cmpxchg.h, line 92 (as a macro)
- arch/csky/include/asm/cmpxchg.h, line 67 (as a macro)
- arch/hexagon/include/asm/cmpxchg.h, line 54 (as a macro)
- arch/ia64/include/uapi/asm/cmpxchg.h, line 130 (as a macro)
- arch/m68k/include/asm/cmpxchg.h, line 121 (as a macro)
- arch/mips/include/asm/cmpxchg.h, line 189 (as a macro)
- arch/openrisc/include/asm/cmpxchg.h, line 135 (as a macro)
- arch/parisc/include/asm/cmpxchg.h, line 73 (as a macro)
- arch/powerpc/include/asm/cmpxchg.h, line 481 (as a macro)
- arch/riscv/include/asm/cmpxchg.h, line 340 (as a macro)
- arch/s390/include/asm/cmpxchg.h, line 15 (as a macro)
- arch/sh/include/asm/cmpxchg.h, line 66 (as a macro)
- arch/sparc/include/asm/cmpxchg_32.h, line 58 (as a macro)
- arch/sparc/include/asm/cmpxchg_64.h, line 171 (as a macro)
- arch/xtensa/include/asm/cmpxchg.h, line 83 (as a macro)
- include/asm-generic/atomic-instrumented.h, line 1680 (as a macro)
- include/asm-generic/cmpxchg.h, line 106 (as a macro)
- include/linux/atomic-fallback.h, line 49 (as a macro)
- tools/arch/x86/include/asm/cmpxchg.h, line 86 (as a macro)
- tools/include/asm-generic/atomic-gcc.h, line 64 (as a macro)
Defined in 1 files as a function:
Referenced in 191 files:
- arch/alpha/include/asm/atomic.h, 2 times
- arch/alpha/include/asm/cmpxchg.h, line 71
- arch/arc/include/asm/cmpxchg.h, line 104
- arch/arc/kernel/smp.c, line 282
- arch/arm/include/asm/sync_bitops.h, line 24
- arch/ia64/include/asm/atomic.h, 2 times
- arch/ia64/include/asm/pgtable.h, line 446
- arch/ia64/include/uapi/asm/cmpxchg.h, line 133
- arch/ia64/kernel/setup.c, line 1060
- arch/ia64/kernel/time.c, line 376
- arch/m68k/include/asm/atomic.h, line 165
- arch/mips/include/asm/atomic.h, 2 times
- arch/mips/include/asm/cmpxchg.h, line 210
- arch/mips/include/asm/pgtable.h, line 212
- arch/mips/kernel/cmpxchg.c, 2 times
- arch/mips/kvm/vz.c, line 2837
- arch/parisc/include/asm/atomic.h, 2 times
- arch/powerpc/include/asm/atomic.h, 2 times
- arch/powerpc/include/asm/cmpxchg.h, line 519
- arch/powerpc/include/asm/cputime.h, line 26
- arch/powerpc/kernel/fadump.c, line 611
- arch/powerpc/kvm/book3s_hv_builtin.c, 3 times
- arch/powerpc/kvm/book3s_hv_rm_xics.c, 2 times
- arch/powerpc/kvm/book3s_xics.c, 2 times
- arch/powerpc/kvm/booke.c, line 620
- arch/powerpc/platforms/powernv/idle.c, line 269
- arch/powerpc/platforms/powernv/pci-ioda-tce.c, line 78
- arch/powerpc/xmon/xmon.c, 2 times
- arch/riscv/include/asm/cmpxchg.h, 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, 7 times
- arch/sh/include/asm/atomic.h, line 36
- arch/sh/kernel/cpu/sh2/smp-j2.c, 2 times
- arch/sparc/include/asm/atomic_64.h, 2 times
- arch/x86/events/amd/core.c, 3 times
- arch/x86/events/amd/uncore.c, 2 times
- arch/x86/include/asm/uaccess.h, line 588
- arch/x86/kernel/acpi/boot.c, 2 times
- arch/x86/kernel/cpu/mce/dev-mcelog.c, line 270
- arch/x86/kvm/paging_tmpl.h, 2 times
- arch/x86/kvm/svm.c, line 2242
- arch/x86/kvm/x86.c, line 5745
- arch/x86/mm/pat.c, line 143
- arch/x86/xen/p2m.c, line 577
- arch/xtensa/include/asm/atomic.h, line 258
- block/bio.c, line 1707
- drivers/block/drbd/drbd_worker.c, line 2044
- drivers/block/null_blk_main.c, line 382
- drivers/char/random.c, 3 times
- drivers/dma-buf/dma-fence-array.c, 2 times
- drivers/dma-buf/dma-fence-chain.c, line 65
- drivers/gpu/drm/drm_lock.c, 4 times
- drivers/gpu/drm/i810/i810_dma.c, 6 times
- drivers/gpu/drm/i915/gem/i915_gem_context.c, line 1441
- drivers/gpu/drm/i915/i915_gpu_error.c, line 822
- drivers/gpu/drm/i915/i915_sw_fence.h, line 113
- drivers/gpu/drm/scheduler/sched_entity.c, line 195
- drivers/gpu/drm/vkms/vkms_gem.c, line 158
- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c, line 173
- drivers/infiniband/hw/hfi1/rc.c, line 3169
- drivers/infiniband/hw/qib/qib_rc.c, line 2044
- drivers/infiniband/sw/rdmavt/qp.c, line 3129
- drivers/md/bcache/btree.c, line 889
- drivers/md/dm-bufio.c, 2 times
- drivers/md/dm-integrity.c, line 375
- drivers/md/dm-writecache.c, line 406
- drivers/md/dm.c, 2 times
- drivers/md/raid5-cache.c, line 1574
- drivers/misc/genwqe/card_ddcb.c, 2 times
- drivers/misc/sgi-xp/xpc_main.c, line 1092
- drivers/misc/sgi-xp/xpc_uv.c, 2 times
- drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c, line 633
- drivers/net/ethernet/huawei/hinic/hinic_hw_dev.c, line 693
- drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c, 2 times
- drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c, line 383
- drivers/net/ethernet/intel/iavf/iavf_ethtool.c, line 496
- drivers/net/ethernet/sfc/mcdi.c, 4 times
- drivers/net/ethernet/sfc/ptp.c, line 1955
- drivers/nvme/target/core.c, line 668
- drivers/nvme/target/fabrics-cmd.c, line 109
- drivers/pci/controller/pci-hyperv.c, line 2667
- drivers/phy/renesas/phy-rcar-gen2.c, line 90
- drivers/scsi/libsas/sas_init.c, line 610
- drivers/scsi/lpfc/lpfc_sli.c, 2 times
- drivers/spi/spi-bcm2835.c, 2 times
- drivers/staging/speakup/selection.c, 2 times
- drivers/target/iscsi/iscsi_target.c, 4 times
- drivers/tty/tty_audit.c, line 191
- drivers/usb/gadget/function/f_fs.c, 3 times
- drivers/xen/mcelog.c, line 170
- fs/btrfs/inode.c, line 3472
- fs/btrfs/raid56.c, line 237
- fs/buffer.c, line 1433
- fs/ceph/file.c, line 853
- fs/crypto/keysetup.c, 2 times
- fs/dcache.c, line 2493
- fs/debugfs/file.c, line 98
- fs/direct-io.c, line 623
- fs/erofs/tagptr.h, line 85
- fs/erofs/zdata.c, 5 times
- fs/erofs/zdata.h, line 166
- fs/eventpoll.c, 2 times
- fs/ext4/inode.c, line 776
- fs/fs-writeback.c, line 275
- fs/iomap/direct-io.c, line 143
- fs/locks.c, line 271
- fs/nfs/filelayout/filelayout.c, line 580
- fs/nfs/flexfilelayout/flexfilelayoutdev.c, line 336
- fs/nfs/nfs3acl.c, 3 times
- fs/nfs/nfs3proc.c, line 825
- fs/notify/mark.c, line 500
- fs/posix_acl.c, 3 times
- fs/verity/hash_algs.c, line 85
- fs/verity/open.c, line 226
- fs/xfs/xfs_buf.c, line 1247
- include/asm-generic/atomic.h, 4 times
- include/asm-generic/mshyperv.h, line 70
- include/linux/atomic-fallback.h, 7 times
- include/linux/bitops.h, 2 times
- include/linux/kvm_host.h, line 334
- include/linux/netdevice.h, line 558
- include/linux/netpoll.h, line 84
- kernel/acct.c, line 177
- kernel/bpf/devmap.c, line 775
- kernel/debug/kdb/kdb_io.c, line 576
- kernel/exit.c, line 1021
- kernel/irq_work.c, 2 times
- kernel/locking/osq_lock.c, line 161
- kernel/locking/qspinlock_paravirt.h, 2 times
- kernel/rcu/tree_stall.h, 2 times
- kernel/sched/core.c, 2 times
- kernel/sched/fair.c, line 2527
- kernel/sched/psi.c, 2 times
- 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 453
- kernel/trace/tracing_map.c, line 563
- lib/atomic64_test.c, 2 times
- lib/errseq.c, 2 times
- lib/genalloc.c, 2 times
- lib/llist.c, 2 times
- lib/lru_cache.c, 2 times
- lib/rhashtable.c, 2 times
- lib/sbitmap.c, line 36
- mm/cleancache.c, line 53
- mm/frontswap.c, line 141
- mm/huge_memory.c, line 95
- mm/kmemleak.c, line 1891
- mm/memcontrol.c, 3 times
- mm/mmzone.c, line 111
- mm/oom_kill.c, line 706
- mm/page_alloc.c, line 543
- net/core/bpf_sk_storage.c, line 357
- net/core/dev.c, 3 times
- net/core/dst.c, 2 times
- net/core/filter.c, 3 times
- net/core/lwtunnel.c, 2 times
- net/core/netpoll.c, line 165
- net/core/sock.c, line 1122
- 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.c, 2 times
- net/ipv4/tcp_bbr.c, line 1075
- 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, 2 times
- net/netfilter/ipvs/ip_vs_sync.c, line 535
- net/netfilter/nf_conntrack_labels.c, line 25
- net/rds/ib_frmr.c, 2 times
- net/rds/ib_recv.c, line 507
- net/rxrpc/call_event.c, 5 times
- net/rxrpc/input.c, line 1320
- net/smc/smc_core.c, line 716
- net/sunrpc/auth.c, 2 times
- net/sunrpc/auth_gss/auth_gss.c, line 2061
- net/sunrpc/auth_gss/svcauth_gss.c, line 1319
- net/sunrpc/svcauth.c, line 115
- net/tipc/net.c, line 134
- sound/soc/dwc/dwc-pcm.c, 2 times
- sound/soc/xtensa/xtfpga-i2s.c, line 169
- tools/arch/x86/include/asm/atomic.h, line 70
- tools/include/asm-generic/atomic-gcc.h, line 69
- tools/testing/selftests/powerpc/benchmarks/context_switch.c, line 277
- virt/kvm/kvm_main.c, line 315