Lines Matching refs:mac_mode
2005 u32 mac_mode, lcl_adv, rmt_adv; in tg3_adjust_link() local
2011 mac_mode = tp->mac_mode & ~(MAC_MODE_PORT_MODE_MASK | in tg3_adjust_link()
2021 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2024 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2026 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2029 mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_adjust_link()
2042 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2044 if (mac_mode != tp->mac_mode) { in tg3_adjust_link()
2045 tp->mac_mode = mac_mode; in tg3_adjust_link()
2046 tw32_f(MAC_MODE, tp->mac_mode); in tg3_adjust_link()
4121 u32 mac_mode; in tg3_power_down_prepare() local
4135 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4139 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4141 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4143 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4145 mac_mode |= tp->mac_mode & MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4150 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4152 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4155 mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_power_down_prepare()
4161 mac_mode |= MAC_MODE_MAGIC_PKT_ENABLE; in tg3_power_down_prepare()
4164 mac_mode |= MAC_MODE_KEEP_FRAME_IN_WOL; in tg3_power_down_prepare()
4167 mac_mode |= MAC_MODE_APE_TX_EN | in tg3_power_down_prepare()
4171 tw32_f(MAC_MODE, mac_mode); in tg3_power_down_prepare()
4980 (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_setup_copper_phy()
4984 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_copper_phy()
4988 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
4990 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_copper_phy()
4992 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
4994 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_copper_phy()
5016 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5018 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5023 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5025 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5038 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_copper_phy()
5225 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5226 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5254 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5255 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5269 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5270 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5355 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5356 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5407 tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK; in fiber_autoneg()
5411 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS); in fiber_autoneg()
5427 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in fiber_autoneg()
5428 tw32_f(MAC_MODE, tp->mac_mode); in fiber_autoneg()
5691 tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS)); in tg3_setup_fiber_by_hand()
5694 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_by_hand()
5733 tp->mac_mode &= ~(MAC_MODE_PORT_MODE_MASK | MAC_MODE_HALF_DUPLEX); in tg3_setup_fiber_phy()
5734 tp->mac_mode |= MAC_MODE_PORT_MODE_TBI; in tg3_setup_fiber_phy()
5735 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5773 tw32_f(MAC_MODE, (tp->mac_mode | in tg3_setup_fiber_phy()
5776 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5822 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_fiber_mii_phy()
5825 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5830 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5833 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5836 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5845 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5853 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5854 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5983 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5985 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5987 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
8154 tp->mac_mode &= ~(MAC_MODE_HALF_DUPLEX | in tg3_mac_loopback()
8157 tp->mac_mode |= MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8160 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8163 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_mac_loopback()
8165 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_mac_loopback()
8167 tp->mac_mode &= ~MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8172 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8175 tw32(MAC_MODE, tp->mac_mode); in tg3_mac_loopback()
8181 u32 val, bmcr, mac_mode, ptest = 0; in tg3_phy_lpbk_set() local
8247 mac_mode = tp->mac_mode & in tg3_phy_lpbk_set()
8250 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_phy_lpbk_set()
8252 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_phy_lpbk_set()
8258 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8260 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8266 tw32(MAC_MODE, mac_mode); in tg3_phy_lpbk_set()
8277 if (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK) in tg3_set_loopback()
8286 if (!(tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_set_loopback()
8867 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8891 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8892 tw32_f(MAC_MODE, tp->mac_mode); in tg3_abort_hw()
9255 tp->mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_chip_reset()
9256 val = tp->mac_mode; in tg3_chip_reset()
9258 tp->mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_chip_reset()
9259 val = tp->mac_mode; in tg3_chip_reset()
10408 tp->mac_mode |= MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE | in tg3_reset_hw()
10412 tp->mac_mode |= MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_reset_hw()
10416 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_reset_hw()
10417 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR); in tg3_reset_hw()
11027 (tp->mac_mode & in tg3_timer()
11030 tw32_f(MAC_MODE, tp->mac_mode); in tg3_timer()
16875 tp->mac_mode = MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_get_invariants()
16877 tp->mac_mode = 0; in tg3_get_invariants()