Lines Matching defs:lc
1822 struct link_config *lc = &p->link_config;
1824 if (!(lc->supported & SUPPORTED_Autoneg)) {
1831 if (lc->supported & cap)
1840 if (!(lc->supported & cap) || cmd->speed == SPEED_1000)
1842 lc->requested_speed = cmd->speed;
1843 lc->requested_duplex = cmd->duplex;
1844 lc->advertising = 0;
1847 cmd->advertising &= lc->supported;
1850 lc->requested_speed = SPEED_INVALID;
1851 lc->requested_duplex = DUPLEX_INVALID;
1852 lc->advertising = cmd->advertising | ADVERTISED_Autoneg;
1854 lc->autoneg = cmd->autoneg;
1856 t3_link_start(&p->phy, &p->mac, lc);
1874 struct link_config *lc = &p->link_config;
1877 lc->requested_fc = 0;
1878 else if (lc->supported & SUPPORTED_Autoneg)
1879 lc->requested_fc = PAUSE_AUTONEG;
1884 lc->requested_fc |= PAUSE_RX;
1886 lc->requested_fc |= PAUSE_TX;
1887 if (lc->autoneg == AUTONEG_ENABLE) {
1889 t3_link_start(&p->phy, &p->mac, lc);
1891 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
1893 t3_mac_set_speed_duplex_fc(&p->mac, -1, -1, lc->fc);