Lines Matching refs:link_config

1078 	if (tp->link_config.phy_is_low_power == 0) {  in tg3_set_power_state()
1079 tp->link_config.phy_is_low_power = 1; in tg3_set_power_state()
1080 tp->link_config.orig_speed = tp->link_config.speed; in tg3_set_power_state()
1081 tp->link_config.orig_duplex = tp->link_config.duplex; in tg3_set_power_state()
1082 tp->link_config.orig_autoneg = tp->link_config.autoneg; in tg3_set_power_state()
1086 tp->link_config.speed = SPEED_10; in tg3_set_power_state()
1087 tp->link_config.duplex = DUPLEX_HALF; in tg3_set_power_state()
1088 tp->link_config.autoneg = AUTONEG_ENABLE; in tg3_set_power_state()
1208 (tp->link_config.active_speed == SPEED_1000 ? in tg3_link_report()
1210 (tp->link_config.active_speed == SPEED_100 ? in tg3_link_report()
1212 (tp->link_config.active_duplex == DUPLEX_FULL ? in tg3_link_report()
1321 if (tp->link_config.phy_is_low_power) { in tg3_phy_copper_begin()
1333 } else if (tp->link_config.speed == SPEED_INVALID) { in tg3_phy_copper_begin()
1334 tp->link_config.advertising = in tg3_phy_copper_begin()
1341 tp->link_config.advertising &= in tg3_phy_copper_begin()
1346 if (tp->link_config.advertising & ADVERTISED_10baseT_Half) in tg3_phy_copper_begin()
1348 if (tp->link_config.advertising & ADVERTISED_10baseT_Full) in tg3_phy_copper_begin()
1350 if (tp->link_config.advertising & ADVERTISED_100baseT_Half) in tg3_phy_copper_begin()
1352 if (tp->link_config.advertising & ADVERTISED_100baseT_Full) in tg3_phy_copper_begin()
1356 if (tp->link_config.advertising & in tg3_phy_copper_begin()
1359 if (tp->link_config.advertising & ADVERTISED_1000baseT_Half) in tg3_phy_copper_begin()
1361 if (tp->link_config.advertising & ADVERTISED_1000baseT_Full) in tg3_phy_copper_begin()
1374 if (tp->link_config.speed == SPEED_1000) { in tg3_phy_copper_begin()
1378 if (tp->link_config.duplex == DUPLEX_FULL) in tg3_phy_copper_begin()
1391 if (tp->link_config.speed == SPEED_100) { in tg3_phy_copper_begin()
1392 if (tp->link_config.duplex == DUPLEX_FULL) in tg3_phy_copper_begin()
1397 if (tp->link_config.duplex == DUPLEX_FULL) in tg3_phy_copper_begin()
1406 if (tp->link_config.autoneg == AUTONEG_DISABLE && in tg3_phy_copper_begin()
1407 tp->link_config.speed != SPEED_INVALID) { in tg3_phy_copper_begin()
1410 tp->link_config.active_speed = tp->link_config.speed; in tg3_phy_copper_begin()
1411 tp->link_config.active_duplex = tp->link_config.duplex; in tg3_phy_copper_begin()
1414 switch (tp->link_config.speed) { in tg3_phy_copper_begin()
1428 if (tp->link_config.duplex == DUPLEX_FULL) in tg3_phy_copper_begin()
1569 tp->link_config.active_speed == SPEED_1000) { in tg3_setup_copper_phy()
1654 if (tp->link_config.autoneg == AUTONEG_ENABLE) { in tg3_setup_copper_phy()
1668 tp->link_config.speed == current_speed && in tg3_setup_copper_phy()
1669 tp->link_config.duplex == current_duplex) { in tg3_setup_copper_phy()
1676 tp->link_config.active_speed = current_speed; in tg3_setup_copper_phy()
1677 tp->link_config.active_duplex = current_duplex; in tg3_setup_copper_phy()
1681 (tp->link_config.active_duplex == DUPLEX_FULL) && in tg3_setup_copper_phy()
1682 (tp->link_config.autoneg == AUTONEG_ENABLE)) { in tg3_setup_copper_phy()
1717 if (tp->link_config.active_speed == SPEED_100 || in tg3_setup_copper_phy()
1718 tp->link_config.active_speed == SPEED_10) in tg3_setup_copper_phy()
1726 if (tp->link_config.active_duplex == DUPLEX_HALF) in tg3_setup_copper_phy()
1733 tp->link_config.active_speed == SPEED_10)) in tg3_setup_copper_phy()
1763 tp->link_config.active_speed == SPEED_1000 && in tg3_setup_copper_phy()
2219 if (tp->link_config.autoneg != AUTONEG_ENABLE) { in tg3_setup_fiber_hw_autoneg()
2327 if (tp->link_config.autoneg == AUTONEG_ENABLE) { in tg3_setup_fiber_by_hand()
2388 orig_active_speed = tp->link_config.active_speed; in tg3_setup_fiber_phy()
2389 orig_active_duplex = tp->link_config.active_duplex; in tg3_setup_fiber_phy()
2449 if (tp->link_config.autoneg == AUTONEG_ENABLE) { in tg3_setup_fiber_phy()
2458 tp->link_config.active_speed = SPEED_1000; in tg3_setup_fiber_phy()
2459 tp->link_config.active_duplex = DUPLEX_FULL; in tg3_setup_fiber_phy()
2464 tp->link_config.active_speed = SPEED_INVALID; in tg3_setup_fiber_phy()
2465 tp->link_config.active_duplex = DUPLEX_INVALID; in tg3_setup_fiber_phy()
2482 orig_active_speed != tp->link_config.active_speed || in tg3_setup_fiber_phy()
2483 orig_active_duplex != tp->link_config.active_duplex) in tg3_setup_fiber_phy()
2500 if (tp->link_config.active_speed == SPEED_1000 && in tg3_setup_phy()
2501 tp->link_config.active_duplex == DUPLEX_HALF) in tg3_setup_phy()
5589 if (tp->link_config.phy_is_low_power) { in tg3_reset_hw()
5590 tp->link_config.phy_is_low_power = 0; in tg3_reset_hw()
5591 tp->link_config.speed = tp->link_config.orig_speed; in tg3_reset_hw()
5592 tp->link_config.duplex = tp->link_config.orig_duplex; in tg3_reset_hw()
5593 tp->link_config.autoneg = tp->link_config.orig_autoneg; in tg3_reset_hw()
6928 cmd->advertising = tp->link_config.advertising; in tg3_get_settings()
6930 cmd->speed = tp->link_config.active_speed; in tg3_get_settings()
6931 cmd->duplex = tp->link_config.active_duplex; in tg3_get_settings()
6936 cmd->autoneg = tp->link_config.autoneg; in tg3_get_settings()
6959 tp->link_config.autoneg = cmd->autoneg; in tg3_set_settings()
6961 tp->link_config.advertising = cmd->advertising; in tg3_set_settings()
6962 tp->link_config.speed = SPEED_INVALID; in tg3_set_settings()
6963 tp->link_config.duplex = DUPLEX_INVALID; in tg3_set_settings()
6965 tp->link_config.advertising = 0; in tg3_set_settings()
6966 tp->link_config.speed = cmd->speed; in tg3_set_settings()
6967 tp->link_config.duplex = cmd->duplex; in tg3_set_settings()
8182 tp->link_config.advertising = in tg3_phy_probe()
8188 tp->link_config.advertising &= in tg3_phy_probe()
9160 tp->link_config.advertising = in tg3_init_link_config()
9165 tp->link_config.speed = SPEED_INVALID; in tg3_init_link_config()
9166 tp->link_config.duplex = DUPLEX_INVALID; in tg3_init_link_config()
9167 tp->link_config.autoneg = AUTONEG_ENABLE; in tg3_init_link_config()
9169 tp->link_config.active_speed = SPEED_INVALID; in tg3_init_link_config()
9170 tp->link_config.active_duplex = DUPLEX_INVALID; in tg3_init_link_config()
9171 tp->link_config.phy_is_low_power = 0; in tg3_init_link_config()
9172 tp->link_config.orig_speed = SPEED_INVALID; in tg3_init_link_config()
9173 tp->link_config.orig_duplex = DUPLEX_INVALID; in tg3_init_link_config()
9174 tp->link_config.orig_autoneg = AUTONEG_INVALID; in tg3_init_link_config()