Lines Matching refs:perout_request
157 struct ptp_perout_request perout_request; in main() local
480 memset(&perout_request, 0, sizeof(perout_request)); in main()
481 perout_request.index = index; in main()
482 perout_request.period.sec = perout / NSEC_PER_SEC; in main()
483 perout_request.period.nsec = perout % NSEC_PER_SEC; in main()
484 perout_request.flags = 0; in main()
486 perout_request.flags |= PTP_PEROUT_DUTY_CYCLE; in main()
487 perout_request.on.sec = pulsewidth / NSEC_PER_SEC; in main()
488 perout_request.on.nsec = pulsewidth % NSEC_PER_SEC; in main()
491 perout_request.flags |= PTP_PEROUT_PHASE; in main()
492 perout_request.phase.sec = perout_phase / NSEC_PER_SEC; in main()
493 perout_request.phase.nsec = perout_phase % NSEC_PER_SEC; in main()
495 perout_request.start.sec = ts.tv_sec + 2; in main()
496 perout_request.start.nsec = 0; in main()
499 if (ioctl(fd, PTP_PEROUT_REQUEST2, &perout_request)) { in main()