Lines Matching defs:link

757 			default: printf("Unknown link speed); ");
1442 * We can't manually override remote PHY's link and assume
2028 /* Called by the MII bus driver when the PHY establishes link to set the */
2091 DBPRINT(sc, BCE_INFO_PHY, "Unknown link speed, enabling "
4985 * contains appropriate values for the link settings that have
5220 /* Set up link change interrupt generation. */
5330 /* Enable link state change interrupt generation. */
6135 u32 advertise, link;
6141 link = bce_shmem_rd(sc, BCE_RPHY_SERDES_LINK);
6143 link = bce_shmem_rd(sc, BCE_RPHY_COPPER_LINK);
6144 if (link & BCE_NETLINK_ANEG_ENB)
6146 if (link & BCE_NETLINK_SPEED_10HALF)
6148 if (link & BCE_NETLINK_SPEED_10FULL) {
6152 if (link & BCE_NETLINK_SPEED_100HALF)
6154 if (link & BCE_NETLINK_SPEED_100FULL) {
6158 if (link & BCE_NETLINK_SPEED_1000HALF)
6160 if (link & BCE_NETLINK_SPEED_1000FULL) {
6164 if (link & BCE_NETLINK_SPEED_2500HALF)
6166 if (link & BCE_NETLINK_SPEED_2500FULL) {
6217 u32 link;
6230 link = 0;
6235 * Check advertised link of remote PHY by reading
6237 * Always use the same link type of remote PHY.
6239 link = bce_get_rphy_link(sc);
6251 link |= BCE_NETLINK_SPEED_2500FULL;
6253 link |= BCE_NETLINK_SPEED_2500HALF;
6264 link = BCE_NETLINK_SPEED_1000FULL;
6266 link = BCE_NETLINK_SPEED_1000HALF;
6272 link = BCE_NETLINK_SPEED_1000FULL;
6274 link = BCE_NETLINK_SPEED_1000HALF;
6280 link = BCE_NETLINK_SPEED_100FULL;
6282 link = BCE_NETLINK_SPEED_100HALF;
6288 link = BCE_NETLINK_SPEED_10FULL;
6290 link = BCE_NETLINK_SPEED_10HALF;
6301 link |= BCE_NETLINK_FC_PAUSE_SYM |
6305 link |= BCE_NETLINK_PHY_APP_REMOTE |
6309 bce_shmem_wr(sc, BCE_MB_ARGS_0, link);
6331 u32 link;
6338 link = bce_shmem_rd(sc, BCE_LINK_STATUS);
6340 if ((link & BCE_LINK_STATUS_LINK_UP) != 0)
6347 switch (link & BCE_LINK_STATUS_SPEED_MASK) {
6399 if ((link & BCE_LINK_STATUS_RX_FC_ENABLED) != 0)
6401 if ((link & BCE_LINK_STATUS_TX_FC_ENABLED) != 0)
6462 /* Handle any changes if the link state has changed. */
6481 if_printf(sc->bce_ifp, "link UP\n");
6486 if_printf(sc->bce_ifp, "link DOWN\n");
6492 * Assume link is down and allow
6501 /* Acknowledge the link change interrupt. */
7585 /* If there's no link or the transmit queue is empty then just exit. */
7587 DBPRINT(sc, BCE_INFO_SEND, "%s(): No link.\n",
7864 * If link partner has us in XOFF state then wait for
7981 /* Was it a link change interrupt? */
7987 /* Clear transient updates during link state change. */
8487 /* If link is up already up then we're done. */
8503 /* Check if the link has come up. */
8513 BCE_PRINTF("Gigabit link up!\n");
8518 /* Now that link is up, handle any outstanding TX traffic. */
8533 u32 ack, cap, link;
8548 link = bce_shmem_rd(sc, BCE_LINK_STATUS);
8549 if ((link & BCE_LINK_STATUS_SERDES_LINK) != 0)