Lines Matching defs:lc
813 * @lc: the requested link configuration
823 struct link_config *lc)
828 lc->link_ok = 0;
829 if (lc->requested_fc & PAUSE_RX)
831 if (lc->requested_fc & PAUSE_TX)
840 if (!(lc->supported & FW_PORT_CAP_ANEG)) {
841 c.u.l1cfg.rcap = htonl((lc->supported & ADVERT_MASK) | fc);
842 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
843 } else if (lc->autoneg == AUTONEG_DISABLE) {
844 c.u.l1cfg.rcap = htonl(lc->requested_speed | fc | mdi);
845 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX);
847 c.u.l1cfg.rcap = htonl(lc->advertising | fc | mdi);
2963 struct link_config *lc = &pi->link_cfg;
2979 if (link_ok != lc->link_ok || speed != lc->speed ||
2980 fc != lc->fc) { /* something changed */
2981 lc->link_ok = link_ok;
2982 lc->speed = speed;
2983 lc->fc = fc;
3010 * @lc: structure holding the link state
3016 static void __devinit init_link_config(struct link_config *lc,
3019 lc->supported = caps;
3020 lc->requested_speed = 0;
3021 lc->speed = 0;
3022 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX;
3023 if (lc->supported & FW_PORT_CAP_ANEG) {
3024 lc->advertising = lc->supported & ADVERT_MASK;
3025 lc->autoneg = AUTONEG_ENABLE;
3026 lc->requested_fc |= PAUSE_AUTONEG;
3028 lc->advertising = 0;
3029 lc->autoneg = AUTONEG_DISABLE;