Home
last modified time | relevance | path

Searched refs:bits_per_block (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/mtd/nand/
H A Dbbt.c25 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_init() local
27 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init()
77 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_get_block_status() local
79 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_get_block_status()
80 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status()
87 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status()
90 return status & GENMASK(bits_per_block - 1, 0); in nanddev_bbt_get_block_status()
110 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_set_block_status() local
112 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_set_block_status()
113 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_set_block_status()
[all …]
H A Dbbt_store.c25 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_read_bbt() local
27 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt()
94 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_write_bbt() local
96 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt()
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/
H A Dbbt.c45 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_read_bbt() local
47 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt()
115 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_write_bbt() local
117 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt()
240 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_init() local
242 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init()
348 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_get_block_status() local
350 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_get_block_status()
351 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status()
364 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status()
[all …]
/OK3568_Linux_fs/kernel/drivers/rkflash/
H A Dsfc_nand_mtd_bbt.c44 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_read_bbt() local
46 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt()
128 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_write_bbt() local
130 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt()
269 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in snanddev_bbt_init() local
271 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in snanddev_bbt_init()
377 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in snanddev_bbt_get_block_status() local
379 ((entry * bits_per_block) / BITS_PER_LONG); in snanddev_bbt_get_block_status()
380 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in snanddev_bbt_get_block_status()
393 if (bits_per_block + offs > BITS_PER_LONG) in snanddev_bbt_get_block_status()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/ext/
H A Dbitmap_allocator.h229 bits_per_block = sizeof(std::size_t) * std::size_t(bits_per_byte) in _GLIBCXX_VISIBILITY()
275 { return __num_blocks(__ap) / std::size_t(bits_per_block); } in _GLIBCXX_VISIBILITY()
384 { return _M_data_offset * std::size_t(bits_per_block); } in _GLIBCXX_VISIBILITY()
433 / std::size_t(bits_per_block) - 1); in _GLIBCXX_VISIBILITY()
473 return std::size_t(bits_per_block) in _GLIBCXX_VISIBILITY()
772 / size_t(__detail::bits_per_block)); in _GLIBCXX_VISIBILITY()
953 % size_t(__detail::bits_per_block)); in _GLIBCXX_VISIBILITY()
957 __bitmapC -= (__displacement / size_t(__detail::bits_per_block)); in _GLIBCXX_VISIBILITY()
1116 = 2 * std::size_t(__detail::bits_per_block); in _GLIBCXX_VISIBILITY()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/ext/
H A Dbitmap_allocator.h229 bits_per_block = sizeof(std::size_t) * std::size_t(bits_per_byte) in _GLIBCXX_VISIBILITY()
275 { return __num_blocks(__ap) / std::size_t(bits_per_block); } in _GLIBCXX_VISIBILITY()
384 { return _M_data_offset * std::size_t(bits_per_block); } in _GLIBCXX_VISIBILITY()
433 / std::size_t(bits_per_block) - 1); in _GLIBCXX_VISIBILITY()
473 return std::size_t(bits_per_block) in _GLIBCXX_VISIBILITY()
772 / size_t(__detail::bits_per_block)); in _GLIBCXX_VISIBILITY()
953 % size_t(__detail::bits_per_block)); in _GLIBCXX_VISIBILITY()
957 __bitmapC -= (__displacement / size_t(__detail::bits_per_block)); in _GLIBCXX_VISIBILITY()
1116 = 2 * std::size_t(__detail::bits_per_block); in _GLIBCXX_VISIBILITY()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/tr2/
H A Ddynamic_bitset432 static const size_type bits_per_block = __CHAR_BIT__ * sizeof(block_type);
442 size_type __shift = this->_M_Nb % bits_per_block;
451 size_type __shift = this->_M_Nb % bits_per_block;
713 if (this->size() % bits_per_block == 0)
729 this->_M_Nb += bits_per_block;
1012 /// The real answer is max() * bits_per_block but is likely to overflow.
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/tr2/
H A Ddynamic_bitset432 static const size_type bits_per_block = __CHAR_BIT__ * sizeof(block_type);
442 size_type __shift = this->_M_Nb % bits_per_block;
451 size_type __shift = this->_M_Nb % bits_per_block;
713 if (this->size() % bits_per_block == 0)
729 this->_M_Nb += bits_per_block;
1012 /// The real answer is max() * bits_per_block but is likely to overflow.