Home
last modified time | relevance | path

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

/drivers/mtd/nand/
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 …]