Lines Matching refs:plat

59 	xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac;  in stmmac_adjust_time()
71 if (priv->plat->est && priv->plat->est->enable) { in stmmac_adjust_time()
73 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time()
74 priv->plat->est->enable = false; in stmmac_adjust_time()
75 stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time()
76 priv->plat->clk_ptp_rate); in stmmac_adjust_time()
77 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time()
90 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time()
93 time.tv_nsec = priv->plat->est->btr_reserve[0]; in stmmac_adjust_time()
94 time.tv_sec = priv->plat->est->btr_reserve[1]; in stmmac_adjust_time()
96 cycle_time = (u64)priv->plat->est->ctr[1] * NSEC_PER_SEC + in stmmac_adjust_time()
97 priv->plat->est->ctr[0]; in stmmac_adjust_time()
102 priv->plat->est->btr[0] = (u32)time.tv_nsec; in stmmac_adjust_time()
103 priv->plat->est->btr[1] = (u32)time.tv_sec; in stmmac_adjust_time()
104 priv->plat->est->enable = true; in stmmac_adjust_time()
105 ret = stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time()
106 priv->plat->clk_ptp_rate); in stmmac_adjust_time()
107 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time()
195 priv->plat->ext_snapshot_en = on; in stmmac_enable()
201 acr_value |= priv->plat->ext_snapshot_num; in stmmac_enable()
204 priv->plat->ext_snapshot_num >> in stmmac_enable()
208 priv->plat->ext_snapshot_num >> in stmmac_enable()
240 if (priv->plat->crosststamp) in stmmac_get_syncdevicetime()
241 return priv->plat->crosststamp(device, system, ctx); in stmmac_get_syncdevicetime()
290 if (priv->plat->ptp_max_adj) in stmmac_ptp_register()
291 stmmac_ptp_clock_ops.max_adj = priv->plat->ptp_max_adj; in stmmac_ptp_register()
294 priv->plat->cdc_error_adj = 0; in stmmac_ptp_register()
295 if (priv->plat->has_gmac4 && priv->plat->clk_ptp_rate) in stmmac_ptp_register()
296 priv->plat->cdc_error_adj = (2 * NSEC_PER_SEC) / priv->plat->clk_ptp_rate; in stmmac_ptp_register()