Searched refs:mcr_new (Results 1 – 2 of 2) sorted by relevance
667 u32 mcr_cur, mcr_new; in mtk_mac_finish() local677 mcr_new = mcr_cur; in mtk_mac_finish()678 mcr_new |= MAC_MCR_IPG_CFG | MAC_MCR_FORCE_MODE | in mtk_mac_finish()682 if (mcr_new != mcr_cur) in mtk_mac_finish()683 mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id)); in mtk_mac_finish()3636 u32 mcr_cur, mcr_new; in mtk_set_mcr_max_rx() local3642 mcr_new = mcr_cur & ~MAC_MCR_MAX_RX_MASK; in mtk_set_mcr_max_rx()3645 mcr_new |= MAC_MCR_MAX_RX(MAC_MCR_MAX_RX_1518); in mtk_set_mcr_max_rx()3647 mcr_new |= MAC_MCR_MAX_RX(MAC_MCR_MAX_RX_1536); in mtk_set_mcr_max_rx()3649 mcr_new |= MAC_MCR_MAX_RX(MAC_MCR_MAX_RX_1552); in mtk_set_mcr_max_rx()[all …]
2981 u32 mcr_cur, mcr_new; in mt753x_phylink_mac_config() local3018 mcr_new = mcr_cur; in mt753x_phylink_mac_config()3019 mcr_new &= ~PMCR_LINK_SETTINGS_MASK; in mt753x_phylink_mac_config()3020 mcr_new |= PMCR_IFG_XMIT(1) | PMCR_MAC_MODE | PMCR_BACKOFF_EN | in mt753x_phylink_mac_config()3025 mcr_new |= PMCR_EXT_PHY; in mt753x_phylink_mac_config()3027 if (mcr_new != mcr_cur) in mt753x_phylink_mac_config()3028 mt7530_write(priv, MT7530_PMCR_P(port), mcr_new); in mt753x_phylink_mac_config()