Lines Matching defs:link
298 /* Returns the current link status of LMAC */
302 struct bgx_link_status *link = (struct bgx_link_status *)status;
311 link->link_up = lmac->link_up;
312 link->duplex = lmac->last_duplex;
313 link->speed = lmac->last_speed;
411 int link, duplex, speed;
418 &link, &duplex, &speed);
422 if (!link && lmac->last_link)
425 if (link &&
427 lmac->last_link != link ||
432 lmac->last_link = link;
764 device_printf(bgx->dev, "SMU RX link not okay\n");
788 /* Receive link is latching low. Force it high and verify it */
792 device_printf(bgx->dev, "SPU receive link down\n");
806 uint64_t link;
810 /* Receive link is latching low. Force it high and verify it */
816 link = bgx_reg_read(lmac->bgx, lmac->lmacid, BGX_SPUX_STATUS1);
817 if (link & SPU_STATUS1_RCV_LNK) {
896 mtx_init(&lmac->check_link_mtx, "BGX link poll", NULL, MTX_DEF);
902 mtx_init(&lmac->check_link_mtx, "BGX link poll", NULL, MTX_DEF);