Lines Matching refs:ks
1494 ethtool_link_ksettings_add_link_mode(ks, advertising,\
1505 struct ethtool_link_ksettings *ks) in ice_phy_type_to_ethtool() argument
1572 ethtool_link_ksettings_zero_link_mode(ks, supported); in ice_phy_type_to_ethtool()
1573 ethtool_link_ksettings_zero_link_mode(ks, advertising); in ice_phy_type_to_ethtool()
1578 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1588 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1596 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1605 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1613 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1622 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1631 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1642 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1650 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1658 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1666 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1679 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1688 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1698 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1706 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1716 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1724 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1732 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1748 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1757 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1768 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1787 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1796 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1805 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1816 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1833 ice_get_settings_link_up(struct ethtool_link_ksettings *ks, in ice_get_settings_link_up() argument
1844 ice_phy_type_to_ethtool(netdev, ks); in ice_get_settings_link_up()
1848 ks->base.speed = SPEED_100000; in ice_get_settings_link_up()
1851 ks->base.speed = SPEED_50000; in ice_get_settings_link_up()
1854 ks->base.speed = SPEED_40000; in ice_get_settings_link_up()
1857 ks->base.speed = SPEED_25000; in ice_get_settings_link_up()
1860 ks->base.speed = SPEED_20000; in ice_get_settings_link_up()
1863 ks->base.speed = SPEED_10000; in ice_get_settings_link_up()
1866 ks->base.speed = SPEED_5000; in ice_get_settings_link_up()
1869 ks->base.speed = SPEED_2500; in ice_get_settings_link_up()
1872 ks->base.speed = SPEED_1000; in ice_get_settings_link_up()
1875 ks->base.speed = SPEED_100; in ice_get_settings_link_up()
1882 ks->base.duplex = DUPLEX_FULL; in ice_get_settings_link_up()
1885 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1891 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, Pause); in ice_get_settings_link_up()
1894 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, Pause); in ice_get_settings_link_up()
1895 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1899 ethtool_link_ksettings_add_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1904 ethtool_link_ksettings_del_link_mode(ks, lp_advertising, Pause); in ice_get_settings_link_up()
1905 ethtool_link_ksettings_del_link_mode(ks, lp_advertising, in ice_get_settings_link_up()
1919 ice_get_settings_link_down(struct ethtool_link_ksettings *ks, in ice_get_settings_link_down() argument
1925 ice_phy_type_to_ethtool(netdev, ks); in ice_get_settings_link_down()
1928 ks->base.speed = SPEED_UNKNOWN; in ice_get_settings_link_down()
1929 ks->base.duplex = DUPLEX_UNKNOWN; in ice_get_settings_link_down()
1941 struct ethtool_link_ksettings *ks) in ice_get_link_ksettings() argument
1949 ethtool_link_ksettings_zero_link_mode(ks, supported); in ice_get_link_ksettings()
1950 ethtool_link_ksettings_zero_link_mode(ks, advertising); in ice_get_link_ksettings()
1951 ethtool_link_ksettings_zero_link_mode(ks, lp_advertising); in ice_get_link_ksettings()
1956 ice_get_settings_link_up(ks, netdev); in ice_get_link_ksettings()
1958 ice_get_settings_link_down(ks, netdev); in ice_get_link_ksettings()
1961 ks->base.autoneg = (hw_link_info->an_info & ICE_AQ_AN_COMPLETED) ? in ice_get_link_ksettings()
1967 ethtool_link_ksettings_add_link_mode(ks, supported, FIBRE); in ice_get_link_ksettings()
1968 ks->base.port = PORT_FIBRE; in ice_get_link_ksettings()
1971 ethtool_link_ksettings_add_link_mode(ks, supported, TP); in ice_get_link_ksettings()
1972 ethtool_link_ksettings_add_link_mode(ks, advertising, TP); in ice_get_link_ksettings()
1973 ks->base.port = PORT_TP; in ice_get_link_ksettings()
1976 ethtool_link_ksettings_add_link_mode(ks, supported, Backplane); in ice_get_link_ksettings()
1977 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings()
1979 ks->base.port = PORT_NONE; in ice_get_link_ksettings()
1982 ethtool_link_ksettings_add_link_mode(ks, supported, FIBRE); in ice_get_link_ksettings()
1983 ethtool_link_ksettings_add_link_mode(ks, advertising, FIBRE); in ice_get_link_ksettings()
1984 ks->base.port = PORT_DA; in ice_get_link_ksettings()
1987 ks->base.port = PORT_OTHER; in ice_get_link_ksettings()
1992 ethtool_link_ksettings_add_link_mode(ks, supported, Pause); in ice_get_link_ksettings()
2006 ethtool_link_ksettings_add_link_mode(ks, advertising, Pause); in ice_get_link_ksettings()
2007 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings()
2010 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings()
2013 ethtool_link_ksettings_add_link_mode(ks, advertising, Pause); in ice_get_link_ksettings()
2014 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings()
2017 ethtool_link_ksettings_del_link_mode(ks, advertising, Pause); in ice_get_link_ksettings()
2018 ethtool_link_ksettings_del_link_mode(ks, advertising, in ice_get_link_ksettings()
2023 ethtool_link_ksettings_add_link_mode(ks, advertising, FEC_NONE); in ice_get_link_ksettings()
2027 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_get_link_ksettings()
2031 ethtool_link_ksettings_add_link_mode(ks, advertising, FEC_RS); in ice_get_link_ksettings()
2039 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_NONE); in ice_get_link_ksettings()
2043 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_BASER); in ice_get_link_ksettings()
2045 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_RS); in ice_get_link_ksettings()
2049 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in ice_get_link_ksettings()
2050 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in ice_get_link_ksettings()
2063 ice_ksettings_find_adv_link_speed(const struct ethtool_link_ksettings *ks) in ice_ksettings_find_adv_link_speed() argument
2067 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2070 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2073 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2075 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2078 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2081 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2084 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2087 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2089 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2092 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2094 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2097 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2099 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2101 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2104 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2106 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2108 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2110 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2113 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2115 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2118 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2121 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2123 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2125 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2127 ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_ksettings_find_adv_link_speed()
2146 ice_setup_autoneg(struct ice_port_info *p, struct ethtool_link_ksettings *ks, in ice_setup_autoneg() argument
2160 if (!ethtool_link_ksettings_test_link_mode(ks, in ice_setup_autoneg()
2177 if (ethtool_link_ksettings_test_link_mode(ks, in ice_setup_autoneg()
2202 ice_set_phy_type_from_speed(const struct ethtool_link_ksettings *ks, in ice_set_phy_type_from_speed() argument
2212 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_set_phy_type_from_speed()
2217 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_set_phy_type_from_speed()
2221 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in ice_set_phy_type_from_speed()
2238 const struct ethtool_link_ksettings *ks) in ice_set_link_ksettings() argument
2242 struct ethtool_link_ksettings copy_ks = *ks; in ice_set_link_ksettings()
2350 adv_link_speed = ice_ksettings_find_adv_link_speed(ks); in ice_set_link_ksettings()
2360 ice_set_phy_type_from_speed(ks, &phy_type_low, &phy_type_high, in ice_set_link_ksettings()