Defined in 1 files as a prototype:
Defined in 1 files as a macro:
Defined in 19 files as a function:
- arch/alpha/include/asm/bitops.h, line 394 (as a function)
- arch/arc/include/asm/bitops.h, line 312 (as a function)
- arch/arc/include/asm/bitops.h, line 355 (as a function)
- arch/c6x/include/asm/bitops.h, line 54 (as a function)
- arch/csky/include/asm/bitops.h, line 43 (as a function)
- arch/hexagon/include/asm/bitops.h, line 200 (as a function)
- arch/ia64/include/asm/bitops.h, line 391 (as a function)
- arch/m68k/include/asm/bitops.h, line 505 (as a function)
- arch/mips/include/asm/bitops.h, line 576 (as a function)
- arch/openrisc/include/asm/bitops/fls.h, line 14 (as a function)
- arch/parisc/include/asm/bitops.h, line 191 (as a function)
- arch/powerpc/include/asm/bitops.h, line 218 (as a function)
- arch/s390/include/asm/bitops.h, line 407 (as a function)
- arch/sparc/lib/fls.S, line 14 (as a function)
- arch/unicore32/include/asm/bitops.h, line 22 (as a function)
- arch/x86/include/asm/bitops.h, line 324 (as a function)
- arch/xtensa/include/asm/bitops.h, line 70 (as a function)
- include/asm-generic/bitops/builtin-fls.h, line 12 (as a function)
- include/asm-generic/bitops/fls.h, line 13 (as a function)
Documented in 6 files:
Referenced in 317 files:
- arch/arc/include/asm/bitops.h, 2 times
- arch/arc/kernel/mcip.c, line 283
- arch/arm/include/asm/word-at-a-time.h, line 41
- arch/arm/kernel/setup.c, line 635
- arch/arm/mach-imx/tzic.c, line 136
- arch/arm/mach-pxa/irq.c, line 103
- arch/arm/plat-orion/pcie.c, line 171
- arch/arm/probes/uprobes/actions-arm.c, line 44
- arch/arm/vfp/vfpdouble.c, 4 times
- arch/arm/vfp/vfpsingle.c, 2 times
- arch/arm64/kernel/insn.c, line 1587
- arch/arm64/kernel/setup.c, line 134
- arch/c6x/kernel/traps.c, line 314
- arch/csky/include/asm/bitops.h, line 58
- arch/m68k/include/asm/bitops.h, line 517
- arch/m68k/mm/mcfmmu.c, line 181
- arch/m68k/mm/motorola.c, line 255
- arch/mips/cavium-octeon/octeon-irq.c, line 2954
- arch/mips/include/asm/bitops.h, line 634
- arch/mips/kernel/cpu-probe.c, line 1021
- arch/mips/kernel/pm-cps.c, line 586
- arch/mips/kernel/traps.c, 2 times
- arch/mips/loongson64/common/mem.c, line 31
- arch/mips/pci/msi-xlp.c, 2 times
- arch/mips/pci/pci-lantiq.c, line 88
- arch/mips/rb532/irq.c, 2 times
- arch/powerpc/mm/book3s32/mmu.c, line 111
- arch/powerpc/sysdev/xive/native.c, line 659
- arch/sparc/lib/NG4patch.S, line 60
- arch/sparc/lib/fls.S, 2 times
- arch/unicore32/include/asm/bitops.h, 2 times
- arch/x86/crypto/camellia-x86_64-asm_64.S, 2 times
- arch/x86/kernel/apic/apic.c, line 2347
- drivers/acpi/pmic/intel_pmic_bxtwc.c, line 333
- drivers/ata/acard-ahci.c, line 414
- drivers/ata/ahci.c, line 1800
- drivers/ata/ahci_brcm.c, line 230
- drivers/ata/libahci_platform.c, line 619
- drivers/ata/libata-core.c, 8 times
- drivers/ata/libata-transport.c, 2 times
- drivers/ata/sata_highbank.c, line 519
- drivers/block/loop.c, line 2217
- drivers/block/nbd.c, line 2324
- drivers/bus/brcmstb_gisb.c, line 371
- drivers/bus/ti-sysc.c, 2 times
- drivers/char/random.c, line 1252
- drivers/clk/at91/clk-programmable.c, line 157
- drivers/clk/clk-milbeaut.c, line 297
- drivers/clk/clk-mux.c, line 161
- drivers/clk/qcom/clk-alpha-pll.c, 2 times
- drivers/clk/st/clkgen-pll.c, line 669
- drivers/clk/tegra/clk-tegra210.c, line 1554
- drivers/clk/ti/clkctrl.c, line 349
- drivers/clk/ti/divider.c, 3 times
- drivers/clk/ti/mux.c, 3 times
- drivers/clocksource/arm_arch_timer.c, line 814
- drivers/clocksource/samsung_pwm_timer.c, 3 times
- drivers/crypto/nx/nx-842-pseries.c, line 127
- drivers/dma/at_hdmac_regs.h, line 290
- drivers/dma/dw/dw.c, line 89
- drivers/dma/dw/idma32.c, line 86
- drivers/dma/imx-sdma.c, line 861
- drivers/dma/mpc512x_dma.c, line 325
- drivers/dma/sirf-dma.c, line 279
- drivers/dma/tegra210-adma.c, line 543
- drivers/dma/xilinx/xilinx_dma.c, line 2425
- drivers/edac/amd64_edac.c, line 1622
- drivers/gpio/gpio-bcm-kona.c, line 284
- drivers/gpio/gpio-dwapb.c, line 196
- drivers/gpio/gpio-htc-egpio.c, 2 times
- drivers/gpio/gpio-menz127.c, line 53
- drivers/gpio/gpio-mxc.c, line 264
- drivers/gpio/gpio-mxs.c, line 161
- drivers/gpio/gpio-pca953x.c, line 168
- drivers/gpio/gpio-stp-xway.c, line 236
- drivers/gpu/drm/amd/amdkfd/kfd_device.c, line 607
- drivers/gpu/drm/amd/powerplay/amd_powerplay.c, 2 times
- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c, 3 times
- drivers/gpu/drm/amd/powerplay/arcturus_ppt.c, line 762
- drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c, line 284
- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c, line 839
- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c, 2 times
- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c, 3 times
- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c, 3 times
- drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c, 5 times
- drivers/gpu/drm/amd/powerplay/navi10_ppt.c, line 752
- drivers/gpu/drm/amd/powerplay/vega20_ppt.c, line 1288
- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c, line 316
- drivers/gpu/drm/exynos/exynos_drm_fimc.c, 2 times
- drivers/gpu/drm/i915/display/intel_tc.c, 2 times
- drivers/gpu/drm/i915/gem/i915_gem_internal.c, line 82
- drivers/gpu/drm/i915/gt/intel_engine_pool.c, line 28
- drivers/gpu/drm/i915/gt/intel_workarounds.c, 3 times
- drivers/gpu/drm/i915/i915_debugfs.c, 3 times
- drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c, line 76
- drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c, line 51
- drivers/gpu/drm/nouveau/dispnv50/disp.c, line 2353
- drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c, line 140
- drivers/gpu/drm/panfrost/panfrost_mmu.c, line 69
- drivers/hid/usbhid/hid-core.c, line 1094
- drivers/hwmon/nct6683.c, 2 times
- drivers/hwmon/nct6775.c, 3 times
- drivers/i2c/busses/i2c-at91-master.c, line 58
- drivers/ide/amd74xx.c, line 264
- drivers/ide/ide-dma.c, line 327
- drivers/ide/ide-xfer-mode.c, 2 times
- drivers/ide/via82cxxx.c, line 438
- drivers/iio/adc/stm32-dfsdm-adc.c, line 259
- drivers/iio/adc/vf610_adc.c, line 188
- drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c, line 117
- drivers/iio/light/si1133.c, line 64
- drivers/infiniband/hw/hns/hns_roce_hw_v2.c, 3 times
- drivers/infiniband/hw/mlx4/qp.c, 2 times
- drivers/infiniband/hw/mlx5/qp.c, 2 times
- drivers/infiniband/hw/mthca/mthca_mr.c, 5 times
- drivers/infiniband/hw/mthca/mthca_qp.c, 2 times
- drivers/infiniband/hw/mthca/mthca_srq.c, line 662
- drivers/infiniband/hw/ocrdma/ocrdma_hw.c, line 557
- drivers/infiniband/hw/qedr/verbs.c, 2 times
- drivers/input/keyboard/pmic8xxx-keypad.c, line 434
- drivers/iommu/intel-iommu.c, 2 times
- drivers/irqchip/irq-ath79-cpu.c, line 48
- drivers/irqchip/irq-clps711x.c, 2 times
- drivers/irqchip/irq-dw-apb-ictl.c, 2 times
- drivers/irqchip/irq-mips-cpu.c, line 140
- drivers/irqchip/irq-versatile-fpga.c, 2 times
- drivers/irqchip/irq-vic.c, 2 times
- drivers/md/bcache/bset.c, 2 times
- drivers/md/dm-integrity.c, line 3113
- drivers/md/dm-kcopyd.c, line 150
- drivers/md/dm-unstripe.c, line 89
- drivers/media/dvb-core/dvb_math.c, line 76
- drivers/media/dvb-frontends/dib8000.c, line 2033
- drivers/media/i2c/ad5820.c, line 36
- drivers/media/i2c/mt9v032.c, 2 times
- drivers/media/i2c/ov9650.c, line 877
- drivers/media/pci/cx88/cx88-input.c, line 546
- drivers/media/pci/tw5864/tw5864-h264.c, line 83
- drivers/media/platform/coda/coda-h264.c, line 208
- drivers/media/usb/uvc/uvc_status.c, line 281
- drivers/mfd/menelaus.c, line 777
- drivers/mfd/twl4030-irq.c, 2 times
- drivers/misc/echo/echo.c, line 140
- drivers/misc/sgi-gru/grutlbpurge.c, 3 times
- drivers/mmc/core/core.c, 2 times
- drivers/mmc/host/atmel-mci.c, line 682
- drivers/mmc/host/mvsdio.c, line 90
- drivers/mmc/host/pxamci.c, line 467
- drivers/mmc/host/sh_mmcif.c, 2 times
- drivers/mtd/nand/bbt.c, 3 times
- drivers/mtd/nand/core.c, 2 times
- drivers/mtd/nand/raw/atmel/nand-controller.c, line 79
- drivers/mtd/nand/raw/atmel/pmecc.c, 3 times
- drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c, line 429
- drivers/mtd/nand/raw/denali.c, line 896
- drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c, line 242
- drivers/mtd/nand/raw/meson_nand.c, line 206
- drivers/mtd/nand/raw/mxc_nand.c, line 1292
- drivers/mtd/nand/raw/mxic_nand.c, 2 times
- drivers/mtd/nand/raw/nand_base.c, 2 times
- drivers/mtd/nand/raw/nand_bch.c, 3 times
- drivers/mtd/nand/raw/nand_jedec.c, 2 times
- drivers/mtd/nand/raw/nand_onfi.c, 2 times
- drivers/mtd/nand/raw/sunxi_nand.c, 2 times
- drivers/mtd/nand/spi/core.c, line 708
- drivers/mtd/spi-nor/spi-nor.c, 2 times
- drivers/mux/mmio.c, line 93
- drivers/net/can/c_can/c_can.c, 2 times
- drivers/net/can/rx-offload.c, line 268
- drivers/net/ethernet/aquantia/atlantic/aq_ring.c, line 160
- drivers/net/ethernet/atheros/ag71xx.c, line 344
- drivers/net/ethernet/chelsio/cxgb3/t3_hw.c, 6 times
- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c, 4 times
- drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c, line 519
- drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h, line 296
- drivers/net/ethernet/cisco/enic/enic_main.c, line 2965
- drivers/net/ethernet/emulex/benet/be_cmds.c, 3 times
- drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c, line 34
- drivers/net/ethernet/intel/e1000/e1000_main.c, line 3138
- drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c, line 1108
- drivers/net/ethernet/intel/fm10k/fm10k_iov.c, 2 times
- drivers/net/ethernet/intel/fm10k/fm10k_main.c, 4 times
- drivers/net/ethernet/intel/fm10k/fm10k_netdev.c, 6 times
- drivers/net/ethernet/intel/fm10k/fm10k_pci.c, 6 times
- drivers/net/ethernet/intel/i40e/i40e_main.c, line 7110
- drivers/net/ethernet/marvell/mv643xx_eth.c, line 2274
- drivers/net/ethernet/marvell/mvneta.c, 2 times
- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c, 2 times
- drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c, line 2025
- drivers/net/ethernet/mellanox/mlx4/mr.c, 2 times
- drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c, 3 times
- drivers/net/ethernet/netronome/nfp/bpf/jit.c, line 1568
- drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c, line 590
- drivers/net/ethernet/sfc/efx.c, line 2861
- drivers/net/ethernet/sfc/falcon/efx.c, line 2517
- drivers/net/wireless/ath/ath10k/mac.c, 3 times
- drivers/net/wireless/ath/ath9k/ar9003_paprd.c, line 409
- drivers/net/wireless/broadcom/b43/phy_lp.c, 2 times
- drivers/net/wireless/broadcom/b43/phy_n.c, 3 times
- drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c, line 2511
- drivers/net/wireless/intel/iwlegacy/3945-rs.c, line 637
- drivers/net/wireless/intel/iwlegacy/4965-rs.c, line 2197
- drivers/net/wireless/intel/iwlegacy/common.c, line 1508
- drivers/net/wireless/intel/iwlwifi/dvm/rs.c, line 2708
- drivers/net/wireless/intel/iwlwifi/dvm/scan.c, line 914
- drivers/net/wireless/mediatek/mt76/mt7615/mcu.c, 2 times
- drivers/net/wireless/mediatek/mt76/mt76x02_util.c, 2 times
- drivers/net/wireless/mediatek/mt7601u/phy.c, line 606
- drivers/net/wireless/mediatek/mt7601u/tx.c, 2 times
- drivers/net/wireless/ralink/rt2x00/rt2x00mac.c, 2 times
- drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c, 6 times
- drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c, 2 times
- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c, 2 times
- drivers/net/wireless/realtek/rtlwifi/base.c, 2 times
- drivers/ntb/hw/mscc/ntb_hw_switchtec.c, line 880
- drivers/pci/controller/dwc/pci-meson.c, line 337
- drivers/pci/controller/pci-mvebu.c, 3 times
- drivers/pci/controller/pcie-mediatek.c, line 722
- drivers/pci/endpoint/pci-epc-mem.c, line 31
- drivers/pinctrl/pinctrl-falcon.c, 2 times
- drivers/pinctrl/pinctrl-single.c, line 707
- drivers/pinctrl/samsung/pinctrl-exynos.c, line 436
- drivers/pinctrl/samsung/pinctrl-s3c64xx.c, 3 times
- drivers/pinctrl/stm32/pinctrl-stm32.c, line 1276
- drivers/platform/chrome/cros_ec_proto.c, line 355
- drivers/pwm/pwm-samsung.c, line 128
- drivers/rtc/rtc-max8997.c, line 87
- drivers/scsi/be2iscsi/be_cmds.c, line 844
- drivers/scsi/csiostor/csio_wr.c, line 1375
- drivers/soc/dove/pmu.c, line 241
- drivers/spi/spi-fsl-qspi.c, line 149
- drivers/spi/spi-imx.c, 2 times
- drivers/spi/spi-mxic.c, 5 times
- drivers/spi/spi-nxp-fspi.c, line 289
- drivers/spi/spi-orion.c, 2 times
- drivers/spi/spi-stm32.c, 2 times
- drivers/spi/spi.c, line 297
- drivers/staging/greybus/audio_topology.c, line 459
- drivers/staging/media/ipu3/ipu3-css-params.c, 2 times
- drivers/staging/media/ipu3/ipu3-css.c, 2 times
- drivers/staging/wusbcore/host/whci/qset.c, line 73
- drivers/thermal/armada_thermal.c, line 382
- drivers/thermal/qcom/tsens-common.c, line 120
- drivers/tty/serial/8250/8250_dwlib.c, line 103
- drivers/tty/serial/fsl_lpuart.c, line 1160
- drivers/tty/serial/max310x.c, line 840
- drivers/tty/serial/sh-sci.c, line 98
- drivers/usb/core/config.c, 3 times
- drivers/usb/gadget/udc/atmel_usba_udc.c, 2 times
- drivers/usb/gadget/udc/bdc/bdc_cmd.c, line 197
- drivers/usb/gadget/udc/bdc/bdc_core.c, line 239
- drivers/usb/host/xhci-mem.c, 2 times
- drivers/usb/host/xhci.c, line 1332
- drivers/vfio/pci/vfio_pci_intrs.c, line 278
- drivers/video/backlight/pwm_bl.c, line 201
- drivers/video/fbdev/aty/atyfb.h, line 354
- drivers/xen/balloon.c, line 117
- drivers/xen/mem-reservation.c, line 26
- fs/9p/vfs_super.c, line 66
- fs/ceph/inode.c, line 809
- fs/ext4/mballoc.c, 4 times
- fs/fscache/object.c, 2 times
- fs/nfs/flexfilelayout/flexfilelayout.c, 60 times
- fs/nfs/flexfilelayout/flexfilelayout.h, 3 times
- fs/ubifs/lpt.c, 6 times
- fs/ubifs/super.c, 2 times
- fs/xfs/libxfs/xfs_bit.h, line 32
- include/asm-generic/bitops/fls64.h, 2 times
- include/asm-generic/getorder.h, line 44
- include/linux/bitops.h, 3 times
- include/linux/count_zeros.h, line 26
- include/linux/log2.h, line 24
- include/linux/sched.h, line 1407
- include/net/red.h, 2 times
- kernel/bpf/lpm_trie.c, 3 times
- kernel/time/timekeeping_debug.c, line 49
- kernel/trace/tracing_map.c, 2 times
- lib/bch.c, line 288
- lib/bitmap.c, line 357
- lib/clz_ctz.c, 2 times
- lib/math/div64.c, 2 times
- lib/math/reciprocal_div.c, 2 times
- lib/test_vmalloc.c, line 230
- mm/percpu.c, line 222
- mm/slab.c, 2 times
- mm/slab_common.c, line 1136
- mm/slub.c, line 3308
- mm/vmalloc.c, line 1216
- mm/vmstat.c, 2 times
- net/mac80211/sta_info.c, 2 times
- net/netfilter/ipset/ip_set_hash_gen.h, 2 times
- net/netfilter/ipvs/ip_vs_mh.c, line 369
- net/netfilter/xt_recent.c, line 738
- net/sched/cls_flow.c, line 425
- net/sched/sch_qfq.c, line 809
- net/sunrpc/auth.c, line 70
- net/vmw_vsock/vmci_transport.c, line 1077
- sound/core/jack.c, 2 times
- sound/drivers/pcsp/pcsp.c, line 71
- sound/pci/hda/patch_ca0132.c, 19 times
- sound/soc/atmel/mchp-i2s-mcc.c, 3 times
- sound/soc/bcm/bcm2835-i2s.c, line 325
- sound/soc/codecs/88pm860x-codec.c, 2 times
- sound/soc/codecs/ab8500-codec.c, 2 times
- sound/soc/codecs/da7218.c, line 2038
- sound/soc/codecs/da7219.c, line 1442
- sound/soc/codecs/max98090.c, 2 times
- sound/soc/codecs/nau8825.c, line 363
- sound/soc/codecs/pcm512x.c, line 717
- sound/soc/codecs/tlv320aic3x.c, line 169
- sound/soc/codecs/twl4030.c, 4 times
- sound/soc/meson/axg-card.c, 2 times
- sound/soc/soc-dapm.c, 5 times
- sound/soc/soc-ops.c, 6 times
- tools/include/asm-generic/bitops/fls64.h, 2 times
- tools/include/linux/bitops.h, line 59
- tools/include/linux/log2.h, line 23