Lines Matching refs:dev_num
360 int dev_num = -1, trig_num = -1; in main() local
424 dev_num = strtoul(optarg, &dummy, 10); in main()
455 if (dev_num < 0 && !device_name) { in main()
460 } else if (dev_num >= 0 && device_name) { in main()
465 } else if (dev_num < 0) { in main()
466 dev_num = find_type_by_name(device_name, "iio:device"); in main()
467 if (dev_num < 0) { in main()
469 ret = dev_num; in main()
473 printf("iio device number being used is %d\n", dev_num); in main()
475 ret = asprintf(&dev_dir_name, "%siio:device%d", iio_dir, dev_num); in main()
487 fprintf(stderr, "Failed to read name of device %d\n", dev_num); in main()
520 "%s-dev%d", device_name, dev_num); in main()
613 "%siio:device%d/buffer%d", iio_dir, dev_num, buffer_idx); in main()
648 ret = asprintf(&buffer_access, "/dev/iio:device%d", dev_num); in main()