Lines Matching refs:reg_addr_bytes
132 int reg_addr_bytes; in i2c_write_from_buffer() local
148 reg_addr_bytes = get_bytes_count_for_hex(s_reg_addr); in i2c_write_from_buffer()
151 if (data_length + reg_addr_bytes > MAX_I2C_BYTES) { in i2c_write_from_buffer()
152 data_length = MAX_I2C_BYTES - reg_addr_bytes; in i2c_write_from_buffer()
154 MAX_I2C_BYTES - reg_addr_bytes); in i2c_write_from_buffer()
163 buf + MAX_BYTES_FOR_REGISTER_INDEX - reg_addr_bytes, in i2c_write_from_buffer()
164 reg_addr_bytes + data_length, dev_addr); in i2c_write_from_buffer()
212 int reg_addr_bytes; in i2c_read_to_buffer() local
216 reg_addr_bytes = get_bytes_count_for_hex(s_reg_addr); in i2c_read_to_buffer()
220 reg_addr_buf + MAX_BYTES_FOR_REGISTER_INDEX - reg_addr_bytes, in i2c_read_to_buffer()
221 reg_addr_bytes, buf, buf_length); in i2c_read_to_buffer()