Searched refs:dev_dir_name (Results 1 – 2 of 2) sorted by relevance
/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 | 211 static int enable_disable_all_channels(char *dev_dir_name, int enable) in enable_disable_all_channels() argument 219 FORMAT_SCAN_ELEMENTS_DIR, dev_dir_name); in enable_disable_all_channels() 271 static char *dev_dir_name = NULL; variable 280 if (dev_dir_name && current_trigger_set) { in cleanup() 283 dev_dir_name, "NULL"); in cleanup() 299 if (dev_dir_name && autochannels == AUTOCHANNELS_ACTIVE) { in cleanup() 300 ret = enable_disable_all_channels(dev_dir_name, 0); in cleanup() 456 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main() 466 ret = read_sysfs_string("name", dev_dir_name, device_name); in main() 532 ret = build_channel_array(dev_dir_name, &channels, &num_channels); in main() [all …]
|