Lines Matching refs:dev_dir_name
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()
558 "diag %s\n", dev_dir_name); in main()
572 ret = enable_disable_all_channels(dev_dir_name, buffer_idx, 1); in main()
581 ret = build_channel_array(dev_dir_name, buffer_idx, &channels, in main()
586 "diag %s\n", dev_dir_name); in main()
602 "try again.\n", dev_dir_name, buffer_idx); in main()
633 printf("%s %s\n", dev_dir_name, trigger_name); in main()
639 dev_dir_name, in main()
779 free(dev_dir_name); in main()