Lines Matching full:mode
23 MLO_AN_FIXED, /* Fixed-link mode */
27 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument
29 return mode == MLO_AN_INBAND; in phylink_autoneg_inband()
37 * @interface: link &typedef phy_interface_t mode
39 * @duplex: link duplex mode, one of DUPLEX_* constants.
76 * @mac_config: configure the MAC for the selected mode and state.
89 void (*mac_config)(struct phylink_config *config, unsigned int mode,
92 void (*mac_link_down)(struct phylink_config *config, unsigned int mode,
94 void (*mac_link_up)(struct phylink_config *config, unsigned int mode,
111 * because the MAC is unable to BaseX mode. This is more about
115 * If the @state->interface mode is %PHY_INTERFACE_MODE_1000BASEX
116 * or %PHY_INTERFACE_MODE_2500BASEX, select the appropriate mode
123 * If the @state->interface mode is not supported, then the @supported
135 * speed in @state->speed, duplex mode in @state->duplex, pause mode
144 * mac_config() - configure the MAC for the selected mode and state
146 * @mode: one of %MLO_AN_FIXED, %MLO_AN_PHY, %MLO_AN_INBAND.
154 * The action performed depends on the currently selected mode:
165 * place the link in an inband negotiation mode (such as 802.3z
166 * 1000base-X or Cisco SGMII mode depending on the @state->interface
167 * mode). In both cases, link state management (whether the link
172 * If in 802.3z mode, the link speed is fixed, dependent on the
178 * If in Cisco SGMII mode, the link speed and duplex mode are passed
194 void mac_config(struct phylink_config *config, unsigned int mode,
206 * @mode: link autonegotiation mode
207 * @interface: link &typedef phy_interface_t mode
209 * If @mode is not an in-band negotiation mode (as defined by
214 void mac_link_down(struct phylink_config *config, unsigned int mode,
220 * @mode: link autonegotiation mode
221 * @interface: link &typedef phy_interface_t mode
224 * If @mode is not an in-band negotiation mode (as defined by
230 void mac_link_up(struct phylink_config *config, unsigned int mode,
272 #define __phylink_do_bit(op, bm, mode) \ argument
273 op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm)
275 #define phylink_set(bm, mode) __phylink_do_bit(__set_bit, bm, mode) argument
276 #define phylink_clear(bm, mode) __phylink_do_bit(__clear_bit, bm, mode) argument
277 #define phylink_test(bm, mode) __phylink_do_bit(test_bit, bm, mode) argument