Searched refs:buffer_idx (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.15/drivers/i2c/ |
D | i2c-slave-eeprom.c | 32 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()
|
/Linux-v5.15/tools/iio/ |
D | iio_generic_buffer.c | 202 static int enable_disable_all_channels(char *dev_dir_name, int buffer_idx, int enable) in enable_disable_all_channels() argument 210 FORMAT_SCAN_ELEMENTS_DIR, dev_dir_name, buffer_idx); in enable_disable_all_channels() 265 static int buffer_idx = 0; variable 293 ret = enable_disable_all_channels(dev_dir_name, buffer_idx, 0); in cleanup() 373 buffer_idx = strtoll(optarg, &dummy, 10); in main() 378 if (buffer_idx < 0) { in main() 540 ret = build_channel_array(dev_dir_name, buffer_idx, &channels, &num_channels); in main() 557 ret = enable_disable_all_channels(dev_dir_name, buffer_idx, 1); in main() 566 ret = build_channel_array(dev_dir_name, buffer_idx, &channels, in main() 587 "try again.\n", dev_dir_name, buffer_idx); in main() [all …]
|
D | iio_utils.c | 89 const char *device_dir, int buffer_idx, in iioutils_get_type() argument 100 ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir, buffer_idx); in iioutils_get_type() 314 int build_channel_array(const char *device_dir, int buffer_idx, in build_channel_array() argument 327 ret = asprintf(&scan_el_dir, FORMAT_SCAN_ELEMENTS_DIR, device_dir, buffer_idx); in build_channel_array() 508 buffer_idx, in build_channel_array()
|
D | iio_utils.h | 65 int build_channel_array(const char *device_dir, int buffer_idx,
|
/Linux-v5.15/tools/perf/util/ |
D | ordered-events.c | 144 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()
|
D | ordered-events.h | 47 int buffer_idx; member
|
/Linux-v5.15/drivers/platform/goldfish/ |
D | goldfish_pipe.c | 302 int buffer_idx = 0; in populate_rw_params() local 314 command->rw_params.sizes[buffer_idx] += size_on_page; in populate_rw_params() 316 ++buffer_idx; in populate_rw_params() 317 command->rw_params.ptrs[buffer_idx] = (u64)xaddr; in populate_rw_params() 318 command->rw_params.sizes[buffer_idx] = size_on_page; in populate_rw_params() 322 command->rw_params.buffers_count = buffer_idx + 1; in populate_rw_params()
|