Defined in 1 files as a prototype:
Defined in 14 files as a macro:
- arch/alpha/include/asm/atomic.h, line 205 (as a macro)
- arch/arc/include/asm/cmpxchg.h, line 104 (as a macro)
- arch/ia64/include/asm/atomic.h, line 211 (as a macro)
- arch/m68k/include/asm/atomic.h, line 165 (as a macro)
- arch/mips/include/asm/atomic.h, line 230 (as a macro)
- arch/parisc/include/asm/atomic.h, line 77 (as a macro)
- arch/powerpc/include/asm/atomic.h, line 195 (as a macro)
- arch/riscv/include/asm/atomic.h, line 310 (as a macro)
- arch/sh/include/asm/atomic.h, line 36 (as a macro)
- arch/sparc/include/asm/atomic_64.h, line 53 (as a macro)
- arch/xtensa/include/asm/atomic.h, line 258 (as a macro)
- include/asm-generic/atomic-instrumented.h, line 656 (as a macro)
- include/asm-generic/atomic.h, line 196 (as a macro)
- include/linux/atomic-fallback.h, line 901 (as a macro)
Defined in 10 files as a function:
- arch/arm/include/asm/atomic.h, line 202 (as a function)
- arch/h8300/include/asm/atomic.h, line 72 (as a function)
- arch/hexagon/include/asm/atomic.h, line 66 (as a function)
- arch/m68k/include/asm/atomic.h, line 170 (as a function)
- arch/sparc/lib/atomic32.c, line 83 (as a function)
- include/asm-generic/atomic-instrumented.h, line 651 (as a function)
- include/linux/atomic-fallback.h, line 893 (as a function)
- tools/arch/x86/include/asm/atomic.h, line 68 (as a function)
- tools/include/asm-generic/atomic-gcc.h, line 67 (as a function)
- tools/testing/selftests/futex/include/atomic.h, line 36 (as a function)
Documented in 2 files:
Referenced in 98 files:
- arch/powerpc/kernel/smp.c
- arch/powerpc/mm/book3s64/iommu_api.c, line 263
- arch/s390/include/asm/atomic.h, line 80
- arch/s390/mm/pgalloc.c, line 150
- arch/sh/kernel/ftrace.c
- arch/sparc/lib/atomic32.c, line 96
- arch/x86/include/asm/qspinlock.h, line 100
- arch/x86/kernel/apic/apic.c, line 414
- arch/x86/kernel/cpu/mshyperv.c, line 186
- arch/x86/kernel/smp.c, line 172
- block/blk-iolatency.c, line 419
- block/blk-rq-qos.c, line 18
- drivers/block/drbd/drbd_actlog.c, line 87
- drivers/char/ipmi/ipmi_watchdog.c, line 631
- drivers/firewire/core-device.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c, line 244
- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h, line 504
- drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c, line 691
- drivers/gpu/drm/i915/gvt/kvmgt.c, line 817
- drivers/gpu/drm/msm/adreno/a5xx_preempt.c, line 15
- drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c, line 843
- drivers/gpu/drm/radeon/radeon_uvd.c
- drivers/gpu/drm/radeon/radeon_vce.c
- drivers/gpu/host1x/hw/syncpt_hw.c, line 62
- drivers/gpu/host1x/intr.c
- drivers/hwtracing/intel_th/msu.c
- drivers/infiniband/core/rdma_core.c, line 86
- drivers/infiniband/hw/ocrdma/ocrdma_ah.c, line 174
- drivers/infiniband/hw/ocrdma/ocrdma_hw.c, line 2507
- drivers/iommu/iova.c, line 582
- drivers/irqchip/irq-mvebu-icu.c, line 77
- drivers/md/bcache/alloc.c, line 101
- drivers/md/bcache/io.c
- drivers/media/pci/saa7164/saa7164-encoder.c
- drivers/media/pci/saa7164/saa7164-vbi.c
- drivers/media/platform/omap3isp/isp.c, line 1245
- drivers/media/rc/redrat3.c, line 859
- drivers/media/usb/cx231xx/cx231xx-417.c
- drivers/misc/cxl/main.c
- drivers/misc/cxl/pci.c, line 1127
- drivers/misc/habanalabs/command_submission.c, line 629
- drivers/misc/habanalabs/device.c
- drivers/net/ethernet/aquantia/atlantic/aq_utils.h
- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
- drivers/net/ethernet/cavium/liquidio/lio_main.c
- drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
- drivers/net/ethernet/sfc/falcon/farch.c, line 1100
- drivers/net/ethernet/sfc/farch.c, line 1088
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c, line 343
- drivers/platform/chrome/wilco_ec/event.c, line 313
- drivers/platform/chrome/wilco_ec/telemetry.c, line 246
- drivers/rapidio/rio.c, line 2304
- drivers/s390/block/dasd.c
- drivers/s390/cio/ccwgroup.c
- drivers/s390/cio/device.c
- drivers/s390/cio/qdio_thinint.c, line 60
- drivers/s390/net/qeth_core.h, line 666
- drivers/s390/net/qeth_core_main.c
- drivers/staging/android/vsoc.c, line 315
- drivers/staging/media/omap4iss/iss.c, line 679
- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
- drivers/thermal/thermal_core.c
- drivers/vfio/vfio.c
- drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c, line 831
- fs/aio.c, line 935
- fs/btrfs/extent_io.c, line 5285
- fs/erofs/internal.h, line 127
- fs/erofs/utils.c, line 52
- fs/gfs2/log.c, line 381
- fs/hfsplus/xattr.c, line 140
- include/asm-generic/atomic-long.h, line 906
- include/linux/atomic-fallback.h
- include/linux/blk-cgroup.h
- include/linux/page_ref.h, line 166
- include/linux/sbitmap.h, line 508
- kernel/jump_label.c
- kernel/kexec_core.c, line 972
- kernel/panic.c
- kernel/printk/printk_safe.c
- kernel/rcu/tree.c, line 352
- kernel/sched/psi.c, line 560
- kernel/smpboot.c
- kernel/trace/ring_buffer.c
- kernel/ucount.c, line 182
- lib/dump_stack.c, line 102
- lib/sbitmap.c, line 556
- mm/huge_memory.c, line 146
- net/core/dev.c
- net/ipv4/route.c, line 501
- net/ipv6/ip6_fib.c, line 97
- net/netfilter/nft_numgen.c, line 32
- net/netfilter/xt_statistic.c, line 44
- net/rds/ib_send.c, line 400
- net/rds/rds.h, line 801
- net/rxrpc/conn_object.c, line 422
- tools/include/linux/atomic.h