Lines Matching refs:lc

2098 		  struct link_config *lc)  in t4_link_start()  argument
2103 lc->link_ok = 0; in t4_link_start()
2104 if (lc->requested_fc & PAUSE_RX) in t4_link_start()
2106 if (lc->requested_fc & PAUSE_TX) in t4_link_start()
2115 if (!(lc->supported & FW_PORT_CAP_ANEG)) { in t4_link_start()
2116 c.u.l1cfg.rcap = htonl((lc->supported & ADVERT_MASK) | fc); in t4_link_start()
2117 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t4_link_start()
2118 } else if (lc->autoneg == AUTONEG_DISABLE) { in t4_link_start()
2119 c.u.l1cfg.rcap = htonl(lc->requested_speed | fc | mdi); in t4_link_start()
2120 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t4_link_start()
2122 c.u.l1cfg.rcap = htonl(lc->advertising | fc | mdi); in t4_link_start()
4911 struct link_config *lc = &pi->link_cfg; in t4_handle_fw_rpl() local
4929 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_fw_rpl()
4930 fc != lc->fc) { /* something changed */ in t4_handle_fw_rpl()
4931 lc->link_ok = link_ok; in t4_handle_fw_rpl()
4932 lc->speed = speed; in t4_handle_fw_rpl()
4933 lc->fc = fc; in t4_handle_fw_rpl()
4934 lc->supported = be16_to_cpu(p->u.info.pcap); in t4_handle_fw_rpl()
4964 static void init_link_config(struct link_config *lc, unsigned int caps) in init_link_config() argument
4966 lc->supported = caps; in init_link_config()
4967 lc->requested_speed = 0; in init_link_config()
4968 lc->speed = 0; in init_link_config()
4969 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
4970 if (lc->supported & FW_PORT_CAP_ANEG) { in init_link_config()
4971 lc->advertising = lc->supported & ADVERT_MASK; in init_link_config()
4972 lc->autoneg = AUTONEG_ENABLE; in init_link_config()
4973 lc->requested_fc |= PAUSE_AUTONEG; in init_link_config()
4975 lc->advertising = 0; in init_link_config()
4976 lc->autoneg = AUTONEG_DISABLE; in init_link_config()