Lines Matching refs:mac_mode
2001 u32 mac_mode, lcl_adv, rmt_adv; in tg3_adjust_link() local
2007 mac_mode = tp->mac_mode & ~(MAC_MODE_PORT_MODE_MASK | in tg3_adjust_link()
2017 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2020 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2022 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2025 mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_adjust_link()
2038 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2040 if (mac_mode != tp->mac_mode) { in tg3_adjust_link()
2041 tp->mac_mode = mac_mode; in tg3_adjust_link()
2042 tw32_f(MAC_MODE, tp->mac_mode); in tg3_adjust_link()
4125 u32 mac_mode; in tg3_power_down_prepare() local
4139 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4143 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4145 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4147 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4149 mac_mode |= tp->mac_mode & MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4154 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4156 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4159 mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_power_down_prepare()
4165 mac_mode |= MAC_MODE_MAGIC_PKT_ENABLE; in tg3_power_down_prepare()
4168 mac_mode |= MAC_MODE_KEEP_FRAME_IN_WOL; in tg3_power_down_prepare()
4171 mac_mode |= MAC_MODE_APE_TX_EN | in tg3_power_down_prepare()
4175 tw32_f(MAC_MODE, mac_mode); in tg3_power_down_prepare()
4984 (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_setup_copper_phy()
4988 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; 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()
4996 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
4998 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_copper_phy()
5020 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5022 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5027 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5029 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5042 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_copper_phy()
5229 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5230 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5258 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5259 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5273 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5274 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5359 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5360 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5411 tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK; in fiber_autoneg()
5415 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS); in fiber_autoneg()
5431 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in fiber_autoneg()
5432 tw32_f(MAC_MODE, tp->mac_mode); in fiber_autoneg()
5695 tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS)); in tg3_setup_fiber_by_hand()
5698 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_by_hand()
5737 tp->mac_mode &= ~(MAC_MODE_PORT_MODE_MASK | MAC_MODE_HALF_DUPLEX); in tg3_setup_fiber_phy()
5738 tp->mac_mode |= MAC_MODE_PORT_MODE_TBI; in tg3_setup_fiber_phy()
5739 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5777 tw32_f(MAC_MODE, (tp->mac_mode | in tg3_setup_fiber_phy()
5780 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5826 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_fiber_mii_phy()
5829 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5834 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5837 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5840 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5849 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5857 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5858 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5987 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5989 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5991 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
8161 tp->mac_mode &= ~(MAC_MODE_HALF_DUPLEX | in tg3_mac_loopback()
8164 tp->mac_mode |= MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8167 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8170 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_mac_loopback()
8172 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_mac_loopback()
8174 tp->mac_mode &= ~MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8179 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8182 tw32(MAC_MODE, tp->mac_mode); in tg3_mac_loopback()
8188 u32 val, bmcr, mac_mode, ptest = 0; in tg3_phy_lpbk_set() local
8254 mac_mode = tp->mac_mode & in tg3_phy_lpbk_set()
8257 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_phy_lpbk_set()
8259 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_phy_lpbk_set()
8265 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8267 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8273 tw32(MAC_MODE, mac_mode); in tg3_phy_lpbk_set()
8284 if (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK) in tg3_set_loopback()
8293 if (!(tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_set_loopback()
8875 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8899 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8900 tw32_f(MAC_MODE, tp->mac_mode); in tg3_abort_hw()
9263 tp->mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_chip_reset()
9264 val = tp->mac_mode; in tg3_chip_reset()
9266 tp->mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_chip_reset()
9267 val = tp->mac_mode; in tg3_chip_reset()
10416 tp->mac_mode |= MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE | in tg3_reset_hw()
10420 tp->mac_mode |= MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_reset_hw()
10424 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_reset_hw()
10425 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR); in tg3_reset_hw()
11050 (tp->mac_mode & in tg3_timer()
11053 tw32_f(MAC_MODE, tp->mac_mode); in tg3_timer()
16832 tp->mac_mode = MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_get_invariants()
16834 tp->mac_mode = 0; in tg3_get_invariants()