Lines Matching refs:PAGE4
262 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec & 0xffff);/* ns[15:0] */ in tdr_write()
263 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_nsec >> 16); /* ns[31:16] */ in tdr_write()
264 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec & 0xffff); /* sec[15:0] */ in tdr_write()
265 ext_write(bc, dev, PAGE4, PTP_TDR, ts->tv_sec >> 16); /* sec[31:16]*/ in tdr_write()
267 ext_write(bc, dev, PAGE4, PTP_CTL, cmd); in tdr_write()
335 ext_write(0, phydev, PAGE4, PTP_CTL, val); in periodic_output()
352 ext_write(0, phydev, PAGE4, PTP_CTL, val); in periodic_output()
353 ext_write(0, phydev, PAGE4, PTP_TDR, nsec & 0xffff); /* ns[15:0] */ in periodic_output()
354 ext_write(0, phydev, PAGE4, PTP_TDR, nsec >> 16); /* ns[31:16] */ in periodic_output()
355 ext_write(0, phydev, PAGE4, PTP_TDR, sec & 0xffff); /* sec[15:0] */ in periodic_output()
356 ext_write(0, phydev, PAGE4, PTP_TDR, sec >> 16); /* sec[31:16] */ in periodic_output()
357 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth & 0xffff); /* ns[15:0] */ in periodic_output()
358 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth >> 16); /* ns[31:16] */ in periodic_output()
361 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth & 0xffff); in periodic_output()
362 ext_write(0, phydev, PAGE4, PTP_TDR, pwidth >> 16); in periodic_output()
368 ext_write(0, phydev, PAGE4, PTP_CTL, val); in periodic_output()
401 ext_write(1, phydev, PAGE4, PTP_RATEH, hi); in ptp_dp83640_adjfreq()
402 ext_write(1, phydev, PAGE4, PTP_RATEL, lo); in ptp_dp83640_adjfreq()
439 ext_write(0, phydev, PAGE4, PTP_CTL, PTP_RD_CLK); in ptp_dp83640_gettime()
441 val[0] = ext_read(phydev, PAGE4, PTP_TDR); /* ns[15:0] */ in ptp_dp83640_gettime()
442 val[1] = ext_read(phydev, PAGE4, PTP_TDR); /* ns[31:16] */ in ptp_dp83640_gettime()
443 val[2] = ext_read(phydev, PAGE4, PTP_TDR); /* sec[15:0] */ in ptp_dp83640_gettime()
444 val[3] = ext_read(phydev, PAGE4, PTP_TDR); /* sec[31:16] */ in ptp_dp83640_gettime()
639 ext_write(0, tmp->phydev, PAGE4, PTP_CTL, PTP_ENABLE); in recalibrate()
644 ext_write(0, master, PAGE4, PTP_CTL, PTP_ENABLE); in recalibrate()
670 ext_write(0, master, PAGE4, PTP_CTL, val); in recalibrate()
675 ext_write(0, master, PAGE4, PTP_CTL, val); in recalibrate()
680 ext_write(0, master, PAGE4, PTP_CTL, val); in recalibrate()
685 val = ext_read(master, PAGE4, PTP_STS); in recalibrate()
687 val = ext_read(master, PAGE4, PTP_ESTS); in recalibrate()
689 event_ts.ns_lo = ext_read(master, PAGE4, PTP_EDATA); in recalibrate()
690 event_ts.ns_hi = ext_read(master, PAGE4, PTP_EDATA); in recalibrate()
691 event_ts.sec_lo = ext_read(master, PAGE4, PTP_EDATA); in recalibrate()
692 event_ts.sec_hi = ext_read(master, PAGE4, PTP_EDATA); in recalibrate()
697 val = ext_read(tmp->phydev, PAGE4, PTP_STS); in recalibrate()
699 val = ext_read(tmp->phydev, PAGE4, PTP_ESTS); in recalibrate()
701 event_ts.ns_lo = ext_read(tmp->phydev, PAGE4, PTP_EDATA); in recalibrate()
702 event_ts.ns_hi = ext_read(tmp->phydev, PAGE4, PTP_EDATA); in recalibrate()
703 event_ts.sec_lo = ext_read(tmp->phydev, PAGE4, PTP_EDATA); in recalibrate()
704 event_ts.sec_hi = ext_read(tmp->phydev, PAGE4, PTP_EDATA); in recalibrate()
1192 ext_write(0, phydev, PAGE4, PTP_CTL, PTP_ENABLE); in dp83640_config_init()