Lines Matching refs:perout_request
154 struct ptp_perout_request perout_request; in main() local
443 memset(&perout_request, 0, sizeof(perout_request)); in main()
444 perout_request.index = index; in main()
445 perout_request.period.sec = perout / NSEC_PER_SEC; in main()
446 perout_request.period.nsec = perout % NSEC_PER_SEC; in main()
447 perout_request.flags = 0; in main()
449 perout_request.flags |= PTP_PEROUT_DUTY_CYCLE; in main()
450 perout_request.on.sec = pulsewidth / NSEC_PER_SEC; in main()
451 perout_request.on.nsec = pulsewidth % NSEC_PER_SEC; in main()
454 perout_request.flags |= PTP_PEROUT_PHASE; in main()
455 perout_request.phase.sec = perout_phase / NSEC_PER_SEC; in main()
456 perout_request.phase.nsec = perout_phase % NSEC_PER_SEC; in main()
458 perout_request.start.sec = ts.tv_sec + 2; in main()
459 perout_request.start.nsec = 0; in main()
462 if (ioctl(fd, PTP_PEROUT_REQUEST2, &perout_request)) { in main()