Lines Matching defs:lc
155 struct link_config *lc = &adapter->port[port_id].link_config;
159 lc->speed = speed < 0 ? SPEED_INVALID : speed;
160 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex;
161 if (!(lc->requested_fc & PAUSE_AUTONEG))
162 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
164 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) {
169 lc->fc = (unsigned char)fc;
626 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
628 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
630 if (lc->supported & SUPPORTED_Autoneg) {
631 lc->advertising &= ~(ADVERTISED_ASYM_PAUSE | ADVERTISED_PAUSE);
635 lc->advertising |= ADVERTISED_PAUSE;
637 lc->advertising |= ADVERTISED_ASYM_PAUSE;
639 lc->advertising |= ADVERTISED_PAUSE;
642 phy->ops->advertise(phy, lc->advertising);
644 if (lc->autoneg == AUTONEG_DISABLE) {
645 lc->speed = lc->requested_speed;
646 lc->duplex = lc->requested_duplex;
647 lc->fc = (unsigned char)fc;
648 mac->ops->set_speed_duplex_fc(mac, lc->speed,
649 lc->duplex, fc);
652 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex);
661 lc->fc = (unsigned char)fc;
1029 static void __devinit init_link_config(struct link_config *lc,
1032 lc->supported = bi->caps;
1033 lc->requested_speed = lc->speed = SPEED_INVALID;
1034 lc->requested_duplex = lc->duplex = DUPLEX_INVALID;
1035 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX;
1036 if (lc->supported & SUPPORTED_Autoneg) {
1037 lc->advertising = lc->supported;
1038 lc->autoneg = AUTONEG_ENABLE;
1039 lc->requested_fc |= PAUSE_AUTONEG;
1041 lc->advertising = 0;
1042 lc->autoneg = AUTONEG_DISABLE;