link_ksettings 272 drivers/net/ethernet/amazon/ena/ena_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 285 drivers/net/ethernet/amazon/ena/ena_ethtool.c link_ksettings->base.speed = link->speed; link_ksettings 288 drivers/net/ethernet/amazon/ena/ena_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 290 drivers/net/ethernet/amazon/ena/ena_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 294 drivers/net/ethernet/amazon/ena/ena_ethtool.c link_ksettings->base.autoneg = link_ksettings 298 drivers/net/ethernet/amazon/ena/ena_ethtool.c link_ksettings->base.duplex = DUPLEX_FULL; link_ksettings 593 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 596 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c struct ethtool_link_settings *base = &link_ksettings->base; link_ksettings 605 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); link_ksettings 606 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); link_ksettings 607 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, lp_advertising); link_ksettings 622 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c link_ksettings->link_modes.supported); link_ksettings 627 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c link_ksettings->link_modes.advertising); link_ksettings 629 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c link_ksettings->link_modes.lp_advertising); link_ksettings 638 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 641 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 648 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct ethtool_link_ksettings *link_ksettings) link_ksettings 652 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c const struct ethtool_link_settings *base = &link_ksettings->base; link_ksettings 674 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c lmm_to_fw_caps(link_ksettings->link_modes.advertising); link_ksettings 1439 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 1442 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c struct ethtool_link_settings *base = &link_ksettings->base; link_ksettings 1451 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); link_ksettings 1452 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); link_ksettings 1453 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ethtool_link_ksettings_zero_link_mode(link_ksettings, lp_advertising); link_ksettings 1468 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c link_ksettings->link_modes.supported); link_ksettings 1470 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c link_ksettings->link_modes.advertising); link_ksettings 1472 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c link_ksettings->link_modes.lp_advertising); link_ksettings 1484 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 1487 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 36 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c static void set_link_speed(struct ethtool_link_ksettings *link_ksettings, link_ksettings 41 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_10; link_ksettings 45 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_100; link_ksettings 49 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_1000; link_ksettings 53 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_10000; link_ksettings 57 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_25000; link_ksettings 61 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_40000; link_ksettings 65 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_100000; link_ksettings 69 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_UNKNOWN; link_ksettings 76 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c *link_ksettings) link_ksettings 83 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); link_ksettings 84 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, supported, link_ksettings 87 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.speed = SPEED_UNKNOWN; link_ksettings 88 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.autoneg = AUTONEG_DISABLE; link_ksettings 89 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.duplex = DUPLEX_UNKNOWN; link_ksettings 102 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c set_link_speed(link_ksettings, port_cap.speed); link_ksettings 105 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 109 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.autoneg = AUTONEG_ENABLE; link_ksettings 111 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c link_ksettings->base.duplex = (port_cap.duplex == HINIC_DUPLEX_FULL) ? link_ksettings 744 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 773 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); link_ksettings 774 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); link_ksettings 776 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ptys2ethtool_update_supported_port(link_ksettings->link_modes.supported, link_ksettings 780 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ptys2ethtool_update_link_modes(link_ksettings->link_modes.supported, link_ksettings 784 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ptys2ethtool_update_link_modes(link_ksettings->link_modes.advertising, link_ksettings 787 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, supported, link_ksettings 789 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, supported, link_ksettings 793 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 796 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 799 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.port = ptys_get_active_port(&ptys_reg); link_ksettings 802 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 804 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 808 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.autoneg link_ksettings 814 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, lp_advertising); link_ksettings 816 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->link_modes.lp_advertising, link_ksettings 819 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 822 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.phy_address = 0; link_ksettings 823 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.mdio_support = 0; link_ksettings 824 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.eth_tp_mdix = ETH_TP_MDI_INVALID; link_ksettings 825 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.eth_tp_mdix_ctrl = ETH_TP_MDI_AUTO; link_ksettings 832 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c struct net_device *dev, struct ethtool_link_ksettings *link_ksettings) link_ksettings 837 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.autoneg = AUTONEG_DISABLE; link_ksettings 839 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); link_ksettings 840 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, supported, link_ksettings 843 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); link_ksettings 844 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, advertising, link_ksettings 849 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.port = PORT_FIBRE; link_ksettings 850 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 852 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 855 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.port = PORT_TP; link_ksettings 856 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 858 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 861 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.port = -1; link_ksettings 867 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 880 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ret = ethtool_get_ptys_link_ksettings(dev, link_ksettings); link_ksettings 882 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c ethtool_get_default_link_ksettings(dev, link_ksettings); link_ksettings 885 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.speed = priv->port_state.link_speed; link_ksettings 886 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.duplex = DUPLEX_FULL; link_ksettings 888 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.speed = SPEED_UNKNOWN; link_ksettings 889 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.duplex = DUPLEX_UNKNOWN; link_ksettings 915 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c const struct ethtool_link_ksettings *link_ksettings) link_ksettings 924 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->link_modes.advertising, ADVERTISED); link_ksettings 925 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c const int speed = link_ksettings->base.speed; link_ksettings 930 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->link_modes.advertising, link_ksettings 931 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.autoneg, link_ksettings 932 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c link_ksettings->base.duplex); link_ksettings 936 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c (link_ksettings->base.duplex == DUPLEX_HALF)) link_ksettings 953 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (link_ksettings->base.autoneg == AUTONEG_DISABLE) { link_ksettings 974 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c (link_ksettings->base.autoneg == cur_autoneg))) link_ksettings 1154 drivers/net/ethernet/mellanox/mlx5/core/en.h struct ethtool_link_ksettings *link_ksettings); link_ksettings 1156 drivers/net/ethernet/mellanox/mlx5/core/en.h const struct ethtool_link_ksettings *link_ksettings); link_ksettings 673 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 693 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c __set_bit(offset, link_ksettings->link_modes.supported); link_ksettings 698 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c __set_bit(offset, link_ksettings->link_modes.advertising); link_ksettings 703 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c static void ptys2ethtool_supported_advertised_port(struct ethtool_link_ksettings *link_ksettings, link_ksettings 714 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 717 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 727 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 730 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 739 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 741 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 745 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 747 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 751 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 753 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 757 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 759 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 763 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 765 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 769 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 771 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 783 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 801 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c link_ksettings->base.speed = speed; link_ksettings 802 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c link_ksettings->base.duplex = duplex; link_ksettings 806 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 808 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c unsigned long *supported = link_ksettings->link_modes.supported; link_ksettings 811 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, supported, Pause); link_ksettings 815 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_link_ksettings *link_ksettings, link_ksettings 818 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c unsigned long *advertising = link_ksettings->link_modes.advertising; link_ksettings 822 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, advertising, Pause); link_ksettings 824 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, advertising, Asym_Pause); link_ksettings 871 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 873 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c unsigned long *lp_advertising = link_ksettings->link_modes.lp_advertising; link_ksettings 880 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 930 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); link_ksettings 931 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); link_ksettings 933 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c get_supported(mdev, eth_proto_cap, link_ksettings); link_ksettings 934 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c get_advertising(eth_proto_admin, tx_pause, rx_pause, link_ksettings, link_ksettings 937 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c link_ksettings); link_ksettings 941 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c link_ksettings->base.port = get_connector_port(eth_proto_oper, link_ksettings 943 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ptys2ethtool_supported_advertised_port(link_ksettings, eth_proto_admin, link_ksettings 945 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c get_lp_advertising(mdev, eth_proto_lp, link_ksettings); link_ksettings 948 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 951 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c link_ksettings->base.autoneg = an_disable_admin ? AUTONEG_DISABLE : link_ksettings 953 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, supported, link_ksettings 956 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c err = get_fec_supported_advertised(mdev, link_ksettings); link_ksettings 964 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c ethtool_link_ksettings_add_link_mode(link_ksettings, link_ksettings 972 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 976 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c return mlx5e_ethtool_get_link_ksettings(priv, link_ksettings); link_ksettings 1032 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c const struct ethtool_link_ksettings *link_ksettings) link_ksettings 1051 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c adver = link_ksettings->link_modes.advertising; link_ksettings 1052 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c autoneg = link_ksettings->base.autoneg; link_ksettings 1053 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c speed = link_ksettings->base.speed; link_ksettings 1105 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c const struct ethtool_link_ksettings *link_ksettings) link_ksettings 1109 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c return mlx5e_ethtool_set_link_ksettings(priv, link_ksettings); link_ksettings 344 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 348 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c return mlx5e_ethtool_get_link_ksettings(priv, link_ksettings); link_ksettings 352 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c const struct ethtool_link_ksettings *link_ksettings) link_ksettings 356 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c return mlx5e_ethtool_set_link_ksettings(priv, link_ksettings); link_ksettings 210 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 220 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, supported); link_ksettings 221 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); link_ksettings 227 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c link_ksettings->base.duplex = DUPLEX_FULL; link_ksettings 228 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c link_ksettings->base.port = PORT_OTHER; link_ksettings 230 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c link_ksettings->base.autoneg = AUTONEG_DISABLE; link_ksettings 232 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c link_ksettings->base.speed = speed; link_ksettings 244 drivers/net/tun.c struct ethtool_link_ksettings link_ksettings; link_ksettings 2319 drivers/net/tun.c tun_default_link_ksettings(dev, &tun->link_ksettings); link_ksettings 3532 drivers/net/tun.c memcpy(cmd, &tun->link_ksettings, sizeof(*cmd)); link_ksettings 3541 drivers/net/tun.c memcpy(&tun->link_ksettings, cmd, sizeof(*cmd)); link_ksettings 57 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 77 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c link_ksettings->base.autoneg = AUTONEG_ENABLE; link_ksettings 79 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c link_ksettings->base.duplex = DUPLEX_FULL; link_ksettings 80 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c link_ksettings->base.speed = state.rate; link_ksettings 88 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c const struct ethtool_link_ksettings *link_ksettings) link_ksettings 108 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c cfg.rate = link_ksettings->base.speed; link_ksettings 109 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c if (link_ksettings->base.autoneg == AUTONEG_ENABLE) link_ksettings 113 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c if (link_ksettings->base.duplex == DUPLEX_HALF) link_ksettings 161 include/linux/ethtool.h struct ethtool_link_ksettings *link_ksettings); link_ksettings 440 net/core/ethtool.c struct ethtool_link_ksettings *link_ksettings, link_ksettings 445 net/core/ethtool.c memset(link_ksettings, 0, sizeof(*link_ksettings)); link_ksettings 456 net/core/ethtool.c link_ksettings->link_modes.supported, link_ksettings 459 net/core/ethtool.c link_ksettings->link_modes.advertising, link_ksettings 462 net/core/ethtool.c link_ksettings->link_modes.lp_advertising, link_ksettings 464 net/core/ethtool.c link_ksettings->base.speed link_ksettings 466 net/core/ethtool.c link_ksettings->base.duplex link_ksettings 468 net/core/ethtool.c link_ksettings->base.port link_ksettings 470 net/core/ethtool.c link_ksettings->base.phy_address link_ksettings 472 net/core/ethtool.c link_ksettings->base.autoneg link_ksettings 474 net/core/ethtool.c link_ksettings->base.mdio_support link_ksettings 476 net/core/ethtool.c link_ksettings->base.eth_tp_mdix link_ksettings 478 net/core/ethtool.c link_ksettings->base.eth_tp_mdix_ctrl link_ksettings 489 net/core/ethtool.c const struct ethtool_link_ksettings *link_ksettings) link_ksettings 502 net/core/ethtool.c link_ksettings->link_modes.supported); link_ksettings 505 net/core/ethtool.c link_ksettings->link_modes.advertising); link_ksettings 508 net/core/ethtool.c link_ksettings->link_modes.lp_advertising); link_ksettings 509 net/core/ethtool.c ethtool_cmd_speed_set(legacy_settings, link_ksettings->base.speed); link_ksettings 511 net/core/ethtool.c = link_ksettings->base.duplex; link_ksettings 513 net/core/ethtool.c = link_ksettings->base.port; link_ksettings 515 net/core/ethtool.c = link_ksettings->base.phy_address; link_ksettings 517 net/core/ethtool.c = link_ksettings->base.autoneg; link_ksettings 519 net/core/ethtool.c = link_ksettings->base.mdio_support; link_ksettings 521 net/core/ethtool.c = link_ksettings->base.eth_tp_mdix; link_ksettings 523 net/core/ethtool.c = link_ksettings->base.eth_tp_mdix_ctrl; link_ksettings 525 net/core/ethtool.c = link_ksettings->base.transceiver; link_ksettings 545 net/core/ethtool.c struct ethtool_link_ksettings *link_ksettings) link_ksettings 552 net/core/ethtool.c memset(link_ksettings, 0, sizeof(*link_ksettings)); link_ksettings 553 net/core/ethtool.c return dev->ethtool_ops->get_link_ksettings(dev, link_ksettings); link_ksettings 614 net/core/ethtool.c struct ethtool_link_ksettings link_ksettings; link_ksettings 621 net/core/ethtool.c if (copy_from_user(&link_ksettings.base, useraddr, link_ksettings 622 net/core/ethtool.c sizeof(link_ksettings.base))) link_ksettings 626 net/core/ethtool.c != link_ksettings.base.link_mode_masks_nwords) { link_ksettings 628 net/core/ethtool.c memset(&link_ksettings, 0, sizeof(link_ksettings)); link_ksettings 629 net/core/ethtool.c link_ksettings.base.cmd = ETHTOOL_GLINKSETTINGS; link_ksettings 633 net/core/ethtool.c link_ksettings.base.link_mode_masks_nwords link_ksettings 639 net/core/ethtool.c if (copy_to_user(useraddr, &link_ksettings.base, link_ksettings 640 net/core/ethtool.c sizeof(link_ksettings.base))) link_ksettings 650 net/core/ethtool.c memset(&link_ksettings, 0, sizeof(link_ksettings)); link_ksettings 651 net/core/ethtool.c err = dev->ethtool_ops->get_link_ksettings(dev, &link_ksettings); link_ksettings 656 net/core/ethtool.c link_ksettings.base.cmd = ETHTOOL_GLINKSETTINGS; link_ksettings 657 net/core/ethtool.c link_ksettings.base.link_mode_masks_nwords link_ksettings 660 net/core/ethtool.c return store_link_ksettings_for_user(useraddr, &link_ksettings); link_ksettings 668 net/core/ethtool.c struct ethtool_link_ksettings link_ksettings; link_ksettings 676 net/core/ethtool.c if (copy_from_user(&link_ksettings.base, useraddr, link_ksettings 677 net/core/ethtool.c sizeof(link_ksettings.base))) link_ksettings 681 net/core/ethtool.c != link_ksettings.base.link_mode_masks_nwords) link_ksettings 687 net/core/ethtool.c err = load_link_ksettings_from_user(&link_ksettings, useraddr); link_ksettings 693 net/core/ethtool.c != link_ksettings.base.link_mode_masks_nwords) link_ksettings 696 net/core/ethtool.c return dev->ethtool_ops->set_link_ksettings(dev, &link_ksettings); link_ksettings 710 net/core/ethtool.c struct ethtool_link_ksettings link_ksettings; link_ksettings 718 net/core/ethtool.c memset(&link_ksettings, 0, sizeof(link_ksettings)); link_ksettings 719 net/core/ethtool.c err = dev->ethtool_ops->get_link_ksettings(dev, &link_ksettings); link_ksettings 722 net/core/ethtool.c convert_link_ksettings_to_legacy_settings(&cmd, &link_ksettings); link_ksettings 743 net/core/ethtool.c struct ethtool_link_ksettings link_ksettings; link_ksettings 753 net/core/ethtool.c if (!convert_legacy_settings_to_link_ksettings(&link_ksettings, &cmd)) link_ksettings 755 net/core/ethtool.c link_ksettings.base.link_mode_masks_nwords = link_ksettings 757 net/core/ethtool.c return dev->ethtool_ops->set_link_ksettings(dev, &link_ksettings);