Home
last modified time | relevance | path

Searched refs:acr_value (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_ptp.c172 u32 acr_value; in stmmac_enable() local
198 acr_value = readl(ptpaddr + PTP_ACR); in stmmac_enable()
199 channel = ilog2(FIELD_GET(PTP_ACR_MASK, acr_value)); in stmmac_enable()
200 acr_value &= ~PTP_ACR_MASK; in stmmac_enable()
203 if (FIELD_GET(PTP_ACR_MASK, acr_value)) { in stmmac_enable()
214 acr_value |= PTP_ACR_ATSEN(rq->extts.index); in stmmac_enable()
215 acr_value |= PTP_ACR_ATSFC; 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()
225 !(acr_value & PTP_ACR_ATSFC), in stmmac_enable()
H A Ddwmac-intel.c317 u32 acr_value; in intel_crosststamp() local
335 acr_value = readl(ptpaddr + PTP_ACR); in intel_crosststamp()
336 acr_value &= ~PTP_ACR_MASK; in intel_crosststamp()
339 acr_value |= PTP_ACR_ATSEN0; in intel_crosststamp()
342 acr_value |= PTP_ACR_ATSEN1; in intel_crosststamp()
345 acr_value |= PTP_ACR_ATSEN2; in intel_crosststamp()
348 acr_value |= PTP_ACR_ATSEN3; in intel_crosststamp()
355 writel(acr_value, ptpaddr + PTP_ACR); in intel_crosststamp()
358 acr_value = readl(ptpaddr + PTP_ACR); in intel_crosststamp()
359 acr_value |= PTP_ACR_ATSFC; in intel_crosststamp()
[all …]
H A Dstmmac_hwtstamp.c221 u32 acr_value, channel; in timestamp_interrupt() local
247 acr_value = readl(priv->ptpaddr + PTP_ACR); in timestamp_interrupt()
248 channel = ilog2(FIELD_GET(PTP_ACR_MASK, acr_value)); in timestamp_interrupt()