Lines Matching defs:duplex
765 int duplex;
3303 static void nv_force_linkspeed(struct net_device *dev, int speed, int duplex)
3311 np->duplex = duplex;
3330 if (np->duplex == 0)
3361 writel(NVREG_MISC1_FORCE | (np->duplex ? 0 : NVREG_MISC1_HD),
3387 int newdup = np->duplex;
3483 if (np->duplex == newdup && np->linkspeed == newls)
3486 np->duplex = newdup;
3512 if (np->duplex == 0)
3525 if (!phy_exp && !np->duplex && (np->driver_data & DEV_HAS_COLLISION_FIX)) {
3535 if (!phy_exp && !np->duplex && (np->driver_data & DEV_HAS_COLLISION_FIX))
3552 writel(NVREG_MISC1_FORCE | (np->duplex ? 0 : NVREG_MISC1_HD),
3560 if (netif_running(dev) && (np->duplex != 0)) {
4341 /* We do not track link speed / duplex setting if the
4365 cmd->base.duplex = DUPLEX_HALF;
4366 if (np->duplex)
4367 cmd->base.duplex = DUPLEX_FULL;
4370 cmd->base.duplex = DUPLEX_UNKNOWN;
4446 if (cmd->base.duplex != DUPLEX_HALF &&
4447 cmd->base.duplex != DUPLEX_FULL)
4529 if (speed == SPEED_10 && cmd->base.duplex == DUPLEX_HALF)
4531 if (speed == SPEED_10 && cmd->base.duplex == DUPLEX_FULL)
4533 if (speed == SPEED_100 && cmd->base.duplex == DUPLEX_HALF)
4535 if (speed == SPEED_100 && cmd->base.duplex == DUPLEX_FULL)
4809 if ((!np->autoneg && np->duplex == 0) ||
4810 (np->autoneg && !pause->autoneg && np->duplex == 0)) {
4811 netdev_info(dev, "can not set pause settings when forced link is in half duplex\n");
4899 /* Force 1000 Mbps full-duplex */
6095 np->duplex = 0;