Defined in 1 files as a prototype:
Defined in 1 files as a macro:
Defined in 21 files as a function:
- arch/alpha/include/asm/bitops.h, line 334 (as a function)
- arch/arc/include/asm/bitops.h, line 340 (as a function)
- arch/arc/include/asm/bitops.h, line 400 (as a function)
- arch/c6x/include/asm/bitops.h, line 29 (as a function)
- arch/csky/include/asm/bitops.h, line 30 (as a function)
- arch/h8300/include/asm/bitops.h, line 153 (as a function)
- arch/hexagon/include/asm/bitops.h, line 243 (as a function)
- arch/ia64/include/asm/bitops.h, line 363 (as a function)
- arch/m68k/include/asm/bitops.h, line 457 (as a function)
- arch/m68k/include/asm/bitops.h, line 497 (as a function)
- arch/mips/include/asm/bitops.h, line 564 (as a function)
- arch/openrisc/include/asm/bitops/__ffs.h, line 14 (as a function)
- arch/parisc/include/asm/bitops.h, line 143 (as a function)
- arch/s390/include/asm/bitops.h, line 351 (as a function)
- arch/sh/include/asm/bitops.h, line 50 (as a function)
- arch/sparc/lib/ffs.S, line 17 (as a function)
- arch/x86/include/asm/bitops.h, line 233 (as a function)
- arch/xtensa/include/asm/bitops.h, line 49 (as a function)
- include/asm-generic/bitops/__ffs.h, line 13 (as a function)
- include/asm-generic/bitops/builtin-__ffs.h, line 11 (as a function)
- tools/include/asm-generic/bitops/__ffs.h, line 14 (as a function)
Documented in 9 files:
Referenced in 313 files:
- arch/alpha/include/asm/bitops.h, 2 times
- arch/alpha/kernel/smp.c, line 543
- arch/arc/include/asm/bitops.h, line 421
- arch/arc/kernel/mcip.c, line 147
- arch/arc/kernel/perf_event.c, line 420
- arch/arc/kernel/smp.c, line 383
- arch/arm/common/it8152.c, 3 times
- arch/arm/include/asm/ptrace.h, 2 times
- arch/arm/mach-omap2/clkt2xxx_dpllcore.c, 2 times
- arch/arm/mach-omap2/cm2xxx.c, 3 times
- arch/arm/mach-omap2/cm2xxx_3xxx.h, line 81
- arch/arm/mach-omap2/cm33xx.c, line 81
- arch/arm/mach-omap2/cm3xxx.c, 2 times
- arch/arm/mach-omap2/cminst44xx.c, line 161
- arch/arm/mach-omap2/omap_hwmod.c, 2 times
- arch/arm/mach-omap2/prm2xxx_3xxx.c, 3 times
- arch/arm/mach-omap2/prm2xxx_3xxx.h, line 84
- arch/arm/mach-omap2/prm33xx.c, 6 times
- arch/arm/mach-omap2/prm44xx.c, 5 times
- arch/arm/mach-omap2/vc.c, 5 times
- arch/arm/mach-omap2/vp.c, 3 times
- arch/arm/mach-pxa/balloon3.c, line 507
- arch/arm/mach-pxa/em-x270.c, line 602
- arch/arm/mach-pxa/lpd270.c, line 131
- arch/arm/mach-pxa/pcm990-baseboard.c, line 300
- arch/arm/mach-pxa/viper.c, line 290
- arch/arm/mach-pxa/zeus.c, line 120
- arch/arm/mm/pmsa-v7.c, line 362
- arch/arm/probes/kprobes/actions-common.c, line 44
- arch/arm64/kernel/hw_breakpoint.c, 2 times
- arch/c6x/include/asm/bitops.h, 2 times
- arch/c6x/kernel/traps.c, line 269
- arch/c6x/platforms/megamod-pic.c, 2 times
- arch/ia64/hp/common/sba_iommu.c, line 583
- arch/ia64/mm/hugetlbpage.c, line 187
- arch/m68k/include/asm/bitops.h, line 469
- arch/mips/alchemy/common/dbdma.c, line 872
- arch/mips/alchemy/common/irq.c, 2 times
- arch/mips/alchemy/devboards/bcsr.c, line 97
- arch/mips/ath25/ar2315.c, line 81
- arch/mips/ath25/ar5312.c, line 85
- arch/mips/include/asm/mips-cm.h, 3 times
- arch/mips/include/asm/mips-cps.h, 2 times
- arch/mips/kernel/mips-cm.c, 9 times
- arch/mips/kernel/mips-cpc.c, line 100
- arch/mips/kernel/smp-cps.c, 2 times
- arch/mips/kvm/interrupt.c, 2 times
- arch/mips/kvm/mmu.c, line 446
- arch/mips/loongson32/common/irq.c, line 124
- arch/mips/loongson64/common/irq.c, line 29
- arch/mips/mm/c-r4k.c, 8 times
- arch/mips/mm/sc-mips.c, 5 times
- arch/mips/mm/sc-rm7k.c, line 239
- arch/mips/paravirt/paravirt-irq.c, 2 times
- arch/mips/pci/msi-xlp.c, 2 times
- arch/mips/pci/pci-ar2315.c, line 342
- arch/mips/pci/pci-rt3883.c, line 144
- arch/mips/ralink/irq.c, line 103
- arch/mips/sgi-ip27/ip27-irq.c, 2 times
- arch/mips/sgi-ip32/ip32-irq.c, 2 times
- arch/parisc/include/asm/bitops.h, line 183
- arch/powerpc/kvm/book3s.c, line 406
- arch/powerpc/kvm/booke.c, line 667
- arch/powerpc/mm/book3s64/iommu_api.c, 2 times
- arch/powerpc/mm/hugetlbpage.c, 2 times
- arch/powerpc/mm/nohash/fsl_booke.c, line 147
- arch/powerpc/platforms/embedded6xx/flipper-pic.c, line 173
- arch/powerpc/platforms/embedded6xx/hlwd-pic.c, line 119
- arch/powerpc/sysdev/fsl_pci.c, line 161
- arch/riscv/net/bpf_jit_comp.c, line 537
- arch/sh/drivers/dma/dmabrg.c, line 102
- arch/sparc/lib/ffs.S, 3 times
- arch/sparc/mm/init_64.c, line 1073
- arch/x86/events/intel/lbr.c, line 1026
- arch/x86/events/intel/pt.c, line 75
- arch/x86/kernel/cpu/mtrr/cleanup.c, line 261
- arch/x86/kvm/emulate.c, line 5473
- arch/x86/kvm/mmu.c, 2 times
- arch/xtensa/kernel/traps.c, line 293
- crypto/algapi.c, line 977
- drivers/bus/omap_l3_noc.c, 2 times
- drivers/bus/omap_l3_smx.c, line 184
- drivers/char/agp/alpha-agp.c, line 170
- drivers/clk/clk-divider.c, line 121
- drivers/clk/mmp/clk-mix.c, line 90
- drivers/clk/nxp/clk-lpc32xx.c, line 1483
- drivers/clk/renesas/rcar-gen3-cpg.c, 2 times
- drivers/clk/sprd/pll.c, line 135
- drivers/clk/ti/apll.c, 10 times
- drivers/clk/ti/clkt_dpll.c, 5 times
- drivers/clk/ti/divider.c, line 91
- drivers/clk/ti/dpll3xxx.c, 23 times
- drivers/clocksource/mips-gic-timer.c, line 171
- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c, line 190
- drivers/dma/dw/core.c, 5 times
- drivers/dma/idma64.c, 4 times
- drivers/dma/k3dma.c, 2 times
- drivers/dma/mmp_pdma.c, line 222
- drivers/dma/nbpfaxi.c, 2 times
- drivers/dma/pl330.c, 2 times
- drivers/dma/pxa_dma.c, line 675
- drivers/dma/sprd-dma.c, line 568
- drivers/dma/stm32-mdma.c, 4 times
- drivers/dma/ti/edma.c, 2 times
- drivers/dma/ti/omap-dma.c, 2 times
- drivers/dma/txx9dmac.c, line 1014
- drivers/dma/zx_dma.c, line 283
- drivers/edac/pnd2_edac.c, line 353
- drivers/gpio/gpio-davinci.c, line 372
- drivers/gpio/gpio-em.c, line 174
- drivers/gpio/gpio-intel-mid.c, line 284
- drivers/gpio/gpio-kempld.c, line 127
- drivers/gpio/gpio-lp87565.c, 3 times
- drivers/gpio/gpio-max732x.c, 2 times
- drivers/gpio/gpio-msic.c, line 189
- drivers/gpio/gpio-omap.c, line 594
- drivers/gpio/gpio-pca953x.c, 2 times
- drivers/gpio/gpio-rcar.c, line 207
- drivers/gpio/gpio-sta2x11.c, line 291
- drivers/gpio/gpio-stmpe.c, line 406
- drivers/gpio/gpio-tc3589x.c, line 269
- drivers/gpu/drm/arm/malidp_planes.c, line 461
- drivers/gpu/drm/i915/gem/selftests/huge_pages.c, 2 times
- drivers/gpu/drm/i915/i915_scheduler.h, line 22
- drivers/gpu/drm/nouveau/nvkm/core/event.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c, line 132
- drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/engine/disp/piornv50.c, line 80
- drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgm200.c, 2 times
- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c, 3 times
- drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c, 5 times
- drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c, line 118
- drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c, line 97
- drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gp100.c, line 34
- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c, line 101
- drivers/gpu/drm/tegra/drm.c, line 156
- drivers/gpu/drm/udl/udl_fb.c, line 92
- drivers/gpu/host1x/dev.c, line 310
- drivers/hwmon/hwmon.c, line 518
- drivers/hwmon/it87.c, line 2178
- drivers/hwmon/nct6775.c, line 3784
- drivers/hwtracing/intel_th/gth.c, 2 times
- drivers/hwtracing/intel_th/msu.c, 3 times
- drivers/hwtracing/intel_th/pti.c, 6 times
- drivers/i2c/busses/i2c-efm32.c, 2 times
- drivers/i2c/busses/i2c-nomadik.c, line 738
- drivers/iio/adc/meson_saradc.c, line 692
- drivers/iio/adc/qcom-spmi-adc5.c, line 201
- drivers/iio/adc/stm32-dfsdm-adc.c, line 554
- drivers/iio/buffer/industrialio-buffer-dmaengine.c, 2 times
- drivers/iio/common/st_sensors/st_sensors_core.c, line 35
- drivers/iio/humidity/hts221_core.c, line 190
- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h, line 55
- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c, line 313
- drivers/infiniband/hw/bnxt_re/ib_verbs.c, line 3556
- drivers/infiniband/hw/efa/efa_verbs.c, line 1449
- drivers/input/keyboard/nomadik-ske-keypad.c, line 150
- drivers/input/keyboard/stmpe-keypad.c, 2 times
- drivers/input/misc/palmas-pwrbutton.c, 2 times
- drivers/iommu/amd_iommu_types.h, 2 times
- drivers/iommu/arm-smmu-v3.c, line 2347
- drivers/iommu/dma-iommu.c, 2 times
- drivers/iommu/exynos-iommu.c, line 432
- drivers/iommu/fsl_pamu.c, line 162
- drivers/iommu/io-pgtable-arm-v7s.c, line 945
- drivers/iommu/io-pgtable-arm.c, 3 times
- drivers/iommu/iommu.c, 4 times
- drivers/irqchip/exynos-combiner.c, line 82
- drivers/irqchip/irq-ath79-misc.c, line 51
- drivers/irqchip/irq-gic.c, 2 times
- drivers/irqchip/irq-lpc32xx.c, 2 times
- drivers/irqchip/irq-ls1x.c, line 51
- drivers/irqchip/irq-mips-gic.c, 2 times
- drivers/irqchip/irq-ompic.c, line 137
- drivers/irqchip/irq-s3c24xx.c, 2 times
- drivers/irqchip/irq-tango.c, line 62
- drivers/irqchip/irq-ts4800.c, line 81
- drivers/irqchip/qcom-irq-combiner.c, line 70
- drivers/irqchip/spear-shirq.c, line 194
- drivers/mailbox/hi6220-mailbox.c, line 164
- drivers/mailbox/ti-msgmgr.c, line 163
- drivers/md/dm-bufio.c, 2 times
- drivers/md/dm-cache-policy-smq.c, line 589
- drivers/md/dm-cache-target.c, line 2521
- drivers/md/dm-clone-target.c, line 1781
- drivers/md/dm-crypt.c, line 2538
- drivers/md/dm-dust.c, line 337
- drivers/md/dm-era-target.c, line 1479
- drivers/md/dm-exception-store.c, line 186
- drivers/md/dm-integrity.c, 5 times
- drivers/md/dm-region-hash.c, line 198
- drivers/md/dm-snap-persistent.c, line 327
- drivers/md/dm-stripe.c, 2 times
- drivers/md/dm-switch.c, 2 times
- drivers/md/dm-thin.c, line 2966
- drivers/md/dm-verity-target.c, 2 times
- drivers/md/dm-writecache.c, 2 times
- drivers/media/i2c/smiapp/smiapp-core.c, 2 times
- drivers/media/platform/rcar-vin/rcar-core.c, line 212
- drivers/media/platform/ti-vpe/cal.c, 2 times
- drivers/media/v4l2-core/v4l2-common.c, 4 times
- drivers/mfd/ab8500-core.c, 2 times
- drivers/mfd/mc13xxx-core.c, line 177
- drivers/mfd/stmpe.c, 2 times
- drivers/mfd/tc3589x.c, line 189
- drivers/mfd/tps6586x.c, line 326
- drivers/mfd/twl4030-irq.c, line 292
- drivers/misc/habanalabs/memory.c, 2 times
- drivers/misc/habanalabs/mmu.c, line 406
- drivers/mmc/host/meson-gx-mmc.c, 2 times
- drivers/mtd/chips/cfi_cmdset_0001.c, line 749
- drivers/mtd/lpddr/qinfo_probe.c, line 179
- drivers/net/dsa/rtl8366rb.c, line 447
- drivers/net/ethernet/chelsio/cxgb4/sge.c, 2 times
- drivers/net/ethernet/chelsio/cxgb4vf/sge.c, line 2084
- drivers/net/ethernet/mscc/ocelot.c, 3 times
- drivers/net/ethernet/sfc/falcon/falcon.c, line 1909
- drivers/net/ethernet/sfc/falcon/mdio_10g.c, 2 times
- drivers/net/ethernet/sfc/siena_sriov.c, 4 times
- drivers/net/mdio.c, line 568
- drivers/net/phy/mdio-mux-meson-g12a.c, line 259
- drivers/net/phy/phy-c45.c, line 237
- drivers/net/phy/phylink.c, 2 times
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c, line 742
- drivers/net/wireless/mediatek/mt76/mt7603/regs.h, 3 times
- drivers/net/wireless/mediatek/mt76/mt76x02_regs.h, 3 times
- drivers/net/wireless/realtek/rtw88/coex.c, line 739
- drivers/net/wireless/realtek/rtw88/hci.h, 3 times
- drivers/net/wireless/realtek/rtw88/phy.c, line 717
- drivers/net/wireless/st/cw1200/sta.c, 5 times
- drivers/net/wireless/ti/wlcore/tx.c, line 1193
- drivers/ntb/hw/intel/ntb_hw_gen3.c, line 575
- drivers/ntb/ntb_transport.c, line 2443
- drivers/opp/ti-opp-supply.c, line 143
- drivers/parisc/dino.c, line 385
- drivers/parisc/gsc.c, line 83
- drivers/pci/setup-bus.c, line 1025
- drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c, line 188
- drivers/pinctrl/aspeed/pinctrl-aspeed-g4.c, line 2554
- drivers/pinctrl/aspeed/pinctrl-aspeed-g5.c, line 2722
- drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c, line 2264
- drivers/pinctrl/aspeed/pinmux-aspeed.c, 2 times
- drivers/pinctrl/mediatek/mtk-eint.c, line 321
- drivers/pinctrl/nomadik/pinctrl-nomadik.c, line 813
- drivers/pinctrl/pinctrl-rockchip.c, line 2850
- drivers/pinctrl/pinctrl-single.c, 2 times
- drivers/pinctrl/samsung/pinctrl-s3c24xx.c, line 374
- drivers/pinctrl/ti/pinctrl-ti-iodelay.c, 5 times
- drivers/ps3/ps3stor_lib.c, 3 times
- drivers/regulator/lp873x-regulator.c, line 104
- drivers/regulator/lp87565-regulator.c, line 90
- drivers/regulator/ti-abb-regulator.c, 3 times
- drivers/soc/ti/wkup_m3_ipc.c, line 255
- drivers/spi/spi-efm32.c, 2 times
- drivers/spi/spi-pxa2xx.c, line 817
- drivers/staging/media/ipu3/ipu3-dmamap.c, line 253
- drivers/staging/media/tegra-vde/iommu.c, line 91
- drivers/thermal/ti-soc-thermal/ti-bandgap.c, 3 times
- drivers/usb/chipidea/ci.h, line 417
- drivers/usb/chipidea/core.c, 7 times
- drivers/usb/chipidea/udc.c, 9 times
- drivers/usb/host/isp1362-hcd.c, line 337
- drivers/usb/host/uhci-hcd.c, line 118
- drivers/usb/isp1760/isp1760-hcd.c, 2 times
- drivers/vfio/vfio_iommu_type1.c, 2 times
- fs/afs/addr_list.c, line 377
- fs/afs/dir_edit.c, line 57
- include/asm-generic/bitops/ffz.h, line 11
- include/asm-generic/bitops/sched.h, 6 times
- include/linux/bitops.h, 2 times
- include/linux/count_zeros.h, line 50
- include/linux/iova.h, line 107
- include/linux/radix-tree.h, line 416
- include/linux/xarray.h, line 1592
- include/rdma/ib_verbs.h, line 3295
- include/sound/pcm_params.h, line 55
- kernel/irq/generic-chip.c, line 573
- kernel/time/hrtimer.c, line 494
- lib/assoc_array.c, line 819
- lib/clz_ctz.c, 2 times
- lib/find_bit.c, 3 times
- lib/lz4/lz4defs.h, line 176
- lib/math/gcd.c, 3 times
- lib/radix-tree.c, 2 times
- lib/xarray.c, line 1562
- mm/memblock.c, line 1897
- mm/page_alloc.c, line 7026
- mm/percpu.c, 4 times
- net/rxrpc/conn_client.c, line 618
- net/sched/act_ctinfo.c, line 190
- net/sched/sch_cake.c, line 2637
- net/sched/sch_qfq.c, 2 times
- security/keys/keyring.c, line 380
- sound/pci/ice1712/wm8766.c, 5 times
- sound/pci/ice1712/wm8776.c, 5 times
- sound/pci/sis7019.c, line 289
- sound/soc/codecs/adau1977.c, line 519
- sound/soc/codecs/cs53l30.c, line 796
- sound/soc/codecs/pcm186x.c, line 444
- sound/soc/codecs/ssm2518.c, 2 times
- sound/soc/codecs/ssm4567.c, line 247
- sound/soc/codecs/tas2552.c, line 453
- sound/soc/codecs/tas5720.c, line 161
- sound/soc/codecs/tas6424.c, line 229
- sound/soc/codecs/tlv320aic3x.c, line 1336
- sound/soc/meson/g12a-tohdmitx.c, line 89
- tools/include/asm-generic/bitops/__ffz.h, line 10
- tools/lib/find_bit.c, 2 times
- virt/kvm/arm/arm.c, 2 times
- virt/kvm/arm/hyp/vgic-v3-sr.c, 3 times
- virt/kvm/arm/mmu.c, line 1564
- virt/kvm/arm/vgic/vgic-mmio-v2.c, line 189