• Home
  • Raw
  • Download

Lines Matching refs:lc

1246 	struct link_config *lc = &pi->link_config;  in t3_link_changed()  local
1250 if (!lc->link_ok && link_ok) { in t3_link_changed()
1267 if (lc->requested_fc & PAUSE_AUTONEG) in t3_link_changed()
1268 fc &= lc->requested_fc; in t3_link_changed()
1270 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t3_link_changed()
1272 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed()
1273 duplex == lc->duplex && fc == lc->fc) in t3_link_changed()
1276 if (link_ok != lc->link_ok && adapter->params.rev > 0 && in t3_link_changed()
1283 lc->link_ok = link_ok; in t3_link_changed()
1284 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t3_link_changed()
1285 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t3_link_changed()
1287 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t3_link_changed()
1290 lc->fc = fc; in t3_link_changed()
1302 struct link_config *lc = &pi->link_config; in t3_link_fault() local
1320 link_ok = lc->link_ok; in t3_link_fault()
1321 speed = lc->speed; in t3_link_fault()
1322 duplex = lc->duplex; in t3_link_fault()
1323 fc = lc->fc; in t3_link_fault()
1328 lc->link_ok = 0; in t3_link_fault()
1329 lc->speed = SPEED_INVALID; in t3_link_fault()
1330 lc->duplex = DUPLEX_INVALID; in t3_link_fault()
1343 lc->link_ok = (unsigned char)link_ok; in t3_link_fault()
1344 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t3_link_fault()
1345 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t3_link_fault()
1363 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t3_link_start() argument
1365 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t3_link_start()
1367 lc->link_ok = 0; in t3_link_start()
1368 if (lc->supported & SUPPORTED_Autoneg) { in t3_link_start()
1369 lc->advertising &= ~(ADVERTISED_Asym_Pause | ADVERTISED_Pause); in t3_link_start()
1371 lc->advertising |= ADVERTISED_Asym_Pause; in t3_link_start()
1373 lc->advertising |= ADVERTISED_Pause; in t3_link_start()
1375 phy->ops->advertise(phy, lc->advertising); in t3_link_start()
1377 if (lc->autoneg == AUTONEG_DISABLE) { in t3_link_start()
1378 lc->speed = lc->requested_speed; in t3_link_start()
1379 lc->duplex = lc->requested_duplex; in t3_link_start()
1380 lc->fc = (unsigned char)fc; in t3_link_start()
1381 t3_mac_set_speed_duplex_fc(mac, lc->speed, lc->duplex, in t3_link_start()
1384 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t3_link_start()
1389 lc->fc = (unsigned char)fc; in t3_link_start()
3493 static void init_link_config(struct link_config *lc, unsigned int caps) in init_link_config() argument
3495 lc->supported = caps; in init_link_config()
3496 lc->requested_speed = lc->speed = SPEED_INVALID; in init_link_config()
3497 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config()
3498 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
3499 if (lc->supported & SUPPORTED_Autoneg) { in init_link_config()
3500 lc->advertising = lc->supported; in init_link_config()
3501 lc->autoneg = AUTONEG_ENABLE; in init_link_config()
3502 lc->requested_fc |= PAUSE_AUTONEG; in init_link_config()
3504 lc->advertising = 0; in init_link_config()
3505 lc->autoneg = AUTONEG_DISABLE; in init_link_config()