Lines Matching refs:lc
635 struct link_config *lc = &p->link_config; in set_settings() local
637 if (!(lc->supported & SUPPORTED_Autoneg)) in set_settings()
644 if (!(lc->supported & cap) || (speed == SPEED_1000)) in set_settings()
646 lc->requested_speed = speed; in set_settings()
647 lc->requested_duplex = cmd->duplex; in set_settings()
648 lc->advertising = 0; in set_settings()
652 cmd->advertising = lc->supported; in set_settings()
653 cmd->advertising &= lc->supported; in set_settings()
656 lc->requested_speed = SPEED_INVALID; in set_settings()
657 lc->requested_duplex = DUPLEX_INVALID; in set_settings()
658 lc->advertising = cmd->advertising | ADVERTISED_Autoneg; in set_settings()
660 lc->autoneg = cmd->autoneg; in set_settings()
662 t1_link_start(p->phy, p->mac, lc); in set_settings()
682 struct link_config *lc = &p->link_config; in set_pauseparam() local
685 lc->requested_fc = 0; in set_pauseparam()
686 else if (lc->supported & SUPPORTED_Autoneg) in set_pauseparam()
687 lc->requested_fc = PAUSE_AUTONEG; in set_pauseparam()
692 lc->requested_fc |= PAUSE_RX; in set_pauseparam()
694 lc->requested_fc |= PAUSE_TX; in set_pauseparam()
695 if (lc->autoneg == AUTONEG_ENABLE) { in set_pauseparam()
697 t1_link_start(p->phy, p->mac, lc); in set_pauseparam()
699 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in set_pauseparam()
702 lc->fc); in set_pauseparam()