Lines Matching full:pause
171 phylink_set(tmp, Pause); in phylink_is_empty_linkmode()
362 * Set all possible pause, speed and duplex linkmodes in @linkmodes that are
449 /* The MAC must support asymmetric pause towards the local in phylink_get_capabilities()
450 * device for this. We could allow just symmetric pause, but in phylink_get_capabilities()
452 * doesn't support pause. This is because there's no way to in phylink_get_capabilities()
453 * accept pause frames without transmitting them if we only in phylink_get_capabilities()
454 * support symmetric pause. in phylink_get_capabilities()
675 /* We treat the "pause" and "asym-pause" terminology as in phylink_parse_fixedlink()
678 if (fwnode_property_read_bool(fixed_node, "pause")) in phylink_parse_fixedlink()
681 if (fwnode_property_read_bool(fixed_node, "asym-pause")) in phylink_parse_fixedlink()
799 phylink_set(pl->supported, Pause); in phylink_parse_mode()
851 /* If autoneg is disabled, pause AN is also disabled */ in phylink_apply_manual_flow()
854 state->pause &= ~MLO_PAUSE_AN; in phylink_apply_manual_flow()
856 /* Manual configuration of pause modes */ in phylink_apply_manual_flow()
857 if (!(pl->link_config.pause & MLO_PAUSE_AN)) in phylink_apply_manual_flow()
858 state->pause = pl->link_config.pause; in phylink_apply_manual_flow()
870 state->pause |= MLO_PAUSE_TX; in phylink_resolve_an_pause()
872 state->pause |= MLO_PAUSE_RX; in phylink_resolve_an_pause()
1008 "%s: mode=%s/%s/%s adv=%*pb pause=%02x\n", in phylink_mac_config()
1013 st.pause); in phylink_mac_config()
1314 !!(pl->link_config.pause & MLO_PAUSE_AN)); in phylink_major_config()
1368 phylink_dbg(pl, "%s: mode=%s/%s adv=%*pb pause=%02x\n", __func__, in phylink_change_inband_advert()
1372 pl->link_config.pause); in phylink_change_inband_advert()
1383 !!(pl->link_config.pause & MLO_PAUSE_AN)); in phylink_change_inband_advert()
1410 state->pause = MLO_PAUSE_NONE; in phylink_mac_pcs_get_state()
1414 state->pause = pl->link_config.pause; in phylink_mac_pcs_get_state()
1436 state->pause = MLO_PAUSE_NONE; in phylink_get_fixed_state()
1457 link_state.pause = MLO_PAUSE_NONE; in phylink_mac_initial_config()
1474 static const char *phylink_pause_to_str(int pause) in phylink_pause_to_str() argument
1476 switch (pause & MLO_PAUSE_TXRX_MASK) { in phylink_pause_to_str()
1537 rx_pause = !!(link_state.pause & MLO_PAUSE_RX); in phylink_link_up()
1543 * pause frames to the MAC to limit its transmission speed. in phylink_link_up()
1567 !!(link_state.pause & MLO_PAUSE_TX), rx_pause); in phylink_link_up()
1579 phylink_pause_to_str(link_state.pause)); in phylink_link_up()
1675 link_state.pause = pl->phy_state.pause; in phylink_resolve()
1885 pl->link_config.pause = MLO_PAUSE_AN; in phylink_create()
1973 pl->phy_state.pause = MLO_PAUSE_NONE; in phylink_phy_change()
1975 pl->phy_state.pause |= MLO_PAUSE_TX; in phylink_phy_change()
1977 pl->phy_state.pause |= MLO_PAUSE_RX; in phylink_phy_change()
1996 phylink_pause_to_str(pl->phy_state.pause), in phylink_phy_change()
2084 * phy drivers should not set SUPPORTED_[Asym_]Pause") except in phylink_bringup_phy()
2119 pl->phy_state.pause = MLO_PAUSE_NONE; in phylink_bringup_phy()
2835 * represent the supported speeds/duplex/pause modes. in phylink_ethtool_ksettings_get()
2911 * - other configuration changes (e.g. pause modes) are in phylink_ethtool_ksettings_set()
2915 * link_config.{speed,duplex,an_enabled,pause} are not used. in phylink_ethtool_ksettings_set()
2917 * pause modes when in 1000base-X mode with a PHY, but in in phylink_ethtool_ksettings_set()
3078 * phylink_ethtool_get_pauseparam() - get the current pause parameters
3080 * @pause: a pointer to a &struct ethtool_pauseparam
3083 struct ethtool_pauseparam *pause) in phylink_ethtool_get_pauseparam() argument
3087 pause->autoneg = !!(pl->link_config.pause & MLO_PAUSE_AN); in phylink_ethtool_get_pauseparam()
3088 pause->rx_pause = !!(pl->link_config.pause & MLO_PAUSE_RX); in phylink_ethtool_get_pauseparam()
3089 pause->tx_pause = !!(pl->link_config.pause & MLO_PAUSE_TX); in phylink_ethtool_get_pauseparam()
3094 * phylink_ethtool_set_pauseparam() - set the current pause parameters
3096 * @pause: a pointer to a &struct ethtool_pauseparam
3099 struct ethtool_pauseparam *pause) in phylink_ethtool_set_pauseparam() argument
3110 if (!phylink_test(pl->supported, Pause) && in phylink_ethtool_set_pauseparam()
3115 pause->rx_pause != pause->tx_pause) in phylink_ethtool_set_pauseparam()
3119 if (pause->autoneg) in phylink_ethtool_set_pauseparam()
3121 if (pause->rx_pause) in phylink_ethtool_set_pauseparam()
3123 if (pause->tx_pause) in phylink_ethtool_set_pauseparam()
3132 * rx tx Pause AsymDir in phylink_ethtool_set_pauseparam()
3138 * rx/tx pause resolution. in phylink_ethtool_set_pauseparam()
3140 linkmode_set_pause(config->advertising, pause->tx_pause, in phylink_ethtool_set_pauseparam()
3141 pause->rx_pause); in phylink_ethtool_set_pauseparam()
3143 manual_changed = (config->pause ^ pause_state) & MLO_PAUSE_AN || in phylink_ethtool_set_pauseparam()
3145 (config->pause ^ pause_state) & MLO_PAUSE_TXRX_MASK); in phylink_ethtool_set_pauseparam()
3147 config->pause = pause_state; in phylink_ethtool_set_pauseparam()
3157 /* If we have a PHY, a change of the pause frame advertisement will in phylink_ethtool_set_pauseparam()
3163 phy_set_asym_pause(pl->phydev, pause->rx_pause, in phylink_ethtool_set_pauseparam()
3164 pause->tx_pause); in phylink_ethtool_set_pauseparam()
3166 /* If the manual pause settings changed, make sure we trigger a in phylink_ethtool_set_pauseparam()
3278 fs.pause = test_bit(ETHTOOL_LINK_MODE_Pause_BIT, lpa); in phylink_mii_emul_read()
3625 config.pause = MLO_PAUSE_AN; in phylink_sfp_config_phy()
3690 config.pause = MLO_PAUSE_AN; in phylink_sfp_config_optical()
3841 * phy drivers should not set SUPPORTED_[Asym_]Pause") except in phylink_sfp_connect_phy()
4077 state->pause |= MLO_PAUSE_TX | MLO_PAUSE_RX; in phylink_mii_c22_pcs_decode_state()
4087 state->pause |= MLO_PAUSE_TX | MLO_PAUSE_RX; in phylink_mii_c22_pcs_decode_state()