Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c203 struct timespec64 ts_phase, ts_period; in ocelot_ptp_enable() local
248 ts_phase.tv_sec = rq->perout.phase.sec; in ocelot_ptp_enable()
249 ts_phase.tv_nsec = rq->perout.phase.nsec; in ocelot_ptp_enable()
252 ts_phase.tv_sec = rq->perout.start.sec; in ocelot_ptp_enable()
253 ts_phase.tv_nsec = rq->perout.start.nsec; in ocelot_ptp_enable()
255 if (ts_phase.tv_sec || (ts_phase.tv_nsec && !pps)) { in ocelot_ptp_enable()
286 ocelot_write_rix(ocelot, ts_phase.tv_nsec, in ocelot_ptp_enable()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_ptp.c812 struct timespec64 ts_phase, ts_period; in lan966x_ptp_perout() local
844 ts_phase.tv_sec = rq->perout.phase.sec; in lan966x_ptp_perout()
845 ts_phase.tv_nsec = rq->perout.phase.nsec; in lan966x_ptp_perout()
847 ts_phase.tv_sec = rq->perout.start.sec; in lan966x_ptp_perout()
848 ts_phase.tv_nsec = rq->perout.start.nsec; in lan966x_ptp_perout()
851 if (ts_phase.tv_sec || (ts_phase.tv_nsec && !pps)) { in lan966x_ptp_perout()
870 lan_wr(PTP_WF_LOW_PERIOD_PIN_WFL(ts_phase.tv_nsec), in lan966x_ptp_perout()