Lines Matching +full:tx +full:- +full:rx
1 // SPDX-License-Identifier: GPL-2.0+
5 * linkmode_resolve_pause - resolve the allowable pause modes
19 * 0 1 1 1 TX
21 * 1 X 1 X TX+RX
22 * 1 1 0 1 RX
47 * linkmode_set_pause - set the pause mode advertisement
49 * @tx: boolean from ethtool struct ethtool_pauseparam tx_pause member
50 * @rx: boolean from ethtool struct ethtool_pauseparam rx_pause member
53 * capabilities of provided in @tx and @rx.
56 * tx rx Pause AsymDir
62 * Note: this translation from ethtool tx/rx notation to the advertisement
65 * For tx=0 rx=1, meaning transmit is unsupported, receive is supported:
69 * 1 1 1 0 TX + RX - but we have no TX support.
70 * 1 1 0 1 Only this gives RX only
72 * For tx=1 rx=1, meaning we have the capability to transmit and receive
77 * 1 0 0 1 Disabled - but since we do support tx and rx,
78 * this should resolve to RX only.
81 * rx=1 tx=0 gives Pause+AsymDir advertisement, but we may end up
82 * resolving to tx+rx pause or only rx pause depending on
84 * rx=0 tx=1 gives AsymDir only, which will only give tx pause if
86 * rx=1 tx=1 gives Pause only, which will only allow tx+rx pause
89 void linkmode_set_pause(unsigned long *advertisement, bool tx, bool rx) in linkmode_set_pause() argument
91 linkmode_mod_bit(ETHTOOL_LINK_MODE_Pause_BIT, advertisement, rx); in linkmode_set_pause()
93 rx ^ tx); in linkmode_set_pause()