Lines Matching refs:est
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()
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()
116 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time()