Searched refs:dev_dir_name (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/iio/ |
D | lsiio.c | 40 static int dump_channels(const char *dev_dir_name) in dump_channels() argument 45 dp = opendir(dev_dir_name); in dump_channels() 58 static int dump_one_device(const char *dev_dir_name) in dump_one_device() argument 64 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", in dump_one_device() 69 ret = read_sysfs_string("name", dev_dir_name, name); in dump_one_device() 76 return dump_channels(dev_dir_name); in dump_one_device() 81 static int dump_one_trigger(const char *dev_dir_name) in dump_one_trigger() argument 87 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_trigger), in dump_one_trigger() 92 ret = read_sysfs_string("name", dev_dir_name, name); in dump_one_trigger() 115 char *dev_dir_name; in dump_devices() local [all …]
|
D | iio_generic_buffer.c | 213 static int enable_disable_all_channels(char *dev_dir_name, int buffer_idx, int enable) in enable_disable_all_channels() argument 221 FORMAT_SCAN_ELEMENTS_DIR, dev_dir_name, buffer_idx); in enable_disable_all_channels() 274 static char *dev_dir_name = NULL; variable 284 if (dev_dir_name && current_trigger_set) { in cleanup() 287 dev_dir_name, "NULL"); in cleanup() 303 if (dev_dir_name && autochannels == AUTOCHANNELS_ACTIVE) { in cleanup() 304 ret = enable_disable_all_channels(dev_dir_name, buffer_idx, 0); in cleanup() 475 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main() 485 ret = read_sysfs_string("name", dev_dir_name, device_name); in main() 555 ret = build_channel_array(dev_dir_name, buffer_idx, &channels, &num_channels); in main() [all …]
|
D | iio_event_monitor.c | 350 char *dev_dir_name = NULL; in main() local 379 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main() 392 if (all_events && dev_dir_name) in main() 393 enable_events(dev_dir_name, 1); in main() 448 if (all_events && dev_dir_name) in main() 449 enable_events(dev_dir_name, 0); in main()
|