Lines Matching full:duplex
257 * Set all possible pause, speed and duplex linkmodes in @linkmodes that are
408 unsigned int duplex; member
448 * phylink_cap_from_speed_duplex - Get mac capability from speed/duplex
450 * @duplex: the duplex to search for
452 * Find the mac capability for a given speed and duplex.
454 * Return: A mask with the mac capability patching @speed and @duplex, or 0 if
458 unsigned int duplex) in phylink_cap_from_speed_duplex() argument
464 duplex == phylink_caps_params[i].duplex) in phylink_cap_from_speed_duplex()
581 * max speed at full duplex. in phylink_get_capabilities()
585 /* Although a duplex-matching phy might exist, we in phylink_get_capabilities()
587 * will not be aware of the half-duplex nature of the in phylink_get_capabilities()
596 /* The MAC must support half duplex at the interface's max in phylink_get_capabilities()
765 pl->link_config.duplex = DUPLEX_HALF; in phylink_parse_fixedlink()
767 if (fwnode_property_read_bool(fixed_node, "full-duplex")) in phylink_parse_fixedlink()
768 pl->link_config.duplex = DUPLEX_FULL; in phylink_parse_fixedlink()
806 pl->link_config.duplex = prop[1] ? in phylink_parse_fixedlink()
819 pl->link_config.duplex != DUPLEX_FULL) in phylink_parse_fixedlink()
820 phylink_warn(pl, "fixed link specifies half duplex for %dMbps link?\n", in phylink_parse_fixedlink()
830 s = phy_lookup_setting(pl->link_config.speed, pl->link_config.duplex, in phylink_parse_fixedlink()
848 phylink_warn(pl, "fixed link %s duplex %dMbps not recognised\n", in phylink_parse_fixedlink()
849 pl->link_config.duplex == DUPLEX_FULL ? "full" : "half", in phylink_parse_fixedlink()
1011 if (state->duplex == DUPLEX_FULL) { in phylink_resolve_an_pause()
1069 int duplex) in phylink_pcs_link_up() argument
1072 pcs->ops->pcs_link_up(pcs, neg_mode, interface, speed, duplex); in phylink_pcs_link_up()
1095 st.duplex = DUPLEX_UNKNOWN; in phylink_mac_config()
1269 state->duplex = DUPLEX_UNKNOWN; in phylink_mac_pcs_get_state()
1273 state->duplex = pl->link_config.duplex; in phylink_mac_pcs_get_state()
1349 int speed, duplex; in phylink_link_up() local
1353 duplex = link_state.duplex; in phylink_link_up()
1363 duplex = DUPLEX_FULL; in phylink_link_up()
1373 duplex = DUPLEX_HALF; in phylink_link_up()
1384 duplex); in phylink_link_up()
1387 pl->cur_interface, speed, duplex, in phylink_link_up()
1396 phy_duplex_to_str(link_state.duplex), in phylink_link_up()
1481 * link speed/duplex comes from the PHY in phylink_resolve()
1487 link_state.duplex = in phylink_resolve()
1488 pl->phy_state.duplex; in phylink_resolve()
1651 pl->link_config.duplex = DUPLEX_UNKNOWN; in phylink_create()
1735 pl->phy_state.duplex = phydev->duplex; in phylink_phy_change()
1751 phy_duplex_to_str(phydev->duplex), in phylink_phy_change()
1826 pl->phy_state.duplex = DUPLEX_UNKNOWN; in phylink_bringup_phy()
2301 kset->base.duplex = state->duplex; in phylink_get_ksettings()
2335 * represent the supported speeds/duplex/pause modes. in phylink_ethtool_ksettings_get()
2395 * link_config.{speed,duplex,an_enabled,pause} are not used. in phylink_ethtool_ksettings_set()
2413 * duplex. in phylink_ethtool_ksettings_set()
2415 s = phy_lookup_setting(kset->base.speed, kset->base.duplex, in phylink_ethtool_ksettings_set()
2425 s->duplex != pl->link_config.duplex) in phylink_ethtool_ksettings_set()
2431 config.duplex = s->duplex; in phylink_ethtool_ksettings_set()
2447 config.duplex = DUPLEX_UNKNOWN; in phylink_ethtool_ksettings_set()
2499 pl->link_config.duplex = config.duplex; in phylink_ethtool_ksettings_set()
2742 fs.duplex = state->duplex; in phylink_mii_emul_read()
3103 config.duplex = DUPLEX_UNKNOWN; in phylink_sfp_config_phy()
3171 config.duplex = DUPLEX_UNKNOWN; in phylink_sfp_config_optical()
3376 state->duplex = DUPLEX_FULL; in phylink_resolve_c73()
3401 state->duplex = DUPLEX_FULL; in phylink_decode_c37_word()
3433 state->duplex = DUPLEX_FULL; in phylink_decode_sgmii_word()
3435 state->duplex = DUPLEX_HALF; in phylink_decode_sgmii_word()
3445 * (speed, duplex) into the phylink_link_state structure.
3475 state->duplex = DUPLEX_FULL; in phylink_decode_usxgmii_word()
3477 state->duplex = DUPLEX_HALF; in phylink_decode_usxgmii_word()
3488 * (speed, duplex) into the phylink_link_state structure. The structure for this
3511 state->duplex = DUPLEX_FULL; in phylink_decode_usgmii_word()
3513 state->duplex = DUPLEX_HALF; in phylink_decode_usgmii_word()
3723 state->duplex = DUPLEX_FULL; in phylink_mii_c45_pcs_get_state()