Lines Matching refs:fw_speeds

1476 u32 _bnxt_fw_to_ethtool_adv_spds(u16 fw_speeds, u8 fw_pause)  in _bnxt_fw_to_ethtool_adv_spds()  argument
1482 if (fw_speeds & BNXT_LINK_SPEED_MSK_100MB) in _bnxt_fw_to_ethtool_adv_spds()
1484 if (fw_speeds & BNXT_LINK_SPEED_MSK_1GB) in _bnxt_fw_to_ethtool_adv_spds()
1486 if (fw_speeds & BNXT_LINK_SPEED_MSK_2_5GB) in _bnxt_fw_to_ethtool_adv_spds()
1488 if (fw_speeds & BNXT_LINK_SPEED_MSK_10GB) in _bnxt_fw_to_ethtool_adv_spds()
1490 if (fw_speeds & BNXT_LINK_SPEED_MSK_40GB) in _bnxt_fw_to_ethtool_adv_spds()
1503 #define BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, fw_pause, lk_ksettings, name)\ argument
1505 if ((fw_speeds) & BNXT_LINK_SPEED_MSK_100MB) \
1508 if ((fw_speeds) & BNXT_LINK_SPEED_MSK_1GB) \
1511 if ((fw_speeds) & BNXT_LINK_SPEED_MSK_10GB) \
1514 if ((fw_speeds) & BNXT_LINK_SPEED_MSK_25GB) \
1517 if ((fw_speeds) & BNXT_LINK_SPEED_MSK_40GB) \
1520 if ((fw_speeds) & BNXT_LINK_SPEED_MSK_50GB) \
1523 if ((fw_speeds) & BNXT_LINK_SPEED_MSK_100GB) \
1538 #define BNXT_ETHTOOL_TO_FW_SPDS(fw_speeds, lk_ksettings, name) \ argument
1544 (fw_speeds) |= BNXT_LINK_SPEED_MSK_100MB; \
1549 (fw_speeds) |= BNXT_LINK_SPEED_MSK_1GB; \
1552 (fw_speeds) |= BNXT_LINK_SPEED_MSK_10GB; \
1555 (fw_speeds) |= BNXT_LINK_SPEED_MSK_25GB; \
1558 (fw_speeds) |= BNXT_LINK_SPEED_MSK_40GB; \
1561 (fw_speeds) |= BNXT_LINK_SPEED_MSK_50GB; \
1564 (fw_speeds) |= BNXT_LINK_SPEED_MSK_100GB; \
1567 #define BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, name) \ argument
1569 if ((fw_speeds) & BNXT_LINK_PAM4_SPEED_MSK_50GB) \
1572 if ((fw_speeds) & BNXT_LINK_PAM4_SPEED_MSK_100GB) \
1575 if ((fw_speeds) & BNXT_LINK_PAM4_SPEED_MSK_200GB) \
1580 #define BNXT_ETHTOOL_TO_FW_PAM4_SPDS(fw_speeds, lk_ksettings, name) \ argument
1584 (fw_speeds) |= BNXT_LINK_PAM4_SPEED_MSK_50GB; \
1587 (fw_speeds) |= BNXT_LINK_PAM4_SPEED_MSK_100GB; \
1590 (fw_speeds) |= BNXT_LINK_PAM4_SPEED_MSK_200GB; \
1617 u16 fw_speeds = link_info->advertising; in bnxt_fw_to_ethtool_advertised_spds() local
1623 BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, fw_pause, lk_ksettings, advertising); in bnxt_fw_to_ethtool_advertised_spds()
1624 fw_speeds = link_info->advertising_pam4; in bnxt_fw_to_ethtool_advertised_spds()
1625 BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, advertising); in bnxt_fw_to_ethtool_advertised_spds()
1632 u16 fw_speeds = link_info->lp_auto_link_speeds; in bnxt_fw_to_ethtool_lp_adv() local
1638 BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, fw_pause, lk_ksettings, in bnxt_fw_to_ethtool_lp_adv()
1640 fw_speeds = link_info->lp_auto_pam4_link_speeds; in bnxt_fw_to_ethtool_lp_adv()
1641 BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, lp_advertising); in bnxt_fw_to_ethtool_lp_adv()
1669 u16 fw_speeds = link_info->support_speeds; in bnxt_fw_to_ethtool_support_spds() local
1671 BNXT_FW_TO_ETHTOOL_SPDS(fw_speeds, 0, lk_ksettings, supported); in bnxt_fw_to_ethtool_support_spds()
1672 fw_speeds = link_info->support_pam4_speeds; in bnxt_fw_to_ethtool_support_spds()
1673 BNXT_FW_TO_ETHTOOL_PAM4_SPDS(fw_speeds, lk_ksettings, supported); in bnxt_fw_to_ethtool_support_spds()