fls 328 arch/arc/include/asm/bitops.h return fls(x) - 1; fls 335 arch/arc/include/asm/bitops.h #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) fls 283 arch/arc/kernel/mcip.c if (ffs(destination_bits) == fls(destination_bits)) fls 41 arch/arm/include/asm/word-at-a-time.h ret = fls(mask) >> 3; fls 635 arch/arm/kernel/setup.c ls = fls(affinity); fls 136 arch/arm/mach-imx/tzic.c irqofs = fls(stat) - 1; fls 103 arch/arm/mach-pxa/irq.c handle_IRQ(PXA_IRQ(fls(mask) - 1), regs); fls 171 arch/arm/plat-orion/pcie.c size = 1 << fls(size); fls 44 arch/arm/probes/uprobes/actions-arm.c freereg = free = fls(free) - 1; fls 56 arch/arm/vfp/vfpdouble.c int bits = 31 - fls(vd->significand >> 32); fls 58 arch/arm/vfp/vfpdouble.c bits = 63 - fls(vd->significand); fls 95 arch/arm/vfp/vfpdouble.c shift = 32 - fls(significand >> 32); fls 97 arch/arm/vfp/vfpdouble.c shift = 64 - fls(significand); fls 56 arch/arm/vfp/vfpsingle.c int bits = 31 - fls(vs->significand); fls 102 arch/arm/vfp/vfpsingle.c shift = 32 - fls(significand); fls 1587 arch/arm64/kernel/insn.c ror = fls(~imm); fls 134 arch/arm64/kernel/setup.c ls = fls(affinity); fls 314 arch/c6x/kernel/traps.c type_num = fls(type) - 1; fls 58 arch/csky/include/asm/bitops.h return fls(x) - 1; fls 517 arch/m68k/include/asm/bitops.h return fls(x) - 1; fls 181 arch/m68k/mm/mcfmmu.c m68k_virt_to_node_shift = fls(_ramend - 1) - 6; fls 255 arch/m68k/mm/motorola.c m68k_virt_to_node_shift = fls(max_addr - min_addr - 1) - 6; fls 2957 arch/mips/cavium-octeon/octeon-irq.c do_IRQ(fls(cop0_cause) - 9 + MIPS_CPU_IRQ_BASE); fls 634 arch/mips/include/asm/bitops.h return fls(word & -word); fls 1021 arch/mips/kernel/cpu-probe.c core >>= fls(core_nvpes()) - 1; fls 586 arch/mips/kernel/pm-cps.c uasm_i_andi(&p, v0, t1, (1 << fls(smp_num_siblings)) - 1); fls 2290 arch/mips/kernel/traps.c ebase_pa = memblock_phys_alloc(vec_size, 1 << fls(vec_size)); fls 2293 arch/mips/kernel/traps.c __func__, vec_size, 1 << fls(vec_size)); fls 31 arch/mips/loongson64/common/mem.c bit = fls(memsize + highmemsize); fls 322 arch/mips/pci/msi-xlp.c msivec = fls(md->msi_alloc_mask); fls 421 arch/mips/pci/msi-xlp.c t = fls(md->msix_alloc_mask); fls 88 arch/mips/pci/pci-lantiq.c bar11mask = (0x0ffffff0 & ~((1 << (fls(mem) - 1)) - 1)) | 8; fls 224 arch/mips/rb532/irq.c group = 21 + (fls(ip) - 32); fls 230 arch/mips/rb532/irq.c pend = 39 + (fls(pend) - 32); fls 111 arch/powerpc/mm/book3s32/mmu.c unsigned int block_shift = (fls(top - base) - 1) & 31; fls 659 arch/powerpc/sysdev/xive/native.c order = fls(max_vcpus) - 1; fls 26 arch/sparc/include/asm/bitops_64.h int fls(unsigned int word); fls 32 arch/unicore32/include/asm/bitops.h #define __fls(x) (fls(x) - 1) fls 33 arch/unicore32/include/asm/bitops.h #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); }) fls 2363 arch/x86/kernel/apic/apic.c mask = (1U << (fls(smp_num_siblings) - 1)) - 1; fls 333 drivers/acpi/pmic/intel_pmic_bxtwc.c count = fls(bsr_num) - 1; fls 414 drivers/ata/acard-ahci.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); fls 1803 drivers/ata/ahci.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); fls 222 drivers/ata/ahci_brcm.c if (fls(impl) > SATA_TOP_MAX_PHYS) fls 611 drivers/ata/libahci_platform.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); fls 918 drivers/ata/libata-core.c int highbit = fls(xfer_mask) - 1; fls 1012 drivers/ata/libata-core.c highbit = fls(xfer_mask) - 1; fls 3060 drivers/ata/libata-core.c bit = fls(mask) - 1; fls 3093 drivers/ata/libata-core.c sata_spd_string(fls(mask))); fls 3115 drivers/ata/libata-core.c target = fls(limit); fls 3427 drivers/ata/libata-core.c highbit = fls(pio_mask) - 1; fls 3433 drivers/ata/libata-core.c highbit = fls(udma_mask) - 1; fls 3438 drivers/ata/libata-core.c highbit = fls(mwdma_mask) - 1; fls 344 drivers/ata/libata-transport.c ata_link_linkspeed_attr(hw_sata_spd_limit, fls); fls 345 drivers/ata/libata-transport.c ata_link_linkspeed_attr(sata_spd_limit, fls); fls 519 drivers/ata/sata_highbank.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); fls 483 drivers/block/brd.c max_part = 1UL << fls(max_part); fls 2247 drivers/block/loop.c part_shift = fls(max_part); fls 2363 drivers/block/nbd.c part_shift = fls(max_part); fls 371 drivers/bus/brcmstb_gisb.c last = fls(gdev->valid_mask) - 1; fls 898 drivers/bus/ti-sysc.c best_mode = fls(ddata->cfg.sidlemodes) - 1; fls 920 drivers/bus/ti-sysc.c best_mode = fls(ddata->cfg.midlemodes) - 1; fls 1251 drivers/char/random.c credit_entropy_bits(r, min_t(int, fls(delta>>1), 11)); fls 157 drivers/clk/at91/clk-programmable.c shift = fls(div) - 1; fls 297 drivers/clk/clk-milbeaut.c u32 write_en = BIT(fls(mux->mask) - 1); fls 161 drivers/clk/clk-mux.c width = fls(mask) - ffs(mask) + 1; fls 931 drivers/clk/qcom/clk-alpha-pll.c return parent_rate >> fls(ctl); fls 977 drivers/clk/qcom/clk-alpha-pll.c div = 1 << fls(ctl); fls 669 drivers/clk/st/clkgen-pll.c div->width = fls(pll_data->odf[odf].mask); fls 1554 drivers/clk/tegra/clk-tegra210.c u32 i = fls(p); fls 350 drivers/clk/ti/clkctrl.c mux->mask = (1 << fls(mux->mask)) - 1; fls 387 drivers/clk/ti/divider.c *width = fls(val); fls 422 drivers/clk/ti/divider.c *width = fls(*width); fls 519 drivers/clk/ti/divider.c return fls(val); fls 214 drivers/clk/ti/mux.c mask = (1 << fls(mask)) - 1; fls 252 drivers/clk/ti/mux.c mux->mask = (1 << fls(mux->mask)) - 1; fls 284 drivers/clk/ti/mux.c mux->mask = (1 << fls(mux->mask)) - 1; fls 814 drivers/clocksource/arm_arch_timer.c pos = fls(evt_stream_div); fls 108 drivers/clocksource/samsung_pwm_timer.c bits = (fls(divisor) - 1) - pwm.variant.div_base; fls 383 drivers/clocksource/samsung_pwm_timer.c channel = fls(mask) - 1; fls 391 drivers/clocksource/samsung_pwm_timer.c channel = fls(mask) - 1; fls 127 drivers/crypto/nx/nx-842-pseries.c int bucket = fls(time); fls 290 drivers/dma/at_hdmac_regs.h *maxburst = fls(*maxburst) - 2; fls 89 drivers/dma/dw/dw.c *maxburst = *maxburst > 1 ? fls(*maxburst) - 2 : 0; fls 86 drivers/dma/dw/idma32.c *maxburst = *maxburst > 1 ? fls(*maxburst) - 1 : 0; fls 861 drivers/dma/imx-sdma.c int channel = fls(stat) - 1; fls 325 drivers/dma/mpc512x_dma.c while ((ch = fls(status) - 1) >= 0) { fls 279 drivers/dma/sirf-dma.c while ((ch = fls(is) - 1) >= 0) { fls 546 drivers/dma/tegra210-adma.c return fls(burst_size) << ADMA_CH_CONFIG_BURST_SIZE_SHIFT; fls 2434 drivers/dma/xilinx/xilinx_dma.c xdev->common.copy_align = fls(width - 1); fls 1622 drivers/edac/amd64_edac.c msb = fls(addr_mask_orig) - 1; fls 284 drivers/gpio/gpio-bcm-kona.c res = fls(debounce) - 1; fls 196 drivers/gpio/gpio-dwapb.c int hwirq = fls(irq_status) - 1; fls 295 drivers/gpio/gpio-htc-egpio.c ei->bus_shift = fls(pdata->bus_width - 1) - 3; fls 300 drivers/gpio/gpio-htc-egpio.c ei->reg_shift = fls(pdata->reg_width - 1); fls 53 drivers/gpio/gpio-menz127.c rnd = fls(debounce) - 1; fls 264 drivers/gpio/gpio-mxc.c int irqoffset = fls(irq_stat) - 1; fls 161 drivers/gpio/gpio-mxs.c int irqoffset = fls(irq_stat) - 1; fls 168 drivers/gpio/gpio-pca953x.c return fls((chip->gpio_chip.ngpio - 1) / BANK_SZ); fls 236 drivers/gpio/gpio-stp-xway.c chip->gc.ngpio = fls(chip->groups) * 8; fls 607 drivers/gpu/drm/amd/amdkfd/kfd_device.c kfd->vm_info.last_vmid_kfd = fls(gpu_resources->compute_vmid_bitmap)-1; fls 962 drivers/gpu/drm/amd/powerplay/amd_powerplay.c index = fls(hwmgr->workload_mask); fls 967 drivers/gpu/drm/amd/powerplay/amd_powerplay.c index = fls(hwmgr->workload_mask); fls 1655 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index = fls(smu->workload_mask); fls 1711 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index = fls(smu->workload_mask); fls 1716 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index = fls(smu->workload_mask); fls 762 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 284 drivers/gpu/drm/amd/powerplay/hwmgr/pp_psm.c index = fls(hwmgr->workload_mask); fls 839 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c high = mask ? (fls(mask) - 1) : 0; fls 4425 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c if (fls(tmp) != ffs(tmp)) fls 4430 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c fls(tmp) - 1); fls 4086 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->smc_state_table.gfx_max_level = mask ? (fls(mask) - 1) : 0; fls 4099 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->smc_state_table.mem_max_level = mask ? (fls(mask) - 1) : 0; fls 4113 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->smc_state_table.soc_max_level = mask ? (fls(mask) - 1) : 0; fls 1890 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 1910 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 1931 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 2516 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 2543 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 2571 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 2599 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 2649 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 755 drivers/gpu/drm/amd/powerplay/navi10_ppt.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 1288 drivers/gpu/drm/amd/powerplay/vega20_ppt.c soft_max_level = mask ? (fls(mask) - 1) : 0; fls 322 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c hstate->output_mode = fls(output_fmts) - 1; fls 766 drivers/gpu/drm/exynos/exynos_drm_fimc.c hfactor = fls(src_w / dst_w / 2); fls 772 drivers/gpu/drm/exynos/exynos_drm_fimc.c vfactor = fls(src_h / dst_h / 2); fls 364 drivers/gpu/drm/i915/display/intel_tc.c enum tc_port_mode live_mode = fls(live_status_mask) - 1; fls 379 drivers/gpu/drm/i915/display/intel_tc.c return fls(live_status_mask) - 1; fls 82 drivers/gpu/drm/i915/gem/i915_gem_internal.c int order = min(fls(npages) - 1, max_order); fls 28 drivers/gpu/drm/i915/gt/intel_engine_pool.c n = fls(sz >> PAGE_SHIFT) - 1; fls 798 drivers/gpu/drm/i915/gt/intel_workarounds.c slice = fls(sseu->slice_mask) - 1; fls 800 drivers/gpu/drm/i915/gt/intel_workarounds.c subslice = fls(l3_en & sseu->subslice_mask[slice]); fls 804 drivers/gpu/drm/i915/gt/intel_workarounds.c subslice = fls(l3_en); fls 3884 drivers/gpu/drm/i915/i915_debugfs.c for (s = 0; s < fls(sseu->slice_mask); s++) { fls 3892 drivers/gpu/drm/i915/i915_debugfs.c for (s = 0; s < fls(sseu->slice_mask); s++) { fls 3914 drivers/gpu/drm/i915/i915_debugfs.c for (s = 0; s < fls(sseu->slice_mask); s++) { fls 76 drivers/gpu/drm/msm/disp/dpu1/dpu_mdss.c irq_hw_number_t hwirq = fls(interrupts) - 1; fls 51 drivers/gpu/drm/msm/disp/mdp5/mdp5_mdss.c irq_hw_number_t hwirq = fls(intr) - 1; fls 2373 drivers/gpu/drm/nouveau/dispnv50/disp.c for (i = 0; i < fls(crtcs); i++) { fls 140 drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c tdev->iommu.pgshift = fls(pgsize_bitmap & ~PAGE_MASK); fls 69 drivers/gpu/drm/panfrost/panfrost_mmu.c region_width = 10 + fls(size >> PAGE_SHIFT); fls 1107 drivers/hid/usbhid/hid-core.c interval = fls(endpoint->bInterval*8); fls 1235 drivers/hwmon/nct6683.c fls(data->have_pwm)); fls 1253 drivers/hwmon/nct6683.c fls(data->have_fan)); fls 4590 drivers/hwmon/nct6775.c fls(data->have_in)); fls 4597 drivers/hwmon/nct6775.c fls(data->has_fan)); fls 4604 drivers/hwmon/nct6775.c fls(data->have_temp)); fls 58 drivers/i2c/busses/i2c-at91-master.c ckdiv = fls(div >> 8); fls 264 drivers/ide/amd74xx.c d.name, pci_name(dev), amd_dma[fls(d.udma_mask) - 1]); fls 327 drivers/ide/ide-dma.c x = fls(mask) - 1; fls 195 drivers/ide/ide-xfer-mode.c host_pio = fls(hwif->pio_mask) - 1; fls 230 drivers/ide/ide-xfer-mode.c mode = fls(hwif->pio_mask) - 1 + XFER_PIO_0; fls 438 drivers/ide/via82cxxx.c (fls(via_config->udma_mask) - 1) : 0]); fls 259 drivers/iio/adc/stm32-dfsdm-adc.c bits = fls(flo->res); fls 188 drivers/iio/adc/vf610_adc.c adc_feature->clk_div = 1 << fls(divisor + 1); fls 117 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->version = fls(ver_mask) - 1; fls 64 drivers/iio/light/si1133.c #define SI1133_ADCSENS_NB_MEAS(x) fls(x) << SI1133_ADCSENS_SCALE_SHIFT fls 4315 drivers/infiniband/hw/hns/hns_roce_hw_v2.c fls(attr->max_dest_rd_atomic - 1)); fls 4323 drivers/infiniband/hw/hns/hns_roce_hw_v2.c fls(attr->max_rd_atomic - 1)); fls 6070 drivers/infiniband/hw/hns/hns_roce_hw_v2.c fls(srq->max_gs - 1)); fls 2404 drivers/infiniband/hw/mlx4/qp.c cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); fls 2414 drivers/infiniband/hw/mlx4/qp.c cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); fls 3580 drivers/infiniband/hw/mlx5/qp.c cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); fls 3589 drivers/infiniband/hw/mlx5/qp.c cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); fls 848 drivers/infiniband/hw/mthca/mthca_mr.c fls(dev->limits.num_mtt_segs - 1)); fls 857 drivers/infiniband/hw/mthca/mthca_mr.c i = fls(dev->limits.fmr_reserved_mtts - 1); fls 900 drivers/infiniband/hw/mthca/mthca_mr.c err = mthca_buddy_init(&dev->mr_table.tavor_fmr.mtt_buddy, fls(mtts - 1)); fls 905 drivers/infiniband/hw/mthca/mthca_mr.c err = mthca_buddy_alloc(&dev->mr_table.mtt_buddy, fls(mtts - 1)); fls 916 drivers/infiniband/hw/mthca/mthca_mr.c i = fls(dev->limits.reserved_mtts - 1); fls 728 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(fls(attr->max_rd_atomic - 1) << 21); fls 745 drivers/infiniband/hw/mthca/mthca_qp.c cpu_to_be32(fls(attr->max_dest_rd_atomic - 1) << 21); fls 662 drivers/infiniband/hw/mthca/mthca_srq.c ((1 << (fls(dev->limits.max_desc_sz) - 1)) - fls 557 drivers/infiniband/hw/ocrdma/ocrdma_hw.c u32 len_encoded = fls(q_len); /* log2(len) + 1 */ fls 146 drivers/infiniband/hw/qedr/verbs.c 1 << (fls(qattr->max_qp_req_rd_atomic_resc) - 1); fls 148 drivers/infiniband/hw/qedr/verbs.c min(1 << (fls(qattr->max_qp_resp_rd_atomic_resc) - 1), fls 434 drivers/input/keyboard/pmic8xxx-keypad.c bits = fls(scan_delay_ms) - 1; fls 685 drivers/iommu/intel-iommu.c return fls(mask); fls 1890 drivers/iommu/intel-iommu.c domain->iommu_superpage = fls(cap_super_page_val(iommu->cap)); fls 48 drivers/irqchip/irq-ath79-cpu.c irq = fls(pending) - 1; fls 81 drivers/irqchip/irq-clps711x.c fls(irqstat) - 1, regs); fls 87 drivers/irqchip/irq-clps711x.c fls(irqstat) - 1 + 16, regs); fls 119 drivers/irqchip/irq-dw-apb-ictl.c nrirqs = 32 + fls(reg); fls 121 drivers/irqchip/irq-dw-apb-ictl.c nrirqs = fls(readl_relaxed(iobase + APB_INT_ENABLE_L)); fls 140 drivers/irqchip/irq-mips-cpu.c irq = fls(pending) - 1; fls 173 drivers/irqchip/irq-versatile-fpga.c f->domain = irq_domain_add_simple(node, fls(valid), irq_start, fls 177 drivers/irqchip/irq-versatile-fpga.c for (i = 0; i < fls(valid); i++) fls 290 drivers/irqchip/irq-vic.c v->domain = irq_domain_add_simple(node, fls(valid_sources), irq, fls 293 drivers/irqchip/irq-vic.c for (i = 0; i < fls(valid_sources); i++) fls 420 drivers/md/bcache/bset.c unsigned int b = fls(j); fls 421 drivers/md/bcache/bset.c unsigned int shift = fls(size - 1) - b; fls 3104 drivers/md/dm-integrity.c for (test_bit = fls(journal_sections) - 1; test_bit >= 0; test_bit--) { fls 150 drivers/md/dm-kcopyd.c int shift = fls(t->total_period >> ACCOUNT_INTERVAL_SHIFT); fls 89 drivers/md/dm-unstripe.c uc->chunk_shift = is_power_of_2(uc->chunk_size) ? fls(uc->chunk_size) - 1 : 0; fls 76 drivers/media/dvb-core/dvb_math.c msb = fls(value) - 1; fls 2033 drivers/media/dvb-frontends/dib8000.c time_intlv = fls(c->layer[layer_index].interleaving); fls 36 drivers/media/i2c/ad5820.c #define RAMP_US_TO_CODE(c) fls(((c) + ((c)>>1)) / 50) fls 394 drivers/media/i2c/mt9v032.c hbin = fls(mt9v032->hratio) - 1; fls 395 drivers/media/i2c/mt9v032.c vbin = fls(mt9v032->vratio) - 1; fls 877 drivers/media/i2c/ov9650.c m = 0x01 << fls(gain >> 4); fls 546 drivers/media/pci/cx88/cx88-input.c bits = min(todo, 32U - fls(ev.pulse ? samples : ~samples)); fls 83 drivers/media/pci/tw5864/tw5864-h264.c bs_write(s, 2 * fls(val) - 1, val); fls 208 drivers/media/platform/coda/coda-h264.c int leading_zero_bits = fls(tmp) - 1; fls 281 drivers/media/usb/uvc/uvc_status.c interval = fls(interval) - 1; fls 777 drivers/mfd/menelaus.c int irq = fls(isr) - 1; fls 520 drivers/mfd/twl4030-irq.c int i = fls(edge_change) - 1; fls 597 drivers/mfd/twl4030-irq.c irq = fls(isr); fls 140 drivers/misc/echo/echo.c return (int)fls((int32_t) bits) - 1; fls 303 drivers/misc/sgi-gru/grutlbpurge.c n = 1 << fls(cpus - 1); fls 311 drivers/misc/sgi-gru/grutlbpurge.c shift = max(0, fls(n - 1) - fls(MAX_LOCAL_TGH - 1)); fls 1144 drivers/mmc/core/core.c bit = fls(ocr) - 1; fls 1337 drivers/mmc/core/core.c host->ios.vdd = fls(ocr) - 1; fls 682 drivers/mmc/host/atmel-mci.c return fls(maxburst) - offset; fls 90 drivers/mmc/host/mvsdio.c tmout_index = fls(tmout - 1) - 12; fls 467 drivers/mmc/host/pxamci.c host->clkrt = fls(clk) - 1; fls 525 drivers/mmc/host/sh_mmcif.c clkdiv = (fls(DIV_ROUND_UP(current_clk, clk) - 1) - 1) << 16; fls 1009 drivers/mmc/host/sh_mmcif.c host->mmc->f_min = f_min / (1 << fls(host->clkdiv_map)); fls 25 drivers/mtd/nand/bbt.c unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); fls 77 drivers/mtd/nand/bbt.c unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); fls 110 drivers/mtd/nand/bbt.c unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); fls 240 drivers/mtd/nand/core.c fls(memorg->pages_per_eraseblock - 1); fls 241 drivers/mtd/nand/core.c nand->rowconv.lun_addr_shift = fls(memorg->eraseblocks_per_lun - 1) + fls 79 drivers/mtd/nand/raw/atmel/nand-controller.c #define ATMEL_HSMC_NFC_CFG_PAGESIZE(x) (fls((x) / 512) - 1) fls 75 drivers/mtd/nand/raw/atmel/pmecc.c #define PMECC_CFG_NSECTORS(x) ((fls(x) - 1) << 8) fls 189 drivers/mtd/nand/raw/atmel/pmecc.c return fls(poly) - 1; fls 316 drivers/mtd/nand/raw/atmel/pmecc.c nbytes = DIV_ROUND_UP(strength * fls(8 * req->ecc.sectorsize), fls 429 drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.c if (!tbits || tbits != fls(chipsize)) { fls 896 drivers/mtd/nand/raw/denali.c return DIV_ROUND_UP(strength * fls(step_size * 8), 16) * 2; fls 242 drivers/mtd/nand/raw/ingenic/ingenic_nand_drv.c chip->ecc.bytes = fls((1 + 8) * chip->ecc.size) * fls 206 drivers/mtd/nand/raw/meson_nand.c ecc_bytes = DIV_ROUND_UP(strength * fls(step_size * 8), 8); fls 1292 drivers/mtd/nand/raw/mxc_nand.c addr_phases = fls(chip->pagemask) >> 3; fls 91 drivers/mtd/nand/raw/mxic_nand.c #define OCTA_CRC_CHUNK(s, x) ((fls((x) / 32)) << (1 + ((s) * 16))) fls 130 drivers/mtd/nand/raw/mxic_nand.c #define DMAM_CFG_SDMA_GAP(x) (fls((x) / 8192) << 2) fls 937 drivers/mtd/nand/raw/nand_base.c for (mode = fls(modes) - 1; mode >= 0; mode--) { fls 5165 drivers/mtd/nand/raw/nand_base.c ecc->strength = bytes * 8 / fls(8 * ecc->size); fls 117 drivers/mtd/nand/raw/nand_bch.c eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); fls 126 drivers/mtd/nand/raw/nand_bch.c m = fls(1+8*eccsize); fls 192 drivers/mtd/nand/raw/nand_bch.c nand->ecc.strength = (eccbytes * 8) / fls(8 * eccsize); fls 92 drivers/mtd/nand/raw/nand_jedec.c 1 << (fls(le32_to_cpu(p->pages_per_block)) - 1); fls 103 drivers/mtd/nand/raw/nand_jedec.c 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); fls 236 drivers/mtd/nand/raw/nand_onfi.c 1 << (fls(le32_to_cpu(p->pages_per_block)) - 1); fls 247 drivers/mtd/nand/raw/nand_onfi.c 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); fls 1633 drivers/mtd/nand/raw/sunxi_nand.c ecc->strength = bytes * 8 / fls(8 * ecc->size); fls 1680 drivers/mtd/nand/raw/sunxi_nand.c ecc->bytes = DIV_ROUND_UP(ecc->strength * fls(8 * 1024), 8); fls 706 drivers/mtd/nand/spi/core.c info.offset = plane << fls(nand->memorg.pagesize); fls 4167 drivers/mtd/spi-nor/spi-nor.c int cmd, best_match = fls(shared_hwcaps & SNOR_HWCAPS_READ_MASK) - 1; fls 4198 drivers/mtd/spi-nor/spi-nor.c int cmd, best_match = fls(shared_hwcaps & SNOR_HWCAPS_PP_MASK) - 1; fls 93 drivers/mux/mmio.c field.msb = fls(mask) - 1; fls 475 drivers/net/can/c_can/c_can.c idx = fls(atomic_read(&priv->tx_active)); fls 780 drivers/net/can/c_can/c_can.c lasts = fls(pend); fls 336 drivers/net/can/rx-offload.c offload->skb_queue_len_max = 2 << fls(weight); fls 160 drivers/net/ethernet/aquantia/atlantic/aq_ring.c self->page_order = fls(AQ_CFG_RX_FRAME_MAX / PAGE_SIZE + fls 344 drivers/net/ethernet/atheros/ag71xx.c return fls(size - 1); fls 2630 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c V_TXDATAACKIDX(fls(p->tx_pg_size) - 12)); fls 2737 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int tre = fls(core_clk / (1000000 / TP_TMR_RES)) - 1; fls 2738 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int dack_re = fls(core_clk / 5000) - 1; /* 200us */ fls 2739 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int tstamp_re = fls(core_clk / 1000); /* 1ms, at least */ fls 2910 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int log2 = fls(mtu); fls 3342 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c log2_width = fls(adap->params.pci.width) - 1; fls 5876 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int log2 = fls(mtu); fls 7287 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int page_shift = fls(page_size) - 1; fls 7291 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int fl_align_log = fls(fl_align) - 1; fls 7365 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int pack_align_log = fls(pack_align) - 1; fls 519 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c unsigned int bits = fls(ppmax); fls 296 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h unsigned int bits = fls(tagmask); fls 2965 drivers/net/ethernet/cisco/enic/enic_main.c patch_level = fls(patch_level); fls 1226 drivers/net/ethernet/emulex/benet/be_cmds.c u32 len_encoded = fls(q_len); /* log2(len) + 1 */ fls 1427 drivers/net/ethernet/emulex/benet/be_cmds.c req->frag_size = fls(frag_size) - 1; fls 2203 drivers/net/ethernet/emulex/benet/be_cmds.c req->cpu_table_size_log2 = cpu_to_le16(fls(table_size) - 1); fls 34 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c (1 << (fls(cell_size - 1))) : API_CMD_CELL_SIZE_MIN) fls 3138 drivers/net/ethernet/intel/e1000/e1000_main.c max_txd_pwr = fls(max_per_txd) - 1; fls 1108 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c max_combined = BIT((fls(max_combined / tcs) - 1)); fls 354 drivers/net/ethernet/intel/fm10k/fm10k_iov.c dglort.rss_l = fls(fm10k_queues_per_pool(hw) - 1); fls 356 drivers/net/ethernet/intel/fm10k/fm10k_iov.c dglort.vsi_l = fls(hw->iov.total_vfs - 1); fls 1504 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->mask = BIT(fls(pcs - 1)) - 1; fls 1508 drivers/net/ethernet/intel/fm10k/fm10k_main.c rss_i = BIT(fls(rss_i) - 1); fls 1514 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->mask = BIT(fls(rss_i - 1)) - 1; fls 1544 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->mask = BIT(fls(rss_i - 1)) - 1; fls 1528 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c dglort.rss_l = fls(interface->ring_feature[RING_F_RSS].mask); fls 1529 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c dglort.pc_l = fls(interface->ring_feature[RING_F_QOS].mask); fls 1531 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c dglort.shared_l = fls(l2_accel->size); fls 1607 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c dglort.rss_l = fls(interface->ring_feature[RING_F_RSS].mask); fls 1608 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c dglort.pc_l = fls(interface->ring_feature[RING_F_QOS].mask); fls 1610 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c dglort.shared_l = fls(l2_accel->size); fls 1122 drivers/net/ethernet/intel/fm10k/fm10k_pci.c dglort.rss_l = fls(interface->ring_feature[RING_F_RSS].mask); fls 1123 drivers/net/ethernet/intel/fm10k/fm10k_pci.c dglort.pc_l = fls(interface->ring_feature[RING_F_QOS].mask); fls 1132 drivers/net/ethernet/intel/fm10k/fm10k_pci.c dglort.queue_l = fls(interface->num_rx_queues - 1); fls 1140 drivers/net/ethernet/intel/fm10k/fm10k_pci.c dglort.rss_l = fls(interface->ring_feature[RING_F_RSS].mask); fls 1141 drivers/net/ethernet/intel/fm10k/fm10k_pci.c dglort.pc_l = fls(interface->ring_feature[RING_F_QOS].mask); fls 1145 drivers/net/ethernet/intel/fm10k/fm10k_pci.c dglort.shared_l = fls(interface->l2_accel->size); fls 7110 drivers/net/ethernet/intel/i40e/i40e_main.c pow = fls(roundup_pow_of_two(num_qps) - 1); fls 2274 drivers/net/ethernet/marvell/mv643xx_eth.c queue = fls(queue_mask) - 1; fls 1761 drivers/net/ethernet/marvell/mvneta.c int queue = fls(cause) - 1; fls 2810 drivers/net/ethernet/marvell/mvneta.c rx_queue = fls(((cause_rx_tx >> 8) & 0xff)); fls 2253 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c int queue = fls(cause) - 1; fls 2261 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c int queue = fls(cause) - 1; fls 2025 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c field = &tmp; max_bit_pos = fls(flow_cfg); fls 935 drivers/net/ethernet/mellanox/mlx4/mr.c fls(dev->caps.reserved_mtts - 1)); fls 964 drivers/net/ethernet/mellanox/mlx4/mr.c fls(dev->caps.reserved_mtts - 1)); fls 247 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c prio = fls(dcb_ieee_getapp_mask(dev, app)); fls 282 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c return fls(prio_mask) - 1; fls 297 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c map->map[i] = fls(map->map[i]) - 1; fls 1568 drivers/net/ethernet/netronome/nfp/bpf/jit.c pre_shift = fls(imm & -imm) - 1; fls 590 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c bar->bitsize = fls(bar->mask); fls 2862 drivers/net/ethernet/sfc/efx.c method = fls(pending) - 1; fls 2517 drivers/net/ethernet/sfc/falcon/efx.c method = fls(pending) - 1; fls 2469 drivers/net/wireless/ath/ath10k/mac.c idx_limit = fls(mcs_map) - 1; fls 7263 drivers/net/wireless/ath/ath10k/mac.c if (BIT(fls(ht_nss_mask)) - 1 != ht_nss_mask) fls 7266 drivers/net/wireless/ath/ath10k/mac.c *nss = fls(ht_nss_mask); fls 409 drivers/net/wireless/ath/ath9k/ar9003_paprd.c return fls(num) - 1; fls 1723 drivers/net/wireless/broadcom/b43/phy_lp.c prod_msb = fls(abs(prod)); fls 1724 drivers/net/wireless/broadcom/b43/phy_lp.c q_msb = fls(abs(qpwr)); fls 245 drivers/net/wireless/broadcom/b43/phy_n.c u8 index = fls(field); fls 4521 drivers/net/wireless/broadcom/b43/phy_n.c iq_nbits = fls(abs(iq)); fls 4522 drivers/net/wireless/broadcom/b43/phy_n.c qq_nbits = fls(qq); fls 2511 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c msb = fls(tmp); fls 637 drivers/net/wireless/intel/iwlegacy/3945-rs.c max_rate_idx = fls(txrc->rate_idx_mask) - 1; fls 2197 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->max_rate_idx = fls(txrc->rate_idx_mask) - 1; fls 1508 drivers/net/wireless/intel/iwlegacy/common.c u8 ant_idx = fls(il->hw_params.valid_tx_ant) - 1; fls 2708 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->max_rate_idx = fls(txrc->rate_idx_mask) - 1; fls 914 drivers/net/wireless/intel/iwlwifi/dvm/scan.c u8 ant_idx = fls(priv->nvm_data->valid_tx_ant) - 1; fls 667 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c req.cw_min = fls(params->cw_min); fls 669 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c req.cw_max = cpu_to_le16(fls(params->cw_max)); fls 495 drivers/net/wireless/mediatek/mt76/mt76x02_util.c cw_min = fls(params->cw_min); fls 497 drivers/net/wireless/mediatek/mt76/mt76x02_util.c cw_max = fls(params->cw_max); fls 606 drivers/net/wireless/mediatek/mt7601u/phy.c exp = fls(mantisa) - 16; fls 272 drivers/net/wireless/mediatek/mt7601u/tx.c cw_min = fls(params->cw_min); fls 274 drivers/net/wireless/mediatek/mt7601u/tx.c cw_max = fls(params->cw_max); fls 663 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c queue->cw_min = fls(params->cw_min); fls 668 drivers/net/wireless/ralink/rt2x00/rt2x00mac.c queue->cw_max = fls(params->cw_max); fls 767 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c basic_max = fls(basic_mask) - 1; fls 775 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c resp_max = fls(resp_mask) - 1; fls 1389 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c cw_min = fls(params->cw_min); fls 1390 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c cw_max = fls(params->cw_max); fls 1429 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c cw_min = fls(params->cw_min); fls 1430 drivers/net/wireless/realtek/rtl818x/rtl8180/dev.c cw_max = fls(params->cw_max); fls 1350 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c cw_min = fls(params->cw_min); fls 1351 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c cw_max = fls(params->cw_max); fls 5555 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c fls(param->cw_min) << EDCA_PARAM_ECW_MIN_SHIFT | fls 5556 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c fls(param->cw_max) << EDCA_PARAM_ECW_MAX_SHIFT | fls 1742 drivers/net/wireless/realtek/rtlwifi/base.c reg |= (fls(param->cw_max) & 0xF) << 12; fls 1743 drivers/net/wireless/realtek/rtlwifi/base.c reg |= (fls(param->cw_min) & 0xF) << 8; fls 880 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (ffs(tpart_vec) != fls(tpart_vec)) { fls 337 drivers/pci/controller/dwc/pci-meson.c return fls(size) - 8; fls 199 drivers/pci/controller/pci-mvebu.c size = 1 << fls(size); fls 286 drivers/pci/controller/pci-mvebu.c size_t sz = 1 << (fls(size) - 1); fls 308 drivers/pci/controller/pci-mvebu.c size_t sz = 1 << (fls(size) - 1); fls 722 drivers/pci/controller/pcie-mediatek.c AHB2PCIE_SIZE(fls(resource_size(mem))); fls 31 drivers/pci/endpoint/pci-epc-mem.c order = fls(size); fls 418 drivers/pinctrl/pinctrl-falcon.c return fls(avail); fls 466 drivers/pinctrl/pinctrl-falcon.c pins = fls(avail); fls 707 drivers/pinctrl/pinctrl-single.c pcs->bits_per_pin = fls(pcs->fmask); fls 436 drivers/pinctrl/samsung/pinctrl-exynos.c irq = fls(pend) - 1; fls 474 drivers/pinctrl/samsung/pinctrl-s3c64xx.c nr_eints = fls(mask); fls 612 drivers/pinctrl/samsung/pinctrl-s3c64xx.c irq = fls(pend) - 1; fls 741 drivers/pinctrl/samsung/pinctrl-s3c64xx.c nr_eints = fls(mask); fls 1276 drivers/pinctrl/stm32/pinctrl-stm32.c mask_width = fls(mask); fls 355 drivers/platform/chrome/cros_ec_proto.c fls(proto_info->protocol_versions) - 1); fls 128 drivers/pwm/pwm-samsung.c bits = (fls(divisor) - 1) - pwm->variant.div_base; fls 87 drivers/rtc/rtc-max8997.c tm->tm_wday = fls(data[RTC_WEEKDAY] & 0x7f) - 1; fls 844 drivers/scsi/be2iscsi/be_cmds.c u32 len_encoded = fls(q_len); /* log2(len) + 1 */ fls 1375 drivers/scsi/csiostor/csio_wr.c u32 pack_align_log = fls(pack_align) - 1; fls 241 drivers/soc/dove/pmu.c u32 hwirq = fls(stat) - 1; fls 154 drivers/spi/spi-fsl-qspi.c #define LUT_PAD(x) (fls(x) - 1) fls 438 drivers/spi/spi-imx.c post = fls(fin) - fls(fspi); fls 90 drivers/spi/spi-mxic.c #define OCTA_CRC_CHUNK(s, x) ((fls((x) / 32)) << (1 + ((s) * 16))) fls 129 drivers/spi/spi-mxic.c #define DMAM_CFG_SDMA_GAP(x) (fls((x) / 8192) << 2) fls 376 drivers/spi/spi-mxic.c ss_ctrl = OP_CMD_BYTES(1) | OP_CMD_BUSW(fls(op->cmd.buswidth) - 1); fls 380 drivers/spi/spi-mxic.c OP_ADDR_BUSW(fls(op->addr.buswidth) - 1); fls 386 drivers/spi/spi-mxic.c ss_ctrl |= OP_DATA_BUSW(fls(op->data.buswidth) - 1); fls 289 drivers/spi/spi-nxp-fspi.c #define LUT_PAD(x) (fls(x) - 1) fls 175 drivers/spi/spi-orion.c sppr = fls(divider) - 4; fls 191 drivers/spi/spi-orion.c sppr = fls(divider) - 4; fls 459 drivers/spi/spi-stm32.c mbrdiv = fls(div); fls 461 drivers/spi/spi-stm32.c mbrdiv = fls(div) - 1; fls 297 drivers/spi/spi.c int l2len = min(fls(xfer->len), SPI_STATISTICS_HISTO_SIZE) - 1; fls 459 drivers/staging/greybus/audio_topology.c mask = (1 << fls(max)) - 1; fls 31 drivers/staging/media/ipu3/ipu3-css-params.c int i = fls(divider) - fls(counter); fls 1028 drivers/staging/media/ipu3/ipu3-css.c clamp(max(fls(css_pipe->rect[IPU3_CSS_RECT_BDS].width / fls 1030 drivers/staging/media/ipu3/ipu3-css.c fls(css_pipe->rect[IPU3_CSS_RECT_BDS].height / fls 73 drivers/staging/wusbcore/host/whci/qset.c phy_rate = fls(phy_rates) - 1; fls 382 drivers/thermal/armada_thermal.c sample = sign_extend32(reg, fls(priv->data->temp_mask) - 1); fls 120 drivers/thermal/qcom/tsens-common.c *temp = sign_extend32(last_temp, fls(mask) - 1) * 100; fls 103 drivers/tty/serial/8250/8250_dwlib.c d->dlf_size = fls(reg); fls 1161 drivers/tty/serial/fsl_lpuart.c sport->rx_dma_rng_buf_len = (1 << (fls(sport->rx_dma_rng_buf_len) - 1)); fls 840 drivers/tty/serial/max310x.c if (max310x_port_irq(s, fls(val) - 1) == IRQ_HANDLED) fls 98 drivers/tty/serial/sh-sci.c #define max_sr(_port) fls((_port)->sampling_rate_mask) fls 335 drivers/usb/core/config.c n = fls(d->bInterval*8); fls 348 drivers/usb/core/config.c n = clamp(fls(d->bInterval) + 3, i, j); fls 357 drivers/usb/core/config.c n = clamp(fls(d->bInterval), i, j); fls 1095 drivers/usb/gadget/udc/atmel_usba_udc.c USBA_BF(EPT_SIZE, fls(ep->fifo_size - 1) - 3); fls 2181 drivers/usb/gadget/udc/atmel_usba_udc.c USBA_BF(EPT_SIZE, fls(ep->fifo_size - 1) - 3); fls 197 drivers/usb/gadget/udc/bdc/bdc_cmd.c si = fls(desc->bInterval * 8) - 1; fls 239 drivers/usb/gadget/udc/bdc/bdc_core.c size = fls(NUM_SR_ENTRIES) - 2; fls 734 drivers/usb/host/xhci-mem.c max_primary_streams = fls(stream_info->num_stream_ctxs) - 2; fls 1255 drivers/usb/host/xhci-mem.c interval = fls(desc_interval) - 1; fls 1331 drivers/usb/host/xhci.c return fls(added_ctxs) - 1; fls 278 drivers/vfio/pci/vfio_pci_intrs.c vdev->msi_qmax = fls(nvec * 2 - 1) - 1; fls 201 drivers/video/backlight/pwm_bl.c min((int)DIV_ROUND_UP(period, fls(period)), 4096); fls 354 drivers/video/fbdev/aty/atyfb.h fifo_space = 16 - fls(aty_ld_le32(FIFO_STAT, par) & 0xffff); fls 117 drivers/xen/balloon.c #define EXTENT_ORDER (fls(XEN_PFN_PER_PAGE) - 1) fls 26 drivers/xen/mem-reservation.c #define EXTENT_ORDER (fls(XEN_PFN_PER_PAGE) - 1) fls 66 fs/9p/vfs_super.c sb->s_blocksize_bits = fls(v9ses->maxdata - 1); fls 809 fs/ceph/inode.c fls(le32_to_cpu(info->layout.fl_stripe_unit)) - 1; fls 672 fs/ext4/mballoc.c min = fls(len) - 1; fls 2132 fs/ext4/mballoc.c i = fls(ac->ac_g_ex.fe_len); fls 3474 fs/ext4/mballoc.c order = fls(ac->ac_o_ex.fe_len) - 1; fls 4380 fs/ext4/mballoc.c order = fls(pa->pa_free) - 1; fls 196 fs/fscache/object.c event = fls(events & t->events) - 1; fls 211 fs/fscache/object.c event = fls(events & t->events) - 1; fls 249 fs/nfs/flexfilelayout/flexfilelayout.c static void ff_layout_free_mirror_array(struct nfs4_ff_layout_segment *fls) fls 253 fs/nfs/flexfilelayout/flexfilelayout.c if (fls->mirror_array) { fls 254 fs/nfs/flexfilelayout/flexfilelayout.c for (i = 0; i < fls->mirror_array_cnt; i++) { fls 258 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_put_mirror(fls->mirror_array[i]); fls 260 fs/nfs/flexfilelayout/flexfilelayout.c kfree(fls->mirror_array); fls 261 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array = NULL; fls 283 fs/nfs/flexfilelayout/flexfilelayout.c static void _ff_layout_free_lseg(struct nfs4_ff_layout_segment *fls) fls 285 fs/nfs/flexfilelayout/flexfilelayout.c if (fls) { fls 286 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_free_mirror_array(fls); fls 287 fs/nfs/flexfilelayout/flexfilelayout.c kfree(fls); fls 350 fs/nfs/flexfilelayout/flexfilelayout.c static void ff_layout_sort_mirrors(struct nfs4_ff_layout_segment *fls) fls 354 fs/nfs/flexfilelayout/flexfilelayout.c for (i = 0; i < fls->mirror_array_cnt - 1; i++) { fls 355 fs/nfs/flexfilelayout/flexfilelayout.c for (j = i + 1; j < fls->mirror_array_cnt; j++) fls 356 fs/nfs/flexfilelayout/flexfilelayout.c if (fls->mirror_array[i]->efficiency < fls 357 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[j]->efficiency) fls 358 fs/nfs/flexfilelayout/flexfilelayout.c swap(fls->mirror_array[i], fls 359 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[j]); fls 369 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_ff_layout_segment *fls = NULL; fls 403 fs/nfs/flexfilelayout/flexfilelayout.c fls = kzalloc(sizeof(*fls), gfp_flags); fls 404 fs/nfs/flexfilelayout/flexfilelayout.c if (!fls) fls 407 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array_cnt = mirror_array_cnt; fls 408 fs/nfs/flexfilelayout/flexfilelayout.c fls->stripe_unit = stripe_unit; fls 409 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array = kcalloc(fls->mirror_array_cnt, fls 410 fs/nfs/flexfilelayout/flexfilelayout.c sizeof(fls->mirror_array[0]), gfp_flags); fls 411 fs/nfs/flexfilelayout/flexfilelayout.c if (fls->mirror_array == NULL) fls 414 fs/nfs/flexfilelayout/flexfilelayout.c for (i = 0; i < fls->mirror_array_cnt; i++) { fls 433 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[i] = ff_layout_alloc_mirror(gfp_flags); fls 434 fs/nfs/flexfilelayout/flexfilelayout.c if (fls->mirror_array[i] == NULL) { fls 439 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[i]->ds_count = ds_count; fls 442 fs/nfs/flexfilelayout/flexfilelayout.c rc = decode_deviceid(&stream, &fls->mirror_array[i]->devid); fls 451 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[i]->efficiency = be32_to_cpup(p); fls 454 fs/nfs/flexfilelayout/flexfilelayout.c rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid); fls 465 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[i]->fh_versions = fls 468 fs/nfs/flexfilelayout/flexfilelayout.c if (fls->mirror_array[i]->fh_versions == NULL) { fls 475 fs/nfs/flexfilelayout/flexfilelayout.c &fls->mirror_array[i]->fh_versions[j]); fls 480 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[i]->fh_versions_cnt = fh_count; fls 511 fs/nfs/flexfilelayout/flexfilelayout.c rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred); fls 513 fs/nfs/flexfilelayout/flexfilelayout.c rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred); fls 515 fs/nfs/flexfilelayout/flexfilelayout.c mirror = ff_layout_add_mirror(lh, fls->mirror_array[i]); fls 516 fs/nfs/flexfilelayout/flexfilelayout.c if (mirror != fls->mirror_array[i]) { fls 520 fs/nfs/flexfilelayout/flexfilelayout.c rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred); fls 523 fs/nfs/flexfilelayout/flexfilelayout.c rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred); fls 525 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_free_mirror(fls->mirror_array[i]); fls 526 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[i] = mirror; fls 538 fs/nfs/flexfilelayout/flexfilelayout.c fls->flags = be32_to_cpup(p); fls 543 fs/nfs/flexfilelayout/flexfilelayout.c for (i=0; i < fls->mirror_array_cnt; i++) fls 544 fs/nfs/flexfilelayout/flexfilelayout.c fls->mirror_array[i]->report_interval = be32_to_cpup(p); fls 547 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_sort_mirrors(fls); fls 551 fs/nfs/flexfilelayout/flexfilelayout.c ret = &fls->generic_hdr; fls 557 fs/nfs/flexfilelayout/flexfilelayout.c _ff_layout_free_lseg(fls); fls 577 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); fls 595 fs/nfs/flexfilelayout/flexfilelayout.c _ff_layout_free_lseg(fls); fls 600 fs/nfs/flexfilelayout/flexfilelayout.c ff_layout_get_lseg_count(struct nfs4_ff_layout_segment *fls) fls 754 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); fls 767 fs/nfs/flexfilelayout/flexfilelayout.c size = ff_layout_get_lseg_count(fls) * FF_LAYOUT_MIRROR_COUNT(lseg); fls 818 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); fls 825 fs/nfs/flexfilelayout/flexfilelayout.c for (idx = start_idx; idx < fls->mirror_array_cnt; idx++) { fls 826 fs/nfs/flexfilelayout/flexfilelayout.c if (idx+1 == fls->mirror_array_cnt) fls 144 fs/nfs/flexfilelayout/flexfilelayout.h struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); fls 146 fs/nfs/flexfilelayout/flexfilelayout.h if (idx < fls->mirror_array_cnt) fls 147 fs/nfs/flexfilelayout/flexfilelayout.h return fls->mirror_array[idx]; fls 70 fs/ubifs/lpt.c c->space_bits = fls(c->leb_size) - 3; fls 71 fs/ubifs/lpt.c c->lpt_lnum_bits = fls(c->lpt_lebs); fls 72 fs/ubifs/lpt.c c->lpt_offs_bits = fls(c->leb_size - 1); fls 73 fs/ubifs/lpt.c c->lpt_spc_bits = fls(c->leb_size); fls 76 fs/ubifs/lpt.c c->pcnt_bits = fls(n - 1); fls 78 fs/ubifs/lpt.c c->lnum_bits = fls(c->max_leb_cnt - 1); fls 516 fs/ubifs/super.c c->min_io_shift = fls(c->min_io_size) - 1; fls 518 fs/ubifs/super.c c->max_write_shift = fls(c->max_write_size) - 1; fls 32 fs/xfs/libxfs/xfs_bit.h return fls(v) - 1; fls 23 include/asm-generic/bitops/fls64.h return fls(h) + 32; fls 24 include/asm-generic/bitops/fls64.h return fls(x); fls 44 include/asm-generic/getorder.h return fls(size); fls 54 include/linux/bitops.h order = fls(count); fls 170 include/linux/bitops.h return fls(l); fls 178 include/linux/bitops.h order = fls(count) - 1; fls 26 include/linux/count_zeros.h return BITS_PER_LONG - fls(x); fls 24 include/linux/log2.h return fls(n) - 1; fls 1409 include/linux/sched.h return fls(state); fls 173 include/net/red.h if (fls(qth_min) + Wlog > 32) fls 175 include/net/red.h if (fls(qth_max) + Wlog > 32) fls 196 kernel/bpf/lpm_trie.c prefixlen += 32 - fls(diff); fls 208 kernel/bpf/lpm_trie.c prefixlen += 16 - fls(diff); fls 217 kernel/bpf/lpm_trie.c prefixlen += 8 - fls(node->data[i] ^ key->data[i]); fls 49 kernel/time/timekeeping_debug.c int bin = min(fls(t->tv_sec), NUM_BINS-1); fls 329 kernel/trace/tracing_map.c a->entry_size_shift = fls(roundup_pow_of_two(entry_size) - 1); fls 334 kernel/trace/tracing_map.c a->entry_shift = fls(a->entries_per_page) - 1; fls 288 lib/bch.c return fls(poly)-1; fls 357 lib/bitmap.c #define nbits_to_hold_value(val) fls(val) fls 27 lib/clz_ctz.c return 32 - fls(val); fls 37 lib/clz_ctz.c return 32 - fls((int)val); fls 112 lib/math/div64.c int n = fls(high); fls 150 lib/math/div64.c int n = fls(high); fls 19 lib/math/reciprocal_div.c l = fls(d - 1); fls 38 lib/math/reciprocal_div.c l = fls(d - 1); fls 230 lib/test_vmalloc.c junk_length = fls(num_online_cpus()); fls 222 mm/percpu.c int highbit = fls(size); /* size is in bytes */ fls 1926 mm/slab.c if (size < 4096 || fls(size - 1) == fls(size-1 + REDZONE_ALIGN + fls 1149 mm/slab_common.c index = fls(size - 1); fls 3306 mm/slub.c min_objects = 4 * (fls(nr_cpu_ids) + 1); fls 1217 mm/vmalloc.c log = fls(num_online_cpus()); fls 233 mm/vmstat.c threshold = 2 * fls(num_online_cpus()) * (1 + fls(mem)); fls 1463 net/mac80211/sta_info.c return fls(tids) - 1; fls 1467 net/mac80211/sta_info.c return fls(tids) - 1; fls 151 net/netfilter/ipset/ip_set_hash_gen.h u8 bits = fls(hashsize - 1); fls 155 net/netfilter/ipset/ip_set_hash_gen.h bits = fls(hashsize); fls 369 net/netfilter/ipvs/ip_vs_mh.c shift = fls(mw) - IP_VS_MH_TAB_BITS; fls 738 net/netfilter/xt_recent.c ip_list_hash_size = 1 << fls(ip_list_tot); fls 425 net/sched/cls_flow.c if (fls(keymask) - 1 > FLOW_KEY_MAX) fls 809 net/sched/sch_qfq.c int last_flip_pos = fls(vslot ^ old_vslot); fls 70 net/sunrpc/auth.c nbits = fls(num - 1); fls 1077 net/vmw_vsock/vmci_transport.c pos = fls(proto_int); fls 320 sound/core/jack.c int key = fls(SND_JACK_BTN_0) - fls(type); fls 71 sound/drivers/pcsp/pcsp.c order = fls(div) - 1; fls 2744 sound/pci/hda/patch_ca0132.c const struct dsp_image_seg *fls) fls 2750 sound/pci/hda/patch_ca0132.c if (fls == NULL || fls->chip_addr != g_chip_addr_magic_value) { fls 2755 sound/pci/hda/patch_ca0132.c count = fls->count; fls 2756 sound/pci/hda/patch_ca0132.c data = (u32 *)(fls->data); fls 2785 sound/pci/hda/patch_ca0132.c const struct dsp_image_seg *fls, fls 2812 sound/pci/hda/patch_ca0132.c if (fls == NULL) fls 2814 sound/pci/hda/patch_ca0132.c if (is_hci_prog_list_seg(fls)) { fls 2815 sound/pci/hda/patch_ca0132.c hci_write = fls; fls 2816 sound/pci/hda/patch_ca0132.c fls = get_next_seg_ptr(fls); fls 2819 sound/pci/hda/patch_ca0132.c if (hci_write && (!fls || is_last(fls))) { fls 2824 sound/pci/hda/patch_ca0132.c if (fls == NULL || dma_engine == NULL || port_map_mask == 0) { fls 2829 sound/pci/hda/patch_ca0132.c data = fls->data; fls 2830 sound/pci/hda/patch_ca0132.c chip_addx = fls->chip_addr, fls 2831 sound/pci/hda/patch_ca0132.c words_to_write = fls->count; fls 3134 sound/pci/hda/patch_ca0132.c const struct dsp_image_seg *fls, fls 3169 sound/pci/hda/patch_ca0132.c status = dspxfr_image(codec, fls, reloc, sample_rate, channels, fls 180 sound/soc/atmel/mchp-i2s-mcc.c (((fls(no_words) - 1) << 8) & MCHP_I2SMCC_MRB_DMACHUNK_MASK) fls 594 sound/soc/atmel/mchp-i2s-mcc.c dev->playback.maxburst = 1 << (fls(channels) - 1); fls 596 sound/soc/atmel/mchp-i2s-mcc.c dev->capture.maxburst = 1 << (fls(channels) - 1); fls 325 sound/soc/bcm/bcm2835-i2s.c *ch2_pos = bcm2835_i2s_convert_slot((fls(mask) - 1), odd_offset) fls 334 sound/soc/codecs/88pm860x-codec.c unsigned int mask = (1 << fls(max)) - 1; fls 354 sound/soc/codecs/88pm860x-codec.c unsigned int mask = (1 << fls(max)) - 1; fls 2307 sound/soc/codecs/ab8500-codec.c slot = fls(tx_mask); fls 2349 sound/soc/codecs/ab8500-codec.c slot = fls(rx_mask); fls 2038 sound/soc/codecs/da7218.c if (fls(tx_mask) > DA7218_DAI_TDM_MAX_SLOTS) { fls 1442 sound/soc/codecs/da7219.c if (fls(ch_mask) > DA7219_DAI_TDM_MAX_SLOTS) { fls 355 sound/soc/codecs/max98090.c unsigned int mask = (1 << fls(mc->max)) - 1; fls 395 sound/soc/codecs/max98090.c unsigned int mask = (1 << fls(mc->max)) - 1; fls 363 sound/soc/codecs/nau8825.c msb = fls(value) - 1; fls 717 sound/soc/codecs/pcm512x.c pow2 = 1 << fls((pcm512x_pll_max(pcm512x) - 16000000) / bclk_rate); fls 169 sound/soc/codecs/tlv320aic3x.c unsigned int mask = (1 << fls(max)) - 1; fls 836 sound/soc/codecs/twl4030.c int mask = (1 << fls(max)) - 1; fls 865 sound/soc/codecs/twl4030.c int mask = (1 << fls(max)) - 1; fls 894 sound/soc/codecs/twl4030.c int mask = (1<<fls(max))-1; fls 921 sound/soc/codecs/twl4030.c int mask = (1 << fls(max)) - 1; fls 381 sound/soc/meson/axg-card.c be->slots = fls(max(tx, rx)); fls 382 sound/soc/meson/axg-card.c } else if (be->slots < fls(max(tx, rx)) || be->slots > 32) { fls 388 sound/soc/soc-dapm.c template.mask = (1 << fls(mc->max)) - 1; fls 790 sound/soc/soc-dapm.c unsigned int mask = (1 << fls(max)) - 1; fls 3287 sound/soc/soc-dapm.c unsigned int width = fls(max); fls 3288 sound/soc/soc-dapm.c unsigned int mask = (1 << fls(max)) - 1; fls 3350 sound/soc/soc-dapm.c unsigned int width = fls(max); fls 255 sound/soc/soc-ops.c unsigned int mask = (1 << fls(max)) - 1; fls 315 sound/soc/soc-ops.c unsigned int mask = (1 << fls(max)) - 1; fls 376 sound/soc/soc-ops.c unsigned int mask = (1U << (fls(min + max) - 1)) - 1; fls 421 sound/soc/soc-ops.c unsigned int mask = (1U << (fls(min + max) - 1)) - 1; fls 496 sound/soc/soc-ops.c unsigned int mask = (1 << fls(max)) - 1; fls 548 sound/soc/soc-ops.c unsigned int mask = (1 << fls(max)) - 1; fls 23 tools/include/asm-generic/bitops/fls64.h return fls(h) + 32; fls 24 tools/include/asm-generic/bitops/fls64.h return fls(x); fls 59 tools/include/linux/bitops.h return fls(l); fls 23 tools/include/linux/log2.h return fls(n) - 1;