Lines Matching full:duplex
271 * Set all possible pause, speed and duplex linkmodes in @linkmodes that are
422 unsigned int duplex; member
462 * phylink_cap_from_speed_duplex - Get mac capability from speed/duplex
464 * @duplex: the duplex to search for
466 * Find the mac capability for a given speed and duplex.
468 * Return: A mask with the mac capability patching @speed and @duplex, or 0 if
472 unsigned int duplex) in phylink_cap_from_speed_duplex() argument
478 duplex == phylink_caps_params[i].duplex) in phylink_cap_from_speed_duplex()
599 * max speed at full duplex. in phylink_get_capabilities()
603 /* Although a duplex-matching phy might exist, we in phylink_get_capabilities()
605 * will not be aware of the half-duplex nature of the in phylink_get_capabilities()
614 /* The MAC must support half duplex at the interface's max in phylink_get_capabilities()
789 pl->link_config.duplex = DUPLEX_HALF; in phylink_parse_fixedlink()
791 if (fwnode_property_read_bool(fixed_node, "full-duplex")) in phylink_parse_fixedlink()
792 pl->link_config.duplex = DUPLEX_FULL; in phylink_parse_fixedlink()
830 pl->link_config.duplex = prop[1] ? in phylink_parse_fixedlink()
843 pl->link_config.duplex != DUPLEX_FULL) in phylink_parse_fixedlink()
844 phylink_warn(pl, "fixed link specifies half duplex for %dMbps link?\n", in phylink_parse_fixedlink()
854 s = phy_lookup_setting(pl->link_config.speed, pl->link_config.duplex, in phylink_parse_fixedlink()
872 phylink_warn(pl, "fixed link %s duplex %dMbps not recognised\n", in phylink_parse_fixedlink()
873 pl->link_config.duplex == DUPLEX_FULL ? "full" : "half", in phylink_parse_fixedlink()
980 if (state->duplex == DUPLEX_FULL) { in phylink_resolve_an_pause()
1038 int duplex) in phylink_pcs_link_up() argument
1041 pcs->ops->pcs_link_up(pcs, neg_mode, interface, speed, duplex); in phylink_pcs_link_up()
1079 st.duplex = DUPLEX_UNKNOWN; in phylink_mac_config()
1320 state->duplex = DUPLEX_UNKNOWN; in phylink_mac_pcs_get_state()
1324 state->duplex = pl->link_config.duplex; in phylink_mac_pcs_get_state()
1400 int speed, duplex; in phylink_link_up() local
1404 duplex = link_state.duplex; in phylink_link_up()
1414 duplex = DUPLEX_FULL; in phylink_link_up()
1424 duplex = DUPLEX_HALF; in phylink_link_up()
1435 duplex); in phylink_link_up()
1438 pl->cur_interface, speed, duplex, in phylink_link_up()
1447 phy_duplex_to_str(link_state.duplex), in phylink_link_up()
1532 * link speed/duplex comes from the PHY in phylink_resolve()
1538 link_state.duplex = in phylink_resolve()
1539 pl->phy_state.duplex; in phylink_resolve()
1658 s = phy_lookup_setting(state->speed, state->duplex, in phylink_set_fixed_link()
1669 pl->link_config.duplex = state->duplex; in phylink_set_fixed_link()
1745 pl->link_config.duplex = DUPLEX_UNKNOWN; in phylink_create()
1829 pl->phy_state.duplex = phydev->duplex; in phylink_phy_change()
1847 phy_duplex_to_str(phydev->duplex), in phylink_phy_change()
1972 pl->phy_state.duplex = DUPLEX_UNKNOWN; in phylink_bringup_phy()
2455 kset->base.duplex = state->duplex; in phylink_get_ksettings()
2489 * represent the supported speeds/duplex/pause modes. in phylink_ethtool_ksettings_get()
2549 * link_config.{speed,duplex,an_enabled,pause} are not used. in phylink_ethtool_ksettings_set()
2567 * duplex. in phylink_ethtool_ksettings_set()
2569 s = phy_lookup_setting(kset->base.speed, kset->base.duplex, in phylink_ethtool_ksettings_set()
2579 s->duplex != pl->link_config.duplex) in phylink_ethtool_ksettings_set()
2585 config.duplex = s->duplex; in phylink_ethtool_ksettings_set()
2601 config.duplex = DUPLEX_UNKNOWN; in phylink_ethtool_ksettings_set()
2653 pl->link_config.duplex = config.duplex; in phylink_ethtool_ksettings_set()
2896 fs.duplex = state->duplex; in phylink_mii_emul_read()
3244 config.duplex = DUPLEX_UNKNOWN; in phylink_sfp_config_phy()
3312 config.duplex = DUPLEX_UNKNOWN; in phylink_sfp_config_optical()
3519 state->duplex = DUPLEX_FULL; in phylink_resolve_c73()
3544 state->duplex = DUPLEX_FULL; in phylink_decode_c37_word()
3576 state->duplex = DUPLEX_FULL; in phylink_decode_sgmii_word()
3578 state->duplex = DUPLEX_HALF; in phylink_decode_sgmii_word()
3588 * (speed, duplex) into the phylink_link_state structure.
3618 state->duplex = DUPLEX_FULL; in phylink_decode_usxgmii_word()
3620 state->duplex = DUPLEX_HALF; in phylink_decode_usxgmii_word()
3631 * (speed, duplex) into the phylink_link_state structure. The structure for this
3654 state->duplex = DUPLEX_FULL; in phylink_decode_usgmii_word()
3656 state->duplex = DUPLEX_HALF; in phylink_decode_usgmii_word()
3866 state->duplex = DUPLEX_FULL; in phylink_mii_c45_pcs_get_state()