Lines Matching +full:current +full:- +full:speed
21 MLO_AN_FIXED, /* Fixed-link mode */
22 MLO_AN_INBAND, /* In-band protocol */
31 * struct phylink_link_state - link state structure
36 * @speed: link speed, one of the SPEED_* constants.
47 int speed; member
61 * struct phylink_config - PHYLINK configuration structure
82 * struct phylink_mac_ops - MAC operations structure.
84 * @mac_pcs_get_state: Read the current link state from the hardware.
111 phy_interface_t interface, int speed, int duplex,
115 #if 0 /* For kernel-doc purposes only. */
117 * validate - Validate and update the link configuration
122 * Clear bits in the @supported and @state->advertising masks that
131 * If the @state->interface mode is %PHY_INTERFACE_MODE_1000BASEX
133 * based on @state->advertising and/or @state->speed and update
134 * @state->interface accordingly. See phylink_helper_basex_speed().
136 * When @state->interface is %PHY_INTERFACE_MODE_NA, phylink expects the
139 * If the @state->interface mode is not supported, then the @supported
146 * mac_pcs_get_state() - Read the current inband link state from the hardware
150 * Read the current inband link state from the MAC PCS, reporting the
151 * current speed in @state->speed, duplex mode in @state->duplex, pause
152 * mode in @state->pause using the %MLO_PAUSE_RX and %MLO_PAUSE_TX bits,
153 * negotiation completion state in @state->an_complete, and link up state
154 * in @state->link. If possible, @state->lp_advertising should also be
161 * mac_prepare() - prepare to change the PHY interface mode
168 * startup time. It may be called for the current mode. The MAC driver
173 * - mac_prepare()
174 * - mac_config()
175 * - pcs_config()
176 * - possible pcs_an_restart()
177 * - mac_finish()
186 * mac_config() - configure the MAC for the selected mode and state
191 * Note - not all members of @state are valid. In particular,
192 * @state->lp_advertising, @state->link, @state->an_complete are never
196 * (this requires a rewrite - please refer to mac_link_up() for situations
199 * In all negotiation modes, as defined by @mode, @state->pause indicates the
203 * the results of in-band negotiation/status from the MAC PCS should be used
209 * Configure for non-inband negotiation mode, where the link settings
211 * protocol from the MAC is specified by @state->interface.
213 * @state->advertising may be used, but is not required.
215 * Older drivers (prior to the mac_link_up() change) may use @state->speed,
216 * @state->duplex and @state->pause to configure the MAC, but this is
222 * Deprecated state members: speed, duplex, pause.
226 * 1000base-X or Cisco SGMII mode depending on the @state->interface
234 * If in 802.3z mode, the link speed is fixed, dependent on the
235 * @state->interface. Duplex and pause modes are negotiated via
236 * the in-band configuration word. Advertised pause modes are set
237 * according to the @state->an_enabled and @state->advertising
241 * If in Cisco SGMII mode, the link speed and duplex mode are passed
242 * in the serial bitstream 16-bit configuration word, and the MAC
251 * requested settings - i.o.w., if nothing has changed between two
261 * mac_finish() - finish a to change the PHY interface mode
268 * for the @mode and @iface. E.g. a MAC driver may wish to re-enable the
278 * mac_an_restart() - restart 802.3z BaseX autonegotiation
284 * mac_link_down() - take the link down
289 * If @mode is not an in-band negotiation mode (as defined by
298 * mac_link_up() - allow the link to come up
303 * @speed: link speed
310 * @speed, @duplex, @tx_pause and @rx_pause indicate the finalised link
313 * or if in-band negotiation (as defined by phylink_autoneg_inband(@mode))
316 * Note that when 802.3z in-band negotiation is in use, it is possible
320 * If in-band negotiation mode is disabled, allow the link to come up. If
321 * @phy is non-%NULL, configure Energy Efficient Ethernet by calling
327 int speed, int duplex, bool tx_pause, bool rx_pause);
333 * struct phylink_pcs - PHYLINK PCS instance
346 * struct phylink_pcs_ops - MAC PCS operations structure.
347 * @pcs_get_state: read the current MAC PCS link state from the hardware.
362 phy_interface_t interface, int speed, int duplex);
365 #if 0 /* For kernel-doc purposes only. */
367 * pcs_get_state() - Read the current inband link state from the hardware
371 * Read the current inband link state from the MAC PCS, reporting the
372 * current speed in @state->speed, duplex mode in @state->duplex, pause
373 * mode in @state->pause using the %MLO_PAUSE_RX and %MLO_PAUSE_TX bits,
374 * negotiation completion state in @state->an_complete, and link up state
375 * in @state->link. If possible, @state->lp_advertising should also be
385 * pcs_config() - Configure the PCS mode and advertisement
402 * For 1000BASE-X, the advertisement should be programmed into the PCS.
404 * For most 10GBASE-R, there is no advertisement.
411 * pcs_an_restart() - restart 802.3z BaseX autonegotiation
420 * pcs_link_up() - program the PCS for the resolved link configuration
424 * @speed: link speed
429 * mode without in-band AN needs to be manually configured for the link
430 * and duplex setting. Otherwise, this should be a no-op.
433 phy_interface_t interface, int speed, int duplex);