Searched refs:buffer_idx (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/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-6.1.9/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-6.1.9/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() 400 ordered_events_buffer__free(oe->buffer, oe->buffer_idx, oe); in ordered_events__free()
|
D | ordered-events.h | 48 int buffer_idx; member
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_execbuffer.c | 548 is_batch_buffer(struct i915_execbuffer *eb, unsigned int buffer_idx) in is_batch_buffer() argument 551 buffer_idx < eb->num_batches : in is_batch_buffer() 552 buffer_idx >= eb->args->buffer_count - eb->num_batches; in is_batch_buffer()
|