Home
last modified time | relevance | path

Searched refs:reg_addr_bytes (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/i2c/
Di2c_shell.c132 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()
[all …]
/Zephyr-latest/drivers/i3c/
Di3c_shell.c357 int reg_addr_bytes; in i3c_write_from_buffer() local
380 reg_addr_bytes = get_bytes_count_for_hex(s_reg_addr); in i3c_write_from_buffer()
383 if (data_length + reg_addr_bytes > MAX_I3C_BYTES) { in i3c_write_from_buffer()
384 data_length = MAX_I3C_BYTES - reg_addr_bytes; in i3c_write_from_buffer()
386 MAX_I3C_BYTES - reg_addr_bytes); in i3c_write_from_buffer()
393 ret = i3c_write(desc, buf + MAX_BYTES_FOR_REGISTER_INDEX - reg_addr_bytes, in i3c_write_from_buffer()
394 reg_addr_bytes + data_length); in i3c_write_from_buffer()
423 int reg_addr_bytes; in i3c_read_to_buffer() local
445 reg_addr_bytes = get_bytes_count_for_hex(s_reg_addr); in i3c_read_to_buffer()
448 ret = i3c_write_read(desc, reg_addr_buf + MAX_BYTES_FOR_REGISTER_INDEX - reg_addr_bytes, in i3c_read_to_buffer()
[all …]