Lines Matching refs:fpe_cfg

971 	struct stmmac_fpe_cfg *fpe_cfg = &priv->fpe_cfg;  in stmmac_fpe_link_state_handle()  local
974 timer_shutdown_sync(&fpe_cfg->verify_timer); in stmmac_fpe_link_state_handle()
976 spin_lock_irqsave(&fpe_cfg->lock, flags); in stmmac_fpe_link_state_handle()
978 if (is_up && fpe_cfg->pmac_enabled) { in stmmac_fpe_link_state_handle()
980 stmmac_fpe_configure(priv, priv->ioaddr, fpe_cfg, in stmmac_fpe_link_state_handle()
989 stmmac_fpe_configure(priv, priv->ioaddr, fpe_cfg, in stmmac_fpe_link_state_handle()
995 spin_unlock_irqrestore(&fpe_cfg->lock, flags); in stmmac_fpe_link_state_handle()
4073 timer_shutdown_sync(&priv->fpe_cfg.verify_timer); in stmmac_release()
5971 struct stmmac_fpe_cfg *fpe_cfg = &priv->fpe_cfg; in stmmac_fpe_event_status() local
5974 spin_lock(&fpe_cfg->lock); in stmmac_fpe_event_status()
5976 if (!fpe_cfg->pmac_enabled || status == FPE_EVENT_UNKNOWN) in stmmac_fpe_event_status()
5981 stmmac_fpe_send_mpacket(priv, priv->ioaddr, fpe_cfg, in stmmac_fpe_event_status()
5986 fpe_cfg->status != ETHTOOL_MM_VERIFY_STATUS_SUCCEEDED) in stmmac_fpe_event_status()
5987 fpe_cfg->status = ETHTOOL_MM_VERIFY_STATUS_VERIFYING; in stmmac_fpe_event_status()
5991 fpe_cfg->status == ETHTOOL_MM_VERIFY_STATUS_VERIFYING) in stmmac_fpe_event_status()
5992 fpe_cfg->status = ETHTOOL_MM_VERIFY_STATUS_SUCCEEDED; in stmmac_fpe_event_status()
5995 spin_unlock(&fpe_cfg->lock); in stmmac_fpe_event_status()
7363 struct stmmac_fpe_cfg *fpe_cfg = from_timer(fpe_cfg, t, verify_timer); in stmmac_fpe_verify_timer() local
7364 struct stmmac_priv *priv = container_of(fpe_cfg, struct stmmac_priv, in stmmac_fpe_verify_timer()
7365 fpe_cfg); in stmmac_fpe_verify_timer()
7369 spin_lock_irqsave(&fpe_cfg->lock, flags); in stmmac_fpe_verify_timer()
7371 switch (fpe_cfg->status) { in stmmac_fpe_verify_timer()
7374 if (fpe_cfg->verify_retries != 0) { in stmmac_fpe_verify_timer()
7376 fpe_cfg, MPACKET_VERIFY); in stmmac_fpe_verify_timer()
7379 fpe_cfg->status = ETHTOOL_MM_VERIFY_STATUS_FAILED; in stmmac_fpe_verify_timer()
7382 fpe_cfg->verify_retries--; in stmmac_fpe_verify_timer()
7386 stmmac_fpe_configure(priv, priv->ioaddr, fpe_cfg, in stmmac_fpe_verify_timer()
7397 mod_timer(&fpe_cfg->verify_timer, in stmmac_fpe_verify_timer()
7398 jiffies + msecs_to_jiffies(fpe_cfg->verify_time)); in stmmac_fpe_verify_timer()
7401 spin_unlock_irqrestore(&fpe_cfg->lock, flags); in stmmac_fpe_verify_timer()
7404 static void stmmac_fpe_verify_timer_arm(struct stmmac_fpe_cfg *fpe_cfg) in stmmac_fpe_verify_timer_arm() argument
7406 if (fpe_cfg->pmac_enabled && fpe_cfg->tx_enabled && in stmmac_fpe_verify_timer_arm()
7407 fpe_cfg->verify_enabled && in stmmac_fpe_verify_timer_arm()
7408 fpe_cfg->status != ETHTOOL_MM_VERIFY_STATUS_FAILED && in stmmac_fpe_verify_timer_arm()
7409 fpe_cfg->status != ETHTOOL_MM_VERIFY_STATUS_SUCCEEDED) { in stmmac_fpe_verify_timer_arm()
7410 timer_setup(&fpe_cfg->verify_timer, stmmac_fpe_verify_timer, 0); in stmmac_fpe_verify_timer_arm()
7411 mod_timer(&fpe_cfg->verify_timer, jiffies); in stmmac_fpe_verify_timer_arm()
7417 struct stmmac_fpe_cfg *fpe_cfg = &priv->fpe_cfg; in stmmac_fpe_apply() local
7422 if (!fpe_cfg->verify_enabled) { in stmmac_fpe_apply()
7423 stmmac_fpe_configure(priv, priv->ioaddr, fpe_cfg, in stmmac_fpe_apply()
7426 fpe_cfg->tx_enabled, in stmmac_fpe_apply()
7427 fpe_cfg->pmac_enabled); in stmmac_fpe_apply()
7429 fpe_cfg->status = ETHTOOL_MM_VERIFY_STATUS_INITIAL; in stmmac_fpe_apply()
7430 fpe_cfg->verify_retries = STMMAC_FPE_MM_MAX_VERIFY_RETRIES; in stmmac_fpe_apply()
7433 stmmac_fpe_verify_timer_arm(fpe_cfg); in stmmac_fpe_apply()
7715 priv->fpe_cfg.verify_retries = STMMAC_FPE_MM_MAX_VERIFY_RETRIES; in stmmac_dvr_probe()
7716 priv->fpe_cfg.verify_time = STMMAC_FPE_MM_MAX_VERIFY_TIME_MS; in stmmac_dvr_probe()
7717 priv->fpe_cfg.status = ETHTOOL_MM_VERIFY_STATUS_DISABLED; in stmmac_dvr_probe()
7718 timer_setup(&priv->fpe_cfg.verify_timer, stmmac_fpe_verify_timer, 0); in stmmac_dvr_probe()
7719 spin_lock_init(&priv->fpe_cfg.lock); in stmmac_dvr_probe()
7895 timer_shutdown_sync(&priv->fpe_cfg.verify_timer); in stmmac_suspend()