Lines Matching refs:bits_per_block
25 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS);
28 nand->bbt.cache = bitmap_zalloc(nblocks * bits_per_block, GFP_KERNEL);
74 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS);
76 ((entry * bits_per_block) / BITS_PER_LONG);
77 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
84 if (bits_per_block + offs > BITS_PER_LONG)
87 return status & GENMASK(bits_per_block - 1, 0);
107 unsigned int bits_per_block = fls(NAND_BBT_BLOCK_NUM_STATUS);
109 ((entry * bits_per_block) / BITS_PER_LONG);
110 unsigned int offs = (entry * bits_per_block) % BITS_PER_LONG;
111 unsigned long val = status & GENMASK(bits_per_block - 1, 0);
116 pos[0] &= ~GENMASK(offs + bits_per_block - 1, offs);
119 if (bits_per_block + offs > BITS_PER_LONG) {
120 unsigned int rbits = bits_per_block + offs - BITS_PER_LONG;
123 pos[1] |= val >> (bits_per_block - rbits);