Lines Matching full:mode

21 	MLO_AN_FIXED,	/* Fixed-link mode */
77 static inline bool phylink_autoneg_inband(unsigned int mode) in phylink_autoneg_inband() argument
79 return mode == MLO_AN_INBAND; in phylink_autoneg_inband()
87 * @interface: link &typedef phy_interface_t mode
89 * @duplex: link duplex mode, one of DUPLEX_* constants.
93 * the medium link mode (@speed and @duplex) and the speed/duplex of the phy
94 * interface mode (@interface) are different.
124 * if MAC link is at %MLO_AN_FIXED mode.
128 * if MAC link is at %MLO_AN_FIXED mode.
149 * @mac_select_pcs: Select a PCS for the interface mode.
152 * @mac_config: configure the MAC for the selected mode and state.
168 int (*mac_prepare)(struct phylink_config *config, unsigned int mode,
170 void (*mac_config)(struct phylink_config *config, unsigned int mode,
172 int (*mac_finish)(struct phylink_config *config, unsigned int mode,
175 void (*mac_link_down)(struct phylink_config *config, unsigned int mode,
178 struct phy_device *phy, unsigned int mode,
195 * because the MAC is unable to BaseX mode. This is more about
208 * If the @state->interface mode is not supported, then the @supported
214 * mac_select_pcs: Select a PCS for the interface mode.
216 * @interface: PHY interface mode for PCS
218 * Return the &struct phylink_pcs for the specified interface mode, or
235 * current speed in @state->speed, duplex mode in @state->duplex, pause
236 * mode in @state->pause using the %MLO_PAUSE_RX and %MLO_PAUSE_TX bits,
249 * mac_prepare() - prepare to change the PHY interface mode
251 * @mode: one of %MLO_AN_FIXED, %MLO_AN_PHY, %MLO_AN_INBAND.
252 * @iface: interface mode to switch to
255 * of the link, which includes changing the interface mode or at initial
256 * startup time. It may be called for the current mode. The MAC driver
270 int mac_prepare(struct phylink_config *config, unsigned int mode,
274 * mac_config() - configure the MAC for the selected mode and state
276 * @mode: one of %MLO_AN_FIXED, %MLO_AN_PHY, %MLO_AN_INBAND.
288 * "major" change in e.g. interface mode. It will not be called for changes
296 * In all negotiation modes, as defined by @mode, @state->pause indicates the
301 * to control the MAC pause mode settings.
303 * The action performed depends on the currently selected mode:
306 * Configure for non-inband negotiation mode, where the link settings
322 * place the link in an inband negotiation mode (such as 802.3z
323 * 1000base-X or Cisco SGMII mode depending on the @state->interface
324 * mode). In both cases, link state management (whether the link
329 * Interface mode specific details are mentioned below.
331 * If in 802.3z mode, the link speed is fixed, dependent on the
338 * If in Cisco SGMII mode, the link speed and duplex mode are passed
354 void mac_config(struct phylink_config *config, unsigned int mode,
358 * mac_finish() - finish a to change the PHY interface mode
360 * @mode: one of %MLO_AN_FIXED, %MLO_AN_PHY, %MLO_AN_INBAND.
361 * @iface: interface mode to switch to
365 * for the @mode and @iface. E.g. a MAC driver may wish to re-enable the
371 int mac_finish(struct phylink_config *config, unsigned int mode,
387 * @mode: link autonegotiation mode
388 * @interface: link &typedef phy_interface_t mode
390 * If @mode is not an in-band negotiation mode (as defined by
395 void mac_link_down(struct phylink_config *config, unsigned int mode,
402 * @mode: link autonegotiation mode
403 * @interface: link &typedef phy_interface_t mode
414 * or if in-band negotiation (as defined by phylink_autoneg_inband(@mode))
421 * If in-band negotiation mode is disabled, allow the link to come up. If
427 unsigned int mode, phy_interface_t interface,
450 * @pcs_config: configure the MAC PCS for the selected mode and state.
460 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int mode,
465 void (*pcs_link_up)(struct phylink_pcs *pcs, unsigned int mode,
476 * Validate the interface mode, and advertising's autoneg bit, removing any
481 * Returns -EINVAL if the interface mode/autoneg mode is not supported.
493 * current speed in @state->speed, duplex mode in @state->duplex, pause
494 * mode in @state->pause using the %MLO_PAUSE_RX and %MLO_PAUSE_TX bits,
506 * pcs_config() - Configure the PCS mode and advertisement
508 * @mode: one of %MLO_AN_FIXED, %MLO_AN_PHY, %MLO_AN_INBAND.
509 * @interface: interface mode to be used
510 * @advertising: adertisement ethtool link mode mask
513 * Configure the PCS for the operating mode, the interface mode, and set
515 * hardware may forward the pause mode resolution to the MAC.
527 int pcs_config(struct phylink_pcs *pcs, unsigned int mode,
543 * @mode: link autonegotiation mode
544 * @interface: link &typedef phy_interface_t mode
550 * mode without in-band AN needs to be manually configured for the link
553 void pcs_link_up(struct phylink_pcs *pcs, unsigned int mode,
607 #define __phylink_do_bit(op, bm, mode) \ argument
608 op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm)
610 #define phylink_set(bm, mode) __phylink_do_bit(__set_bit, bm, mode) argument
611 #define phylink_clear(bm, mode) __phylink_do_bit(__clear_bit, bm, mode) argument
612 #define phylink_test(bm, mode) __phylink_do_bit(test_bit, bm, mode) argument
622 int phylink_mii_c22_pcs_config(struct mdio_device *pcs, unsigned int mode,