• Home
  • Raw
  • Download

Lines Matching refs:lc

4108 			      struct link_config *lc)  in t4_link_acaps()  argument
4114 fw_mdi = (FW_PORT_CAP32_MDI_V(FW_PORT_CAP32_MDI_AUTO) & lc->pcaps); in t4_link_acaps()
4119 fw_fc = cc_to_fwcap_pause(lc->requested_fc); in t4_link_acaps()
4128 if (lc->requested_fec & FEC_AUTO) in t4_link_acaps()
4129 cc_fec = fwcap_to_cc_fec(lc->def_acaps); in t4_link_acaps()
4131 cc_fec = lc->requested_fec; in t4_link_acaps()
4138 if (!(lc->pcaps & FW_PORT_CAP32_ANEG)) { in t4_link_acaps()
4139 acaps = lc->acaps | fw_fc | fw_fec; in t4_link_acaps()
4140 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in t4_link_acaps()
4141 lc->fec = cc_fec; in t4_link_acaps()
4142 } else if (lc->autoneg == AUTONEG_DISABLE) { in t4_link_acaps()
4143 acaps = lc->speed_caps | fw_fc | fw_fec | fw_mdi; in t4_link_acaps()
4144 lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; in t4_link_acaps()
4145 lc->fec = cc_fec; in t4_link_acaps()
4147 acaps = lc->acaps | fw_fc | fw_fec | fw_mdi; in t4_link_acaps()
4158 if ((acaps & ~lc->pcaps) & ~FW_PORT_CAP32_FORCE_PAUSE) { in t4_link_acaps()
4160 acaps, lc->pcaps); in t4_link_acaps()
4185 unsigned int port, struct link_config *lc, in t4_link_l1cfg_core() argument
4193 if (!(lc->pcaps & FW_PORT_CAP32_ANEG) && in t4_link_l1cfg_core()
4194 lc->autoneg == AUTONEG_ENABLE) { in t4_link_l1cfg_core()
4201 rcap = t4_link_acaps(adapter, port, lc); in t4_link_l1cfg_core()
8573 struct link_config *lc = &pi->link_cfg; in t4_handle_get_port_info() local
8628 lc->new_module = false; in t4_handle_get_port_info()
8629 lc->redo_l1cfg = false; in t4_handle_get_port_info()
8640 lc->pcaps = pcaps; in t4_handle_get_port_info()
8650 lc->def_acaps = acaps; in t4_handle_get_port_info()
8671 lc->new_module = t4_is_inserted_mod_type(mod_type); in t4_handle_get_port_info()
8676 if (link_ok != lc->link_ok || speed != lc->speed || in t4_handle_get_port_info()
8677 fc != lc->fc || adv_fc != lc->advertised_fc || in t4_handle_get_port_info()
8678 fec != lc->fec) { in t4_handle_get_port_info()
8680 if (!link_ok && lc->link_ok) { in t4_handle_get_port_info()
8681 lc->link_down_rc = linkdnrc; in t4_handle_get_port_info()
8687 lc->link_ok = link_ok; in t4_handle_get_port_info()
8688 lc->speed = speed; in t4_handle_get_port_info()
8689 lc->advertised_fc = adv_fc; in t4_handle_get_port_info()
8690 lc->fc = fc; in t4_handle_get_port_info()
8691 lc->fec = fec; in t4_handle_get_port_info()
8693 lc->lpacaps = lpacaps; in t4_handle_get_port_info()
8694 lc->acaps = acaps & ADVERT_MASK; in t4_handle_get_port_info()
8701 if (!(lc->acaps & FW_PORT_CAP32_ANEG)) { in t4_handle_get_port_info()
8702 lc->autoneg = AUTONEG_DISABLE; in t4_handle_get_port_info()
8703 } else if (lc->acaps & FW_PORT_CAP32_ANEG) { in t4_handle_get_port_info()
8704 lc->autoneg = AUTONEG_ENABLE; in t4_handle_get_port_info()
8710 lc->acaps = 0; in t4_handle_get_port_info()
8711 lc->speed_caps = fwcap_to_fwspeed(acaps); in t4_handle_get_port_info()
8712 lc->autoneg = AUTONEG_DISABLE; in t4_handle_get_port_info()
8722 if (lc->new_module && lc->redo_l1cfg) { in t4_handle_get_port_info()
8731 old_lc = *lc; in t4_handle_get_port_info()
8732 ret = t4_link_l1cfg_ns(adapter, adapter->mbox, pi->lport, lc); in t4_handle_get_port_info()
8734 *lc = old_lc; in t4_handle_get_port_info()
8739 lc->new_module = false; in t4_handle_get_port_info()
8740 lc->redo_l1cfg = false; in t4_handle_get_port_info()
8898 static void init_link_config(struct link_config *lc, fw_port_cap32_t pcaps, in init_link_config() argument
8901 lc->pcaps = pcaps; in init_link_config()
8902 lc->def_acaps = acaps; in init_link_config()
8903 lc->lpacaps = 0; in init_link_config()
8904 lc->speed_caps = 0; in init_link_config()
8905 lc->speed = 0; in init_link_config()
8906 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
8911 lc->requested_fec = FEC_AUTO; in init_link_config()
8912 lc->fec = fwcap_to_cc_fec(lc->def_acaps); in init_link_config()
8921 if (lc->pcaps & FW_PORT_CAP32_ANEG) { in init_link_config()
8922 lc->acaps = lc->pcaps & ADVERT_MASK; in init_link_config()
8923 lc->autoneg = AUTONEG_ENABLE; in init_link_config()
8924 lc->requested_fc |= PAUSE_AUTONEG; in init_link_config()
8926 lc->acaps = 0; in init_link_config()
8927 lc->autoneg = AUTONEG_DISABLE; in init_link_config()
8928 lc->speed_caps = fwcap_to_fwspeed(acaps); in init_link_config()