Lines Matching defs:link

723 			default: printf("Unknown link speed); ");
1407 * We can't manually override remote PHY's link and assume
1993 /* Called by the MII bus driver when the PHY establishes link to set the */
2056 DBPRINT(sc, BCE_INFO_PHY, "Unknown link speed, enabling "
4966 * contains appropriate values for the link settings that have
5201 /* Set up link change interrupt generation. */
5311 /* Enable link state change interrupt generation. */
6116 u32 advertise, link;
6122 link = bce_shmem_rd(sc, BCE_RPHY_SERDES_LINK);
6124 link = bce_shmem_rd(sc, BCE_RPHY_COPPER_LINK);
6125 if (link & BCE_NETLINK_ANEG_ENB)
6127 if (link & BCE_NETLINK_SPEED_10HALF)
6129 if (link & BCE_NETLINK_SPEED_10FULL) {
6133 if (link & BCE_NETLINK_SPEED_100HALF)
6135 if (link & BCE_NETLINK_SPEED_100FULL) {
6139 if (link & BCE_NETLINK_SPEED_1000HALF)
6141 if (link & BCE_NETLINK_SPEED_1000FULL) {
6145 if (link & BCE_NETLINK_SPEED_2500HALF)
6147 if (link & BCE_NETLINK_SPEED_2500FULL) {
6198 u32 link;
6211 link = 0;
6216 * Check advertised link of remote PHY by reading
6218 * Always use the same link type of remote PHY.
6220 link = bce_get_rphy_link(sc);
6232 link |= BCE_NETLINK_SPEED_2500FULL;
6234 link |= BCE_NETLINK_SPEED_2500HALF;
6245 link = BCE_NETLINK_SPEED_1000FULL;
6247 link = BCE_NETLINK_SPEED_1000HALF;
6253 link = BCE_NETLINK_SPEED_1000FULL;
6255 link = BCE_NETLINK_SPEED_1000HALF;
6261 link = BCE_NETLINK_SPEED_100FULL;
6263 link = BCE_NETLINK_SPEED_100HALF;
6269 link = BCE_NETLINK_SPEED_10FULL;
6271 link = BCE_NETLINK_SPEED_10HALF;
6282 link |= BCE_NETLINK_FC_PAUSE_SYM |
6286 link |= BCE_NETLINK_PHY_APP_REMOTE |
6290 bce_shmem_wr(sc, BCE_MB_ARGS_0, link);
6312 u32 link;
6319 link = bce_shmem_rd(sc, BCE_LINK_STATUS);
6321 if ((link & BCE_LINK_STATUS_LINK_UP) != 0)
6328 switch (link & BCE_LINK_STATUS_SPEED_MASK) {
6380 if ((link & BCE_LINK_STATUS_RX_FC_ENABLED) != 0)
6382 if ((link & BCE_LINK_STATUS_TX_FC_ENABLED) != 0)
6443 /* Handle any changes if the link state has changed. */
6462 if_printf(sc->bce_ifp, "link UP\n");
6467 if_printf(sc->bce_ifp, "link DOWN\n");
6473 * Assume link is down and allow
6482 /* Acknowledge the link change interrupt. */
7568 /* If there's no link or the transmit queue is empty then just exit. */
7570 DBPRINT(sc, BCE_INFO_SEND, "%s(): No link.\n",
7847 * If link partner has us in XOFF state then wait for
7964 /* Was it a link change interrupt? */
7970 /* Clear transient updates during link state change. */
8467 /* If link is up already up then we're done. */
8483 /* Check if the link has come up. */
8493 BCE_PRINTF("Gigabit link up!\n");
8498 /* Now that link is up, handle any outstanding TX traffic. */
8513 u32 ack, cap, link;
8528 link = bce_shmem_rd(sc, BCE_LINK_STATUS);
8529 if ((link & BCE_LINK_STATUS_SERDES_LINK) != 0)