Lines Matching defs:link_info
2676 struct bnxt_link_info *link_info = &softc->link_info;
2677 struct hwrm_port_phy_qcfg_output *resp = &link_info->phy_qcfg_resp;
2683 module_status = link_info->module_status;
3016 struct bnxt_link_info *link_info = &softc->link_info;
3018 uint64_t target_baudrate = bnxt_get_baudrate(link_info);
3026 if (link_info->link_up)
3031 if (link_info->duplex == HWRM_PORT_PHY_QCFG_OUTPUT_DUPLEX_CFG_FULL)
3048 if (link_info->flow_ctrl.rx)
3050 if (link_info->flow_ctrl.tx)
3068 softc->link_info.req_signal_mode =
3073 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3074 softc->link_info.req_link_speed =
3082 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3083 softc->link_info.req_link_speed =
3088 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3089 softc->link_info.req_link_speed =
3096 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3097 softc->link_info.req_link_speed =
3101 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3102 softc->link_info.req_link_speed =
3108 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3109 softc->link_info.req_link_speed =
3118 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3119 softc->link_info.req_link_speed =
3125 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3126 softc->link_info.req_link_speed =
3133 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3134 softc->link_info.req_link_speed =
3136 softc->link_info.req_signal_mode =
3138 softc->link_info.force_pam4_speed_set_by_user = true;
3144 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3145 softc->link_info.req_link_speed =
3152 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3153 softc->link_info.req_link_speed =
3155 softc->link_info.req_signal_mode =
3157 softc->link_info.force_pam4_speed_set_by_user = true;
3165 softc->link_info.autoneg &= ~BNXT_AUTONEG_SPEED;
3166 softc->link_info.req_link_speed =
3168 softc->link_info.force_pam4_speed_set_by_user = true;
3169 softc->link_info.req_signal_mode =
3173 softc->link_info.advertising = HWRM_PORT_PHY_CFG_INPUT_AUTO_LINK_SPEED_MASK_1GB;
3174 softc->link_info.autoneg |= BNXT_AUTONEG_SPEED;
3177 softc->link_info.advertising = HWRM_PORT_PHY_CFG_INPUT_AUTO_LINK_SPEED_MASK_10GB;
3178 softc->link_info.autoneg |= BNXT_AUTONEG_SPEED;
3186 softc->link_info.autoneg |= BNXT_AUTONEG_SPEED;
3895 if (softc->link_info.module_status >
3917 struct bnxt_link_info *link_info = &softc->link_info;
3938 if (link_info->auto_mode != HWRM_PORT_PHY_QCFG_OUTPUT_AUTO_MODE_NONE)
3939 link_info->autoneg |= BNXT_AUTONEG_SPEED;
3941 link_info->req_duplex = link_info->duplex_setting;
3944 if (link_info->autoneg & BNXT_AUTONEG_SPEED)
3945 link_info->req_link_speed = link_info->auto_link_speeds;
3947 link_info->req_link_speed = link_info->force_link_speed;
3950 if (link_info->auto_pam4_link_speeds)
3951 link_info->req_link_speed = link_info->auto_pam4_link_speeds;
3952 if (link_info->force_pam4_link_speed)
3953 link_info->req_link_speed = link_info->force_pam4_link_speed;
4023 struct bnxt_link_info *link_info = &softc->link_info;
4027 supported = link_info->support_speeds;
4028 supported_pam4 = link_info->support_pam4_speeds;
4123 if (link_info->sig_mode == BNXT_SIG_MODE_PAM4) {
4196 struct bnxt_link_info *link_info = &softc->link_info;
4197 uint8_t link_up = link_info->link_up;
4206 if (link_info->phy_link_status ==
4208 link_info->link_up = 1;
4210 link_info->link_up = 0;
4211 if (link_up != link_info->link_up)
4215 link_info->link_up = 0;
4260 struct bnxt_link_info *link_info = &softc->link_info;
4266 bnxt_fw_to_ethtool_speed(link_info->link_speed);
4268 if (link_info->link_up == link_info->last_link_up) {
4269 if (!link_info->link_up)
4271 if ((link_info->duplex == link_info->last_duplex) &&
4272 (link_info->phy_type == link_info->last_phy_type) &&
4273 (!(BNXT_IS_FLOW_CTRL_CHANGED(link_info))))
4277 if (link_info->link_up) {
4278 if (link_info->duplex ==
4283 if (link_info->flow_ctrl.tx & link_info->flow_ctrl.rx)
4285 else if (link_info->flow_ctrl.tx)
4287 else if (link_info->flow_ctrl.rx)
4292 if (softc->link_info.phy_qcfg_resp.option_flags &
4294 uint8_t sig_mode = softc->link_info.active_fec_sig_mode &
4306 link_info->sig_mode = sig_mode;
4312 flow_ctrl, (link_info->link_speed * 100));
4315 bnxt_get_baudrate(&softc->link_info));
4319 link_info->last_link_up = link_info->link_up;
4320 link_info->last_duplex = link_info->duplex;
4321 link_info->last_phy_type = link_info->phy_type;
4322 link_info->last_flow_ctrl.tx = link_info->flow_ctrl.tx;
4323 link_info->last_flow_ctrl.rx = link_info->flow_ctrl.rx;
4324 link_info->last_flow_ctrl.autoneg = link_info->flow_ctrl.autoneg;
4671 struct bnxt_link_info *link_info = &softc->link_info;
4672 uint8_t phy_type = link_info->phy_type;
4679 supported = link_info->support_speeds;
4681 if (link_info->media_type ==
4684 if (link_info->media_type ==
4692 if (link_info->media_type ==