Home
last modified time | relevance | path

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

12345678910>>...17

/linux-6.6.21/arch/arc/include/asm/
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
/linux-6.6.21/fs/nfs/flexfilelayout/
Dflexfilelayout.c258 static void ff_layout_free_mirror_array(struct nfs4_ff_layout_segment *fls) in ff_layout_free_mirror_array() argument
262 for (i = 0; i < fls->mirror_array_cnt; i++) in ff_layout_free_mirror_array()
263 ff_layout_put_mirror(fls->mirror_array[i]); in ff_layout_free_mirror_array()
266 static void _ff_layout_free_lseg(struct nfs4_ff_layout_segment *fls) in _ff_layout_free_lseg() argument
268 if (fls) { in _ff_layout_free_lseg()
269 ff_layout_free_mirror_array(fls); in _ff_layout_free_lseg()
270 kfree(fls); in _ff_layout_free_lseg()
352 static void ff_layout_sort_mirrors(struct nfs4_ff_layout_segment *fls) in ff_layout_sort_mirrors() argument
356 for (i = 0; i < fls->mirror_array_cnt - 1; i++) { in ff_layout_sort_mirrors()
357 for (j = i + 1; j < fls->mirror_array_cnt; j++) in ff_layout_sort_mirrors()
[all …]
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()
/linux-6.6.21/drivers/mtd/nand/
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()
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-6.6.21/arch/sparc/lib/
Dfls.S14 ENTRY(fls)
66 ENDPROC(fls)
67 EXPORT_SYMBOL(fls)
/linux-6.6.21/tools/include/asm-generic/bitops/
Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
Dfls.h13 static __always_inline int fls(unsigned int x) in fls() function
/linux-6.6.21/include/asm-generic/bitops/
Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
Dbuiltin-fls.h12 static __always_inline int fls(unsigned int x) in fls() function
Dfls.h13 static __always_inline int fls(unsigned int x) in fls() function
/linux-6.6.21/arch/csky/include/asm/
Dbitops.h42 static __always_inline int fls(unsigned int x) in fls() function
57 return fls(x) - 1; in __fls()
/linux-6.6.21/lib/math/
Dreciprocal_div.c23 l = fls(d - 1); in reciprocal_value()
42 l = fls(d - 1); in reciprocal_value_adv()
Ddiv64.c108 int n = fls(high); in div64_u64_rem()
146 int n = fls(high); in div64_u64()
/linux-6.6.21/drivers/misc/sgi-gru/
Dgrutlbpurge.c303 n = 1 << fls(cpus - 1); in gru_tgh_flush_init()
311 shift = max(0, fls(n - 1) - fls(MAX_LOCAL_TGH - 1)); in gru_tgh_flush_init()
/linux-6.6.21/include/linux/
Dbitops.h90 order = fls(count); in get_bitmask_order()
206 return fls(l); in fls_long()
215 return fls(--count); in get_count_order()
Dcount_zeros.h26 return BITS_PER_LONG - fls(x); in count_leading_zeros()
/linux-6.6.21/drivers/clk/ti/
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()
/linux-6.6.21/drivers/mtd/nand/raw/
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-6.6.21/arch/openrisc/include/asm/bitops/
Dfls.h14 static inline int fls(unsigned int x) in fls() function
/linux-6.6.21/arch/mips/rb532/
Dirq.c224 group = 21 + (fls(ip) - 32); in plat_irq_dispatch()
230 pend = 39 + (fls(pend) - 32); in plat_irq_dispatch()
/linux-6.6.21/include/asm-generic/
Dgetorder.h44 return fls(size); in get_order()
/linux-6.6.21/arch/mips/loongson2ef/common/
Dmem.c26 bit = fls(memsize + highmemsize); in prom_init_memory()
/linux-6.6.21/drivers/irqchip/
Dirq-clps711x.c81 fls(irqstat) - 1); in clps711x_irqh()
87 fls(irqstat) - 1 + 16); in clps711x_irqh()
Dirq-dw-apb-ictl.c172 nrirqs = 32 + fls(reg); in dw_apb_ictl_init()
174 nrirqs = fls(readl_relaxed(iobase + APB_INT_ENABLE_L)); in dw_apb_ictl_init()

12345678910>>...17