Lines Matching refs:ks
483 struct ethtool_link_ksettings *ks) in i40e_phy_type_to_ethtool() argument
488 ethtool_link_ksettings_zero_link_mode(ks, supported); in i40e_phy_type_to_ethtool()
489 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool()
492 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
495 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
498 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
500 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
509 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
512 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
516 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
519 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
523 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
526 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
530 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
533 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
539 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
543 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
546 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
550 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
553 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
557 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
560 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
564 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
566 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
570 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
572 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
576 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
578 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
582 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
585 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
589 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
592 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
597 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
600 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
605 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
608 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
613 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
616 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
620 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
623 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
628 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
631 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
636 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
639 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
648 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_NONE); in i40e_phy_type_to_ethtool()
649 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_RS); in i40e_phy_type_to_ethtool()
650 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_BASER); in i40e_phy_type_to_ethtool()
652 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
654 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
656 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
663 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
666 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
670 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
673 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
677 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
680 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
686 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
689 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
717 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
719 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
730 struct ethtool_link_ksettings *ks) in i40e_get_settings_link_up_fec() argument
732 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_NONE); in i40e_get_settings_link_up_fec()
733 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_RS); in i40e_get_settings_link_up_fec()
734 ethtool_link_ksettings_add_link_mode(ks, supported, FEC_BASER); in i40e_get_settings_link_up_fec()
738 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up_fec()
740 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up_fec()
742 ethtool_link_ksettings_add_link_mode(ks, advertising, FEC_RS); in i40e_get_settings_link_up_fec()
744 ethtool_link_ksettings_add_link_mode(ks, advertising, FEC_RS); in i40e_get_settings_link_up_fec()
746 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up_fec()
749 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up_fec()
762 struct ethtool_link_ksettings *ks, in i40e_get_settings_link_up() argument
774 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
775 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
777 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
778 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
784 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
786 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
790 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
792 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
796 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
798 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
807 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
808 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
809 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
811 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
813 i40e_get_settings_link_up_fec(hw_link_info->req_fec_info, ks); in i40e_get_settings_link_up()
814 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
816 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
818 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
820 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
822 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
824 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
826 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
832 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
837 ks, advertising, 1000baseT_Full); in i40e_get_settings_link_up()
840 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
848 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
849 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
851 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
853 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
855 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
857 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
859 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
861 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
864 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
867 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
870 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
873 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
877 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
878 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
880 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
881 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
886 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
887 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
889 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
890 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
898 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
901 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
903 i40e_get_settings_link_up_fec(hw_link_info->req_fec_info, ks); in i40e_get_settings_link_up()
906 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
907 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
910 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
913 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
918 ks, advertising, 100baseT_Full); in i40e_get_settings_link_up()
927 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
929 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
931 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
933 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
935 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
937 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
939 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
940 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
942 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
944 i40e_get_settings_link_up_fec(hw_link_info->req_fec_info, ks); in i40e_get_settings_link_up()
945 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
947 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
949 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
951 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
953 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
956 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
957 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
958 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
960 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
962 i40e_get_settings_link_up_fec(hw_link_info->req_fec_info, ks); in i40e_get_settings_link_up()
967 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_settings_link_up()
968 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_settings_link_up()
969 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
971 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
973 i40e_get_settings_link_up_fec(hw_link_info->req_fec_info, ks); in i40e_get_settings_link_up()
975 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_get_settings_link_up()
977 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_settings_link_up()
993 ethtool_intersect_link_masks(ks, &cap_ksettings); in i40e_get_settings_link_up()
998 ks->base.speed = SPEED_40000; in i40e_get_settings_link_up()
1001 ks->base.speed = SPEED_25000; in i40e_get_settings_link_up()
1004 ks->base.speed = SPEED_20000; in i40e_get_settings_link_up()
1007 ks->base.speed = SPEED_10000; in i40e_get_settings_link_up()
1010 ks->base.speed = SPEED_5000; in i40e_get_settings_link_up()
1013 ks->base.speed = SPEED_2500; in i40e_get_settings_link_up()
1016 ks->base.speed = SPEED_1000; in i40e_get_settings_link_up()
1019 ks->base.speed = SPEED_100; in i40e_get_settings_link_up()
1022 ks->base.speed = SPEED_UNKNOWN; in i40e_get_settings_link_up()
1025 ks->base.duplex = DUPLEX_FULL; in i40e_get_settings_link_up()
1037 struct ethtool_link_ksettings *ks, in i40e_get_settings_link_down() argument
1043 i40e_phy_type_to_ethtool(pf, ks); in i40e_get_settings_link_down()
1046 ks->base.speed = SPEED_UNKNOWN; in i40e_get_settings_link_down()
1047 ks->base.duplex = DUPLEX_UNKNOWN; in i40e_get_settings_link_down()
1058 struct ethtool_link_ksettings *ks) in i40e_get_link_ksettings() argument
1066 ethtool_link_ksettings_zero_link_mode(ks, supported); in i40e_get_link_ksettings()
1067 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_get_link_ksettings()
1070 i40e_get_settings_link_up(hw, ks, netdev, pf); in i40e_get_link_ksettings()
1072 i40e_get_settings_link_down(hw, ks, pf); in i40e_get_link_ksettings()
1076 ks->base.autoneg = ((hw_link_info->an_info & I40E_AQ_AN_COMPLETED) ? in i40e_get_link_ksettings()
1082 ethtool_link_ksettings_add_link_mode(ks, supported, Autoneg); in i40e_get_link_ksettings()
1083 ethtool_link_ksettings_add_link_mode(ks, supported, Backplane); in i40e_get_link_ksettings()
1084 ethtool_link_ksettings_add_link_mode(ks, advertising, Autoneg); in i40e_get_link_ksettings()
1085 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_link_ksettings()
1087 ks->base.port = PORT_NONE; in i40e_get_link_ksettings()
1090 ethtool_link_ksettings_add_link_mode(ks, supported, TP); in i40e_get_link_ksettings()
1091 ethtool_link_ksettings_add_link_mode(ks, advertising, TP); in i40e_get_link_ksettings()
1092 ks->base.port = PORT_TP; in i40e_get_link_ksettings()
1096 ethtool_link_ksettings_add_link_mode(ks, supported, FIBRE); in i40e_get_link_ksettings()
1097 ethtool_link_ksettings_add_link_mode(ks, advertising, FIBRE); in i40e_get_link_ksettings()
1098 ks->base.port = PORT_DA; in i40e_get_link_ksettings()
1101 ethtool_link_ksettings_add_link_mode(ks, supported, FIBRE); in i40e_get_link_ksettings()
1102 ethtool_link_ksettings_add_link_mode(ks, advertising, FIBRE); in i40e_get_link_ksettings()
1103 ks->base.port = PORT_FIBRE; in i40e_get_link_ksettings()
1107 ks->base.port = PORT_OTHER; in i40e_get_link_ksettings()
1112 ethtool_link_ksettings_add_link_mode(ks, supported, Pause); in i40e_get_link_ksettings()
1113 ethtool_link_ksettings_add_link_mode(ks, supported, Asym_Pause); in i40e_get_link_ksettings()
1117 ethtool_link_ksettings_add_link_mode(ks, advertising, Pause); in i40e_get_link_ksettings()
1120 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_link_ksettings()
1124 ethtool_link_ksettings_add_link_mode(ks, advertising, Pause); in i40e_get_link_ksettings()
1125 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_get_link_ksettings()
1129 ethtool_link_ksettings_del_link_mode(ks, advertising, Pause); in i40e_get_link_ksettings()
1130 ethtool_link_ksettings_del_link_mode(ks, advertising, in i40e_get_link_ksettings()
1146 const struct ethtool_link_ksettings *ks) in i40e_set_link_ksettings() argument
1188 memcpy(©_ks, ks, sizeof(struct ethtool_link_ksettings)); in i40e_set_link_ksettings()
1277 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1280 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1282 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1284 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1287 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1289 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1291 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1293 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1295 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1297 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1300 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1303 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1306 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1309 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1311 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1313 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1316 if (ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1318 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1320 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()
1322 ethtool_link_ksettings_test_link_mode(ks, advertising, in i40e_set_link_ksettings()