Home
last modified time | relevance | path

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

/u-boot/drivers/mtd/nand/
A Dbbt.c30 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_init() local
32 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_bbt_init()
81 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS); in nanddev_bbt_get_block_status() local
83 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_get_block_status()
84 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG; in nanddev_bbt_get_block_status()
91 if (bits_per_block + offs > BITS_PER_LONG) in nanddev_bbt_get_block_status()
94 return status & GENMASK(bits_per_block - 1, 0); in nanddev_bbt_get_block_status()
116 ((entry * bits_per_block) / BITS_PER_LONG); in nanddev_bbt_set_block_status()
123 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs); in nanddev_bbt_set_block_status()
126 if (bits_per_block + offs > BITS_PER_LONG) { in nanddev_bbt_set_block_status()
[all …]

Completed in 2 milliseconds