Lines Matching refs:mac_mode

2003 	u32 mac_mode, lcl_adv, rmt_adv;  in tg3_adjust_link()  local
2009 mac_mode = tp->mac_mode & ~(MAC_MODE_PORT_MODE_MASK | in tg3_adjust_link()
2019 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2022 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2024 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2027 mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_adjust_link()
2040 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2042 if (mac_mode != tp->mac_mode) { in tg3_adjust_link()
2043 tp->mac_mode = mac_mode; in tg3_adjust_link()
2044 tw32_f(MAC_MODE, tp->mac_mode); in tg3_adjust_link()
4128 u32 mac_mode; in tg3_power_down_prepare() local
4142 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4146 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4148 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4150 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4152 mac_mode |= tp->mac_mode & MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4157 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4159 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4162 mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_power_down_prepare()
4168 mac_mode |= MAC_MODE_MAGIC_PKT_ENABLE; in tg3_power_down_prepare()
4171 mac_mode |= MAC_MODE_KEEP_FRAME_IN_WOL; in tg3_power_down_prepare()
4174 mac_mode |= MAC_MODE_APE_TX_EN | in tg3_power_down_prepare()
4178 tw32_f(MAC_MODE, mac_mode); in tg3_power_down_prepare()
4976 (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_setup_copper_phy()
4980 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_copper_phy()
4984 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
4986 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; 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()
5012 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5014 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5019 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5021 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5034 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_copper_phy()
5221 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5222 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5250 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5251 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5265 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5266 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5351 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5352 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5403 tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK; in fiber_autoneg()
5407 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS); in fiber_autoneg()
5423 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in fiber_autoneg()
5424 tw32_f(MAC_MODE, tp->mac_mode); in fiber_autoneg()
5686 tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS)); in tg3_setup_fiber_by_hand()
5689 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_by_hand()
5728 tp->mac_mode &= ~(MAC_MODE_PORT_MODE_MASK | MAC_MODE_HALF_DUPLEX); in tg3_setup_fiber_phy()
5729 tp->mac_mode |= MAC_MODE_PORT_MODE_TBI; in tg3_setup_fiber_phy()
5730 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5767 tw32_f(MAC_MODE, (tp->mac_mode | in tg3_setup_fiber_phy()
5770 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5816 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_fiber_mii_phy()
5819 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5824 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5827 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5830 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5839 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5847 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5848 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5977 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5979 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5981 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
8266 tp->mac_mode &= ~(MAC_MODE_HALF_DUPLEX | in tg3_mac_loopback()
8269 tp->mac_mode |= MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8272 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8275 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_mac_loopback()
8277 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_mac_loopback()
8279 tp->mac_mode &= ~MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8284 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8287 tw32(MAC_MODE, tp->mac_mode); in tg3_mac_loopback()
8293 u32 val, bmcr, mac_mode, ptest = 0; in tg3_phy_lpbk_set() local
8359 mac_mode = tp->mac_mode & in tg3_phy_lpbk_set()
8362 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_phy_lpbk_set()
8364 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_phy_lpbk_set()
8370 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8372 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8378 tw32(MAC_MODE, mac_mode); in tg3_phy_lpbk_set()
8389 if (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK) in tg3_set_loopback()
8398 if (!(tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_set_loopback()
8980 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
9004 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
9005 tw32_f(MAC_MODE, tp->mac_mode); in tg3_abort_hw()
9368 tp->mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_chip_reset()
9369 val = tp->mac_mode; in tg3_chip_reset()
9371 tp->mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_chip_reset()
9372 val = tp->mac_mode; in tg3_chip_reset()
10508 tp->mac_mode |= MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE | in tg3_reset_hw()
10512 tp->mac_mode |= MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_reset_hw()
10516 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_reset_hw()
10517 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR); in tg3_reset_hw()
11142 (tp->mac_mode & in tg3_timer()
11145 tw32_f(MAC_MODE, tp->mac_mode); in tg3_timer()
16970 tp->mac_mode = MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_get_invariants()
16972 tp->mac_mode = 0; in tg3_get_invariants()