Lines Matching refs:link_info
1278 struct bnxt_link_info *link_info = &softc->link_info; in bnxt_hwrm_set_link_common() local
1279 uint8_t autoneg = softc->link_info.autoneg; in bnxt_hwrm_set_link_common()
1280 uint16_t fw_link_speed = softc->link_info.req_link_speed; in bnxt_hwrm_set_link_common()
1290 if (link_info->advertising) { in bnxt_hwrm_set_link_common()
1292 req->auto_link_speed_mask = htole16(link_info->advertising); in bnxt_hwrm_set_link_common()
1305 if (link_info->force_pam4_speed_set_by_user) { in bnxt_hwrm_set_link_common()
1308 link_info->force_pam4_speed_set_by_user = false; in bnxt_hwrm_set_link_common()
1322 struct bnxt_link_info *link_info = &softc->link_info; in bnxt_hwrm_set_pause_common() local
1324 if (link_info->flow_ctrl.autoneg) { in bnxt_hwrm_set_pause_common()
1327 if (link_info->flow_ctrl.rx) in bnxt_hwrm_set_pause_common()
1330 if (link_info->flow_ctrl.tx) in bnxt_hwrm_set_pause_common()
1336 if (link_info->flow_ctrl.rx) in bnxt_hwrm_set_pause_common()
1339 if (link_info->flow_ctrl.tx) in bnxt_hwrm_set_pause_common()
1391 if (softc->link_info.flow_ctrl.autoneg) in bnxt_hwrm_set_link_setting()
1410 if (!softc->link_info.flow_ctrl.autoneg) in bnxt_hwrm_set_link_setting()
2777 struct bnxt_link_info *link_info = &softc->link_info; in bnxt_hwrm_port_phy_qcfg() local
2790 memcpy(&link_info->phy_qcfg_resp, resp, sizeof(*resp)); in bnxt_hwrm_port_phy_qcfg()
2791 link_info->phy_link_status = resp->link; in bnxt_hwrm_port_phy_qcfg()
2792 link_info->duplex = resp->duplex_cfg; in bnxt_hwrm_port_phy_qcfg()
2793 link_info->auto_mode = resp->auto_mode; in bnxt_hwrm_port_phy_qcfg()
2809 link_info->flow_ctrl.autoneg = false; in bnxt_hwrm_port_phy_qcfg()
2810 link_info->flow_ctrl.tx = false; in bnxt_hwrm_port_phy_qcfg()
2811 link_info->flow_ctrl.rx = false; in bnxt_hwrm_port_phy_qcfg()
2815 link_info->flow_ctrl.autoneg = true; in bnxt_hwrm_port_phy_qcfg()
2818 if (link_info->flow_ctrl.autoneg) { in bnxt_hwrm_port_phy_qcfg()
2820 link_info->flow_ctrl.tx = true; in bnxt_hwrm_port_phy_qcfg()
2822 link_info->flow_ctrl.rx = true; in bnxt_hwrm_port_phy_qcfg()
2825 link_info->flow_ctrl.tx = true; in bnxt_hwrm_port_phy_qcfg()
2827 link_info->flow_ctrl.rx = true; in bnxt_hwrm_port_phy_qcfg()
2830 link_info->duplex_setting = resp->duplex_cfg; in bnxt_hwrm_port_phy_qcfg()
2831 if (link_info->phy_link_status == HWRM_PORT_PHY_QCFG_OUTPUT_LINK_LINK) in bnxt_hwrm_port_phy_qcfg()
2832 link_info->link_speed = le16toh(resp->link_speed); in bnxt_hwrm_port_phy_qcfg()
2834 link_info->link_speed = 0; in bnxt_hwrm_port_phy_qcfg()
2835 link_info->force_link_speed = le16toh(resp->force_link_speed); in bnxt_hwrm_port_phy_qcfg()
2836 link_info->auto_link_speeds = le16toh(resp->auto_link_speed); in bnxt_hwrm_port_phy_qcfg()
2837 link_info->support_speeds = le16toh(resp->support_speeds); in bnxt_hwrm_port_phy_qcfg()
2838 link_info->auto_link_speeds = le16toh(resp->auto_link_speed_mask); in bnxt_hwrm_port_phy_qcfg()
2839 link_info->preemphasis = le32toh(resp->preemphasis); in bnxt_hwrm_port_phy_qcfg()
2840 link_info->phy_ver[0] = resp->phy_maj; in bnxt_hwrm_port_phy_qcfg()
2841 link_info->phy_ver[1] = resp->phy_min; in bnxt_hwrm_port_phy_qcfg()
2842 link_info->phy_ver[2] = resp->phy_bld; in bnxt_hwrm_port_phy_qcfg()
2844 "%d.%d.%d", link_info->phy_ver[0], link_info->phy_ver[1], in bnxt_hwrm_port_phy_qcfg()
2845 link_info->phy_ver[2]); in bnxt_hwrm_port_phy_qcfg()
2850 link_info->media_type = resp->media_type; in bnxt_hwrm_port_phy_qcfg()
2851 link_info->phy_type = resp->phy_type; in bnxt_hwrm_port_phy_qcfg()
2852 link_info->transceiver = resp->xcvr_pkg_type; in bnxt_hwrm_port_phy_qcfg()
2853 link_info->phy_addr = resp->eee_config_phy_addr & in bnxt_hwrm_port_phy_qcfg()
2855 link_info->module_status = resp->module_status; in bnxt_hwrm_port_phy_qcfg()
2856 link_info->support_pam4_speeds = le16toh(resp->support_pam4_speeds); in bnxt_hwrm_port_phy_qcfg()
2857 link_info->auto_pam4_link_speeds = le16toh(resp->auto_pam4_link_speed_mask); in bnxt_hwrm_port_phy_qcfg()
2858 link_info->force_pam4_link_speed = le16toh(resp->force_pam4_link_speed); in bnxt_hwrm_port_phy_qcfg()
2861 link_info->active_fec_sig_mode = resp->active_fec_signal_mode; in bnxt_hwrm_port_phy_qcfg()
2882 struct bnxt_link_info *link_info = &softc->link_info; in bnxt_hwrm_phy_qcaps() local
2909 link_info->phy_state = BNXT_PHY_STATE_DISABLED; in bnxt_hwrm_phy_qcaps()
2911 } else if (link_info->phy_state == BNXT_PHY_STATE_DISABLED) { in bnxt_hwrm_phy_qcaps()
2912 link_info->phy_state = BNXT_PHY_STATE_ENABLED; in bnxt_hwrm_phy_qcaps()
2915 link_info->support_auto_speeds = 0; in bnxt_hwrm_phy_qcaps()
2916 link_info->support_pam4_auto_speeds = 0; in bnxt_hwrm_phy_qcaps()
2920 link_info->support_auto_speeds = in bnxt_hwrm_phy_qcaps()
2923 link_info->support_force_speeds = in bnxt_hwrm_phy_qcaps()
2926 link_info->support_pam4_auto_speeds = in bnxt_hwrm_phy_qcaps()
2929 link_info->support_pam4_force_speeds = in bnxt_hwrm_phy_qcaps()