Lines Matching refs:mcr_new
667 u32 mcr_cur, mcr_new; in mtk_mac_finish() local
677 mcr_new = mcr_cur; in mtk_mac_finish()
678 mcr_new |= MAC_MCR_IPG_CFG | MAC_MCR_FORCE_MODE | in mtk_mac_finish()
683 if (mcr_new != mcr_cur) in mtk_mac_finish()
684 mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id)); in mtk_mac_finish()
3637 u32 mcr_cur, mcr_new; in mtk_set_mcr_max_rx() local
3643 mcr_new = mcr_cur & ~MAC_MCR_MAX_RX_MASK; in mtk_set_mcr_max_rx()
3646 mcr_new |= MAC_MCR_MAX_RX(MAC_MCR_MAX_RX_1518); in mtk_set_mcr_max_rx()
3648 mcr_new |= MAC_MCR_MAX_RX(MAC_MCR_MAX_RX_1536); in mtk_set_mcr_max_rx()
3650 mcr_new |= MAC_MCR_MAX_RX(MAC_MCR_MAX_RX_1552); in mtk_set_mcr_max_rx()
3652 mcr_new |= MAC_MCR_MAX_RX(MAC_MCR_MAX_RX_2048); in mtk_set_mcr_max_rx()
3654 if (mcr_new != mcr_cur) in mtk_set_mcr_max_rx()
3655 mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id)); in mtk_set_mcr_max_rx()