Lines Matching full:pause
142 phylink_set(tmp, Pause); in phylink_is_empty_linkmode()
233 * Set all possible pause, speed and duplex linkmodes in @linkmodes that are
522 /* The MAC must support asymmetric pause towards the local in phylink_get_capabilities()
523 * device for this. We could allow just symmetric pause, but in phylink_get_capabilities()
525 * doesn't support pause. This is because there's no way to in phylink_get_capabilities()
526 * accept pause frames without transmitting them if we only in phylink_get_capabilities()
527 * support symmetric pause. in phylink_get_capabilities()
706 /* We treat the "pause" and "asym-pause" terminology as in phylink_parse_fixedlink()
709 if (fwnode_property_read_bool(fixed_node, "pause")) in phylink_parse_fixedlink()
712 if (fwnode_property_read_bool(fixed_node, "asym-pause")) in phylink_parse_fixedlink()
767 phylink_set(pl->supported, Pause); in phylink_parse_fixedlink()
811 phylink_set(pl->supported, Pause); in phylink_parse_mode()
925 /* If autoneg is disabled, pause AN is also disabled */ in phylink_apply_manual_flow()
927 state->pause &= ~MLO_PAUSE_AN; in phylink_apply_manual_flow()
929 /* Manual configuration of pause modes */ in phylink_apply_manual_flow()
930 if (!(pl->link_config.pause & MLO_PAUSE_AN)) in phylink_apply_manual_flow()
931 state->pause = pl->link_config.pause; in phylink_apply_manual_flow()
938 state->pause = MLO_PAUSE_NONE; in phylink_resolve_flow()
944 state->pause |= MLO_PAUSE_TX; in phylink_resolve_flow()
946 state->pause |= MLO_PAUSE_RX; in phylink_resolve_flow()
966 "%s: mode=%s/%s/%s/%s/%s adv=%*pb pause=%02x link=%u an=%u\n", in phylink_mac_config()
973 state->pause, state->link, state->an_enabled); in phylink_mac_config()
1035 !!(pl->link_config.pause & in phylink_major_config()
1077 phylink_dbg(pl, "%s: mode=%s/%s adv=%*pb pause=%02x\n", __func__, in phylink_change_inband_advert()
1081 pl->link_config.pause); in phylink_change_inband_advert()
1090 !!(pl->link_config.pause & in phylink_change_inband_advert()
1112 state->pause = MLO_PAUSE_NONE; in phylink_mac_pcs_get_state()
1116 state->pause = pl->link_config.pause; in phylink_mac_pcs_get_state()
1161 link_state.pause = MLO_PAUSE_NONE; in phylink_mac_initial_config()
1174 static const char *phylink_pause_to_str(int pause) in phylink_pause_to_str() argument
1176 switch (pause & MLO_PAUSE_TXRX_MASK) { in phylink_pause_to_str()
1197 rx_pause = !!(link_state.pause & MLO_PAUSE_RX); in phylink_link_up()
1203 * pause frames to the MAC to limit its transmission speed. in phylink_link_up()
1228 !!(link_state.pause & MLO_PAUSE_TX), rx_pause); in phylink_link_up()
1237 phylink_pause_to_str(link_state.pause)); in phylink_link_up()
1334 link_state.pause = pl->phy_state.pause; in phylink_resolve()
1355 * duplex or pause settings have changed. Call the in phylink_resolve()
1497 pl->link_config.pause = MLO_PAUSE_AN; in phylink_create()
1566 pl->phy_state.pause = MLO_PAUSE_NONE; in phylink_phy_change()
1568 pl->phy_state.pause |= MLO_PAUSE_TX; in phylink_phy_change()
1570 pl->phy_state.pause |= MLO_PAUSE_RX; in phylink_phy_change()
1582 phylink_pause_to_str(pl->phy_state.pause)); in phylink_phy_change()
1596 * phy drivers should not set SUPPORTED_[Asym_]Pause") except in phylink_bringup_phy()
1653 pl->phy_state.pause = MLO_PAUSE_NONE; in phylink_bringup_phy()
2137 * represent the supported speeds/duplex/pause modes. in phylink_ethtool_ksettings_get()
2187 * - other configuration changes (e.g. pause modes) are in phylink_ethtool_ksettings_set()
2191 * link_config.{speed,duplex,an_enabled,pause} are not used. in phylink_ethtool_ksettings_set()
2193 * pause modes when in 1000base-X mode with a PHY, but in in phylink_ethtool_ksettings_set()
2347 * phylink_ethtool_get_pauseparam() - get the current pause parameters
2349 * @pause: a pointer to a &struct ethtool_pauseparam
2352 struct ethtool_pauseparam *pause) in phylink_ethtool_get_pauseparam() argument
2356 pause->autoneg = !!(pl->link_config.pause & MLO_PAUSE_AN); in phylink_ethtool_get_pauseparam()
2357 pause->rx_pause = !!(pl->link_config.pause & MLO_PAUSE_RX); in phylink_ethtool_get_pauseparam()
2358 pause->tx_pause = !!(pl->link_config.pause & MLO_PAUSE_TX); in phylink_ethtool_get_pauseparam()
2363 * phylink_ethtool_set_pauseparam() - set the current pause parameters
2365 * @pause: a pointer to a &struct ethtool_pauseparam
2368 struct ethtool_pauseparam *pause) in phylink_ethtool_set_pauseparam() argument
2379 if (!phylink_test(pl->supported, Pause) && in phylink_ethtool_set_pauseparam()
2384 pause->rx_pause != pause->tx_pause) in phylink_ethtool_set_pauseparam()
2388 if (pause->autoneg) in phylink_ethtool_set_pauseparam()
2390 if (pause->rx_pause) in phylink_ethtool_set_pauseparam()
2392 if (pause->tx_pause) in phylink_ethtool_set_pauseparam()
2401 * rx tx Pause AsymDir in phylink_ethtool_set_pauseparam()
2407 * rx/tx pause resolution. in phylink_ethtool_set_pauseparam()
2409 linkmode_set_pause(config->advertising, pause->tx_pause, in phylink_ethtool_set_pauseparam()
2410 pause->rx_pause); in phylink_ethtool_set_pauseparam()
2412 manual_changed = (config->pause ^ pause_state) & MLO_PAUSE_AN || in phylink_ethtool_set_pauseparam()
2414 (config->pause ^ pause_state) & MLO_PAUSE_TXRX_MASK); in phylink_ethtool_set_pauseparam()
2416 config->pause = pause_state; in phylink_ethtool_set_pauseparam()
2426 /* If we have a PHY, a change of the pause frame advertisement will in phylink_ethtool_set_pauseparam()
2432 phy_set_asym_pause(pl->phydev, pause->rx_pause, in phylink_ethtool_set_pauseparam()
2433 pause->tx_pause); in phylink_ethtool_set_pauseparam()
2435 /* If the manual pause settings changed, make sure we trigger a in phylink_ethtool_set_pauseparam()
2540 fs.pause = test_bit(ETHTOOL_LINK_MODE_Pause_BIT, lpa); in phylink_mii_emul_read()
2901 config.pause = MLO_PAUSE_AN; in phylink_sfp_config_phy()
2970 config.pause = MLO_PAUSE_AN; in phylink_sfp_config_optical()
3095 * phy drivers should not set SUPPORTED_[Asym_]Pause") except in phylink_sfp_connect_phy()
3172 state->pause |= MLO_PAUSE_TX; in phylink_decode_c37_word()
3174 state->pause |= MLO_PAUSE_RX; in phylink_decode_c37_word()