Home
last modified time | relevance | path

Searched refs:ptpaddr (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ !
Dstmmac_ptp.c43 stmmac_config_addend(priv, priv->ptpaddr, addend); in stmmac_adjust_freq()
90 stmmac_adjust_systime(priv, priv->ptpaddr, sec, nsec, neg_adj, xmac); in stmmac_adjust_time()
141 stmmac_get_systime(priv, priv->ptpaddr, &ns); in stmmac_get_time()
166 stmmac_init_systime(priv, priv->ptpaddr, ts->tv_sec, ts->tv_nsec); in stmmac_set_time()
177 void __iomem *ptpaddr = priv->ptpaddr; in stmmac_enable() local
206 acr_value = readl(ptpaddr + PTP_ACR); in stmmac_enable()
220 writel(acr_value, ptpaddr + PTP_ACR); in stmmac_enable()
223 ret = readl_poll_timeout(ptpaddr + PTP_ACR, acr_value, in stmmac_enable()
Dstmmac_hwtstamp.c165 static void get_ptptime(void __iomem *ptpaddr, u64 *ptp_time) in get_ptptime() argument
169 ns = readl(ptpaddr + PTP_ATNR); in get_ptptime()
170 ns += readl(ptpaddr + PTP_ATSR) * NSEC_PER_SEC; in get_ptptime()
206 get_ptptime(priv->ptpaddr, &ptp_time); in timestamp_interrupt()
Ddwmac-intel.c312 void __iomem *ptpaddr = priv->ptpaddr; in intel_crosststamp() local
337 acr_value = readl(ptpaddr + PTP_ACR); in intel_crosststamp()
357 writel(acr_value, ptpaddr + PTP_ACR); in intel_crosststamp()
360 acr_value = readl(ptpaddr + PTP_ACR); in intel_crosststamp()
362 writel(acr_value, ptpaddr + PTP_ACR); in intel_crosststamp()
391 stmmac_get_ptptime(priv, ptpaddr, &ptp_time); in intel_crosststamp()
Dhwif.c282 priv->ptpaddr = priv->ioaddr + in stmmac_hwif_init()
324 priv->ptpaddr = priv->ioaddr + entry->regs.ptp_off; in stmmac_hwif_init()
Dstmmac.h277 void __iomem *ptpaddr; member
Dstmmac_selftests.c1784 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()
Dstmmac_main.c795 stmmac_config_hw_tstamping(priv, priv->ptpaddr, priv->systime_flags); in stmmac_hwtstamp_set()
844 stmmac_config_hw_tstamping(priv, priv->ptpaddr, systime_flags); in stmmac_init_tstamp_counter()
848 stmmac_config_sub_second_increment(priv, priv->ptpaddr, in stmmac_init_tstamp_counter()
863 stmmac_config_addend(priv, priv->ptpaddr, priv->default_addend); in stmmac_init_tstamp_counter()
869 stmmac_init_systime(priv, priv->ptpaddr, (u32)now.tv_sec, now.tv_nsec); in stmmac_init_tstamp_counter()