Lines Matching defs:lc
637 struct link_config *lc = &p->link_config;
639 if (!(lc->supported & SUPPORTED_Autoneg))
645 if (!(lc->supported & cap) || cmd->speed == SPEED_1000)
647 lc->requested_speed = cmd->speed;
648 lc->requested_duplex = cmd->duplex;
649 lc->advertising = 0;
653 cmd->advertising = lc->supported;
654 cmd->advertising &= lc->supported;
657 lc->requested_speed = SPEED_INVALID;
658 lc->requested_duplex = DUPLEX_INVALID;
659 lc->advertising = cmd->advertising | ADVERTISED_Autoneg;
661 lc->autoneg = cmd->autoneg;
663 t1_link_start(p->phy, p->mac, lc);
683 struct link_config *lc = &p->link_config;
686 lc->requested_fc = 0;
687 else if (lc->supported & SUPPORTED_Autoneg)
688 lc->requested_fc = PAUSE_AUTONEG;
693 lc->requested_fc |= PAUSE_RX;
695 lc->requested_fc |= PAUSE_TX;
696 if (lc->autoneg == AUTONEG_ENABLE) {
698 t1_link_start(p->phy, p->mac, lc);
700 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
703 lc->fc);