__fls 53 arch/arm/mach-dove/irq.c unsigned int hwirq = 1 + __fls(stat); __fls 60 arch/arm/mach-dove/irq.c unsigned int hwirq = 33 + __fls(stat); __fls 37 arch/arm/mach-mv78xx0/irq.c unsigned int hwirq = __fls(stat); __fls 44 arch/arm/mach-mv78xx0/irq.c unsigned int hwirq = 32 + __fls(stat); __fls 51 arch/arm/mach-mv78xx0/irq.c unsigned int hwirq = 64 + __fls(stat); __fls 37 arch/arm/mach-orion5x/irq.c unsigned int hwirq = 1 + __fls(stat); __fls 1286 arch/arm/mm/dma-mapping.c if (__fls(count) < order) { __fls 151 arch/arm/mm/pmsa-v7.c phys_addr_t p2size = 1 << __fls(asize); __fls 213 arch/arm/mm/pmsa-v7.c phys_addr_t p2size = (1 << __fls(diff)) - 1; __fls 721 arch/arm64/kernel/hw_breakpoint.c lene = __fls(ctrl->len); __fls 566 arch/mips/include/asm/bitops.h return __fls(word & -word); __fls 447 arch/mips/kvm/mmu.c gfn_t end = base_gfn + __fls(mask); __fls 300 arch/mips/lantiq/irq.c irq = __fls(irq); __fls 46 arch/powerpc/include/asm/word-at-a-time.h return ~1ul << __fls(mask); __fls 1626 arch/s390/kvm/interrupt.c isc = __fls(active_mask) ^ (BITS_PER_LONG - 1); __fls 35 arch/s390/lib/find.c return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); __fls 74 arch/s390/lib/find.c return result + (__fls(tmp) ^ (BITS_PER_LONG - 1)); __fls 27 arch/sparc/include/asm/bitops_64.h int __fls(unsigned long word); __fls 265 arch/x86/kernel/cpu/mtrr/cleanup.c align = __fls(range_sizek); __fls 557 arch/x86/kvm/emulate.c return (__fls(stack_mask(ctxt)) + 1) >> 3; __fls 365 arch/x86/kvm/lapic.c return __fls(*reg) + vec; __fls 403 arch/x86/kvm/lapic.c __fls(irr_val ^ prev_irr_val) + vec; __fls 407 arch/x86/kvm/lapic.c *max_irr = __fls(irr_val) + vec; __fls 159 drivers/clk/sunxi/clk-usb.c reset_data->rcdev.nr_resets = __fls(data->reset_mask) + 1; __fls 222 drivers/crypto/inside-secure/safexcel.c cs_ht_sz = __fls(asize - cs_rc_max) - 2; __fls 396 drivers/dma/idma64.c *maxburst = __fls(*maxburst); __fls 338 drivers/dma/ti/cppi41.c q_num = __fls(val); __fls 1194 drivers/edac/amd64_edac.c tmp_addr = (addr & GENMASK_ULL(23, 12)) << __fls(intlv_en + 1); __fls 444 drivers/gpu/drm/arm/malidp_planes.c u32 largest_pgsize = 1 << __fls(pgsizes); __fls 452 drivers/hwmon/tmp401.c rate = 7 - __fls(val * 4 / (125 * 3)); __fls 168 drivers/hwmon/w83773g.c rate = 8 - __fls((val * 8 / (625 * 7))); __fls 576 drivers/i2c/busses/i2c-st.c it = __fls(sta & ien); __fls 2836 drivers/infiniband/core/verbs.c biter->__pg_bit = __fls(pgsz); __fls 1904 drivers/infiniband/hw/mlx5/qp.c log_max_size = __fls(supported_size_mask); __fls 518 drivers/iommu/dma-iommu.c for (order_mask &= (2U << __fls(count)) - 1; __fls 520 drivers/iommu/dma-iommu.c unsigned int order = __fls(order_mask); __fls 715 drivers/iommu/io-pgtable-arm.c granule = 1UL << __fls(cfg->pgsize_bitmap & ~PAGE_MASK); __fls 1833 drivers/iommu/iommu.c pgsize_idx = __fls(size); __fls 1852 drivers/iommu/iommu.c pgsize_idx = __fls(pgsize); __fls 141 drivers/irqchip/irq-csky-apb-intc.c handle_domain_irq(root_domain, irq_base + __fls(hwirq), regs); __fls 43 drivers/irqchip/irq-goldfish-pic.c hwirq = __fls(pending); __fls 47 drivers/irqchip/irq-ingenic.c generic_handle_irq(__fls(irq_reg) + (i * 32) + JZ4740_IRQ_BASE); __fls 52 drivers/irqchip/irq-mscc-ocelot.c u32 hwirq = __fls(reg); __fls 44 drivers/irqchip/irq-orion.c u32 hwirq = __fls(stat); __fls 118 drivers/irqchip/irq-orion.c u32 hwirq = __fls(stat); __fls 55 drivers/irqchip/irq-rda-intc.c hwirq = __fls(stat); __fls 3083 drivers/md/dm-integrity.c ic->sb->log2_interleave_sectors = __fls(interleave_sectors); __fls 3740 drivers/md/dm-integrity.c ic->log2_buffer_sectors = min((int)__fls(buffer_sectors), 31 - SECTOR_SHIFT); __fls 3932 drivers/md/dm-integrity.c log2_sectors_per_bitmap_bit = __fls(DEFAULT_SECTORS_PER_BITMAP_BIT); __fls 597 drivers/md/dm-verity-target.c cluster = 1 << __fls(cluster); __fls 1132 drivers/md/dm-verity-target.c __fls((1 << v->hash_dev_block_bits) / v->digest_size); __fls 632 drivers/media/i2c/smiapp/smiapp-core.c V4L2_CID_LINK_FREQ, __fls(*valid_link_freqs), __fls 1789 drivers/media/i2c/smiapp/smiapp-core.c __fls(*valid_link_freqs), ~*valid_link_freqs, __fls 138 drivers/media/v4l2-core/v4l2-common.c unsigned int wmaxa = __fls(wmax ^ (wmin - 1)); __fls 140 drivers/media/v4l2-core/v4l2-common.c unsigned int hmaxa = __fls(hmax ^ (hmin - 1)); __fls 620 drivers/memory/emif.c emif_bus_width = __fls(emif_bus_width) - 1; __fls 777 drivers/memory/emif.c timeout = __fls(timeout) - 3; __fls 1333 drivers/memory/emif.c dev_info->density = __fls(density) - 5; __fls 1339 drivers/memory/emif.c dev_info->io_width = __fls(io_width) - 1; __fls 3237 drivers/net/ethernet/freescale/fec_main.c unsigned dsize_log2 = __fls(dsize); __fls 2397 drivers/net/wireless/realtek/rtw88/rtw8822c.c val_integerd_b = __fls(val) + 1; __fls 167 drivers/rapidio/devices/tsi721.h #define TSI721_IDQ_SIZE_VAL(size) (__fls(size) - 4) __fls 191 drivers/rapidio/devices/tsi721.h #define TSI721_IBWIN_SIZE(size) (__fls(size) - 12) __fls 236 drivers/rapidio/devices/tsi721.h #define TSI721_OBWIN_SIZE(size) (__fls(size) - 15) __fls 314 drivers/rapidio/devices/tsi721.h #define TSI721_DMAC_DSSZ_SIZE(size) (__fls(size) - 4) __fls 150 drivers/soc/ixp4xx/ixp4xx-qmgr.c i = __fls(en_bitmap); /* number of the last "low" queue */ __fls 175 drivers/soc/ixp4xx/ixp4xx-qmgr.c i = __fls(req_bitmap); /* number of the last "high" queue */ __fls 194 drivers/soc/ixp4xx/ixp4xx-qmgr.c i = __fls(req_bitmap); /* number of the last queue */ __fls 53 drivers/staging/media/ipu3/ipu3-dmamap.c for (order_mask &= (2U << __fls(count)) - 1; __fls 55 drivers/staging/media/ipu3/ipu3-dmamap.c unsigned int order = __fls(order_mask); __fls 1926 drivers/staging/octeon-usb/octeon-hcd.c channel = __fls(usb->idle_hardware_channels); __fls 3019 drivers/staging/octeon-usb/octeon-hcd.c channel = __fls(usbc_haint.u32); __fls 31 include/asm-generic/bitops/fls64.h return __fls(x) + 1; __fls 49 include/asm-generic/word-at-a-time.h #define zero_bytemask(mask) (~1ul << __fls(mask)) __fls 752 include/net/ipv6.h return i * 32 + 31 - __fls(ntohl(xb)); __fls 785 include/net/ipv6.h return i * 64 + 63 - __fls(be64_to_cpu(xb)); __fls 3300 include/rdma/ib_verbs.h return __fls(pgsz); __fls 65 include/sound/pcm_params.h return __fls(mask->bits[i]) + (i << 5); __fls 140 lib/find_bit.c return idx * BITS_PER_LONG + __fls(val); __fls 178 lib/lz4/lz4defs.h return (BITS_PER_LONG - 1 - __fls(val)) >> 3; __fls 26 lib/math/int_sqrt.c m = 1UL << (__fls(x) & ~1UL); __fls 1035 net/ipv4/fib_trie.c tn = tnode_new(key, __fls(key ^ n->key), 1); __fls 237 net/sched/sch_qfq.c index = __fls(size_map) + 1; /* basically a log_2 */ __fls 1379 net/sched/sch_qfq.c mask = ~((1UL << __fls(mask)) - 1); __fls 1431 net/sched/sch_qfq.c max_cl_shift = __fls(max_classes); __fls 221 security/selinux/ss/ebitmap.c __fls(n2->maps[i]); __fls 445 sound/soc/codecs/pcm186x.c last_slot = __fls(tx_mask); __fls 454 sound/soc/codecs/tas2552.c if ((lsb + 1) != __fls(tx_mask)) { __fls 230 sound/soc/codecs/tas6424.c last_slot = __fls(rx_mask); __fls 1337 sound/soc/codecs/tlv320aic3x.c if ((lsb + 1) != __fls(tx_mask)) { __fls 31 tools/include/asm-generic/bitops/fls64.h return __fls(x) + 1; __fls 24 tools/testing/selftests/powerpc/primitives/load_unaligned_zeropad.c static inline unsigned long __fls(unsigned long x); __fls 46 tools/testing/selftests/powerpc/primitives/word-at-a-time.h return ~1ul << __fls(mask); __fls 1570 virt/kvm/arm/mmu.c phys_addr_t end = (base_gfn + __fls(mask) + 1) << PAGE_SHIFT;