Home
last modified time | relevance | path

Searched refs:perout_request (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/ptp/
H A Dtestptp.c161 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()
[all …]
/linux/drivers/net/phy/
H A Dmicrochip_rds_ptp.c58 struct ptp_perout_request *perout_request, in mchp_get_pulsewidth() argument
81 ts_period.tv_sec = perout_request->period.sec; in mchp_get_pulsewidth()
82 ts_period.tv_nsec = perout_request->period.nsec; in mchp_get_pulsewidth()
84 ts_on.tv_sec = perout_request->on.sec; in mchp_get_pulsewidth()
85 ts_on.tv_nsec = perout_request->on.nsec; in mchp_get_pulsewidth()