Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/linux/arch/arc/include/asm/
H A Dbitops.h74 static inline __attribute__ ((const)) int fls(unsigned int x) in fls() function
90 return fls(x) - 1; in __fls()
97 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
117 static inline __attribute__ ((const)) int fls(unsigned int x) in fls() function
/openbmc/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayout.c268 if (fls) { in _ff_layout_free_lseg()
270 kfree(fls); in _ff_layout_free_lseg()
360 swap(fls->mirror_array[i], in ff_layout_sort_mirrors()
361 fls->mirror_array[j]); in ff_layout_sort_mirrors()
405 fls = kzalloc(struct_size(fls, mirror_array, mirror_array_cnt), in ff_layout_alloc_lseg()
407 if (!fls) in ff_layout_alloc_lseg()
537 fls->flags = be32_to_cpup(p); in ff_layout_alloc_lseg()
546 ff_layout_sort_mirrors(fls); in ff_layout_alloc_lseg()
547 ret = &fls->generic_hdr; in ff_layout_alloc_lseg()
553 _ff_layout_free_lseg(fls); in ff_layout_alloc_lseg()
[all …]
H A Dflexfilelayout.h144 struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); in FF_LAYOUT_COMP() local
146 if (idx < fls->mirror_array_cnt) in FF_LAYOUT_COMP()
147 return fls->mirror_array[idx]; in FF_LAYOUT_COMP()
/openbmc/u-boot/drivers/mtd/nand/
H A Dbbt.c27 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_init()
78 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_get_block_status()
111 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_set_block_status()
/openbmc/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()
/openbmc/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 int fls(unsigned int x) in fls() function
H A Dfls.h13 static __always_inline int fls(unsigned int x) in fls() function
/openbmc/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.h13 static __always_inline int fls(unsigned int x) in fls() function
/openbmc/u-boot/include/asm-generic/bitops/
H A Dfls64.h22 return fls(h) + 32; in fls64()
23 return fls(x); in fls64()
/openbmc/linux/arch/csky/include/asm/
H A Dbitops.h42 static __always_inline int fls(unsigned int x) in fls() function
57 return fls(x) - 1; in __fls()
/openbmc/linux/arch/sparc/lib/
H A Dfls.S14 ENTRY(fls)
66 ENDPROC(fls)
67 EXPORT_SYMBOL(fls)
/openbmc/linux/lib/math/
H A Dreciprocal_div.c23 l = fls(d - 1); in reciprocal_value()
42 l = fls(d - 1); in reciprocal_value_adv()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_bch.c122 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init()
131 m = fls(1+8*eccsize); in nand_bch_init()
211 nand->ecc.strength = (eccbytes * 8) / fls(8 * eccsize); in nand_bch_init()
/openbmc/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()
/openbmc/u-boot/include/linux/
H A Dbitops.h153 # define fls generic_fls macro
159 return fls(l); in fls_long()
/openbmc/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()
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dbitops.h170 static __inline__ int fls(unsigned int x) in fls() function
192 return fls(h) + 32; in fls64()
193 return fls(x); in fls64()
/openbmc/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()
278 mux->mask = (1 << fls(mux->mask)) - 1; in of_ti_composite_mux_clk_setup()
/openbmc/linux/include/linux/
H A Dbitops.h91 order = fls(count); in get_bitmask_order()
207 return fls(l); in fls_long()
216 return fls(--count); in get_count_order()
H A Dcount_zeros.h26 return BITS_PER_LONG - fls(x); in count_leading_zeros()
/openbmc/linux/arch/openrisc/include/asm/bitops/
H A Dfls.h14 static inline int fls(unsigned int x) in fls() function
/openbmc/u-boot/lib/
H A Ddiv64.c105 int n = 1 + fls(high); in div64_u64_rem()
143 int n = 1 + fls(high); in div64_u64()

12345678910>>...18