Lines Matching defs:duplex
1882 netdev_info(tp->dev, "Link is up at %d Mbps, %s duplex\n",
2031 if (phydev->duplex == DUPLEX_HALF)
2062 if (phydev->speed == SPEED_1000 && phydev->duplex == DUPLEX_HALF)
2075 phydev->duplex != tp->link_config.active_duplex ||
2081 tp->link_config.active_duplex = phydev->duplex;
2147 phydev->duplex = tp->link_config.duplex;
2572 /* Set full-duplex, 1000 mbps. */
4059 tp->link_config.duplex = phydev->duplex;
4280 static void tg3_aux_stat_to_speed_duplex(struct tg3 *tp, u32 val, u32 *speed, u8 *duplex)
4285 *duplex = DUPLEX_HALF;
4290 *duplex = DUPLEX_FULL;
4295 *duplex = DUPLEX_HALF;
4300 *duplex = DUPLEX_FULL;
4305 *duplex = DUPLEX_HALF;
4310 *duplex = DUPLEX_FULL;
4317 *duplex = (val & MII_TG3_AUX_STAT_FULL) ? DUPLEX_FULL :
4322 *duplex = DUPLEX_UNKNOWN;
4459 tp->link_config.active_duplex = tp->link_config.duplex;
4484 if (tp->link_config.duplex == DUPLEX_FULL)
4548 tp->link_config.duplex = DUPLEX_FULL;
4550 tp->link_config.duplex = DUPLEX_HALF;
4952 tp->link_config.duplex == current_duplex) {
5918 if (tp->link_config.duplex == DUPLEX_FULL)
10264 * run at gigabit with half duplex.
12239 cmd->base.duplex = tp->link_config.active_duplex;
12252 cmd->base.duplex = DUPLEX_UNKNOWN;
12280 cmd->base.duplex != DUPLEX_FULL &&
12281 cmd->base.duplex != DUPLEX_HALF)
12321 if (cmd->base.duplex != DUPLEX_FULL)
12337 tp->link_config.duplex = DUPLEX_UNKNOWN;
12341 tp->link_config.duplex = cmd->base.duplex;
15512 tp->link_config.duplex = DUPLEX_UNKNOWN;