Lines Matching refs:perout_request
158 struct ptp_perout_request perout_request; in main() local
485 memset(&perout_request, 0, sizeof(perout_request)); in main()
486 perout_request.index = index; in main()
487 perout_request.period.sec = perout / NSEC_PER_SEC; in main()
488 perout_request.period.nsec = perout % NSEC_PER_SEC; in main()
489 perout_request.flags = 0; in main()
491 perout_request.flags |= PTP_PEROUT_DUTY_CYCLE; in main()
492 perout_request.on.sec = pulsewidth / NSEC_PER_SEC; in main()
493 perout_request.on.nsec = pulsewidth % NSEC_PER_SEC; in main()
496 perout_request.flags |= PTP_PEROUT_PHASE; in main()
497 perout_request.phase.sec = perout_phase / NSEC_PER_SEC; in main()
498 perout_request.phase.nsec = perout_phase % NSEC_PER_SEC; in main()
500 perout_request.start.sec = ts.tv_sec + 2; in main()
501 perout_request.start.nsec = 0; in main()
504 if (ioctl(fd, PTP_PEROUT_REQUEST2, &perout_request)) { in main()