Lines Matching refs:link_config

1876 			    (tp->link_config.active_speed == SPEED_1000 ?  in tg3_link_report()
1878 (tp->link_config.active_speed == SPEED_100 ? in tg3_link_report()
1880 (tp->link_config.active_duplex == DUPLEX_FULL ? in tg3_link_report()
1884 (tp->link_config.active_flowctrl & FLOW_CTRL_TX) ? in tg3_link_report()
1886 (tp->link_config.active_flowctrl & FLOW_CTRL_RX) ? in tg3_link_report()
1969 autoneg = tp->link_config.autoneg; in tg3_setup_flow_control()
1977 flowctrl = tp->link_config.flowctrl; in tg3_setup_flow_control()
1979 tp->link_config.active_flowctrl = flowctrl; in tg3_setup_flow_control()
2010 oldflowctrl = tp->link_config.active_flowctrl; in tg3_adjust_link()
2028 tp->link_config.flowctrl); in tg3_adjust_link()
2067 phydev->speed != tp->link_config.active_speed || in tg3_adjust_link()
2068 phydev->duplex != tp->link_config.active_duplex || in tg3_adjust_link()
2069 oldflowctrl != tp->link_config.active_flowctrl) in tg3_adjust_link()
2073 tp->link_config.active_speed = phydev->speed; in tg3_adjust_link()
2074 tp->link_config.active_duplex = phydev->duplex; in tg3_adjust_link()
2139 phydev->speed = tp->link_config.speed; in tg3_phy_start()
2140 phydev->duplex = tp->link_config.duplex; in tg3_phy_start()
2141 phydev->autoneg = tp->link_config.autoneg; in tg3_phy_start()
2143 phydev->advertising, tp->link_config.advertising); in tg3_phy_start()
2389 if (tp->link_config.autoneg == AUTONEG_ENABLE && in tg3_phy_eee_adjust()
2391 tp->link_config.active_duplex == DUPLEX_FULL && in tg3_phy_eee_adjust()
2392 (tp->link_config.active_speed == SPEED_100 || in tg3_phy_eee_adjust()
2393 tp->link_config.active_speed == SPEED_1000)) { in tg3_phy_eee_adjust()
2396 if (tp->link_config.active_speed == SPEED_1000) in tg3_phy_eee_adjust()
2424 if (tp->link_config.active_speed == SPEED_1000 && in tg3_phy_eee_enable()
4052 tp->link_config.speed = phydev->speed; in tg3_power_down_prepare()
4053 tp->link_config.duplex = phydev->duplex; in tg3_power_down_prepare()
4054 tp->link_config.autoneg = phydev->autoneg; in tg3_power_down_prepare()
4056 &tp->link_config.advertising, in tg3_power_down_prepare()
4143 if (tp->link_config.active_speed == SPEED_1000) in tg3_power_down_prepare()
4407 if (tp->link_config.autoneg == AUTONEG_ENABLE || in tg3_phy_copper_begin()
4427 adv = tp->link_config.advertising; in tg3_phy_copper_begin()
4432 fc = tp->link_config.flowctrl; in tg3_phy_copper_begin()
4452 tp->link_config.active_speed = tp->link_config.speed; in tg3_phy_copper_begin()
4453 tp->link_config.active_duplex = tp->link_config.duplex; in tg3_phy_copper_begin()
4464 switch (tp->link_config.speed) { in tg3_phy_copper_begin()
4478 if (tp->link_config.duplex == DUPLEX_FULL) in tg3_phy_copper_begin()
4512 tp->link_config.autoneg = AUTONEG_DISABLE; in tg3_phy_pull_config()
4513 tp->link_config.advertising = 0; in tg3_phy_pull_config()
4523 tp->link_config.speed = SPEED_10; in tg3_phy_pull_config()
4529 tp->link_config.speed = SPEED_100; in tg3_phy_pull_config()
4533 tp->link_config.speed = SPEED_1000; in tg3_phy_pull_config()
4542 tp->link_config.duplex = DUPLEX_FULL; in tg3_phy_pull_config()
4544 tp->link_config.duplex = DUPLEX_HALF; in tg3_phy_pull_config()
4546 tp->link_config.flowctrl = FLOW_CTRL_RX | FLOW_CTRL_TX; in tg3_phy_pull_config()
4552 tp->link_config.autoneg = AUTONEG_ENABLE; in tg3_phy_pull_config()
4553 tp->link_config.advertising = ADVERTISED_Autoneg; in tg3_phy_pull_config()
4564 tp->link_config.advertising |= adv | ADVERTISED_TP; in tg3_phy_pull_config()
4566 tp->link_config.flowctrl = tg3_decode_flowctrl_1000T(val); in tg3_phy_pull_config()
4568 tp->link_config.advertising |= ADVERTISED_FIBRE; in tg3_phy_pull_config()
4586 tp->link_config.flowctrl = adv; in tg3_phy_pull_config()
4592 tp->link_config.advertising |= adv; in tg3_phy_pull_config()
4645 advertising = tp->link_config.advertising; in tg3_phy_copper_an_config_ok()
4649 if (tp->link_config.active_duplex == DUPLEX_FULL) { in tg3_phy_copper_an_config_ok()
4650 tgtadv |= mii_advertise_flowctrl(tp->link_config.flowctrl); in tg3_phy_copper_an_config_ok()
4702 tp->link_config.rmt_adv = lpeth; in tg3_phy_copper_fetch_rmtadv()
4831 tp->link_config.active_speed == SPEED_1000) { in tg3_setup_copper_phy()
4870 tp->link_config.rmt_adv = 0; in tg3_setup_copper_phy()
4921 tp->link_config.active_speed = current_speed; in tg3_setup_copper_phy()
4922 tp->link_config.active_duplex = current_duplex; in tg3_setup_copper_phy()
4924 if (tp->link_config.autoneg == AUTONEG_ENABLE) { in tg3_setup_copper_phy()
4945 tp->link_config.speed == current_speed && in tg3_setup_copper_phy()
4946 tp->link_config.duplex == current_duplex) { in tg3_setup_copper_phy()
4952 tp->link_config.active_duplex == DUPLEX_FULL) { in tg3_setup_copper_phy()
4979 tp->link_config.active_speed = current_speed; in tg3_setup_copper_phy()
4980 tp->link_config.active_duplex = current_duplex; in tg3_setup_copper_phy()
4991 if (tp->link_config.active_speed == SPEED_100 || in tg3_setup_copper_phy()
4992 tp->link_config.active_speed == SPEED_10) in tg3_setup_copper_phy()
5008 if (tp->link_config.active_speed == SPEED_10) in tg3_setup_copper_phy()
5010 else if (tp->link_config.active_speed == SPEED_100) in tg3_setup_copper_phy()
5013 else if (tp->link_config.active_speed == SPEED_1000) in tg3_setup_copper_phy()
5022 if (tp->link_config.active_duplex == DUPLEX_HALF) in tg3_setup_copper_phy()
5027 tg3_5700_link_polarity(tp, tp->link_config.active_speed)) in tg3_setup_copper_phy()
5058 tp->link_config.active_speed == SPEED_1000 && in tg3_setup_copper_phy()
5072 if (tp->link_config.active_speed == SPEED_100 || in tg3_setup_copper_phy()
5073 tp->link_config.active_speed == SPEED_10) in tg3_setup_copper_phy()
5253 flowctrl = tg3_advert_flowctrl_1000X(tp->link_config.flowctrl); in tg3_fiber_aneg_smachine()
5523 if (tp->link_config.autoneg != AUTONEG_ENABLE) { in tg3_setup_fiber_hw_autoneg()
5547 flowctrl = tg3_advert_flowctrl_1000X(tp->link_config.flowctrl); in tg3_setup_fiber_hw_autoneg()
5591 tp->link_config.rmt_adv = in tg3_setup_fiber_hw_autoneg()
5648 if (tp->link_config.autoneg == AUTONEG_ENABLE) { in tg3_setup_fiber_by_hand()
5665 tp->link_config.rmt_adv = in tg3_setup_fiber_by_hand()
5715 orig_pause_cfg = tp->link_config.active_flowctrl; in tg3_setup_fiber_phy()
5716 orig_active_speed = tp->link_config.active_speed; in tg3_setup_fiber_phy()
5717 orig_active_duplex = tp->link_config.active_duplex; in tg3_setup_fiber_phy()
5749 tp->link_config.rmt_adv = 0; in tg3_setup_fiber_phy()
5774 if (tp->link_config.autoneg == AUTONEG_ENABLE && in tg3_setup_fiber_phy()
5784 tp->link_config.active_speed = SPEED_1000; in tg3_setup_fiber_phy()
5785 tp->link_config.active_duplex = DUPLEX_FULL; in tg3_setup_fiber_phy()
5790 tp->link_config.active_speed = SPEED_UNKNOWN; in tg3_setup_fiber_phy()
5791 tp->link_config.active_duplex = DUPLEX_UNKNOWN; in tg3_setup_fiber_phy()
5798 u32 now_pause_cfg = tp->link_config.active_flowctrl; in tg3_setup_fiber_phy()
5800 orig_active_speed != tp->link_config.active_speed || in tg3_setup_fiber_phy()
5801 orig_active_duplex != tp->link_config.active_duplex) in tg3_setup_fiber_phy()
5865 tp->link_config.rmt_adv = 0; in tg3_setup_fiber_mii_phy()
5878 if ((tp->link_config.autoneg == AUTONEG_ENABLE) && !force_reset && in tg3_setup_fiber_mii_phy()
5881 } else if (tp->link_config.autoneg == AUTONEG_ENABLE) { in tg3_setup_fiber_mii_phy()
5890 newadv |= tg3_advert_flowctrl_1000X(tp->link_config.flowctrl); in tg3_setup_fiber_mii_phy()
5891 newadv |= ethtool_adv_to_mii_adv_x(tp->link_config.advertising); in tg3_setup_fiber_mii_phy()
5910 if (tp->link_config.duplex == DUPLEX_FULL) in tg3_setup_fiber_mii_phy()
5972 tp->link_config.rmt_adv = in tg3_setup_fiber_mii_phy()
5987 if (tp->link_config.active_duplex == DUPLEX_HALF) in tg3_setup_fiber_mii_phy()
5995 tp->link_config.active_speed = current_speed; in tg3_setup_fiber_mii_phy()
5996 tp->link_config.active_duplex = current_duplex; in tg3_setup_fiber_mii_phy()
6011 (tp->link_config.autoneg == AUTONEG_ENABLE)) { in tg3_serdes_parallel_detect()
6041 (tp->link_config.autoneg == AUTONEG_ENABLE) && in tg3_serdes_parallel_detect()
6098 if (tp->link_config.active_speed == SPEED_1000 && in tg3_setup_phy()
6099 tp->link_config.active_duplex == DUPLEX_HALF) in tg3_setup_phy()
12166 advertising = tp->link_config.advertising; in tg3_get_link_ksettings()
12168 if (tp->link_config.flowctrl & FLOW_CTRL_RX) { in tg3_get_link_ksettings()
12169 if (tp->link_config.flowctrl & FLOW_CTRL_TX) { in tg3_get_link_ksettings()
12175 } else if (tp->link_config.flowctrl & FLOW_CTRL_TX) { in tg3_get_link_ksettings()
12183 cmd->base.speed = tp->link_config.active_speed; in tg3_get_link_ksettings()
12184 cmd->base.duplex = tp->link_config.active_duplex; in tg3_get_link_ksettings()
12187 tp->link_config.rmt_adv); in tg3_get_link_ksettings()
12201 cmd->base.autoneg = tp->link_config.autoneg; in tg3_get_link_ksettings()
12277 tp->link_config.autoneg = cmd->base.autoneg; in tg3_set_link_ksettings()
12279 tp->link_config.advertising = (advertising | in tg3_set_link_ksettings()
12281 tp->link_config.speed = SPEED_UNKNOWN; in tg3_set_link_ksettings()
12282 tp->link_config.duplex = DUPLEX_UNKNOWN; in tg3_set_link_ksettings()
12284 tp->link_config.advertising = 0; in tg3_set_link_ksettings()
12285 tp->link_config.speed = speed; in tg3_set_link_ksettings()
12286 tp->link_config.duplex = cmd->base.duplex; in tg3_set_link_ksettings()
12475 if (tp->link_config.flowctrl & FLOW_CTRL_RX) in tg3_get_pauseparam()
12480 if (tp->link_config.flowctrl & FLOW_CTRL_TX) in tg3_get_pauseparam()
12492 if (tp->link_config.autoneg == AUTONEG_ENABLE) in tg3_set_pauseparam()
12503 tp->link_config.flowctrl = 0; in tg3_set_pauseparam()
12506 tp->link_config.flowctrl |= FLOW_CTRL_RX; in tg3_set_pauseparam()
12509 tp->link_config.flowctrl |= FLOW_CTRL_TX; in tg3_set_pauseparam()
12512 tp->link_config.flowctrl |= FLOW_CTRL_TX; in tg3_set_pauseparam()
12550 tp->link_config.flowctrl |= FLOW_CTRL_RX; in tg3_set_pauseparam()
12552 tp->link_config.flowctrl &= ~FLOW_CTRL_RX; in tg3_set_pauseparam()
12554 tp->link_config.flowctrl |= FLOW_CTRL_TX; in tg3_set_pauseparam()
12556 tp->link_config.flowctrl &= ~FLOW_CTRL_TX; in tg3_set_pauseparam()
15424 tp->link_config.advertising = adv; in tg3_phy_init_link_config()
15425 tp->link_config.speed = SPEED_UNKNOWN; in tg3_phy_init_link_config()
15426 tp->link_config.duplex = DUPLEX_UNKNOWN; in tg3_phy_init_link_config()
15427 tp->link_config.autoneg = AUTONEG_ENABLE; in tg3_phy_init_link_config()
15428 tp->link_config.active_speed = SPEED_UNKNOWN; in tg3_phy_init_link_config()
15429 tp->link_config.active_duplex = DUPLEX_UNKNOWN; in tg3_phy_init_link_config()
15442 tp->link_config.flowctrl = FLOW_CTRL_TX | FLOW_CTRL_RX; in tg3_phy_probe()
15569 tg3_phy_autoneg_cfg(tp, tp->link_config.advertising, in tg3_phy_probe()
15570 tp->link_config.flowctrl); in tg3_phy_probe()