Lines Matching defs:link

116 static s32  e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link);
760 /* link setup */
764 /* check for link */
766 /* link info */
899 * the link and the EEE capabilities of the link partner. The LPI Control
900 * register bits will remain set only if/when link is up.
902 * EEE LPI must not be asserted earlier than one second after link is up.
904 * can be link issues with some switches. Other devices can have EEE LPI
905 * enabled immediately upon link up since they have a timer in hardware which
944 /* Save off link partner's EEE ability */
955 /* Enable EEE only for speeds in which the link partner is
1001 * @link: link up bool flag
1006 * Also, set appropriate Tx re-transmission timeouts for 10 and 100Half link
1009 static s32 e1000_k1_workaround_lpt_lp(struct e1000_hw *hw, bool link)
1016 if (link && (status & E1000_STATUS_SPEED_1000)) {
1047 /* clear FEXTNVM6 bit 8 on link down or 10/100 */
1050 if ((hw->phy.revision > 5) || !link ||
1059 /* Clear link status transmit timeout */
1102 * @link: bool indicating link status
1105 * GbE MAC in the Lynx Point PCH based on Rx buffer size and link speed
1106 * when link is up (which must not exceed the maximum latency supported
1118 static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link)
1120 u32 reg = link << (E1000_LTRV_REQ_SHIFT + E1000_LTRV_NOSNOOP_SHIFT) |
1121 link << E1000_LTRV_REQ_SHIFT | E1000_LTRV_SEND;
1127 if (link) {
1255 * When link is down, configure ULP mode to significantly reduce the power
1290 /* Bail if link is re-acquired */
1396 * Un-configure ULP mode when link is up, the system is transitioned from
1401 * During nominal operation, this function is called when link is acquired
1537 * e1000_check_for_copper_link_ich8lan - Check for link (Copper)
1540 * Checks to see of the link status of the hardware has changed. If a
1541 * change in link status has been detected, then we read the PHY registers
1542 * to get the current speed/duplex if link exists.
1549 bool link;
1555 * has completed and/or if our link status has changed. The
1563 * link. If so, then we want to get the current speed/duplex
1566 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link);
1571 ret_val = e1000_k1_gig_workaround_hv(hw, link);
1580 if ((hw->mac.type >= e1000_pch2lan) && link) {
1706 ret_val = e1000_k1_workaround_lpt_lp(hw, link);
1715 ret_val = e1000_platform_pm_pch_lpt(hw, link);
1720 /* Clear link partner's EEE ability */
1742 if (!link)
1743 return E1000_SUCCESS; /* No link detected */
1779 * immediately after link-up
1783 /* Enable/Disable EEE after link up */
1791 * we have already determined whether we have link or not.
1805 * different link partner.
2391 * @link: link up bool flag
2394 * from a lower speed. This workaround disables K1 whenever link is at 1Gig
2395 * If link is down, the function will restore the default K1 setting located
2398 static s32 e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link)
2414 /* Disable K1 when link is 1Gbps, otherwise use the NVM setting */
2415 if (link) {
2448 /* Link stall fix for link up */
2455 /* Link stall fix for link down */
2679 * link so that it disables K1 if link is in 1Gbps.
2685 /* Workaround for link disconnects on a busy hub in half duplex */
2697 /* set MSE higher to enable link to stay up when noise is high */
2960 /* set MSE higher to enable link to stay up when noise is high */
2964 /* drop link after 5 times MSE threshold was reached */
3071 * leave the PHY in a bad state possibly resulting in no link.
4858 * link based on logic in e1000_led_[on|off]_pchlan().
5114 /* Setup link and flow control */
5145 * important that we do this after we have tried to establish link
5147 * is no link.
5236 * e1000_setup_link_ich8lan - Setup flow control and link settings
5240 * control. Calls the appropriate media-specific link configuration
5241 * function. Assuming the adapter has a valid link partner, a valid link
5262 * on the link partner's capabilities, we may or may not use this mode.
5269 /* Continue to configure the copper link. */
5297 * configuring the copper link.
5386 * Calls the PHY specific link setup function and then calls the
5387 * generic setup_copper_link to finish configuring the link for
5410 * e1000_get_link_up_info_ich8lan - Get current link speed and duplex
5412 * @speed: pointer to store current link speed
5413 * @duplex: pointer to store the current link duplex
5415 * Calls the generic get_speed_and_duplex to retrieve the current link
5444 * On link status change (i.e. PCI reset, speed change) and link is up and
5447 * 1) wait 1ms for Kumeran link to come up
5449 * 3) if not set the link is locked (all is good), otherwise...
5460 bool link;
5467 /* Make sure link is up before proceeding. If not just return.
5468 * Attempting this while link is negotiating fouled up link
5471 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link);
5472 if (!link)
5493 /* Disable GigE link negotiation */
5538 * 1) disable gigabit link
5556 /* Disable link */
5591 * Steps to take when dropping from 1Gb/s (eg. link cable removal (LSC),
5627 * During S0 to Sx transition, it is possible the link remains at gig
5629 * 'Gig Disable' to force link speed negotiation to a lower speed based on
5676 /* Disable LPLU if both link partners support 100BaseT
5678 * link, and enable Auto Enable LPI since there will
5688 /* Set Auto Enable LPI after link up */
5799 /* Clear Auto Enable LPI after link up */
5930 /* If no link, then turn LED on by setting the invert bit
5962 /* If no link, then turn LED off by clearing the invert bit
5991 * or change link.
6011 * where there is no eeprom and prevents getting link.
6043 * e1000_power_down_phy_copper_ich8lan - Remove link during PHY power down
6046 * In the case of a PHY power down to save power, or to turn off link during a
6047 * driver unload, or wake on lan is not enabled, remove the link.