Lines Matching refs:ext_write
241 static void ext_write(int broadcast, struct phy_device *phydev, in ext_write() function
260 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec & 0xffff);/* ns[15:0] */ in tdr_write()
261 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec >> 16); /* ns[31:16] */ in tdr_write()
262 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec & 0xffff); /* sec[15:0] */ in tdr_write()
263 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec >> 16); /* sec[31:16]*/ in tdr_write()
265 ext_write(bc, dev, PAGE4, PTP_CTL, cmd); in tdr_write()
332 ext_write(0, phydev, PAGE5, PTP_TRIG, ptp_trig); in periodic_output()
333 ext_write(0, phydev, PAGE4, PTP_CTL, val); in periodic_output()
346 ext_write(0, phydev, PAGE5, PTP_TRIG, ptp_trig); in periodic_output()
350 ext_write(0, phydev, PAGE4, PTP_CTL, val); in periodic_output()
351 ext_write(0, phydev, PAGE4, PTP_TDR, nsec & 0xffff); /* ns[15:0] */ in periodic_output()
352 ext_write(0, phydev, PAGE4, PTP_TDR, nsec >> 16); /* ns[31:16] */ in periodic_output()
353 ext_write(0, phydev, PAGE4, PTP_TDR, sec & 0xffff); /* sec[15:0] */ in periodic_output()
354 ext_write(0, phydev, PAGE4, PTP_TDR, sec >> 16); /* sec[31:16] */ in periodic_output()
355 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth & 0xffff); /* ns[15:0] */ in periodic_output()
356 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth >> 16); /* ns[31:16] */ in periodic_output()
359 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth & 0xffff); in periodic_output()
360 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth >> 16); in periodic_output()
366 ext_write(0, phydev, PAGE4, PTP_CTL, val); in periodic_output()
399 ext_write(1, phydev, PAGE4, PTP_RATEH, hi); in ptp_dp83640_adjfine()
400 ext_write(1, phydev, PAGE4, PTP_RATEL, lo); in ptp_dp83640_adjfine()
438 ext_write(0, phydev, PAGE4, PTP_CTL, PTP_RD_CLK); in ptp_dp83640_gettime()
511 ext_write(0, phydev, PAGE5, PTP_EVNT, evnt); in ptp_dp83640_enable()
562 ext_write(0, phydev, PAGE5, PSF_CFG0, cfg0); in enable_status_frames()
563 ext_write(0, phydev, PAGE6, PSF_CFG1, ver); in enable_status_frames()
655 ext_write(0, tmp->phydev, PAGE5, PSF_CFG0, 0); in recalibrate()
656 ext_write(0, tmp->phydev, PAGE4, PTP_CTL, PTP_ENABLE); in recalibrate()
660 ext_write(0, master, PAGE5, PSF_CFG0, 0); in recalibrate()
661 ext_write(0, master, PAGE4, PTP_CTL, PTP_ENABLE); in recalibrate()
672 ext_write(0, tmp->phydev, PAGE5, PTP_EVNT, evnt); in recalibrate()
674 ext_write(0, master, PAGE5, PTP_EVNT, evnt); in recalibrate()
682 ext_write(0, master, PAGE5, PTP_TRIG, ptp_trig); in recalibrate()
687 ext_write(0, master, PAGE4, PTP_CTL, val); in recalibrate()
692 ext_write(0, master, PAGE4, PTP_CTL, val); in recalibrate()
697 ext_write(0, master, PAGE4, PTP_CTL, val); in recalibrate()
735 ext_write(0, tmp->phydev, PAGE5, PSF_CFG0, tmp->cfg0); in recalibrate()
737 ext_write(0, master, PAGE5, PSF_CFG0, cfg0); in recalibrate()
1126 ext_write(0, phydev, PAGE4, PTP_CTL, PTP_ENABLE); in dp83640_config_init()
1297 ext_write(0, dp83640->phydev, PAGE5, PTP_TXCFG0, txcfg0); in dp83640_hwtstamp()
1298 ext_write(0, dp83640->phydev, PAGE5, PTP_RXCFG0, rxcfg0); in dp83640_hwtstamp()