Home
last modified time | relevance | path

Searched refs:fls (Results 1 - 25 of 779) sorted by relevance

12345678910>>...32

/kernel/linux/linux-6.6/arch/arc/include/asm/
H A Dbitops.h22 * Helper for fls( ) friends
70 * fls = Find Last Set in word
72 * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0
74 static inline __attribute__ ((const)) int fls(unsigned int x) in fls() function
83 * __fls: Similar to fls, but zero based (0-31)
90 return fls(x) - 1; in __fls()
97 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
113 * fls
117 static inline __attribute__ ((const)) int fls(unsigned int x) fls() function
[all...]
/kernel/linux/linux-5.10/fs/nfs/flexfilelayout/
H A Dflexfilelayout.c252 static void ff_layout_free_mirror_array(struct nfs4_ff_layout_segment *fls) in ff_layout_free_mirror_array() argument
256 for (i = 0; i < fls->mirror_array_cnt; i++) in ff_layout_free_mirror_array()
257 ff_layout_put_mirror(fls->mirror_array[i]); in ff_layout_free_mirror_array()
260 static void _ff_layout_free_lseg(struct nfs4_ff_layout_segment *fls) in _ff_layout_free_lseg() argument
262 if (fls) { in _ff_layout_free_lseg()
263 ff_layout_free_mirror_array(fls); in _ff_layout_free_lseg()
264 kfree(fls); in _ff_layout_free_lseg()
346 static void ff_layout_sort_mirrors(struct nfs4_ff_layout_segment *fls) in ff_layout_sort_mirrors() argument
350 for (i = 0; i < fls->mirror_array_cnt - 1; i++) { in ff_layout_sort_mirrors()
351 for (j = i + 1; j < fls in ff_layout_sort_mirrors()
365 struct nfs4_ff_layout_segment *fls = NULL; ff_layout_alloc_lseg() local
556 struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); ff_layout_free_lseg() local
740 struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); ff_layout_choose_ds_for_read() local
[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()
/kernel/linux/linux-6.6/fs/nfs/flexfilelayout/
H A 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 in ff_layout_sort_mirrors()
371 struct nfs4_ff_layout_segment *fls = NULL; ff_layout_alloc_lseg() local
562 struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); ff_layout_free_lseg() local
746 struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); ff_layout_choose_ds_for_read() local
[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()
/kernel/linux/linux-5.10/arch/openrisc/include/asm/bitops/
H A Dfls.h14 static inline int fls(unsigned int x) in fls() function
26 #include <asm-generic/bitops/fls.h>
/kernel/linux/linux-6.6/arch/openrisc/include/asm/bitops/
H A Dfls.h14 static inline int fls(unsigned int x) in fls() function
26 #include <asm-generic/bitops/fls.h>
/kernel/linux/linux-5.10/drivers/mtd/nand/
H A Dbbt.c25 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_init()
77 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_get_block_status()
110 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_set_block_status()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/arc/include/asm/
H A Dbitops.h204 * Helper for fls( ) friends
252 * fls = Find Last Set in word
254 * fls(1) = 1, fls(0x80000000) = 32, fls(0) = 0
256 static inline __attribute__ ((const)) int fls(unsigned int x) in fls() function
265 * __fls: Similar to fls, but zero based (0-31)
272 return fls(x) - 1; in __fls()
279 #define ffs(x) ({ unsigned long __t = (x); fls(__t & -__t); })
295 * fls
299 static inline __attribute__ ((const)) int fls(unsigned long x) fls() function
[all...]
/kernel/linux/linux-5.10/tools/include/asm-generic/bitops/
H A Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
/kernel/linux/linux-5.10/include/asm-generic/bitops/
H A Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
/kernel/linux/linux-6.6/include/asm-generic/bitops/
H A Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
/kernel/linux/linux-6.6/tools/include/asm-generic/bitops/
H A Dfls64.h23 return fls(h) + 32; in fls64()
24 return fls(x); in fls64()
/kernel/linux/linux-6.6/arch/csky/include/asm/
H A Dbitops.h40 * asm-generic/bitops/fls.h
42 static __always_inline int fls(unsigned int x) in fls() function
57 return fls(x) - 1; in __fls()
/kernel/linux/linux-5.10/arch/csky/include/asm/
H A Dbitops.h41 * asm-generic/bitops/fls.h
43 static __always_inline int fls(unsigned int x) in fls() function
58 return fls(x) - 1; in __fls()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dnand_bch.c117 eccbytes = DIV_ROUND_UP(eccstrength * fls(8 * eccsize), 8); in nand_bch_init()
126 m = fls(1+8*eccsize); in nand_bch_init()
193 nand->ecc.strength = (eccbytes * 8) / fls(8 * eccsize); in nand_bch_init()
/kernel/linux/linux-5.10/lib/math/
H A Dreciprocal_div.c20 l = fls(d - 1); in reciprocal_value()
39 l = fls(d - 1); in reciprocal_value_adv()
/kernel/linux/linux-6.6/lib/math/
H A Dreciprocal_div.c23 l = fls(d - 1); in reciprocal_value()
42 l = fls(d - 1); in reciprocal_value_adv()
/kernel/linux/linux-5.10/drivers/clk/ti/
H A Dmux.c215 mask = (1 << fls(mask)) - 1; in of_mux_clk_setup()
254 mux->mask = (1 << fls(mux->mask)) - 1; in ti_clk_build_component_mux()
286 mux->mask = (1 << fls(mux->mask)) - 1; in of_ti_composite_mux_clk_setup()
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/
H A 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()
/kernel/linux/linux-5.10/include/linux/
H A Dbitops.h26 * Include this here because some architectures need generic_ffs/fls in
69 order = fls(count); in get_bitmask_order()
185 return fls(l); in fls_long()
194 return fls(--count); in get_count_order()
/kernel/linux/linux-6.6/drivers/misc/sgi-gru/
H A 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()
/kernel/linux/linux-6.6/include/linux/
H A Dbitops.h65 * Include this here because some architectures need generic_ffs/fls in
90 order = fls(count); in get_bitmask_order()
206 return fls(l); in fls_long()
215 return fls(--count); in get_count_order()
/kernel/linux/linux-6.6/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()

Completed in 13 milliseconds

12345678910>>...32