Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/drivers/i2c/target/
Deeprom_target.c24 uint32_t buffer_idx; member
101 *val = data->buffer[data->buffer_idx]; in eeprom_target_read_requested()
125 data->buffer_idx = val; in eeprom_target_write_received()
128 data->buffer[data->buffer_idx++] = val; in eeprom_target_write_received()
131 data->buffer_idx = data->buffer_idx % data->buffer_size; in eeprom_target_write_received()
144 data->buffer_idx = (data->buffer_idx + 1) % data->buffer_size; in eeprom_target_read_processed()
146 *val = data->buffer[data->buffer_idx]; in eeprom_target_read_processed()
178 data->buffer_idx = *ptr; in eeprom_target_buf_write_received()
179 memcpy(&data->buffer[data->buffer_idx], ptr + 1, len - 1); in eeprom_target_buf_write_received()
189 *ptr = &data->buffer[data->buffer_idx]; in eeprom_target_buf_read_requested()