| /linux/fs/nfs/flexfilelayout/ |
| H A D | flexfilelayout.c | 328 static void ff_layout_free_mirror_array(struct nfs4_ff_layout_segment *fls) in ff_layout_free_mirror_array() argument 332 for (i = 0; i < fls->mirror_array_cnt; i++) in ff_layout_free_mirror_array() 333 ff_layout_put_mirror(fls->mirror_array[i]); in ff_layout_free_mirror_array() 336 static void _ff_layout_free_lseg(struct nfs4_ff_layout_segment *fls) in _ff_layout_free_lseg() argument 338 if (fls) { in _ff_layout_free_lseg() 339 ff_layout_free_mirror_array(fls); in _ff_layout_free_lseg() 340 kfree(fls); in _ff_layout_free_lseg() 432 static void ff_layout_sort_mirrors(struct nfs4_ff_layout_segment *fls) in ff_layout_sort_mirrors() argument 436 for (i = 0; i < fls->mirror_array_cnt - 1; i++) { in ff_layout_sort_mirrors() 437 for (j = i + 1; j < fls->mirror_array_cnt; j++) in ff_layout_sort_mirrors() [all …]
|
| H A D | flexfilelayout.h | 154 struct nfs4_ff_layout_segment *fls = FF_LAYOUT_LSEG(lseg); in FF_LAYOUT_COMP() local 156 if (idx < fls->mirror_array_cnt) in FF_LAYOUT_COMP() 157 return fls->mirror_array[idx]; in FF_LAYOUT_COMP()
|
| /linux/lib/tests/ |
| H A D | ffs_kunit.c | 136 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/drivers/mtd/nand/ |
| H A D | bbt.c | 25 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 D | ecc-sw-bch.c | 117 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/arch/sparc/lib/ |
| H A D | fls.S | 14 ENTRY(fls) 66 ENDPROC(fls) 67 EXPORT_SYMBOL(fls)
|
| /linux/include/asm-generic/bitops/ |
| H A D | fls64.h | 23 return fls(h) + 32; in fls64() 24 return fls(x); in fls64()
|
| H A D | builtin-fls.h | 12 static __always_inline __attribute_const__ int fls(unsigned int x) in fls() function
|
| H A D | fls.h | 43 #define fls(x) generic_fls(x) macro
|
| /linux/tools/include/asm-generic/bitops/ |
| H A D | fls64.h | 23 return fls(h) + 32; in fls64() 24 return fls(x); in fls64()
|
| /linux/arch/csky/include/asm/ |
| H A D | bitops.h | 42 static __always_inline __attribute_const__ int fls(unsigned int x) in fls() function 57 return fls(x) - 1; in __fls()
|
| /linux/lib/math/ |
| H A D | reciprocal_div.c | 23 l = fls(d - 1); in reciprocal_value() 42 l = fls(d - 1); in reciprocal_value_adv()
|
| /linux/drivers/misc/sgi-gru/ |
| H A D | grutlbpurge.c | 301 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 D | pt_log2.h | 82 return fls(a); in fls32() 84 #define fls_t(type, a) _dispatch_sz(type, fls, a)
|
| /linux/include/linux/ |
| H A D | bitops.h | 90 order = fls(count); in get_bitmask_order() 206 return fls(l); in fls_long() 215 return fls(--count); in get_count_order()
|
| H A D | count_zeros.h | 26 return BITS_PER_LONG - fls(x); in count_leading_zeros()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_jedec.c | 105 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/sound/soc/intel/boards/ |
| H A D | sof_maxim_common.c | 156 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 D | irq.c | 224 group = 21 + (fls(ip) - 32); in plat_irq_dispatch() 230 pend = 39 + (fls(pend) - 32); in plat_irq_dispatch()
|
| /linux/arch/openrisc/include/asm/bitops/ |
| H A D | fls.h | 14 static inline __attribute_const__ int fls(unsigned int x) in fls() function
|
| /linux/include/asm-generic/ |
| H A D | getorder.h | 44 return fls(size); in get_order()
|
| /linux/drivers/irqchip/ |
| H A D | irq-versatile-fpga.c | 179 f->domain = irq_domain_create_linear(of_fwnode_handle(node), fls(valid), in fpga_irq_init() 183 for (i = 0; i < fls(valid); i++) in fpga_irq_init()
|
| H A D | irq-clps711x.c | 81 fls(irqstat) - 1); in clps711x_irqh() 87 fls(irqstat) - 1 + 16); in clps711x_irqh()
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_mr.c | 585 fls(dev->limits.num_mtt_segs - 1)); in mthca_init_mr_table() 594 i = fls(dev->limits.fmr_reserved_mtts - 1); in mthca_init_mr_table() 637 err = mthca_buddy_init(&dev->mr_table.tavor_fmr.mtt_buddy, fls(mtts - 1)); in mthca_init_mr_table() 642 err = mthca_buddy_alloc(&dev->mr_table.mtt_buddy, fls(mtts - 1)); in mthca_init_mr_table() 653 i = fls(dev->limits.reserved_mtts - 1); in mthca_init_mr_table()
|
| /linux/arch/mips/loongson2ef/common/ |
| H A D | mem.c | 26 bit = fls(memsize + highmemsize); in prom_init_memory()
|