Lines Matching refs:link_params
1520 static void qed_set_ext_speed_params(struct qed_mcp_link_params *link_params, in qed_set_ext_speed_params() argument
1523 struct qed_mcp_link_speed_params *ext_speed = &link_params->ext_speed; in qed_set_ext_speed_params()
1579 link_params->ext_fec_mode = ETH_EXT_FEC_25G_NONE; in qed_set_ext_speed_params()
1582 link_params->ext_fec_mode = ETH_EXT_FEC_25G_BASE_R; in qed_set_ext_speed_params()
1585 link_params->ext_fec_mode = ETH_EXT_FEC_25G_RS528; in qed_set_ext_speed_params()
1588 link_params->ext_fec_mode = ETH_EXT_FEC_25G_RS528 | in qed_set_ext_speed_params()
1600 link_params->ext_fec_mode = ETH_EXT_FEC_40G_NONE; in qed_set_ext_speed_params()
1603 link_params->ext_fec_mode = ETH_EXT_FEC_40G_BASE_R; in qed_set_ext_speed_params()
1606 link_params->ext_fec_mode = ETH_EXT_FEC_40G_BASE_R | in qed_set_ext_speed_params()
1617 link_params->ext_fec_mode = ETH_EXT_FEC_50G_NONE; in qed_set_ext_speed_params()
1620 link_params->ext_fec_mode = ETH_EXT_FEC_50G_BASE_R; in qed_set_ext_speed_params()
1623 link_params->ext_fec_mode = ETH_EXT_FEC_50G_RS528; in qed_set_ext_speed_params()
1626 link_params->ext_fec_mode = ETH_EXT_FEC_50G_RS528 | in qed_set_ext_speed_params()
1638 link_params->ext_fec_mode = ETH_EXT_FEC_100G_NONE; in qed_set_ext_speed_params()
1641 link_params->ext_fec_mode = ETH_EXT_FEC_100G_BASE_R; in qed_set_ext_speed_params()
1644 link_params->ext_fec_mode = ETH_EXT_FEC_100G_RS528; in qed_set_ext_speed_params()
1647 link_params->ext_fec_mode = ETH_EXT_FEC_100G_RS528 | in qed_set_ext_speed_params()
1663 struct qed_mcp_link_params *link_params; in qed_set_link() local
1690 link_params = qed_mcp_get_link_params(hwfn); in qed_set_link()
1691 if (!link_params) in qed_set_link()
1694 speed = &link_params->speed; in qed_set_link()
1714 qed_set_ext_speed_params(link_params, params); in qed_set_link()
1718 link_params->pause.autoneg = true; in qed_set_link()
1720 link_params->pause.autoneg = false; in qed_set_link()
1722 link_params->pause.forced_rx = true; in qed_set_link()
1724 link_params->pause.forced_rx = false; in qed_set_link()
1726 link_params->pause.forced_tx = true; in qed_set_link()
1728 link_params->pause.forced_tx = false; in qed_set_link()
1734 link_params->loopback_mode = ETH_LOOPBACK_INT_PHY; in qed_set_link()
1737 link_params->loopback_mode = ETH_LOOPBACK_EXT_PHY; in qed_set_link()
1740 link_params->loopback_mode = ETH_LOOPBACK_EXT; in qed_set_link()
1743 link_params->loopback_mode = ETH_LOOPBACK_MAC; in qed_set_link()
1746 link_params->loopback_mode = in qed_set_link()
1750 link_params->loopback_mode = in qed_set_link()
1754 link_params->loopback_mode = ETH_LOOPBACK_PCS_AH_ONLY; in qed_set_link()
1757 link_params->loopback_mode = in qed_set_link()
1761 link_params->loopback_mode = in qed_set_link()
1765 link_params->loopback_mode = ETH_LOOPBACK_NONE; in qed_set_link()
1771 memcpy(&link_params->eee, ¶ms->eee, in qed_set_link()
1772 sizeof(link_params->eee)); in qed_set_link()
1775 link_params->fec = params->fec; in qed_set_link()