Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/i2c/
Di2c-slave-eeprom.c32 u16 buffer_idx; member
54 eeprom->buffer_idx = 0; in i2c_slave_eeprom_slave_cb()
55 eeprom->buffer_idx = *val | (eeprom->buffer_idx << 8); in i2c_slave_eeprom_slave_cb()
60 eeprom->buffer[eeprom->buffer_idx++ & eeprom->address_mask] = *val; in i2c_slave_eeprom_slave_cb()
68 eeprom->buffer_idx++; in i2c_slave_eeprom_slave_cb()
72 *val = eeprom->buffer[eeprom->buffer_idx & eeprom->address_mask]; in i2c_slave_eeprom_slave_cb()
/kernel/linux/linux-5.10/tools/perf/util/
Dordered-events.c144 new = &oe->buffer->event[oe->buffer_idx]; in alloc_event()
145 if (++oe->buffer_idx == MAX_SAMPLE_BUFFER) in alloc_event()
160 oe->buffer_idx = 1; in alloc_event()
399 ordered_events_buffer__free(oe->buffer, oe->buffer_idx, oe); in ordered_events__free()
Dordered-events.h47 int buffer_idx; member
/kernel/linux/linux-5.10/drivers/platform/goldfish/
Dgoldfish_pipe.c305 int buffer_idx = 0; in populate_rw_params() local
317 command->rw_params.sizes[buffer_idx] += size_on_page; in populate_rw_params()
319 ++buffer_idx; in populate_rw_params()
320 command->rw_params.ptrs[buffer_idx] = (u64)xaddr; in populate_rw_params()
321 command->rw_params.sizes[buffer_idx] = size_on_page; in populate_rw_params()
325 command->rw_params.buffers_count = buffer_idx + 1; in populate_rw_params()