Lines Matching refs:lk_ksettings

1508 #define BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, fw_pause, lk_ksettings, name)\  argument
1511 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1514 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1517 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1520 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1523 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1526 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1529 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1532 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1536 lk_ksettings, name, Asym_Pause);\
1538 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1543 #define BNXT_ETHTOOL_TO_FW_SPDS(fw_speeds, lk_ksettings, name) \ argument
1545 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1547 ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1550 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1552 ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1555 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1558 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1561 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1564 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1567 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1572 #define BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, name) \ argument
1575 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1578 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1581 ethtool_link_ksettings_add_link_mode(lk_ksettings, name,\
1585 #define BNXT_ETHTOOL_TO_FW_PAM4_SPDS(fw_speeds, lk_ksettings, name) \ argument
1587 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1590 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1593 if (ethtool_link_ksettings_test_link_mode(lk_ksettings, name, \
1599 struct ethtool_link_ksettings *lk_ksettings) in bnxt_fw_to_ethtool_advertised_fec() argument
1605 lk_ksettings->link_modes.advertising); in bnxt_fw_to_ethtool_advertised_fec()
1610 lk_ksettings->link_modes.advertising); in bnxt_fw_to_ethtool_advertised_fec()
1613 lk_ksettings->link_modes.advertising); in bnxt_fw_to_ethtool_advertised_fec()
1616 lk_ksettings->link_modes.advertising); in bnxt_fw_to_ethtool_advertised_fec()
1620 struct ethtool_link_ksettings *lk_ksettings) in bnxt_fw_to_ethtool_advertised_spds() argument
1628 BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, fw_pause, lk_ksettings, advertising); in bnxt_fw_to_ethtool_advertised_spds()
1630 BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, advertising); in bnxt_fw_to_ethtool_advertised_spds()
1631 bnxt_fw_to_ethtool_advertised_fec(link_info, lk_ksettings); in bnxt_fw_to_ethtool_advertised_spds()
1635 struct ethtool_link_ksettings *lk_ksettings) in bnxt_fw_to_ethtool_lp_adv() argument
1643 BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, fw_pause, lk_ksettings, in bnxt_fw_to_ethtool_lp_adv()
1646 BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, lp_advertising); in bnxt_fw_to_ethtool_lp_adv()
1650 struct ethtool_link_ksettings *lk_ksettings) in bnxt_fw_to_ethtool_support_fec() argument
1656 lk_ksettings->link_modes.supported); in bnxt_fw_to_ethtool_support_fec()
1661 lk_ksettings->link_modes.supported); in bnxt_fw_to_ethtool_support_fec()
1664 lk_ksettings->link_modes.supported); in bnxt_fw_to_ethtool_support_fec()
1667 lk_ksettings->link_modes.supported); in bnxt_fw_to_ethtool_support_fec()
1671 struct ethtool_link_ksettings *lk_ksettings) in bnxt_fw_to_ethtool_support_spds() argument
1676 BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, 0, lk_ksettings, supported); in bnxt_fw_to_ethtool_support_spds()
1678 BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, supported); in bnxt_fw_to_ethtool_support_spds()
1681 ethtool_link_ksettings_add_link_mode(lk_ksettings, supported, in bnxt_fw_to_ethtool_support_spds()
1683 ethtool_link_ksettings_add_link_mode(lk_ksettings, supported, in bnxt_fw_to_ethtool_support_spds()
1689 ethtool_link_ksettings_add_link_mode(lk_ksettings, supported, in bnxt_fw_to_ethtool_support_spds()
1691 bnxt_fw_to_ethtool_support_fec(link_info, lk_ksettings); in bnxt_fw_to_ethtool_support_spds()
1721 struct ethtool_link_ksettings *lk_ksettings) in bnxt_get_link_ksettings() argument
1725 struct ethtool_link_settings *base = &lk_ksettings->base; in bnxt_get_link_ksettings()
1728 ethtool_link_ksettings_zero_link_mode(lk_ksettings, supported); in bnxt_get_link_ksettings()
1730 bnxt_fw_to_ethtool_support_spds(link_info, lk_ksettings); in bnxt_get_link_ksettings()
1732 ethtool_link_ksettings_zero_link_mode(lk_ksettings, advertising); in bnxt_get_link_ksettings()
1734 bnxt_fw_to_ethtool_advertised_spds(link_info, lk_ksettings); in bnxt_get_link_ksettings()
1735 ethtool_link_ksettings_add_link_mode(lk_ksettings, in bnxt_get_link_ksettings()
1740 bnxt_fw_to_ethtool_lp_adv(link_info, lk_ksettings); in bnxt_get_link_ksettings()
1760 ethtool_link_ksettings_add_link_mode(lk_ksettings, supported, in bnxt_get_link_ksettings()
1762 ethtool_link_ksettings_add_link_mode(lk_ksettings, advertising, in bnxt_get_link_ksettings()
1765 ethtool_link_ksettings_add_link_mode(lk_ksettings, supported, in bnxt_get_link_ksettings()
1767 ethtool_link_ksettings_add_link_mode(lk_ksettings, advertising, in bnxt_get_link_ksettings()
1887 const struct ethtool_link_ksettings *lk_ksettings) in bnxt_set_link_ksettings() argument
1891 const struct ethtool_link_settings *base = &lk_ksettings->base; in bnxt_set_link_ksettings()
1903 BNXT_ETHTOOL_TO_FW_SPDS(link_info->advertising, lk_ksettings, in bnxt_set_link_ksettings()
1906 lk_ksettings, advertising); in bnxt_set_link_ksettings()