Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mscc/
A Docelot_ptp.c189 struct timespec64 ts_phase, ts_period; in ocelot_ptp_enable() local
218 ts_period.tv_sec = rq->perout.period.sec; in ocelot_ptp_enable()
219 ts_period.tv_nsec = rq->perout.period.nsec; in ocelot_ptp_enable()
221 if (ts_period.tv_sec == 1 && ts_period.tv_nsec == 0) in ocelot_ptp_enable()
261 wf_high = timespec64_to_ns(&ts_period); in ocelot_ptp_enable()
266 wf_low = timespec64_to_ns(&ts_period); in ocelot_ptp_enable()
/linux/drivers/net/ethernet/microchip/
A Dlan743x_ptp.c547 struct timespec64 ts_on, ts_period; in lan743x_ptp_perout() local
554 ts_period.tv_sec = perout_request->period.sec; in lan743x_ptp_perout()
555 ts_period.tv_nsec = perout_request->period.nsec; in lan743x_ptp_perout()
556 period64 = timespec64_to_ns(&ts_period); in lan743x_ptp_perout()
582 ts_period = ns_to_timespec64(div_s64(period64, 2)); in lan743x_ptp_perout()
583 period_sec = ts_period.tv_sec; in lan743x_ptp_perout()
584 period_nsec = ts_period.tv_nsec; in lan743x_ptp_perout()

Completed in 14 milliseconds