Lines Matching defs:link

128 static s32 e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link);
803 * the link and the EEE capabilities of the link partner. The LPI Control
804 * register bits will remain set only if/when link is up.
806 * EEE LPI must not be asserted earlier than one second after link is up.
808 * can be link issues with some switches. Other devices can have EEE LPI
809 * enabled immediately upon link up since they have a timer in hardware which
846 /* Save off link partner's EEE ability */
857 /* Enable EEE only for speeds in which the link partner is
903 * @link: link up bool flag
908 * Also, set appropriate Tx re-transmission timeouts for 10 and 100Half link
911 static s32 e1000_k1_workaround_lpt_lp(struct e1000_hw *hw, bool link)
918 if (link && (status & E1000_STATUS_SPEED_1000)) {
948 /* clear FEXTNVM6 bit 8 on link down or 10/100 */
951 if ((hw->phy.revision > 5) || !link ||
960 /* Clear link status transmit timeout */
992 * @link: bool indicating link status
995 * GbE MAC in the Lynx Point PCH based on Rx buffer size and link speed
996 * when link is up (which must not exceed the maximum latency supported
1005 static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link)
1007 u32 reg = link << (E1000_LTRV_REQ_SHIFT + E1000_LTRV_NOSNOOP_SHIFT) |
1008 link << E1000_LTRV_REQ_SHIFT | E1000_LTRV_SEND;
1013 if (link) {
1090 * When link is down, configure ULP mode to significantly reduce the power
1124 /* Bail if link is re-acquired */
1229 * Un-configure ULP mode when link is up, the system is transitioned from
1234 * During nominal operation, this function is called when link is acquired
1380 * e1000_check_for_copper_link_ich8lan - Check for link (Copper)
1383 * Checks to see of the link status of the hardware has changed. If a
1384 * change in link status has been detected, then we read the PHY registers
1385 * to get the current speed/duplex if link exists.
1392 bool link;
1396 * has completed and/or if our link status has changed. The
1405 * link. If so, then we want to get the current speed/duplex
1408 ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
1413 ret_val = e1000_k1_gig_workaround_hv(hw, link);
1422 if ((hw->mac.type >= e1000_pch2lan) && link) {
1546 ret_val = e1000_k1_workaround_lpt_lp(hw, link);
1554 ret_val = e1000_platform_pm_pch_lpt(hw, link);
1559 /* Clear link partner's EEE ability */
1578 if (!link)
1612 * immediately after link-up
1616 /* Enable/Disable EEE after link up */
1624 * we have already determined whether we have link or not.
1638 * different link partner.
2220 * @link: link up bool flag
2223 * from a lower speed. This workaround disables K1 whenever link is at 1Gig
2224 * If link is down, the function will restore the default K1 setting located
2227 static s32 e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link)
2241 /* Disable K1 when link is 1Gbps, otherwise use the NVM setting */
2242 if (link) {
2274 /* Link stall fix for link up */
2280 /* Link stall fix for link down */
2494 * link so that it disables K1 if link is in 1Gbps.
2500 /* Workaround for link disconnects on a busy hub in half duplex */
2511 /* set MSE higher to enable link to stay up when noise is high */
2747 /* set MSE higher to enable link to stay up when noise is high */
2751 /* drop link after 5 times MSE threshold was reached */
2851 * leave the PHY in a bad state possibly resulting in no link.
4599 * link based on logic in e1000_led_[on|off]_pchlan().
4847 /* Setup link and flow control */
4887 * important that we do this after we have tried to establish link
4889 * is no link.
4974 * e1000_setup_link_ich8lan - Setup flow control and link settings
4978 * control. Calls the appropriate media-specific link configuration
4979 * function. Assuming the adapter has a valid link partner, a valid link
5003 * on the link partner's capabilities, we may or may not use this mode.
5009 /* Continue to configure the copper link. */
5036 * configuring the copper link.
5118 * Calls the PHY specific link setup function and then calls the
5119 * generic setup_copper_link to finish configuring the link for
5140 * e1000_get_link_up_info_ich8lan - Get current link speed and duplex
5142 * @speed: pointer to store current link speed
5143 * @duplex: pointer to store the current link duplex
5145 * Calls the generic get_speed_and_duplex to retrieve the current link
5171 * On link status change (i.e. PCI reset, speed change) and link is up and
5174 * 1) wait 1ms for Kumeran link to come up
5176 * 3) if not set the link is locked (all is good), otherwise...
5187 bool link;
5192 /* Make sure link is up before proceeding. If not just return.
5193 * Attempting this while link is negotiating fouled up link
5196 ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link);
5197 if (!link)
5218 /* Disable GigE link negotiation */
5259 * 1) disable gigabit link
5275 /* Disable link */
5309 * Steps to take when dropping from 1Gb/s (eg. link cable removal (LSC),
5340 * During S0 to Sx transition, it is possible the link remains at gig
5342 * 'Gig Disable' to force link speed negotiation to a lower speed based on
5386 /* Disable LPLU if both link partners support 100BaseT
5388 * link, and enable Auto Enable LPI since there will
5398 /* Set Auto Enable LPI after link up */
5501 /* Clear Auto Enable LPI after link up */
5613 /* If no link, then turn LED on by setting the invert bit
5643 /* If no link, then turn LED off by clearing the invert bit
5672 * or change link.
5690 * where there is no eeprom and prevents getting link.
5722 * e1000_power_down_phy_copper_ich8lan - Remove link during PHY power down
5725 * In the case of a PHY power down to save power, or to turn off link during a
5726 * driver unload, or wake on lan is not enabled, remove the link.