Home
last modified time | relevance | path

Searched refs:fls (Results 1 – 25 of 229) sorted by relevance

12345678910

/linux/drivers/mtd/nand/
H A Dbbt.c25 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_init()
74 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_get_block_status()
107 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_set_block_status()
H A Decc-sw-bch.c117 m = fls(1 + (8 * eccsize)); in nand_ecc_sw_bch_init()
215 conf->strength = code_size * 8 / fls(8 * conf->step_size); in nand_ecc_sw_bch_init_ctx()
220 fls(8 * conf->step_size), 8); in nand_ecc_sw_bch_init_ctx()
223 conf->strength = (code_size * 8) / fls(8 * conf->step_size); in nand_ecc_sw_bch_init_ctx()
/linux/include/asm-generic/bitops/
H A Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
H A Dbuiltin-fls.h12 static __always_inline __attribute_const__ int fls(unsigned int x) in fls() function
H A Dfls.h43 #define fls(x) generic_fls(x) macro
/linux/tools/include/asm-generic/bitops/
H A Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
H A Dfls.h43 #define fls(x) generic_fls(x) macro
/linux/arch/csky/include/asm/
H A Dbitops.h42 static __always_inline __attribute_const__ int fls(unsigned int x) in fls() function
57 return fls(x) - 1; in __fls()
/linux/arch/sparc/lib/
H A Dfls.S14 ENTRY(fls)
66 ENDPROC(fls)
67 EXPORT_SYMBOL(fls)
/linux/lib/tests/
H A Dffs_kunit.c136 KUNIT_EXPECT_EQ(test, fls(input), 0); in validate_ffs_relationships()
142 fls_result = fls(input); in validate_ffs_relationships()
190 KUNIT_EXPECT_EQ_MSG(test, fls64(input), fls(input_32), in validate_ffs64_relationships()
192 input, input_32, fls64(input), fls(input_32)); in validate_ffs64_relationships()
219 validate_ffs_result(test, tc->input, fls(tc->input), in ffs_basic_correctness_test()
519 CREATE_WRAPPER(fls) in CREATE_WRAPPER() argument
/linux/lib/math/
H A Dreciprocal_div.c23 l = fls(d - 1); in reciprocal_value()
42 l = fls(d - 1); in reciprocal_value_adv()
H A Dint_log.c68 msb = fls(value) - 1; in intlog2()
/linux/drivers/misc/sgi-gru/
H A Dgrutlbpurge.c301 n = 1 << fls(cpus - 1); in gru_tgh_flush_init()
309 shift = max(0, fls(n - 1) - fls(MAX_LOCAL_TGH - 1)); in gru_tgh_flush_init()
/linux/drivers/iommu/generic_pt/
H A Dpt_log2.h82 return fls(a); in fls32()
84 #define fls_t(type, a) _dispatch_sz(type, fls, a)
/linux/drivers/mtd/nand/raw/
H A Dnand_jedec.c105 1 << (fls(le32_to_cpu(p->pages_per_block)) - 1); in nand_jedec_detect()
116 1 << (fls(le32_to_cpu(p->blocks_per_lun)) - 1); in nand_jedec_detect()
/linux/arch/openrisc/include/asm/bitops/
H A Dfls.h14 static inline __attribute_const__ int fls(unsigned int x) in fls() function
/linux/drivers/clk/ti/
H A Dmux.c207 mask = (1 << fls(mask)) - 1; in of_mux_clk_setup()
246 mux->mask = (1 << fls(mux->mask)) - 1; in ti_clk_build_component_mux()
276 mux->mask = (1 << fls(mux->mask)) - 1; in of_ti_composite_mux_clk_setup()
/linux/include/asm-generic/
H A Dgetorder.h44 return fls(size); in get_order()
/linux/arch/mips/loongson2ef/common/
H A Dmem.c26 bit = fls(memsize + highmemsize); in prom_init_memory()
/linux/sound/soc/intel/boards/
H A Dsof_maxim_common.c156 if (fls(tx_mask) > tdm_slots) { in max_98373_hw_params()
158 fls(tx_mask), tdm_slots); in max_98373_hw_params()
162 if (fls(max_98373_tdm_mask[i].rx) > tdm_slots) { in max_98373_hw_params()
164 fls(max_98373_tdm_mask[i].rx), tdm_slots); in max_98373_hw_params()
/linux/arch/mips/rb532/
H A Dirq.c224 group = 21 + (fls(ip) - 32); in plat_irq_dispatch()
230 pend = 39 + (fls(pend) - 32); in plat_irq_dispatch()
/linux/lib/
H A Dclz_ctz.c27 return 32 - fls(val); in __clzsi2()
/linux/arch/sparc/include/asm/
H A Dbitops_64.h26 int __attribute_const__ fls(unsigned int word);
/linux/arch/arm/include/asm/
H A Dword-at-a-time.h42 ret = fls(mask) >> 3; in find_zero()
/linux/drivers/net/wireless/ath/ath12k/wifi7/
H A Ddp.c32 i = fls(dp->hw_params->ring_mask->tx[grp_id]) - 1; in ath12k_wifi7_dp_service_srng()
54 i = fls(dp->hw_params->ring_mask->rx[grp_id]) - 1; in ath12k_wifi7_dp_service_srng()

12345678910