Lines Matching full:duplex

108 			ecmd->duplex = !!(nego & ADVERTISED_1000baseT_Full);  in mii_ethtool_gset()
112 ecmd->duplex = !!(nego & ADVERTISED_100baseT_Full); in mii_ethtool_gset()
115 ecmd->duplex = !!(nego & ADVERTISED_10baseT_Full); in mii_ethtool_gset()
126 ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in mii_ethtool_gset()
129 mii->full_duplex = ecmd->duplex; in mii_ethtool_gset()
193 cmd->base.duplex = !!(nego & ADVERTISED_1000baseT_Full); in mii_ethtool_get_link_ksettings()
197 cmd->base.duplex = !!(nego & ADVERTISED_100baseT_Full); in mii_ethtool_get_link_ksettings()
200 cmd->base.duplex = !!(nego & ADVERTISED_10baseT_Full); in mii_ethtool_get_link_ksettings()
210 cmd->base.duplex = (bmcr & BMCR_FULLDPLX) ? in mii_ethtool_get_link_ksettings()
216 mii->full_duplex = cmd->base.duplex; in mii_ethtool_get_link_ksettings()
244 if (ecmd->duplex != DUPLEX_HALF && ecmd->duplex != DUPLEX_FULL) in mii_ethtool_sset()
307 if (ecmd->duplex == DUPLEX_FULL) { in mii_ethtool_sset()
337 if (cmd->base.duplex != DUPLEX_HALF && cmd->base.duplex != DUPLEX_FULL) in mii_ethtool_set_link_ksettings()
404 if (cmd->base.duplex == DUPLEX_FULL) { in mii_ethtool_set_link_ksettings()
494 * mii_check_media - check the MII interface for a carrier/speed/duplex change
497 * @init_media: OK to save duplex mode in @mii
499 * Returns 1 if the duplex mode changed, 0 if not.
507 int advertise, lpa, media, duplex; in mii_check_media() local
518 return 0; /* duplex did not change */ in mii_check_media()
525 return 0; /* duplex did not change */ in mii_check_media()
536 return 0; /* duplex did not change */ in mii_check_media()
550 /* figure out media and duplex from advertise and LPA values */ in mii_check_media()
552 duplex = (media & ADVERTISE_FULL) ? 1 : 0; in mii_check_media()
554 duplex = 1; in mii_check_media()
557 netdev_info(mii->dev, "link up, %uMbps, %s-duplex, lpa 0x%04X\n", in mii_check_media()
561 duplex ? "full" : "half", in mii_check_media()
564 if ((init_media) || (mii->full_duplex != duplex)) { in mii_check_media()
565 mii->full_duplex = duplex; in mii_check_media()
566 return 1; /* duplex changed */ in mii_check_media()
569 return 0; /* duplex did not change */ in mii_check_media()