Lines Matching refs:dev_dir_name
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
117 if (asprintf(&dev_dir_name, "%s%s", iio_dir, in dump_devices()
123 ret = dump_one_device(dev_dir_name); in dump_devices()
125 free(dev_dir_name); in dump_devices()
129 free(dev_dir_name); in dump_devices()
137 char *dev_dir_name; in dump_devices() local
139 if (asprintf(&dev_dir_name, "%s%s", iio_dir, in dump_devices()
145 ret = dump_one_trigger(dev_dir_name); in dump_devices()
147 free(dev_dir_name); in dump_devices()
151 free(dev_dir_name); in dump_devices()