Lines Matching refs:lc

1212 	struct link_config *lc = &pi->link_config;  in t3_link_changed()  local
1216 if (!lc->link_ok && link_ok) { in t3_link_changed()
1233 if (lc->requested_fc & PAUSE_AUTONEG) in t3_link_changed()
1234 fc &= lc->requested_fc; in t3_link_changed()
1236 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t3_link_changed()
1238 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed()
1239 duplex == lc->duplex && fc == lc->fc) in t3_link_changed()
1242 if (link_ok != lc->link_ok && adapter->params.rev > 0 && in t3_link_changed()
1249 lc->link_ok = link_ok; in t3_link_changed()
1250 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t3_link_changed()
1251 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t3_link_changed()
1253 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t3_link_changed()
1256 lc->fc = fc; in t3_link_changed()
1268 struct link_config *lc = &pi->link_config; in t3_link_fault() local
1286 link_ok = lc->link_ok; in t3_link_fault()
1287 speed = lc->speed; in t3_link_fault()
1288 duplex = lc->duplex; in t3_link_fault()
1289 fc = lc->fc; in t3_link_fault()
1294 lc->link_ok = 0; in t3_link_fault()
1295 lc->speed = SPEED_INVALID; in t3_link_fault()
1296 lc->duplex = DUPLEX_INVALID; in t3_link_fault()
1309 lc->link_ok = (unsigned char)link_ok; in t3_link_fault()
1310 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t3_link_fault()
1311 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t3_link_fault()
1329 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t3_link_start() argument
1331 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t3_link_start()
1333 lc->link_ok = 0; in t3_link_start()
1334 if (lc->supported & SUPPORTED_Autoneg) { in t3_link_start()
1335 lc->advertising &= ~(ADVERTISED_Asym_Pause | ADVERTISED_Pause); in t3_link_start()
1337 lc->advertising |= ADVERTISED_Asym_Pause; in t3_link_start()
1339 lc->advertising |= ADVERTISED_Pause; in t3_link_start()
1341 phy->ops->advertise(phy, lc->advertising); in t3_link_start()
1343 if (lc->autoneg == AUTONEG_DISABLE) { in t3_link_start()
1344 lc->speed = lc->requested_speed; in t3_link_start()
1345 lc->duplex = lc->requested_duplex; in t3_link_start()
1346 lc->fc = (unsigned char)fc; in t3_link_start()
1347 t3_mac_set_speed_duplex_fc(mac, lc->speed, lc->duplex, in t3_link_start()
1350 phy->ops->set_speed_duplex(phy, lc->speed, lc->duplex); in t3_link_start()
1355 lc->fc = (unsigned char)fc; in t3_link_start()
3458 static void init_link_config(struct link_config *lc, unsigned int caps) in init_link_config() argument
3460 lc->supported = caps; in init_link_config()
3461 lc->requested_speed = lc->speed = SPEED_INVALID; in init_link_config()
3462 lc->requested_duplex = lc->duplex = DUPLEX_INVALID; in init_link_config()
3463 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
3464 if (lc->supported & SUPPORTED_Autoneg) { in init_link_config()
3465 lc->advertising = lc->supported; in init_link_config()
3466 lc->autoneg = AUTONEG_ENABLE; in init_link_config()
3467 lc->requested_fc |= PAUSE_AUTONEG; in init_link_config()
3469 lc->advertising = 0; in init_link_config()
3470 lc->autoneg = AUTONEG_DISABLE; in init_link_config()