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()
4126 u32 mac_mode; in tg3_power_down_prepare() local
4140 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4144 mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_power_down_prepare()
4146 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4148 mac_mode = MAC_MODE_PORT_MODE_MII; in tg3_power_down_prepare()
4150 mac_mode |= tp->mac_mode & MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4155 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4157 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_power_down_prepare()
4160 mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_power_down_prepare()
4166 mac_mode |= MAC_MODE_MAGIC_PKT_ENABLE; in tg3_power_down_prepare()
4169 mac_mode |= MAC_MODE_KEEP_FRAME_IN_WOL; in tg3_power_down_prepare()
4172 mac_mode |= MAC_MODE_APE_TX_EN | in tg3_power_down_prepare()
4176 tw32_f(MAC_MODE, mac_mode); in tg3_power_down_prepare()
4985 (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_setup_copper_phy()
4989 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_copper_phy()
4993 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
4995 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_copper_phy()
4997 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_copper_phy()
4999 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_copper_phy()
5021 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5023 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_copper_phy()
5028 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5030 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_setup_copper_phy()
5043 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_copper_phy()
5230 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5231 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5259 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5260 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5274 tp->mac_mode |= MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5275 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5360 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in tg3_fiber_aneg_smachine()
5361 tw32_f(MAC_MODE, tp->mac_mode); in tg3_fiber_aneg_smachine()
5412 tmp = tp->mac_mode & ~MAC_MODE_PORT_MODE_MASK; in fiber_autoneg()
5416 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_SEND_CONFIGS); in fiber_autoneg()
5432 tp->mac_mode &= ~MAC_MODE_SEND_CONFIGS; in fiber_autoneg()
5433 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()
5776 tw32_f(MAC_MODE, (tp->mac_mode | in tg3_setup_fiber_phy()
5779 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_phy()
5825 tp->mac_mode &= ~MAC_MODE_PORT_MODE_MASK; in tg3_setup_fiber_mii_phy()
5828 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5833 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5836 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5839 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_setup_fiber_mii_phy()
5848 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5856 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_setup_fiber_mii_phy()
5857 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
5986 tp->mac_mode &= ~MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5988 tp->mac_mode |= MAC_MODE_HALF_DUPLEX; in tg3_setup_fiber_mii_phy()
5990 tw32_f(MAC_MODE, tp->mac_mode); in tg3_setup_fiber_mii_phy()
8152 tp->mac_mode &= ~(MAC_MODE_HALF_DUPLEX | in tg3_mac_loopback()
8155 tp->mac_mode |= MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8158 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8161 tp->mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_mac_loopback()
8163 tp->mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_mac_loopback()
8165 tp->mac_mode &= ~MAC_MODE_PORT_INT_LPBACK; in tg3_mac_loopback()
8170 tp->mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_mac_loopback()
8173 tw32(MAC_MODE, tp->mac_mode); in tg3_mac_loopback()
8179 u32 val, bmcr, mac_mode, ptest = 0; in tg3_phy_lpbk_set() local
8245 mac_mode = tp->mac_mode & in tg3_phy_lpbk_set()
8248 mac_mode |= MAC_MODE_PORT_MODE_GMII; in tg3_phy_lpbk_set()
8250 mac_mode |= MAC_MODE_PORT_MODE_MII; in tg3_phy_lpbk_set()
8256 mac_mode &= ~MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8258 mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_phy_lpbk_set()
8264 tw32(MAC_MODE, mac_mode); in tg3_phy_lpbk_set()
8275 if (tp->mac_mode & MAC_MODE_PORT_INT_LPBACK) in tg3_set_loopback()
8284 if (!(tp->mac_mode & MAC_MODE_PORT_INT_LPBACK)) in tg3_set_loopback()
8866 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8890 tp->mac_mode &= ~MAC_MODE_TDE_ENABLE; in tg3_abort_hw()
8891 tw32_f(MAC_MODE, tp->mac_mode); in tg3_abort_hw()
9254 tp->mac_mode = MAC_MODE_PORT_MODE_TBI; in tg3_chip_reset()
9255 val = tp->mac_mode; in tg3_chip_reset()
9257 tp->mac_mode = MAC_MODE_PORT_MODE_GMII; in tg3_chip_reset()
9258 val = tp->mac_mode; in tg3_chip_reset()
10406 tp->mac_mode |= MAC_MODE_TXSTAT_ENABLE | MAC_MODE_RXSTAT_ENABLE | in tg3_reset_hw()
10410 tp->mac_mode |= MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_reset_hw()
10414 tp->mac_mode |= MAC_MODE_LINK_POLARITY; in tg3_reset_hw()
10415 tw32_f(MAC_MODE, tp->mac_mode | MAC_MODE_RXSTAT_CLEAR | MAC_MODE_TXSTAT_CLEAR); in tg3_reset_hw()
11040 (tp->mac_mode & in tg3_timer()
11043 tw32_f(MAC_MODE, tp->mac_mode); in tg3_timer()
16821 tp->mac_mode = MAC_MODE_APE_TX_EN | MAC_MODE_APE_RX_EN; in tg3_get_invariants()
16823 tp->mac_mode = 0; in tg3_get_invariants()