Searched refs:ptpaddr (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ptp.c | 34 stmmac_config_addend(priv, priv->ptpaddr, addend); in stmmac_adjust_freq() 81 stmmac_adjust_systime(priv, priv->ptpaddr, sec, nsec, neg_adj, xmac); in stmmac_adjust_time() 132 stmmac_get_systime(priv, priv->ptpaddr, &ns); in stmmac_get_time() 157 stmmac_init_systime(priv, priv->ptpaddr, ts->tv_sec, ts->tv_nsec); in stmmac_set_time() 168 void __iomem *ptpaddr = priv->ptpaddr; in stmmac_enable() local 198 acr_value = readl(ptpaddr + PTP_ACR); in stmmac_enable() 221 writel(acr_value, ptpaddr + PTP_ACR); in stmmac_enable() 224 ret = readl_poll_timeout(ptpaddr + PTP_ACR, acr_value, in stmmac_enable()
|
H A D | stmmac_hwtstamp.c | 65 void __iomem *ioaddr = priv->ptpaddr; in hwtstamp_correct_latency() 207 static void get_ptptime(void __iomem *ptpaddr, u64 *ptp_time) in get_ptptime() argument 211 ns = readl(ptpaddr + PTP_ATNR); in get_ptptime() 212 ns += readl(ptpaddr + PTP_ATSR) * NSEC_PER_SEC; in get_ptptime() 247 acr_value = readl(priv->ptpaddr + PTP_ACR); in timestamp_interrupt() 252 get_ptptime(priv->ptpaddr, &ptp_time); in timestamp_interrupt()
|
H A D | dwmac-intel.c | 310 void __iomem *ptpaddr = priv->ptpaddr; in intel_crosststamp() local 335 acr_value = readl(ptpaddr + PTP_ACR); in intel_crosststamp() 355 writel(acr_value, ptpaddr + PTP_ACR); in intel_crosststamp() 358 acr_value = readl(ptpaddr + PTP_ACR); in intel_crosststamp() 360 writel(acr_value, ptpaddr + PTP_ACR); in intel_crosststamp() 389 stmmac_get_ptptime(priv, ptpaddr, &ptp_time); in intel_crosststamp()
|
H A D | hwif.c | 309 priv->ptpaddr = priv->ioaddr + in stmmac_hwif_init() 356 priv->ptpaddr = priv->ioaddr + entry->regs.ptp_off; in stmmac_hwif_init()
|
H A D | stmmac.h | 342 void __iomem *ptpaddr; member
|
H A D | stmmac_selftests.c | 1784 stmmac_get_systime(priv, priv->ptpaddr, &curr_time); in stmmac_test_tbs() 1806 stmmac_get_systime(priv, priv->ptpaddr, &curr_time); in stmmac_test_tbs()
|
H A D | stmmac_main.c | 789 stmmac_config_hw_tstamping(priv, priv->ptpaddr, priv->systime_flags); in stmmac_hwtstamp_set() 838 stmmac_config_hw_tstamping(priv, priv->ptpaddr, systime_flags); in stmmac_init_tstamp_counter() 842 stmmac_config_sub_second_increment(priv, priv->ptpaddr, in stmmac_init_tstamp_counter() 857 stmmac_config_addend(priv, priv->ptpaddr, priv->default_addend); in stmmac_init_tstamp_counter() 863 stmmac_init_systime(priv, priv->ptpaddr, (u32)now.tv_sec, now.tv_nsec); in stmmac_init_tstamp_counter()
|