Lines Matching refs:plat
68 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_adjust_time()
80 if (priv->plat->est && priv->plat->est->enable) { in stmmac_adjust_time()
82 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time()
83 priv->plat->est->enable = false; in stmmac_adjust_time()
84 stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time()
85 priv->plat->clk_ptp_rate); in stmmac_adjust_time()
86 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time()
99 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time()
102 time.tv_nsec = priv->plat->est->btr_reserve[0]; in stmmac_adjust_time()
103 time.tv_sec = priv->plat->est->btr_reserve[1]; in stmmac_adjust_time()
105 cycle_time = (u64)priv->plat->est->ctr[1] * NSEC_PER_SEC + in stmmac_adjust_time()
106 priv->plat->est->ctr[0]; in stmmac_adjust_time()
111 priv->plat->est->btr[0] = (u32)time.tv_nsec; in stmmac_adjust_time()
112 priv->plat->est->btr[1] = (u32)time.tv_sec; in stmmac_adjust_time()
113 priv->plat->est->enable = true; in stmmac_adjust_time()
114 ret = stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time()
115 priv->plat->clk_ptp_rate); in stmmac_adjust_time()
116 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time()
204 priv->plat->ext_snapshot_en = on; in stmmac_enable()
210 acr_value |= priv->plat->ext_snapshot_num; in stmmac_enable()
213 priv->plat->ext_snapshot_num >> in stmmac_enable()
217 priv->plat->ext_snapshot_num >> in stmmac_enable()
249 if (priv->plat->crosststamp) in stmmac_get_syncdevicetime()
250 return priv->plat->crosststamp(device, system, ctx); in stmmac_get_syncdevicetime()
299 if (priv->plat->ptp_max_adj) in stmmac_ptp_register()
300 stmmac_ptp_clock_ops.max_adj = priv->plat->ptp_max_adj; in stmmac_ptp_register()