Lines Matching refs:nbits
55 int nbits;
479 cell->nbits = info->nbits;
482 if (cell->nbits)
483 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset,
725 info.nbits = be32_to_cpup(addr);
1585 extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE);
1590 if (cell->nbits % BITS_PER_BYTE)
1591 *p &= GENMASK((cell->nbits % BITS_PER_BYTE) - 1, 0);
1606 if (cell->bit_offset || cell->nbits)
1660 int i, rc, nbits, bit_offset = cell->bit_offset;
1663 nbits = cell->nbits;
1693 if ((nbits + bit_offset) % BITS_PER_BYTE) {
1699 *p |= GENMASK(7, (nbits + bit_offset) % BITS_PER_BYTE) & v;
1726 if (cell->bit_offset || cell->nbits) {
1735 if (cell->bit_offset || cell->nbits)
1853 int nbits;
1860 nbits = cell->entry->nbits;
1867 * If nbits is set then nvmem_cell_read() can significantly exaggerate
1870 if (nbits)
1871 *len = DIV_ROUND_UP(nbits, 8);