Defined in 1 files as a prototype:
Defined in 4 files as a member:
Defined in 2 files as a macro:
Defined in 16 files as a function:
- arch/alpha/include/asm/bitops.h, line 359 (as a function)
- arch/arc/include/asm/bitops.h, line 382 (as a function)
- arch/c6x/include/asm/bitops.h, line 73 (as a function)
- arch/csky/include/asm/bitops.h, line 13 (as a function)
- arch/hexagon/include/asm/bitops.h, line 221 (as a function)
- arch/m68k/include/asm/bitops.h, line 465 (as a function)
- arch/m68k/include/asm/bitops.h, line 487 (as a function)
- arch/mips/include/asm/bitops.h, line 629 (as a function)
- arch/openrisc/include/asm/bitops/ffs.h, line 13 (as a function)
- arch/parisc/include/asm/bitops.h, line 181 (as a function)
- arch/s390/include/asm/bitops.h, line 363 (as a function)
- arch/sparc/lib/ffs.S, line 10 (as a function)
- arch/x86/include/asm/bitops.h, line 283 (as a function)
- arch/xtensa/include/asm/bitops.h, line 60 (as a function)
- include/asm-generic/bitops/builtin-ffs.h, line 13 (as a function)
- include/asm-generic/bitops/ffs.h, line 13 (as a function)
Documented in 5 files:
Referenced in 329 files:
- arch/alpha/kernel/core_cia.c, 3 times
- arch/arc/include/asm/bitops.h, line 345
- arch/arc/kernel/mcip.c, line 283
- arch/arc/lib/strcmp-archs.S, line 52
- arch/arm/kernel/setup.c, line 636
- arch/arm64/kernel/insn.c, line 1560
- arch/arm64/kernel/setup.c, line 135
- arch/ia64/hp/common/sba_iommu.c, line 2136
- arch/ia64/kernel/palinfo.c, line 156
- arch/m68k/emu/nfblock.c, line 119
- arch/m68k/include/asm/bitops.h, line 499
- arch/mips/include/asm/fpu_emulator.h, 2 times
- arch/mips/kernel/mips-cm.c, line 418
- arch/mips/kvm/entry.c, 2 times
- arch/mips/loongson64/common/mem.c, line 32
- arch/mips/loongson64/lemote-2f/irq.c, line 42
- arch/mips/loongson64/loongson-3/smp.c, line 287
- arch/mips/mm/c-octeon.c, 2 times
- arch/mips/mm/tlbex.c, line 338
- arch/mips/net/ebpf_jit.c, 2 times
- arch/mips/paravirt/paravirt-irq.c, line 363
- arch/mips/pmcs-msp71xx/msp_irq_cic.c, line 204
- arch/mips/pmcs-msp71xx/msp_irq_per.c, line 123
- arch/mips/pmcs-msp71xx/msp_irq_slp.c, line 101
- arch/mips/pnx833x/common/interrupts.c, line 102
- arch/mips/sni/a20r.c, line 211
- arch/mips/sni/pcimt.c, line 271
- arch/mips/sni/pcit.c, 2 times
- arch/mips/sni/rm200.c, line 463
- arch/powerpc/kernel/eeh.c, line 753
- arch/powerpc/kvm/book3s_xive_template.c, 2 times
- arch/powerpc/mm/book3s32/mmu.c, line 110
- arch/powerpc/perf/mpc7450-pmu.c, line 297
- arch/powerpc/platforms/4xx/uic.c, 2 times
- arch/powerpc/platforms/52xx/media5200.c, line 93
- arch/powerpc/platforms/52xx/mpc52xx_pic.c, line 508
- arch/powerpc/sysdev/fsl_msi.c, line 308
- arch/powerpc/sysdev/xive/common.c, line 144
- arch/s390/include/asm/cio.h, line 356
- arch/sparc/lib/ffs.S, 3 times
- arch/um/os-Linux/signal.c, line 177
- arch/unicore32/include/asm/bitops.h, line 34
- arch/x86/boot/a20.c, 2 times
- arch/x86/kernel/apic/x2apic_uv_x.c, line 409
- arch/x86/kernel/cpu/resctrl/rdtgroup.c, line 119
- arch/x86/kvm/lapic.c, line 236
- arch/x86/kvm/mmu.c, line 1012
- arch/x86/kvm/svm.c, 2 times
- arch/xtensa/kernel/ptrace.c, line 102
- drivers/ata/libata-core.c, line 3085
- drivers/ata/pata_it821x.c, 2 times
- drivers/ata/sata_fsl.c, line 1152
- drivers/ata/sata_nv.c, line 977
- drivers/block/rsxx/core.c, line 401
- drivers/block/rsxx/dma.c, 2 times
- drivers/bus/brcmstb_gisb.c, 2 times
- drivers/clk/at91/pmc.h, 2 times
- drivers/clk/clk-mux.c, 2 times
- drivers/clk/imgtec/clk-boston.c, line 28
- drivers/clk/ingenic/tcu.c, line 136
- drivers/clk/mediatek/clk-pll.c, line 126
- drivers/clk/mmp/clk-mix.c, line 70
- drivers/clk/tegra/clk-tegra210.c, line 1556
- drivers/clk/ti/mux.c, 2 times
- drivers/clocksource/sh_cmt.c, line 1024
- drivers/crypto/ccp/ccp-dev.h, line 103
- drivers/crypto/sahara.c, line 323
- drivers/dma/at_xdmac.c, 5 times
- drivers/dma/coh901318.c, 2 times
- drivers/dma/dma-jz4780.c, line 267
- drivers/dma/img-mdc-dma.c, line 188
- drivers/dma/ipu/ipu_irq.c, line 284
- drivers/dma/mv_xor.c, line 534
- drivers/dma/sprd-dma.c, line 696
- drivers/dma/stm32-mdma.c, 2 times
- drivers/dma/ti/omap-dma.c, line 610
- drivers/dma/zx_dma.c, line 453
- drivers/extcon/extcon-arizona.c, 3 times
- drivers/firewire/ohci.c, 5 times
- drivers/gpio/gpio-mpc8xxx.c, line 141
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c, line 73
- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c, line 111
- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c, line 58
- drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c, line 1351
- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c, line 748
- drivers/gpu/drm/amd/amdgpu/si.c, line 2035
- drivers/gpu/drm/amd/amdkfd/kfd_crat.c, line 563
- drivers/gpu/drm/amd/amdkfd/kfd_device.c, line 606
- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c, 2 times
- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c, 3 times
- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c, line 761
- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c, line 838
- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c, line 4422
- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c, 3 times
- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c, 4 times
- drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c, 6 times
- drivers/gpu/drm/amd/powerplay/navi10_ppt.c, line 751
- drivers/gpu/drm/amd/powerplay/vega20_ppt.c, line 1287
- drivers/gpu/drm/armada/armada_overlay.c, line 450
- drivers/gpu/drm/drm_blend.c, line 311
- drivers/gpu/drm/etnaviv/etnaviv_gpu.c, line 1405
- drivers/gpu/drm/gma500/cdv_intel_display.c, line 877
- drivers/gpu/drm/gma500/psb_intel_display.c, line 336
- drivers/gpu/drm/i915/display/intel_ddi.c, 2 times
- drivers/gpu/drm/i915/display/intel_display.c, 4 times
- drivers/gpu/drm/i915/display/intel_dp.c, line 825
- drivers/gpu/drm/i915/display/vlv_dsi_pll.c, line 106
- drivers/gpu/drm/i915/gt/intel_lrc.c, line 317
- drivers/gpu/drm/i915/gt/intel_workarounds.c, line 393
- drivers/gpu/drm/i915/i915_irq.c, 3 times
- drivers/gpu/drm/i915/i915_reg.h, 3 times
- drivers/gpu/drm/i915/i915_syncmap.c, line 374
- drivers/gpu/drm/i915/i915_utils.h, line 231
- drivers/gpu/drm/i915/intel_pm.c, line 3783
- drivers/gpu/drm/nouveau/dispnv04/dac.c, 5 times
- drivers/gpu/drm/nouveau/dispnv04/dfp.c, 2 times
- drivers/gpu/drm/nouveau/dispnv04/tvnv04.c, 2 times
- drivers/gpu/drm/nouveau/dispnv04/tvnv17.c, 3 times
- drivers/gpu/drm/nouveau/dispnv50/disp.c, line 2388
- drivers/gpu/drm/nouveau/nouveau_backlight.c, 5 times
- drivers/gpu/drm/nouveau/nouveau_bios.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c, line 409
- drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.c, line 94
- drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c, line 50
- drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c, line 187
- drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/engine/disp/rootnv50.c, line 68
- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c, line 249
- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogv100.c, line 131
- drivers/gpu/drm/nouveau/nvkm/subdev/clk/gm20b.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv50.c, line 142
- drivers/gpu/drm/omapdrm/dss/dsi.c, 6 times
- drivers/gpu/drm/omapdrm/dss/output.c, line 25
- drivers/gpu/drm/radeon/evergreen.c, line 1287
- drivers/gpu/drm/rcar-du/rcar_du_kms.c, line 768
- drivers/gpu/drm/rcar-du/rcar_du_plane.c, line 199
- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c, line 288
- drivers/gpu/drm/ttm/ttm_bo.c, line 71
- drivers/gpu/drm/vc4/vc4_v3d.c, line 179
- drivers/hid/hid-core.c, 2 times
- drivers/hid/hid-cp2112.c, line 1106
- drivers/i3c/master/dw-i3c-master.c, line 330
- drivers/i3c/master/i3c-master-cdns.c, line 914
- drivers/iio/accel/bma180.c, line 167
- drivers/iio/accel/mma9551_core.c, 2 times
- drivers/iio/accel/mma9553.c, 3 times
- drivers/iio/adc/ti_am335x_adc.c, line 136
- drivers/infiniband/hw/hfi1/pcie.c, 2 times
- drivers/infiniband/hw/i40iw/i40iw_verbs.c, line 1793
- drivers/infiniband/hw/mthca/mthca_allocator.c, line 85
- drivers/infiniband/hw/mthca/mthca_cmd.c, line 683
- drivers/infiniband/hw/mthca/mthca_cq.c, line 826
- drivers/infiniband/hw/mthca/mthca_eq.c, line 535
- drivers/infiniband/hw/mthca/mthca_profile.c, 5 times
- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c, line 2285
- drivers/infiniband/hw/qib/qib_pcie.c, 2 times
- drivers/infiniband/ulp/srp/ib_srp.c, line 4130
- drivers/input/misc/axp20x-pek.c, 2 times
- drivers/irqchip/irq-aspeed-vic.c, line 102
- drivers/irqchip/irq-bcm2835.c, 3 times
- drivers/irqchip/irq-bcm2836.c, 2 times
- drivers/irqchip/irq-brcmstb-l2.c, line 111
- drivers/irqchip/irq-digicolor.c, 2 times
- drivers/irqchip/irq-dw-apb-ictl.c, line 42
- drivers/irqchip/irq-ftintc010.c, line 136
- drivers/irqchip/irq-or1k-pic.c, line 105
- drivers/irqchip/irq-sa11x0.c, line 144
- drivers/irqchip/irq-versatile-fpga.c, 2 times
- drivers/irqchip/irq-vic.c, 2 times
- drivers/macintosh/via-macii.c, 3 times
- drivers/macintosh/via-pmu.c, line 1392
- drivers/md/bcache/bset.c, 3 times
- drivers/media/i2c/imx274.c, line 1443
- drivers/media/i2c/mt9p031.c, 2 times
- drivers/media/pci/intel/ipu3/ipu3-cio2.c, 2 times
- drivers/media/platform/exynos-gsc/gsc-core.c, 5 times
- drivers/media/platform/exynos4-is/fimc-capture.c, 5 times
- drivers/media/platform/exynos4-is/fimc-lite.c, 2 times
- drivers/media/platform/exynos4-is/fimc-m2m.c, 5 times
- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c, 2 times
- drivers/media/platform/s3c-camif/camif-capture.c, 7 times
- drivers/media/platform/sti/bdisp/bdisp-v4l2.c, 2 times
- drivers/media/rc/ttusbir.c, line 136
- drivers/memory/brcmstb_dpfe.c, 2 times
- drivers/misc/lis3lv02d/lis3lv02d.c, 2 times
- drivers/mmc/core/core.c, 3 times
- drivers/mmc/host/dw_mmc-k3.c, 3 times
- drivers/mmc/host/mmci.h, line 430
- drivers/mmc/host/moxart-mmc.c, line 375
- drivers/mmc/host/mtk-sd.c, 2 times
- drivers/mmc/host/sh_mmcif.c, line 1008
- drivers/mtd/devices/pmc551.c, 4 times
- drivers/mtd/mtd_blkdevs.c, line 573
- drivers/mtd/mtdcore.c, 2 times
- drivers/mtd/nand/onenand/onenand_base.c, 2 times
- drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c, line 428
- drivers/mtd/nand/raw/brcmnand/brcmnand.c, 4 times
- drivers/mtd/nand/raw/mxc_nand.c, 2 times
- drivers/mtd/nand/raw/nand_base.c, 4 times
- drivers/mtd/nand/raw/nandsim.c, 3 times
- drivers/mtd/spi-nor/spi-nor.c, 4 times
- drivers/mux/mmio.c, line 94
- drivers/net/can/c_can/c_can.c, 2 times
- drivers/net/can/mscan/mscan.c, line 200
- drivers/net/ethernet/chelsio/cxgb3/sge.c, line 3313
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c, 3 times
- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c, line 5597
- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c, line 3098
- drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c, 2 times
- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c, line 7394
- drivers/net/ethernet/mellanox/mlx4/en_rx.c, 2 times
- drivers/net/ethernet/mellanox/mlx4/fw.c, line 1540
- drivers/net/ethernet/mellanox/mlx4/mr.c, line 1052
- drivers/net/ethernet/qlogic/qed/qed_dcbx.c, 3 times
- drivers/net/ethernet/realtek/r8169_main.c, line 7090
- drivers/net/wireless/ath/ath10k/mac.c, 5 times
- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c, line 5172
- drivers/net/wireless/intel/iwlwifi/fw/dbg.c, 2 times
- drivers/net/wireless/intel/iwlwifi/mvm/utils.c, line 270
- drivers/net/wireless/marvell/mwl8k.c, 5 times
- drivers/net/wireless/mediatek/mt76/mt7603/main.c, line 46
- drivers/net/wireless/mediatek/mt76/mt7615/main.c, line 76
- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c, line 867
- drivers/net/wireless/mediatek/mt76/util.c, line 50
- drivers/net/wireless/mediatek/mt7601u/main.c, line 192
- drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c, line 776
- drivers/net/wireless/st/cw1200/txrx.c, line 1233
- drivers/ntb/hw/mscc/ntb_hw_switchtec.c, 4 times
- drivers/ntb/ntb_transport.c, line 1997
- drivers/pci/controller/pci-rcar-gen2.c, line 322
- drivers/pci/controller/pci-xgene-msi.c, 2 times
- drivers/pci/controller/pcie-rockchip-host.c, line 532
- drivers/pci/pci.c, 3 times
- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c, line 668
- drivers/pinctrl/pinctrl-gemini.c, 3 times
- drivers/pinctrl/pinctrl-single.c, 2 times
- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c, line 893
- drivers/platform/x86/dell-laptop.c, 4 times
- drivers/pwm/pwm-sti.c, line 418
- drivers/regulator/ab8500.c, 2 times
- drivers/regulator/as3722-regulator.c, line 553
- drivers/regulator/axp20x-regulator.c, line 1111
- drivers/regulator/bd718x7-regulator.c, line 379
- drivers/regulator/bd9571mwv-regulator.c, line 90
- drivers/regulator/da9062-regulator.c, line 255
- drivers/regulator/da9063-regulator.c, line 367
- drivers/regulator/helpers.c, 6 times
- drivers/regulator/ltc3589.c, line 100
- drivers/regulator/mt6323-regulator.c, 2 times
- drivers/regulator/mt6380-regulator.c, 2 times
- drivers/regulator/rk808-regulator.c, 5 times
- drivers/rtc/rtc-max77686.c, line 272
- drivers/rtc/rtc-rx6110.c, line 152
- drivers/rtc/rtc-rx8010.c, line 135
- drivers/rtc/rtc-s5m.c, line 186
- drivers/s390/block/dasd_eckd.c, 4 times
- drivers/scsi/NCR5380.c, line 2112
- drivers/scsi/aic7xxx/aic79xx_core.c, line 10604
- drivers/scsi/aic7xxx/aic7xxx_core.c, line 7755
- drivers/scsi/aic94xx/aic94xx_scb.c, line 316
- drivers/scsi/arm/fas216.c, line 970
- drivers/scsi/cxgbi/cxgb4i/cxgb4i.c, 2 times
- drivers/scsi/esp_scsi.c, line 1172
- drivers/scsi/fcoe/fcoe.c, 5 times
- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c, 4 times
- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c, 2 times
- drivers/scsi/sim710.c, line 182
- drivers/spmi/spmi-pmic-arb.c, 2 times
- drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c, line 47
- drivers/staging/rtl8192u/r819xU_phy.c, 5 times
- drivers/target/iscsi/cxgbit/cxgbit_cm.c, line 860
- drivers/target/iscsi/cxgbit/cxgbit_main.c, line 605
- drivers/thermal/tegra/soctherm.c, 3 times
- drivers/tty/serial/dz.c, 2 times
- drivers/tty/serial/sh-sci.c, line 97
- drivers/usb/gadget/function/f_fs.c, 422 times
- drivers/usb/gadget/function/u_fs.h, 2 times
- drivers/usb/gadget/legacy/g_ffs.c, 4 times
- drivers/usb/host/ehci-sched.c, line 327
- drivers/usb/host/fotg210-hcd.c, line 3772
- drivers/usb/host/oxu210hp-hcd.c, line 2562
- drivers/usb/musb/musb_core.c, line 1256
- drivers/video/fbdev/core/cfbfillrect.c, line 325
- drivers/video/fbdev/core/sysfillrect.c, line 289
- drivers/video/fbdev/intelfb/intelfbhw.c, line 695
- drivers/video/fbdev/omap2/omapfb/dss/dispc-compat.c, line 78
- drivers/video/fbdev/omap2/omapfb/dss/dsi.c, 6 times
- drivers/video/fbdev/omap2/omapfb/vrfb.c, 2 times
- drivers/virt/vboxguest/vboxguest_core.c, line 507
- fs/affs/bitmap.c, line 206
- fs/ceph/ioctl.c, line 250
- fs/ext4/mballoc.c, line 669
- fs/fat/inode.c, 2 times
- fs/hfs/btree.c, line 119
- fs/hfsplus/btree.c, line 237
- fs/ntfs/attrib.c, line 1708
- fs/ntfs/inode.c, 4 times
- fs/ntfs/super.c, 7 times
- fs/ocfs2/cluster/heartbeat.c, line 1558
- fs/orangefs/orangefs-utils.c, line 320
- fs/squashfs/xz_wrapper.c, line 61
- fs/ubifs/debug.c, 3 times
- fs/xfs/libxfs/xfs_bit.c, line 104
- fs/xfs/libxfs/xfs_bit.h, 3 times
- fs/xfs/xfs_log_recover.c, 2 times
- fs/xfs/xfs_super.c, 2 times
- include/linux/count_zeros.h, line 48
- include/linux/soundwire/sdw_registers.h, line 12
- kernel/softirq.c, line 280
- net/core/dev.c, line 5338
- net/ipv4/netfilter/ipt_CLUSTERIP.c, 2 times
- net/mac80211/debugfs_sta.c, line 596
- net/mac80211/rate.c, line 612
- net/netlink/af_netlink.c, 2 times
- net/sched/cls_flow.c, line 317
- net/sched/cls_u32.c, line 1045
- sound/soc/bcm/bcm2835-i2s.c, line 323
- sound/soc/codecs/ab8500-codec.c, 4 times
- sound/soc/codecs/arizona.c, line 1981
- sound/soc/codecs/cs35l33.c, 3 times
- sound/soc/codecs/cs35l34.c, 3 times
- sound/soc/codecs/da7219.c, line 1440
- sound/soc/codecs/madera.c, line 3289
- sound/soc/intel/skylake/skl-i2s.h, line 19
- sound/soc/soc-dapm.c, line 3844
- tools/perf/builtin-sched.c, line 1987
- virt/kvm/arm/vgic/vgic-v2.c, line 185
- virt/kvm/arm/vgic/vgic-v3.c, line 168