Lines Matching refs:nbits
27 int nbits; member
143 cell->nbits = info->nbits; in nvmem_cell_info_to_nvmem_cell()
145 if (cell->nbits) in nvmem_cell_info_to_nvmem_cell()
146 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell()
318 cell->nbits = be32_to_cpup(addr); in nvmem_add_cells_from_of()
321 if (cell->nbits) in nvmem_add_cells_from_of()
323 cell->nbits + cell->bit_offset, in nvmem_add_cells_from_of()
929 extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE); in nvmem_shift_read_buffer_in_place()
934 *p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0); in nvmem_shift_read_buffer_in_place()
949 if (cell->bit_offset || cell->nbits) in __nvmem_cell_read()
995 int i, rc, nbits, bit_offset = cell->bit_offset; in nvmem_cell_prepare_write_buffer() local
998 nbits = cell->nbits; in nvmem_cell_prepare_write_buffer()
1028 if ((nbits + bit_offset) % BITS_PER_BYTE) { in nvmem_cell_prepare_write_buffer()
1034 *p |= GENMASK(7, (nbits + bit_offset) % BITS_PER_BYTE) & v; in nvmem_cell_prepare_write_buffer()
1062 if (cell->bit_offset || cell->nbits) { in nvmem_cell_write()
1071 if (cell->bit_offset || cell->nbits) in nvmem_cell_write()