Lines Matching refs:lc
3578 struct link_config *lc) in t4_link_l1cfg() argument
3583 lc->link_ok = 0; in t4_link_l1cfg()
3584 if (lc->requested_fc & PAUSE_RX) in t4_link_l1cfg()
3586 if (lc->requested_fc & PAUSE_TX) in t4_link_l1cfg()
3597 if (!(lc->supported & FW_PORT_CAP_ANEG)) { in t4_link_l1cfg()
3598 c.u.l1cfg.rcap = cpu_to_be32((lc->supported & ADVERT_MASK) | in t4_link_l1cfg()
3600 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t4_link_l1cfg()
3601 } else if (lc->autoneg == AUTONEG_DISABLE) { in t4_link_l1cfg()
3602 c.u.l1cfg.rcap = cpu_to_be32(lc->requested_speed | fc | mdi); in t4_link_l1cfg()
3603 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t4_link_l1cfg()
3605 c.u.l1cfg.rcap = cpu_to_be32(lc->advertising | fc | mdi); in t4_link_l1cfg()
6890 struct link_config *lc = &pi->link_cfg; in t4_handle_fw_rpl() local
6908 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_fw_rpl()
6909 fc != lc->fc) { /* something changed */ in t4_handle_fw_rpl()
6910 lc->link_ok = link_ok; in t4_handle_fw_rpl()
6911 lc->speed = speed; in t4_handle_fw_rpl()
6912 lc->fc = fc; in t4_handle_fw_rpl()
6913 lc->supported = be16_to_cpu(p->u.info.pcap); in t4_handle_fw_rpl()
6943 static void init_link_config(struct link_config *lc, unsigned int caps) in init_link_config() argument
6945 lc->supported = caps; in init_link_config()
6946 lc->requested_speed = 0; in init_link_config()
6947 lc->speed = 0; in init_link_config()
6948 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
6949 if (lc->supported & FW_PORT_CAP_ANEG) { in init_link_config()
6950 lc->advertising = lc->supported & ADVERT_MASK; in init_link_config()
6951 lc->autoneg = AUTONEG_ENABLE; in init_link_config()
6952 lc->requested_fc |= PAUSE_AUTONEG; in init_link_config()
6954 lc->advertising = 0; in init_link_config()
6955 lc->autoneg = AUTONEG_DISABLE; in init_link_config()