Searched refs:wf_high (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 206 s64 wf_high; in ocelot_ptp_enable() local 268 wf_high = timespec64_to_ns(&ts_on); in ocelot_ptp_enable() 271 wf_high = 1000; in ocelot_ptp_enable() 273 wf_high = timespec64_to_ns(&ts_period); in ocelot_ptp_enable() 274 wf_high = div_s64(wf_high, 2); in ocelot_ptp_enable() 279 wf_low -= wf_high; in ocelot_ptp_enable() 286 ocelot_write_rix(ocelot, wf_high, in ocelot_ptp_enable() 296 if (wf_high > 0x3fffffff || wf_high <= 0x6) in ocelot_ptp_enable() 304 ocelot_write_rix(ocelot, wf_high, PTP_PIN_WF_HIGH_PERIOD, in ocelot_ptp_enable()
|
/linux-6.6.21/drivers/net/ethernet/microchip/ |
D | lan743x_ptp.c | 525 s64 wf_high, period64, half; in lan743x_ptp_perout() local 530 wf_high = timespec64_to_ns(&ts_on); in lan743x_ptp_perout() 541 if (wf_high >= period64) { in lan743x_ptp_perout() 555 if (half == wf_high) { in lan743x_ptp_perout() 567 if (wf_high == 200000000) { in lan743x_ptp_perout() 569 } else if (wf_high == 10000000) { in lan743x_ptp_perout() 571 } else if (wf_high == 1000000) { in lan743x_ptp_perout() 573 } else if (wf_high == 100000) { in lan743x_ptp_perout() 575 } else if (wf_high == 10000) { in lan743x_ptp_perout() 577 } else if (wf_high == 100) { in lan743x_ptp_perout()
|
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_ptp.c | 814 s64 wf_high, wf_low; in lan966x_ptp_perout() local 863 wf_high = timespec64_to_ns(&ts_on); in lan966x_ptp_perout() 865 wf_high = 5000; in lan966x_ptp_perout() 872 lan_wr(PTP_WF_HIGH_PERIOD_PIN_WFH(wf_high), in lan966x_ptp_perout() 889 wf_low -= wf_high; in lan966x_ptp_perout() 894 lan_wr(PTP_WF_HIGH_PERIOD_PIN_WFH(wf_high), in lan966x_ptp_perout()
|