Lines Matching refs:mac_mode

2013 	u32 mac_mode, lcl_adv, rmt_adv;  in tg3_adjust_link()  local
2019 mac_mode = tp->mac_mode & ~(MAC_MODE_PORT_MODE_MASK | in tg3_adjust_link()
2029 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2032 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2034 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_adjust_link()
2037 mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_adjust_link()
2050 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_adjust_link()
2052 if (mac_mode != tp->mac_mode) { in tg3_adjust_link()
2053 tp->mac_mode = mac_mode; in tg3_adjust_link()
2054 tw32_f(MAC_MODE, tp->mac_mode); in tg3_adjust_link()
4137 u32 mac_mode; in tg3_power_down_prepare() local
4151 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4155 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4157 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4159 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4161 mac_mode |= tp->mac_mode & MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4166 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4168 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4171 mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_power_down_prepare()
4177 mac_mode |= MAC_MODE_MAGIC_PKT_ENABLE; in tg3_power_down_prepare()
4180 mac_mode |= MAC_MODE_KEEP_FRAME_IN_WOL; in tg3_power_down_prepare()
4183 mac_mode |= MAC_MODE_APE_TX_EN | in tg3_power_down_prepare()
4187 tw32_f(MAC_MODE, mac_mode); in tg3_power_down_prepare()
4996 (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_setup_copper_phy()
5000 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_copper_phy()
5004 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
5006 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_copper_phy()
5008 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
5010 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_copper_phy()
5032 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5034 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5039 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5041 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5054 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_copper_phy()
5241 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5242 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5270 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5271 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5285 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5286 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5371 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5372 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5423 tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK; in fiber_autoneg()
5427 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS); in fiber_autoneg()
5443 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in fiber_autoneg()
5444 tw32_f(MAC_MODE, tp->mac_mode); in fiber_autoneg()
5707 tw32_f(MAC_MODE, (tp->mac_mode | MAC_MODE_SEND_CONFIGS)); in tg3_setup_fiber_by_hand()
5710 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_by_hand()
5749 tp->mac_mode &= ~(MAC_MODE_PORT_MODE_MASK | MAC_MODE_HALF_DUPLEX); in tg3_setup_fiber_phy()
5750 tp->mac_mode |= MAC_MODE_PORT_MODE_TBI; in tg3_setup_fiber_phy()
5751 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5789 tw32_f(MAC_MODE, (tp->mac_mode | in tg3_setup_fiber_phy()
5792 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5838 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_fiber_mii_phy()
5841 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5846 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5849 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5852 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5861 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5869 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5870 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5999 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
6001 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
6003 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
8178 tp->mac_mode &= ~(MAC_MODE_HALF_DUPLEX | in tg3_mac_loopback()
8181 tp->mac_mode |= MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8184 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8187 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_mac_loopback()
8189 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_mac_loopback()
8191 tp->mac_mode &= ~MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8196 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8199 tw32(MAC_MODE, tp->mac_mode); in tg3_mac_loopback()
8205 u32 val, bmcr, mac_mode, ptest = 0; in tg3_phy_lpbk_set() local
8271 mac_mode = tp->mac_mode & in tg3_phy_lpbk_set()
8274 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_phy_lpbk_set()
8276 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_phy_lpbk_set()
8282 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8284 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8290 tw32(MAC_MODE, mac_mode); in tg3_phy_lpbk_set()
8301 if (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK) in tg3_set_loopback()
8310 if (!(tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_set_loopback()
8892 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8916 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8917 tw32_f(MAC_MODE, tp->mac_mode); in tg3_abort_hw()
9280 tp->mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_chip_reset()
9281 val = tp->mac_mode; in tg3_chip_reset()
9283 tp->mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_chip_reset()
9284 val = tp->mac_mode; in tg3_chip_reset()
10433 tp->mac_mode |= MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE | in tg3_reset_hw()
10437 tp->mac_mode |= MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_reset_hw()
10441 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_reset_hw()
10442 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR); in tg3_reset_hw()
11069 (tp->mac_mode & in tg3_timer()
11072 tw32_f(MAC_MODE, tp->mac_mode); in tg3_timer()
16897 tp->mac_mode = MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_get_invariants()
16899 tp->mac_mode = 0; in tg3_get_invariants()