Lines Matching +full:current +full:- +full:speed
21 MLO_AN_FIXED, /* Fixed-link mode */
22 MLO_AN_INBAND, /* In-band protocol */
83 * struct phylink_link_state - link state structure
88 * @speed: link speed, one of the SPEED_* constants.
92 * constants. If rate matching is taking place, then the speed/duplex of
93 * the medium link mode (@speed and @duplex) and the speed/duplex of the phy
103 int speed; member
118 * struct phylink_config - PHYLINK configuration structure
131 * @mac_capabilities: MAC pause/speed/duplex capabilities.
147 * struct phylink_mac_ops - MAC operations structure.
150 * @mac_pcs_get_state: Read the current link state from the hardware.
179 phy_interface_t interface, int speed, int duplex,
183 #if 0 /* For kernel-doc purposes only. */
185 * validate - Validate and update the link configuration
190 * Clear bits in the @supported and @state->advertising masks that
199 * When @config->supported_interfaces has been set, phylink will iterate
201 * MAC. The validation function must not print errors if @state->interface
204 * When @config->supported_interfaces is empty, phylink will call this
205 * function with @state->interface set to %PHY_INTERFACE_MODE_NA, and
208 * If the @state->interface mode is not supported, then the @supported
230 * mac_pcs_get_state() - Read the current inband link state from the hardware
234 * Read the current inband link state from the MAC PCS, reporting the
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,
237 * negotiation completion state in @state->an_complete, and link up state
238 * in @state->link. If possible, @state->lp_advertising should also be
249 * mac_prepare() - prepare to change the PHY interface mode
256 * startup time. It may be called for the current mode. The MAC driver
261 * - mac_prepare()
262 * - mac_config()
263 * - pcs_config()
264 * - possible pcs_an_restart()
265 * - mac_finish()
274 * mac_config() - configure the MAC for the selected mode and state
279 * Note - not all members of @state are valid. In particular,
280 * @state->lp_advertising, @state->link, @state->an_complete are never
286 * called on each link up event, and to also change the in-band advert. For
287 * non-legacy drivers, it will only be called to reconfigure the MAC for a
289 * in speed, duplex or pause modes or to change the in-band advertisement.
290 * In any case, it is strongly preferred that speed, duplex and pause settings
293 * (this requires a rewrite - please refer to mac_link_up() for situations
296 * In all negotiation modes, as defined by @mode, @state->pause indicates the
300 * the results of in-band negotiation/status from the MAC PCS should be used
306 * Configure for non-inband negotiation mode, where the link settings
308 * protocol from the MAC is specified by @state->interface.
310 * @state->advertising may be used, but is not required.
312 * Older drivers (prior to the mac_link_up() change) may use @state->speed,
313 * @state->duplex and @state->pause to configure the MAC, but this is
319 * Deprecated state members: speed, duplex, pause.
323 * 1000base-X or Cisco SGMII mode depending on the @state->interface
331 * If in 802.3z mode, the link speed is fixed, dependent on the
332 * @state->interface. Duplex and pause modes are negotiated via
333 * the in-band configuration word. Advertised pause modes are set
334 * according to the @state->an_enabled and @state->advertising
338 * If in Cisco SGMII mode, the link speed and duplex mode are passed
339 * in the serial bitstream 16-bit configuration word, and the MAC
348 * requested settings - i.o.w., if nothing has changed between two
358 * mac_finish() - finish a to change the PHY interface mode
365 * for the @mode and @iface. E.g. a MAC driver may wish to re-enable the
375 * mac_an_restart() - restart 802.3z BaseX autonegotiation
385 * mac_link_down() - take the link down
390 * If @mode is not an in-band negotiation mode (as defined by
399 * mac_link_up() - allow the link to come up
404 * @speed: link speed
411 * @speed, @duplex, @tx_pause and @rx_pause indicate the finalised link
414 * or if in-band negotiation (as defined by phylink_autoneg_inband(@mode))
417 * Note that when 802.3z in-band negotiation is in use, it is possible
421 * If in-band negotiation mode is disabled, allow the link to come up. If
422 * @phy is non-%NULL, configure Energy Efficient Ethernet by calling
428 int speed, int duplex, bool tx_pause, bool rx_pause);
434 * struct phylink_pcs - PHYLINK PCS instance
447 * struct phylink_pcs_ops - MAC PCS operations structure.
449 * @pcs_get_state: read the current MAC PCS link state from the hardware.
466 phy_interface_t interface, int speed, int duplex);
469 #if 0 /* For kernel-doc purposes only. */
471 * pcs_validate() - validate the link configuration.
481 * Returns -EINVAL if the interface mode/autoneg mode is not supported.
482 * Returns non-zero positive if the link state can be supported.
488 * pcs_get_state() - Read the current inband link state from the hardware
492 * Read the current inband link state from the MAC PCS, reporting the
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,
495 * negotiation completion state in @state->an_complete, and link up state
496 * in @state->link. If possible, @state->lp_advertising should also be
506 * pcs_config() - Configure the PCS mode and advertisement
523 * For 1000BASE-X, the advertisement should be programmed into the PCS.
525 * For most 10GBASE-R, there is no advertisement.
532 * pcs_an_restart() - restart 802.3z BaseX autonegotiation
541 * pcs_link_up() - program the PCS for the resolved link configuration
545 * @speed: link speed
550 * mode without in-band AN needs to be manually configured for the link
551 * and duplex setting. Otherwise, this should be a no-op.
554 phy_interface_t interface, int speed, int duplex);