Lines Matching defs:link

116 static s32  e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link);
759 /* link setup */
763 /* check for link */
765 /* link info */
898 * the link and the EEE capabilities of the link partner. The LPI Control
899 * register bits will remain set only if/when link is up.
901 * EEE LPI must not be asserted earlier than one second after link is up.
903 * can be link issues with some switches. Other devices can have EEE LPI
904 * enabled immediately upon link up since they have a timer in hardware which
943 /* Save off link partner's EEE ability */
954 /* Enable EEE only for speeds in which the link partner is
1000 * @link: link up bool flag
1005 * Also, set appropriate Tx re-transmission timeouts for 10 and 100Half link
1008 static s32 e1000_k1_workaround_lpt_lp(struct e1000_hw *hw, bool link)
1015 if (link && (status & E1000_STATUS_SPEED_1000)) {
1046 /* clear FEXTNVM6 bit 8 on link down or 10/100 */
1049 if ((hw->phy.revision > 5) || !link ||
1058 /* Clear link status transmit timeout */
1101 * @link: bool indicating link status
1104 * GbE MAC in the Lynx Point PCH based on Rx buffer size and link speed
1105 * when link is up (which must not exceed the maximum latency supported
1117 static s32 e1000_platform_pm_pch_lpt(struct e1000_hw *hw, bool link)
1119 u32 reg = link << (E1000_LTRV_REQ_SHIFT + E1000_LTRV_NOSNOOP_SHIFT) |
1120 link << E1000_LTRV_REQ_SHIFT | E1000_LTRV_SEND;
1126 if (link) {
1254 * When link is down, configure ULP mode to significantly reduce the power
1289 /* Bail if link is re-acquired */
1395 * Un-configure ULP mode when link is up, the system is transitioned from
1400 * During nominal operation, this function is called when link is acquired
1536 * e1000_check_for_copper_link_ich8lan - Check for link (Copper)
1539 * Checks to see of the link status of the hardware has changed. If a
1540 * change in link status has been detected, then we read the PHY registers
1541 * to get the current speed/duplex if link exists.
1548 bool link;
1554 * has completed and/or if our link status has changed. The
1562 * link. If so, then we want to get the current speed/duplex
1565 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link);
1570 ret_val = e1000_k1_gig_workaround_hv(hw, link);
1581 (hw->mac.type == e1000_pch_spt)) && link) {
1708 ret_val = e1000_k1_workaround_lpt_lp(hw, link);
1718 ret_val = e1000_platform_pm_pch_lpt(hw, link);
1723 /* Clear link partner's EEE ability */
1740 if (!link)
1741 return E1000_SUCCESS; /* No link detected */
1777 * immediately after link-up
1781 /* Enable/Disable EEE after link up */
1789 * we have already determined whether we have link or not.
1803 * different link partner.
2387 * @link: link up bool flag
2390 * from a lower speed. This workaround disables K1 whenever link is at 1Gig
2391 * If link is down, the function will restore the default K1 setting located
2394 static s32 e1000_k1_gig_workaround_hv(struct e1000_hw *hw, bool link)
2410 /* Disable K1 when link is 1Gbps, otherwise use the NVM setting */
2411 if (link) {
2444 /* Link stall fix for link up */
2451 /* Link stall fix for link down */
2673 * link so that it disables K1 if link is in 1Gbps.
2679 /* Workaround for link disconnects on a busy hub in half duplex */
2691 /* set MSE higher to enable link to stay up when noise is high */
2954 /* set MSE higher to enable link to stay up when noise is high */
2958 /* drop link after 5 times MSE threshold was reached */
3065 * leave the PHY in a bad state possibly resulting in no link.
4850 * link based on logic in e1000_led_[on|off]_pchlan().
5106 /* Setup link and flow control */
5137 * important that we do this after we have tried to establish link
5139 * is no link.
5229 * e1000_setup_link_ich8lan - Setup flow control and link settings
5233 * control. Calls the appropriate media-specific link configuration
5234 * function. Assuming the adapter has a valid link partner, a valid link
5255 * on the link partner's capabilities, we may or may not use this mode.
5262 /* Continue to configure the copper link. */
5290 * configuring the copper link.
5379 * Calls the PHY specific link setup function and then calls the
5380 * generic setup_copper_link to finish configuring the link for
5403 * e1000_get_link_up_info_ich8lan - Get current link speed and duplex
5405 * @speed: pointer to store current link speed
5406 * @duplex: pointer to store the current link duplex
5408 * Calls the generic get_speed_and_duplex to retrieve the current link
5437 * On link status change (i.e. PCI reset, speed change) and link is up and
5440 * 1) wait 1ms for Kumeran link to come up
5442 * 3) if not set the link is locked (all is good), otherwise...
5453 bool link;
5460 /* Make sure link is up before proceeding. If not just return.
5461 * Attempting this while link is negotiating fouled up link
5464 ret_val = e1000_phy_has_link_generic(hw, 1, 0, &link);
5465 if (!link)
5486 /* Disable GigE link negotiation */
5531 * 1) disable gigabit link
5549 /* Disable link */
5584 * Steps to take when dropping from 1Gb/s (eg. link cable removal (LSC),
5620 * During S0 to Sx transition, it is possible the link remains at gig
5622 * 'Gig Disable' to force link speed negotiation to a lower speed based on
5669 /* Disable LPLU if both link partners support 100BaseT
5671 * link, and enable Auto Enable LPI since there will
5681 /* Set Auto Enable LPI after link up */
5792 /* Clear Auto Enable LPI after link up */
5923 /* If no link, then turn LED on by setting the invert bit
5955 /* If no link, then turn LED off by clearing the invert bit
5984 * or change link.
6004 * where there is no eeprom and prevents getting link.
6036 * e1000_power_down_phy_copper_ich8lan - Remove link during PHY power down
6039 * In the case of a PHY power down to save power, or to turn off link during a
6040 * driver unload, or wake on lan is not enabled, remove the link.