Lines Matching full:pause

161 	phylink_set(tmp, Pause);  in phylink_is_empty_linkmode()
271 * Set all possible pause, speed and duplex linkmodes in @linkmodes that are
587 /* The MAC must support asymmetric pause towards the local in phylink_get_capabilities()
588 * device for this. We could allow just symmetric pause, but in phylink_get_capabilities()
590 * doesn't support pause. This is because there's no way to in phylink_get_capabilities()
591 * accept pause frames without transmitting them if we only in phylink_get_capabilities()
592 * support symmetric pause. in phylink_get_capabilities()
778 bool pause, asym_pause, autoneg; in phylink_parse_fixedlink() local
794 /* We treat the "pause" and "asym-pause" terminology as in phylink_parse_fixedlink()
797 if (fwnode_property_read_bool(fixed_node, "pause")) in phylink_parse_fixedlink()
800 if (fwnode_property_read_bool(fixed_node, "asym-pause")) in phylink_parse_fixedlink()
851 pause = phylink_test(pl->supported, Pause); in phylink_parse_fixedlink()
859 if (pause) in phylink_parse_fixedlink()
860 phylink_set(pl->supported, Pause); in phylink_parse_fixedlink()
917 phylink_set(pl->supported, Pause); in phylink_parse_mode()
966 /* If autoneg is disabled, pause AN is also disabled */ in phylink_apply_manual_flow()
969 state->pause &= ~MLO_PAUSE_AN; in phylink_apply_manual_flow()
971 /* Manual configuration of pause modes */ in phylink_apply_manual_flow()
972 if (!(pl->link_config.pause & MLO_PAUSE_AN)) in phylink_apply_manual_flow()
973 state->pause = pl->link_config.pause; in phylink_apply_manual_flow()
985 state->pause |= MLO_PAUSE_TX; in phylink_resolve_an_pause()
987 state->pause |= MLO_PAUSE_RX; in phylink_resolve_an_pause()
1084 "%s: mode=%s/%s/%s adv=%*pb pause=%02x\n", in phylink_mac_config()
1089 st.pause); in phylink_mac_config()
1239 !!(pl->link_config.pause & MLO_PAUSE_AN)); in phylink_major_config()
1280 phylink_dbg(pl, "%s: mode=%s/%s adv=%*pb pause=%02x\n", __func__, in phylink_change_inband_advert()
1284 pl->link_config.pause); in phylink_change_inband_advert()
1300 !!(pl->link_config.pause & MLO_PAUSE_AN)); in phylink_change_inband_advert()
1321 state->pause = MLO_PAUSE_NONE; in phylink_mac_pcs_get_state()
1325 state->pause = pl->link_config.pause; in phylink_mac_pcs_get_state()
1348 state->pause = MLO_PAUSE_NONE; in phylink_get_fixed_state()
1368 link_state.pause = MLO_PAUSE_NONE; in phylink_mac_initial_config()
1381 static const char *phylink_pause_to_str(int pause) in phylink_pause_to_str() argument
1383 switch (pause & MLO_PAUSE_TXRX_MASK) { in phylink_pause_to_str()
1405 rx_pause = !!(link_state.pause & MLO_PAUSE_RX); in phylink_link_up()
1411 * pause frames to the MAC to limit its transmission speed. in phylink_link_up()
1439 !!(link_state.pause & MLO_PAUSE_TX), rx_pause); in phylink_link_up()
1448 phylink_pause_to_str(link_state.pause)); in phylink_link_up()
1545 link_state.pause = pl->phy_state.pause; in phylink_resolve()
1743 pl->link_config.pause = MLO_PAUSE_AN; in phylink_create()
1831 pl->phy_state.pause = MLO_PAUSE_NONE; in phylink_phy_change()
1833 pl->phy_state.pause |= MLO_PAUSE_TX; in phylink_phy_change()
1835 pl->phy_state.pause |= MLO_PAUSE_RX; in phylink_phy_change()
1849 phylink_pause_to_str(pl->phy_state.pause)); in phylink_phy_change()
1936 * phy drivers should not set SUPPORTED_[Asym_]Pause") except in phylink_bringup_phy()
1970 pl->phy_state.pause = MLO_PAUSE_NONE; in phylink_bringup_phy()
2489 * represent the supported speeds/duplex/pause modes. in phylink_ethtool_ksettings_get()
2545 * - other configuration changes (e.g. pause modes) are in phylink_ethtool_ksettings_set()
2549 * link_config.{speed,duplex,an_enabled,pause} are not used. in phylink_ethtool_ksettings_set()
2551 * pause modes when in 1000base-X mode with a PHY, but in in phylink_ethtool_ksettings_set()
2704 * phylink_ethtool_get_pauseparam() - get the current pause parameters
2706 * @pause: a pointer to a &struct ethtool_pauseparam
2709 struct ethtool_pauseparam *pause) in phylink_ethtool_get_pauseparam() argument
2713 pause->autoneg = !!(pl->link_config.pause & MLO_PAUSE_AN); in phylink_ethtool_get_pauseparam()
2714 pause->rx_pause = !!(pl->link_config.pause & MLO_PAUSE_RX); in phylink_ethtool_get_pauseparam()
2715 pause->tx_pause = !!(pl->link_config.pause & MLO_PAUSE_TX); in phylink_ethtool_get_pauseparam()
2720 * phylink_ethtool_set_pauseparam() - set the current pause parameters
2722 * @pause: a pointer to a &struct ethtool_pauseparam
2725 struct ethtool_pauseparam *pause) in phylink_ethtool_set_pauseparam() argument
2736 if (!phylink_test(pl->supported, Pause) && in phylink_ethtool_set_pauseparam()
2741 pause->rx_pause != pause->tx_pause) in phylink_ethtool_set_pauseparam()
2745 if (pause->autoneg) in phylink_ethtool_set_pauseparam()
2747 if (pause->rx_pause) in phylink_ethtool_set_pauseparam()
2749 if (pause->tx_pause) in phylink_ethtool_set_pauseparam()
2758 * rx tx Pause AsymDir in phylink_ethtool_set_pauseparam()
2764 * rx/tx pause resolution. in phylink_ethtool_set_pauseparam()
2766 linkmode_set_pause(config->advertising, pause->tx_pause, in phylink_ethtool_set_pauseparam()
2767 pause->rx_pause); in phylink_ethtool_set_pauseparam()
2769 manual_changed = (config->pause ^ pause_state) & MLO_PAUSE_AN || in phylink_ethtool_set_pauseparam()
2771 (config->pause ^ pause_state) & MLO_PAUSE_TXRX_MASK); in phylink_ethtool_set_pauseparam()
2773 config->pause = pause_state; in phylink_ethtool_set_pauseparam()
2783 /* If we have a PHY, a change of the pause frame advertisement will in phylink_ethtool_set_pauseparam()
2789 phy_set_asym_pause(pl->phydev, pause->rx_pause, in phylink_ethtool_set_pauseparam()
2790 pause->tx_pause); in phylink_ethtool_set_pauseparam()
2792 /* If the manual pause settings changed, make sure we trigger a in phylink_ethtool_set_pauseparam()
2897 fs.pause = test_bit(ETHTOOL_LINK_MODE_Pause_BIT, lpa); in phylink_mii_emul_read()
3245 config.pause = MLO_PAUSE_AN; in phylink_sfp_config_phy()
3313 config.pause = MLO_PAUSE_AN; in phylink_sfp_config_optical()
3438 * phy drivers should not set SUPPORTED_[Asym_]Pause") except in phylink_sfp_connect_phy()