Lines Matching refs:buffer_idx
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()
265 static int buffer_idx = 0; variable
293 ret = enable_disable_all_channels(dev_dir_name, buffer_idx, 0); in cleanup()
373 buffer_idx = strtoll(optarg, &dummy, 10); in main()
378 if (buffer_idx < 0) { in main()
540 ret = build_channel_array(dev_dir_name, buffer_idx, &channels, &num_channels); 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()
587 "try again.\n", dev_dir_name, buffer_idx); in main()
598 "%siio:device%d/buffer%d", iio_dir, dev_num, buffer_idx); in main()
648 buf_fd = buffer_idx; in main()
688 if (buffer_idx == 0) { in main()