Lines Matching refs:dev_dir_name
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()
263 static char *dev_dir_name = NULL; variable
273 if (dev_dir_name && current_trigger_set) { in cleanup()
276 dev_dir_name, "NULL"); in cleanup()
292 if (dev_dir_name && autochannels == AUTOCHANNELS_ACTIVE) { in cleanup()
293 ret = enable_disable_all_channels(dev_dir_name, buffer_idx, 0); in cleanup()
464 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
474 ret = read_sysfs_string("name", dev_dir_name, device_name); in main()
540 ret = build_channel_array(dev_dir_name, buffer_idx, &channels, &num_channels); in main()
543 "diag %s\n", dev_dir_name); 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()
571 "diag %s\n", dev_dir_name); in main()
587 "try again.\n", dev_dir_name, buffer_idx); in main()
618 printf("%s %s\n", dev_dir_name, trigger_name); in main()
624 dev_dir_name, in main()
755 free(dev_dir_name); in main()