Lines Matching refs:bits_per_block
25 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS);
27 unsigned int nwords = DIV_ROUND_UP(nblocks * bits_per_block,
77 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS);
79 ((entry * bits_per_block) / BITS_PER_LONG);
80 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
87 if (bits_per_block + offs > BITS_PER_LONG)
90 return status & GENMASK(bits_per_block - 1, 0);
110 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS);
112 ((entry * bits_per_block) / BITS_PER_LONG);
113 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
114 unsigned long val = status & GENMASK(bits_per_block - 1, 0);
119 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs);
122 if (bits_per_block + offs > BITS_PER_LONG) {
123 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG;
126 pos[1] |= val >> (bits_per_block - rbits);