dev_dir_name 201 tools/iio/iio_generic_buffer.c static int enable_disable_all_channels(char *dev_dir_name, int enable) dev_dir_name 209 tools/iio/iio_generic_buffer.c FORMAT_SCAN_ELEMENTS_DIR, dev_dir_name); dev_dir_name 261 tools/iio/iio_generic_buffer.c char *dev_dir_name = NULL; dev_dir_name 270 tools/iio/iio_generic_buffer.c if (dev_dir_name && current_trigger_set) { dev_dir_name 273 tools/iio/iio_generic_buffer.c dev_dir_name, "NULL"); dev_dir_name 289 tools/iio/iio_generic_buffer.c if (dev_dir_name && autochannels == AUTOCHANNELS_ACTIVE) { dev_dir_name 290 tools/iio/iio_generic_buffer.c ret = enable_disable_all_channels(dev_dir_name, 0); dev_dir_name 446 tools/iio/iio_generic_buffer.c ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); dev_dir_name 456 tools/iio/iio_generic_buffer.c ret = read_sysfs_string("name", dev_dir_name, device_name); dev_dir_name 522 tools/iio/iio_generic_buffer.c ret = build_channel_array(dev_dir_name, &channels, &num_channels); dev_dir_name 525 tools/iio/iio_generic_buffer.c "diag %s\n", dev_dir_name); dev_dir_name 539 tools/iio/iio_generic_buffer.c ret = enable_disable_all_channels(dev_dir_name, 1); dev_dir_name 548 tools/iio/iio_generic_buffer.c ret = build_channel_array(dev_dir_name, &channels, dev_dir_name 553 tools/iio/iio_generic_buffer.c "diag %s\n", dev_dir_name); dev_dir_name 569 tools/iio/iio_generic_buffer.c "try again.\n", dev_dir_name); dev_dir_name 587 tools/iio/iio_generic_buffer.c printf("%s %s\n", dev_dir_name, trigger_name); dev_dir_name 593 tools/iio/iio_generic_buffer.c dev_dir_name, dev_dir_name 686 tools/iio/iio_generic_buffer.c free(dev_dir_name); dev_dir_name 40 tools/iio/lsiio.c static int dump_channels(const char *dev_dir_name) dev_dir_name 45 tools/iio/lsiio.c dp = opendir(dev_dir_name); dev_dir_name 58 tools/iio/lsiio.c static int dump_one_device(const char *dev_dir_name) dev_dir_name 64 tools/iio/lsiio.c ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", dev_dir_name 69 tools/iio/lsiio.c ret = read_sysfs_string("name", dev_dir_name, name); dev_dir_name 76 tools/iio/lsiio.c return dump_channels(dev_dir_name); dev_dir_name 81 tools/iio/lsiio.c static int dump_one_trigger(const char *dev_dir_name) dev_dir_name 87 tools/iio/lsiio.c ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_trigger), dev_dir_name 92 tools/iio/lsiio.c ret = read_sysfs_string("name", dev_dir_name, name); dev_dir_name 115 tools/iio/lsiio.c char *dev_dir_name; dev_dir_name 117 tools/iio/lsiio.c if (asprintf(&dev_dir_name, "%s%s", iio_dir, dev_dir_name 123 tools/iio/lsiio.c ret = dump_one_device(dev_dir_name); dev_dir_name 125 tools/iio/lsiio.c free(dev_dir_name); dev_dir_name 129 tools/iio/lsiio.c free(dev_dir_name); dev_dir_name 137 tools/iio/lsiio.c char *dev_dir_name; dev_dir_name 139 tools/iio/lsiio.c if (asprintf(&dev_dir_name, "%s%s", iio_dir, dev_dir_name 145 tools/iio/lsiio.c ret = dump_one_trigger(dev_dir_name); dev_dir_name 147 tools/iio/lsiio.c free(dev_dir_name); dev_dir_name 151 tools/iio/lsiio.c free(dev_dir_name);