Lines Matching full:bit_offset
32 int bit_offset; member
484 entry->bit_offset); in nvmem_populate_sysfs_cells()
580 cell->bit_offset = info->bit_offset; in nvmem_cell_info_to_nvmem_cell_entry_nodup()
585 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell_entry_nodup()
825 info.bit_offset = be32_to_cpup(addr++); in nvmem_add_cells_from_dt()
827 if (info.bit_offset >= BITS_PER_BYTE || info.nbits < 1) { in nvmem_add_cells_from_dt()
1620 int i, extra, bit_offset = cell->bit_offset; in nvmem_shift_read_buffer_in_place() local
1623 if (bit_offset) { in nvmem_shift_read_buffer_in_place()
1625 *b++ >>= bit_offset; in nvmem_shift_read_buffer_in_place()
1630 *p |= *b << (BITS_PER_BYTE - bit_offset); in nvmem_shift_read_buffer_in_place()
1633 *b++ >>= bit_offset; in nvmem_shift_read_buffer_in_place()
1662 if (cell->bit_offset || cell->nbits) in __nvmem_cell_read()
1716 int i, rc, nbits, bit_offset = cell->bit_offset; in nvmem_cell_prepare_write_buffer() local
1727 if (bit_offset) { in nvmem_cell_prepare_write_buffer()
1729 *b <<= bit_offset; in nvmem_cell_prepare_write_buffer()
1735 *b++ |= GENMASK(bit_offset - 1, 0) & v; in nvmem_cell_prepare_write_buffer()
1740 pbits = pbyte >> (BITS_PER_BYTE - 1 - bit_offset); in nvmem_cell_prepare_write_buffer()
1743 *b <<= bit_offset; in nvmem_cell_prepare_write_buffer()
1749 if ((nbits + bit_offset) % BITS_PER_BYTE) { in nvmem_cell_prepare_write_buffer()
1755 *p |= GENMASK(7, (nbits + bit_offset) % BITS_PER_BYTE) & v; in nvmem_cell_prepare_write_buffer()
1771 (cell->bit_offset == 0 && len != cell->bytes)) in __nvmem_cell_entry_write()
1782 if (cell->bit_offset || cell->nbits) { in __nvmem_cell_entry_write()
1791 if (cell->bit_offset || cell->nbits) in __nvmem_cell_entry_write()