• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/cxgb3/

Lines Matching refs:lc

1210 	struct link_config *lc = &pi->link_config;
1214 if (!lc->link_ok && link_ok) {
1231 if (lc->requested_fc & PAUSE_AUTONEG)
1232 fc &= lc->requested_fc;
1234 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
1236 if (link_ok == lc->link_ok && speed == lc->speed &&
1237 duplex == lc->duplex && fc == lc->fc)
1240 if (link_ok != lc->link_ok && adapter->params.rev > 0 &&
1247 lc->link_ok = link_ok;
1248 lc->speed = speed < 0 ? SPEED_INVALID : speed;
1249 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex;
1251 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) {
1254 lc->fc = fc;
1266 struct link_config *lc = &pi->link_config;
1284 link_ok = lc->link_ok;
1285 speed = lc->speed;
1286 duplex = lc->duplex;
1287 fc = lc->fc;
1292 lc->link_ok = 0;
1293 lc->speed = SPEED_INVALID;
1294 lc->duplex = DUPLEX_INVALID;
1307 lc->link_ok = (unsigned char)link_ok;
1308 lc->speed = speed < 0 ? SPEED_INVALID : speed;
1309 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex;
1318 * @lc: the requested link configuration
1327 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
1329 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
1331 lc->link_ok = 0;
1332 if (lc->supported & SUPPORTED_Autoneg) {
1333 lc->advertising &= ~(ADVERTISED_Asym_Pause | ADVERTISED_Pause);
1335 lc->advertising |= ADVERTISED_Asym_Pause;
1337 lc->advertising |= ADVERTISED_Pause;
1339 phy->ops->advertise(phy, lc->advertising);
1341 if (lc->autoneg == AUTONEG_DISABLE) {
1342 lc->speed = lc->requested_speed;
1343 lc->duplex = lc->requested_duplex;
1344 lc->fc = (unsigned char)fc;
1345 t3_mac_set_speed_duplex_fc(mac, lc->speed, lc->duplex,
1348 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex);
1353 lc->fc = (unsigned char)fc;
3635 * @lc: structure holding the link state
3642 static void init_link_config(struct link_config *lc, unsigned int caps)
3644 lc->supported = caps;
3645 lc->requested_speed = lc->speed = SPEED_INVALID;
3646 lc->requested_duplex = lc->duplex = DUPLEX_INVALID;
3647 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX;
3648 if (lc->supported & SUPPORTED_Autoneg) {
3649 lc->advertising = lc->supported;
3650 lc->autoneg = AUTONEG_ENABLE;
3651 lc->requested_fc |= PAUSE_AUTONEG;
3653 lc->advertising = 0;
3654 lc->autoneg = AUTONEG_DISABLE;