Lines Matching refs:perout_request
161 struct ptp_perout_request perout_request; in main() local
518 memset(&perout_request, 0, sizeof(perout_request)); in main()
519 perout_request.index = index; in main()
520 perout_request.period.sec = perout / NSEC_PER_SEC; in main()
521 perout_request.period.nsec = perout % NSEC_PER_SEC; in main()
522 perout_request.flags = 0; in main()
524 perout_request.flags |= PTP_PEROUT_DUTY_CYCLE; in main()
525 perout_request.on.sec = pulsewidth / NSEC_PER_SEC; in main()
526 perout_request.on.nsec = pulsewidth % NSEC_PER_SEC; in main()
529 perout_request.flags |= PTP_PEROUT_PHASE; in main()
530 perout_request.phase.sec = perout_phase / NSEC_PER_SEC; in main()
531 perout_request.phase.nsec = perout_phase % NSEC_PER_SEC; in main()
533 perout_request.start.sec = ts.tv_sec + 2; in main()
534 perout_request.start.nsec = 0; in main()
537 if (ioctl(fd, PTP_PEROUT_REQUEST2, &perout_request)) { in main()