Home
last modified time | relevance | path

Searched refs:ecmd (Results 1 – 82 of 82) sorted by relevance

/linux-4.1.27/drivers/net/
Dmdio.c187 struct ethtool_cmd *ecmd, in mdio45_ethtool_gset_npage() argument
196 ecmd->transceiver = XCVR_INTERNAL; in mdio45_ethtool_gset_npage()
197 ecmd->phy_address = mdio->prtad; in mdio45_ethtool_gset_npage()
198 ecmd->mdio_support = in mdio45_ethtool_gset_npage()
208 ecmd->port = PORT_TP; in mdio45_ethtool_gset_npage()
209 ecmd->supported = SUPPORTED_TP; in mdio45_ethtool_gset_npage()
213 ecmd->supported |= SUPPORTED_10000baseT_Full; in mdio45_ethtool_gset_npage()
215 ecmd->supported |= (SUPPORTED_1000baseT_Full | in mdio45_ethtool_gset_npage()
218 ecmd->supported |= (SUPPORTED_100baseT_Full | in mdio45_ethtool_gset_npage()
221 ecmd->supported |= (SUPPORTED_10baseT_Full | in mdio45_ethtool_gset_npage()
[all …]
Dmii.c55 int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) in mii_ethtool_gset() argument
61 ecmd->supported = in mii_ethtool_gset()
66 ecmd->supported |= SUPPORTED_1000baseT_Half | in mii_ethtool_gset()
70 ecmd->port = PORT_MII; in mii_ethtool_gset()
73 ecmd->transceiver = XCVR_INTERNAL; in mii_ethtool_gset()
76 ecmd->phy_address = mii->phy_id; in mii_ethtool_gset()
77 ecmd->mdio_support = ETH_MDIO_SUPPORTS_C22; in mii_ethtool_gset()
79 ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_gset()
88 ecmd->advertising |= ADVERTISED_Autoneg; in mii_ethtool_gset()
89 ecmd->autoneg = AUTONEG_ENABLE; in mii_ethtool_gset()
[all …]
/linux-4.1.27/drivers/net/ethernet/atheros/alx/
Dethtool.c128 static int alx_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in alx_get_settings() argument
133 ecmd->supported = SUPPORTED_Autoneg | in alx_get_settings()
138 ecmd->supported |= SUPPORTED_1000baseT_Full; in alx_get_settings()
139 ecmd->supported |= alx_get_supported_speeds(hw); in alx_get_settings()
141 ecmd->advertising = ADVERTISED_TP; in alx_get_settings()
143 ecmd->advertising |= hw->adv_cfg; in alx_get_settings()
145 ecmd->port = PORT_TP; in alx_get_settings()
146 ecmd->phy_address = 0; in alx_get_settings()
149 ecmd->autoneg = AUTONEG_ENABLE; in alx_get_settings()
151 ecmd->autoneg = AUTONEG_DISABLE; in alx_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c101 netxen_nic_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in netxen_nic_get_settings() argument
108 ecmd->supported = (SUPPORTED_10baseT_Half | in netxen_nic_get_settings()
115 ecmd->advertising = (ADVERTISED_100baseT_Half | in netxen_nic_get_settings()
120 ecmd->port = PORT_TP; in netxen_nic_get_settings()
122 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in netxen_nic_get_settings()
123 ecmd->duplex = adapter->link_duplex; in netxen_nic_get_settings()
124 ecmd->autoneg = adapter->link_autoneg; in netxen_nic_get_settings()
131 ecmd->supported = SUPPORTED_1000baseT_Full; in netxen_nic_get_settings()
132 ecmd->advertising = ADVERTISED_1000baseT_Full; in netxen_nic_get_settings()
134 ecmd->supported = SUPPORTED_10000baseT_Full; in netxen_nic_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c107 struct ethtool_cmd *ecmd) in enic_get_settings() argument
111 ecmd->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE); in enic_get_settings()
112 ecmd->advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in enic_get_settings()
113 ecmd->port = PORT_FIBRE; in enic_get_settings()
114 ecmd->transceiver = XCVR_EXTERNAL; in enic_get_settings()
117 ethtool_cmd_speed_set(ecmd, vnic_dev_port_speed(enic->vdev)); in enic_get_settings()
118 ecmd->duplex = DUPLEX_FULL; in enic_get_settings()
120 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in enic_get_settings()
121 ecmd->duplex = DUPLEX_UNKNOWN; in enic_get_settings()
124 ecmd->autoneg = AUTONEG_DISABLE; in enic_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/atheros/atl1c/
Datl1c_ethtool.c30 struct ethtool_cmd *ecmd) in atl1c_get_settings() argument
35 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1c_get_settings()
42 ecmd->supported |= SUPPORTED_1000baseT_Full; in atl1c_get_settings()
44 ecmd->advertising = ADVERTISED_TP; in atl1c_get_settings()
46 ecmd->advertising |= hw->autoneg_advertised; in atl1c_get_settings()
48 ecmd->port = PORT_TP; in atl1c_get_settings()
49 ecmd->phy_address = 0; in atl1c_get_settings()
50 ecmd->transceiver = XCVR_INTERNAL; in atl1c_get_settings()
53 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in atl1c_get_settings()
55 ecmd->duplex = DUPLEX_FULL; in atl1c_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
Datl1e_ethtool.c30 struct ethtool_cmd *ecmd) in atl1e_get_settings() argument
35 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1e_get_settings()
42 ecmd->supported |= SUPPORTED_1000baseT_Full; in atl1e_get_settings()
44 ecmd->advertising = ADVERTISED_TP; in atl1e_get_settings()
46 ecmd->advertising |= ADVERTISED_Autoneg; in atl1e_get_settings()
47 ecmd->advertising |= hw->autoneg_advertised; in atl1e_get_settings()
49 ecmd->port = PORT_TP; in atl1e_get_settings()
50 ecmd->phy_address = 0; in atl1e_get_settings()
51 ecmd->transceiver = XCVR_INTERNAL; in atl1e_get_settings()
54 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in atl1e_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c245 struct ethtool_cmd *ecmd, in i40e_get_settings_link_up() argument
255 ecmd->supported = SUPPORTED_Autoneg | in i40e_get_settings_link_up()
257 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings_link_up()
263 ecmd->supported = SUPPORTED_40000baseCR4_Full; in i40e_get_settings_link_up()
266 ecmd->supported = SUPPORTED_Autoneg | in i40e_get_settings_link_up()
268 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings_link_up()
272 ecmd->supported = SUPPORTED_40000baseSR4_Full; in i40e_get_settings_link_up()
275 ecmd->supported = SUPPORTED_40000baseLR4_Full; in i40e_get_settings_link_up()
278 ecmd->supported = SUPPORTED_Autoneg | in i40e_get_settings_link_up()
280 ecmd->advertising = ADVERTISED_Autoneg | in i40e_get_settings_link_up()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c288 struct ethtool_cmd *ecmd) in qlcnic_82xx_get_settings() argument
297 ecmd->supported = (SUPPORTED_10baseT_Half | in qlcnic_82xx_get_settings()
304 ecmd->advertising = (ADVERTISED_100baseT_Half | in qlcnic_82xx_get_settings()
309 ethtool_cmd_speed_set(ecmd, adapter->ahw->link_speed); in qlcnic_82xx_get_settings()
310 ecmd->duplex = adapter->ahw->link_duplex; in qlcnic_82xx_get_settings()
311 ecmd->autoneg = adapter->ahw->link_autoneg; in qlcnic_82xx_get_settings()
318 ecmd->supported = SUPPORTED_1000baseT_Full; in qlcnic_82xx_get_settings()
319 ecmd->advertising = ADVERTISED_1000baseT_Full; in qlcnic_82xx_get_settings()
321 ecmd->supported = SUPPORTED_10000baseT_Full; in qlcnic_82xx_get_settings()
322 ecmd->advertising = ADVERTISED_10000baseT_Full; in qlcnic_82xx_get_settings()
[all …]
Dqlcnic_83xx_hw.c3253 struct ethtool_cmd *ecmd) in qlcnic_83xx_get_settings() argument
3271 ethtool_cmd_speed_set(ecmd, ahw->link_speed); in qlcnic_83xx_get_settings()
3272 ecmd->duplex = ahw->link_duplex; in qlcnic_83xx_get_settings()
3273 ecmd->autoneg = ahw->link_autoneg; in qlcnic_83xx_get_settings()
3275 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in qlcnic_83xx_get_settings()
3276 ecmd->duplex = DUPLEX_UNKNOWN; in qlcnic_83xx_get_settings()
3277 ecmd->autoneg = AUTONEG_DISABLE; in qlcnic_83xx_get_settings()
3280 ecmd->supported = (SUPPORTED_10baseT_Full | in qlcnic_83xx_get_settings()
3286 if (ecmd->autoneg == AUTONEG_ENABLE) { in qlcnic_83xx_get_settings()
3288 ecmd->advertising |= SUPPORTED_10baseT_Full; in qlcnic_83xx_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c601 static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in be_get_settings() argument
615 ethtool_cmd_speed_set(ecmd, link_speed); in be_get_settings()
624 ecmd->supported = in be_get_settings()
628 ecmd->advertising = in be_get_settings()
631 ecmd->port = be_get_port_type(adapter); in be_get_settings()
634 ecmd->supported |= SUPPORTED_Autoneg; in be_get_settings()
635 ecmd->autoneg = AUTONEG_ENABLE; in be_get_settings()
636 ecmd->advertising |= ADVERTISED_Autoneg; in be_get_settings()
639 ecmd->supported |= SUPPORTED_Pause; in be_get_settings()
641 ecmd->advertising |= ADVERTISED_Pause; in be_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dethtool.c75 struct ethtool_cmd *ecmd) in igbvf_get_settings() argument
81 ecmd->supported = SUPPORTED_1000baseT_Full; in igbvf_get_settings()
83 ecmd->advertising = ADVERTISED_1000baseT_Full; in igbvf_get_settings()
85 ecmd->port = -1; in igbvf_get_settings()
86 ecmd->transceiver = XCVR_DUMMY1; in igbvf_get_settings()
91 ethtool_cmd_speed_set(ecmd, SPEED_1000); in igbvf_get_settings()
93 ethtool_cmd_speed_set(ecmd, SPEED_100); in igbvf_get_settings()
95 ethtool_cmd_speed_set(ecmd, SPEED_10); in igbvf_get_settings()
98 ecmd->duplex = DUPLEX_FULL; in igbvf_get_settings()
100 ecmd->duplex = DUPLEX_HALF; in igbvf_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/sfc/
Dmdio_10g.c233 int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) in efx_mdio_set_settings() argument
239 if (ecmd->advertising == prev.advertising && in efx_mdio_set_settings()
240 ethtool_cmd_speed(ecmd) == ethtool_cmd_speed(&prev) && in efx_mdio_set_settings()
241 ecmd->duplex == prev.duplex && in efx_mdio_set_settings()
242 ecmd->port == prev.port && in efx_mdio_set_settings()
243 ecmd->autoneg == prev.autoneg) in efx_mdio_set_settings()
247 if (prev.port != PORT_TP || ecmd->port != PORT_TP) in efx_mdio_set_settings()
251 if (!ecmd->autoneg || in efx_mdio_set_settings()
252 (ecmd->advertising | SUPPORTED_Autoneg) & ~prev.supported) in efx_mdio_set_settings()
255 efx_link_set_advertising(efx, ecmd->advertising | ADVERTISED_Autoneg); in efx_mdio_set_settings()
Dmcdi_port.c506 static void efx_mcdi_phy_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) in efx_mcdi_phy_get_settings() argument
512 ecmd->supported = in efx_mcdi_phy_get_settings()
514 ecmd->advertising = efx->link_advertising; in efx_mcdi_phy_get_settings()
515 ethtool_cmd_speed_set(ecmd, efx->link_state.speed); in efx_mcdi_phy_get_settings()
516 ecmd->duplex = efx->link_state.fd; in efx_mcdi_phy_get_settings()
517 ecmd->port = mcdi_to_ethtool_media(phy_cfg->media); in efx_mcdi_phy_get_settings()
518 ecmd->phy_address = phy_cfg->port; in efx_mcdi_phy_get_settings()
519 ecmd->transceiver = XCVR_INTERNAL; in efx_mcdi_phy_get_settings()
520 ecmd->autoneg = !!(efx->link_advertising & ADVERTISED_Autoneg); in efx_mcdi_phy_get_settings()
521 ecmd->mdio_support = (efx->mdio.mode_support & in efx_mcdi_phy_get_settings()
[all …]
Dtenxpress.c355 tenxpress_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd);
446 tenxpress_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) in tenxpress_get_settings() argument
458 mdio45_ethtool_gset_npage(&efx->mdio, ecmd, adv, lpa); in tenxpress_get_settings()
463 ethtool_cmd_speed_set(ecmd, SPEED_10000); in tenxpress_get_settings()
466 static int tenxpress_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) in tenxpress_set_settings() argument
468 if (!ecmd->autoneg) in tenxpress_set_settings()
471 return efx_mdio_set_settings(efx, ecmd); in tenxpress_set_settings()
Dethtool.c122 struct ethtool_cmd *ecmd) in efx_ethtool_get_settings() argument
128 efx->phy_op->get_settings(efx, ecmd); in efx_ethtool_get_settings()
132 ecmd->supported |= SUPPORTED_Pause | SUPPORTED_Asym_Pause; in efx_ethtool_get_settings()
135 ethtool_cmd_speed_set(ecmd, link_state->speed); in efx_ethtool_get_settings()
136 ecmd->duplex = link_state->fd ? DUPLEX_FULL : DUPLEX_HALF; in efx_ethtool_get_settings()
144 struct ethtool_cmd *ecmd) in efx_ethtool_set_settings() argument
150 if ((ethtool_cmd_speed(ecmd) == SPEED_1000) && in efx_ethtool_set_settings()
151 (ecmd->duplex != DUPLEX_FULL)) { in efx_ethtool_set_settings()
158 rc = efx->phy_op->set_settings(efx, ecmd); in efx_ethtool_set_settings()
Dmdio_10g.h86 int efx_mdio_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd);
Dqt202x_phy.c440 static void qt202x_phy_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) in qt202x_phy_get_settings() argument
442 mdio45_ethtool_gset(&efx->mdio, ecmd); in qt202x_phy_get_settings()
Dtxc43128_phy.c543 static void txc43128_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd) in txc43128_get_settings() argument
545 mdio45_ethtool_gset(&efx->mdio, ecmd); in txc43128_get_settings()
Dnet_driver.h738 struct ethtool_cmd *ecmd);
740 struct ethtool_cmd *ecmd);
/linux-4.1.27/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c84 struct ethtool_cmd *ecmd) in pch_gbe_get_settings() argument
89 ret = mii_ethtool_gset(&adapter->mii, ecmd); in pch_gbe_get_settings()
90 ecmd->supported &= ~(SUPPORTED_TP | SUPPORTED_1000baseT_Half); in pch_gbe_get_settings()
91 ecmd->advertising &= ~(ADVERTISED_TP | ADVERTISED_1000baseT_Half); in pch_gbe_get_settings()
94 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in pch_gbe_get_settings()
107 struct ethtool_cmd *ecmd) in pch_gbe_set_settings() argument
111 u32 speed = ethtool_cmd_speed(ecmd); in pch_gbe_set_settings()
120 ethtool_cmd_speed_set(ecmd, speed); in pch_gbe_set_settings()
121 ecmd->duplex = DUPLEX_FULL; in pch_gbe_set_settings()
123 ret = mii_ethtool_sset(&adapter->mii, ecmd); in pch_gbe_set_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/3com/
D3c509.c1044 el3_netdev_get_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd) in el3_netdev_get_ecmd() argument
1052 ecmd->transceiver = XCVR_INTERNAL; in el3_netdev_get_ecmd()
1055 ecmd->port = PORT_TP; in el3_netdev_get_ecmd()
1058 ecmd->port = PORT_AUI; in el3_netdev_get_ecmd()
1059 ecmd->transceiver = XCVR_EXTERNAL; in el3_netdev_get_ecmd()
1062 ecmd->port = PORT_BNC; in el3_netdev_get_ecmd()
1067 ecmd->duplex = DUPLEX_HALF; in el3_netdev_get_ecmd()
1068 ecmd->supported = 0; in el3_netdev_get_ecmd()
1071 ecmd->supported |= SUPPORTED_AUI; in el3_netdev_get_ecmd()
1073 ecmd->supported |= SUPPORTED_BNC; in el3_netdev_get_ecmd()
[all …]
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Dde2104x.c1488 static int __de_get_settings(struct de_private *de, struct ethtool_cmd *ecmd) in __de_get_settings() argument
1490 ecmd->supported = de->media_supported; in __de_get_settings()
1491 ecmd->transceiver = XCVR_INTERNAL; in __de_get_settings()
1492 ecmd->phy_address = 0; in __de_get_settings()
1493 ecmd->advertising = de->media_advertise; in __de_get_settings()
1497 ecmd->port = PORT_AUI; in __de_get_settings()
1500 ecmd->port = PORT_BNC; in __de_get_settings()
1503 ecmd->port = PORT_TP; in __de_get_settings()
1507 ethtool_cmd_speed_set(ecmd, 10); in __de_get_settings()
1510 ecmd->duplex = DUPLEX_FULL; in __de_get_settings()
[all …]
Duli526x.c930 ULi_ethtool_gset(struct uli526x_board_info *db, struct ethtool_cmd *ecmd) in ULi_ethtool_gset() argument
932 ecmd->supported = (SUPPORTED_10baseT_Half | in ULi_ethtool_gset()
939 ecmd->advertising = (ADVERTISED_10baseT_Half | in ULi_ethtool_gset()
947 ecmd->port = PORT_MII; in ULi_ethtool_gset()
948 ecmd->phy_address = db->phy_addr; in ULi_ethtool_gset()
950 ecmd->transceiver = XCVR_EXTERNAL; in ULi_ethtool_gset()
952 ethtool_cmd_speed_set(ecmd, SPEED_10); in ULi_ethtool_gset()
953 ecmd->duplex = DUPLEX_HALF; in ULi_ethtool_gset()
957 ethtool_cmd_speed_set(ecmd, SPEED_100); in ULi_ethtool_gset()
961 ecmd->duplex = DUPLEX_FULL; in ULi_ethtool_gset()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c107 struct ethtool_cmd *ecmd) in e1000_get_settings() argument
113 ecmd->supported = (SUPPORTED_10baseT_Half | in e1000_get_settings()
120 ecmd->advertising = ADVERTISED_TP; in e1000_get_settings()
123 ecmd->advertising |= ADVERTISED_Autoneg; in e1000_get_settings()
125 ecmd->advertising |= hw->autoneg_advertised; in e1000_get_settings()
128 ecmd->port = PORT_TP; in e1000_get_settings()
129 ecmd->phy_address = hw->phy_addr; in e1000_get_settings()
132 ecmd->transceiver = XCVR_EXTERNAL; in e1000_get_settings()
134 ecmd->transceiver = XCVR_INTERNAL; in e1000_get_settings()
137 ecmd->supported = (SUPPORTED_1000baseT_Full | in e1000_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c155 struct ethtool_cmd *ecmd) in ixgbe_get_settings() argument
168 ecmd->supported |= SUPPORTED_10000baseT_Full; in ixgbe_get_settings()
170 ecmd->supported |= SUPPORTED_1000baseT_Full; in ixgbe_get_settings()
172 ecmd->supported |= SUPPORTED_100baseT_Full; in ixgbe_get_settings()
177 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings()
179 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
181 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings()
185 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings()
187 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings()
189 ecmd->advertising |= ADVERTISED_100baseT_Full; in ixgbe_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/natsemi/
Dnatsemi.c643 static int netdev_get_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd);
644 static int netdev_set_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd);
2574 static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in get_settings() argument
2578 netdev_get_ecmd(dev, ecmd); in get_settings()
2583 static int set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in set_settings() argument
2588 res = netdev_set_ecmd(dev, ecmd); in set_settings()
2818 static int netdev_get_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd) in netdev_get_ecmd() argument
2823 ecmd->port = dev->if_port; in netdev_get_ecmd()
2824 ethtool_cmd_speed_set(ecmd, np->speed); in netdev_get_ecmd()
2825 ecmd->duplex = np->duplex; in netdev_get_ecmd()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c97 ixgb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in ixgb_get_settings() argument
101 ecmd->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE); in ixgb_get_settings()
102 ecmd->advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in ixgb_get_settings()
103 ecmd->port = PORT_FIBRE; in ixgb_get_settings()
104 ecmd->transceiver = XCVR_EXTERNAL; in ixgb_get_settings()
107 ethtool_cmd_speed_set(ecmd, SPEED_10000); in ixgb_get_settings()
108 ecmd->duplex = DUPLEX_FULL; in ixgb_get_settings()
110 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in ixgb_get_settings()
111 ecmd->duplex = DUPLEX_UNKNOWN; in ixgb_get_settings()
114 ecmd->autoneg = AUTONEG_DISABLE; in ixgb_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb_ethtool.c137 static int igb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in igb_get_settings() argument
149 ecmd->supported = (SUPPORTED_10baseT_Half | in igb_get_settings()
157 ecmd->advertising = ADVERTISED_TP; in igb_get_settings()
160 ecmd->advertising |= ADVERTISED_Autoneg; in igb_get_settings()
162 ecmd->advertising |= hw->phy.autoneg_advertised; in igb_get_settings()
165 ecmd->port = PORT_TP; in igb_get_settings()
166 ecmd->phy_address = hw->phy.addr; in igb_get_settings()
167 ecmd->transceiver = XCVR_INTERNAL; in igb_get_settings()
169 ecmd->supported = (SUPPORTED_FIBRE | in igb_get_settings()
173 ecmd->advertising = (ADVERTISED_FIBRE | in igb_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
Dqlge_ethtool.c379 struct ethtool_cmd *ecmd) in ql_get_settings() argument
383 ecmd->supported = SUPPORTED_10000baseT_Full; in ql_get_settings()
384 ecmd->advertising = ADVERTISED_10000baseT_Full; in ql_get_settings()
385 ecmd->transceiver = XCVR_EXTERNAL; in ql_get_settings()
388 ecmd->supported |= (SUPPORTED_TP | SUPPORTED_Autoneg); in ql_get_settings()
389 ecmd->advertising |= (ADVERTISED_TP | ADVERTISED_Autoneg); in ql_get_settings()
390 ecmd->port = PORT_TP; in ql_get_settings()
391 ecmd->autoneg = AUTONEG_ENABLE; in ql_get_settings()
393 ecmd->supported |= SUPPORTED_FIBRE; in ql_get_settings()
394 ecmd->advertising |= ADVERTISED_FIBRE; in ql_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dethtool.c121 struct ethtool_cmd *ecmd) in e1000_get_settings() argument
128 ecmd->supported = (SUPPORTED_10baseT_Half | in e1000_get_settings()
136 ecmd->supported &= ~SUPPORTED_1000baseT_Full; in e1000_get_settings()
137 ecmd->advertising = ADVERTISED_TP; in e1000_get_settings()
140 ecmd->advertising |= ADVERTISED_Autoneg; in e1000_get_settings()
142 ecmd->advertising |= hw->phy.autoneg_advertised; in e1000_get_settings()
145 ecmd->port = PORT_TP; in e1000_get_settings()
146 ecmd->phy_address = hw->phy.addr; in e1000_get_settings()
147 ecmd->transceiver = XCVR_INTERNAL; in e1000_get_settings()
150 ecmd->supported = (SUPPORTED_1000baseT_Full | in e1000_get_settings()
[all …]
/linux-4.1.27/drivers/net/usb/
Dasix_devices.c175 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88172_link_reset() local
178 mii_ethtool_gset(&dev->mii, &ecmd); in ax88172_link_reset()
181 if (ecmd.duplex != DUPLEX_FULL) in ax88172_link_reset()
185 ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in ax88172_link_reset()
278 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88772_link_reset() local
281 mii_ethtool_gset(&dev->mii, &ecmd); in ax88772_link_reset()
284 if (ethtool_cmd_speed(&ecmd) != SPEED_100) in ax88772_link_reset()
287 if (ecmd.duplex != DUPLEX_FULL) in ax88772_link_reset()
291 ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in ax88772_link_reset()
679 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88178_link_reset() local
[all …]
Drtl8150.c774 static int rtl8150_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in rtl8150_get_settings() argument
779 ecmd->supported = (SUPPORTED_10baseT_Half | in rtl8150_get_settings()
785 ecmd->port = PORT_TP; in rtl8150_get_settings()
786 ecmd->transceiver = XCVR_INTERNAL; in rtl8150_get_settings()
787 ecmd->phy_address = dev->phy; in rtl8150_get_settings()
793 ethtool_cmd_speed_set(ecmd, speed); in rtl8150_get_settings()
794 ecmd->autoneg = AUTONEG_ENABLE; in rtl8150_get_settings()
796 ecmd->duplex = (lpa & LPA_100FULL) ? in rtl8150_get_settings()
799 ecmd->duplex = (lpa & LPA_10FULL) ? in rtl8150_get_settings()
802 ecmd->autoneg = AUTONEG_DISABLE; in rtl8150_get_settings()
[all …]
Dsr9700.c513 struct ethtool_cmd ecmd; in sr9700_link_reset() local
516 mii_ethtool_gset(&dev->mii, &ecmd); in sr9700_link_reset()
519 ecmd.speed, ecmd.duplex); in sr9700_link_reset()
Dsr9800.c538 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in sr9800_link_reset() local
542 mii_ethtool_gset(&dev->mii, &ecmd); in sr9800_link_reset()
545 if (ethtool_cmd_speed(&ecmd) != SPEED_100) in sr9800_link_reset()
548 if (ecmd.duplex != DUPLEX_FULL) in sr9800_link_reset()
552 __func__, ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in sr9800_link_reset()
Ddm9601.c549 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in dm9601_link_reset() local
552 mii_ethtool_gset(&dev->mii, &ecmd); in dm9601_link_reset()
555 ethtool_cmd_speed(&ecmd), ecmd.duplex); in dm9601_link_reset()
Dsmsc95xx.c558 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in smsc95xx_link_reset() local
573 mii_ethtool_gset(&dev->mii, &ecmd); in smsc95xx_link_reset()
579 ethtool_cmd_speed(&ecmd), ecmd.duplex, lcladv, rmtadv); in smsc95xx_link_reset()
582 if (ecmd.duplex != DUPLEX_FULL) { in smsc95xx_link_reset()
595 ret = smsc95xx_phy_update_flowcontrol(dev, ecmd.duplex, lcladv, rmtadv); in smsc95xx_link_reset()
Dpegasus.c935 pegasus_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in pegasus_get_settings() argument
940 mii_ethtool_gset(&pegasus->mii, ecmd); in pegasus_get_settings()
945 pegasus_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in pegasus_set_settings() argument
948 return mii_ethtool_sset(&pegasus->mii, ecmd); in pegasus_set_settings()
Dax88179_178a.c675 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88179_chk_eee() local
678 mii_ethtool_gset(&dev->mii, &ecmd); in ax88179_chk_eee()
680 if (ecmd.duplex & DUPLEX_FULL) { in ax88179_chk_eee()
717 supported = (ecmd.speed == SPEED_1000) ? in ax88179_chk_eee()
Dsmsc75xx.c635 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in smsc75xx_link_reset() local
650 mii_ethtool_gset(&dev->mii, &ecmd); in smsc75xx_link_reset()
655 ethtool_cmd_speed(&ecmd), ecmd.duplex, lcladv, rmtadv); in smsc75xx_link_reset()
657 return smsc75xx_update_flowcontrol(dev, ecmd.duplex, lcladv, rmtadv); in smsc75xx_link_reset()
/linux-4.1.27/include/linux/
Dmdio.h71 struct ethtool_cmd *ecmd,
85 struct ethtool_cmd *ecmd) in mdio45_ethtool_gset() argument
87 mdio45_ethtool_gset_npage(mdio, ecmd, 0, 0); in mdio45_ethtool_gset()
Dmii.h33 extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
34 extern int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd);
/linux-4.1.27/drivers/net/ethernet/freescale/
Ducc_geth_ethtool.c108 uec_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in uec_get_settings() argument
117 ecmd->maxtxpkt = 1; in uec_get_settings()
118 ecmd->maxrxpkt = ug_info->interruptcoalescingmaxvalue[0]; in uec_get_settings()
120 return phy_ethtool_gset(phydev, ecmd); in uec_get_settings()
124 uec_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in uec_set_settings() argument
132 return phy_ethtool_sset(phydev, ecmd); in uec_set_settings()
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c420 vmxnet3_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in vmxnet3_get_settings() argument
424 ecmd->supported = SUPPORTED_10000baseT_Full | SUPPORTED_1000baseT_Full | in vmxnet3_get_settings()
426 ecmd->advertising = ADVERTISED_TP; in vmxnet3_get_settings()
427 ecmd->port = PORT_TP; in vmxnet3_get_settings()
428 ecmd->transceiver = XCVR_INTERNAL; in vmxnet3_get_settings()
431 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in vmxnet3_get_settings()
432 ecmd->duplex = DUPLEX_FULL; in vmxnet3_get_settings()
434 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in vmxnet3_get_settings()
435 ecmd->duplex = DUPLEX_UNKNOWN; in vmxnet3_get_settings()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dsky2.c3602 static int sky2_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in sky2_get_settings() argument
3607 ecmd->transceiver = XCVR_INTERNAL; in sky2_get_settings()
3608 ecmd->supported = sky2_supported_modes(hw); in sky2_get_settings()
3609 ecmd->phy_address = PHY_ADDR_MARV; in sky2_get_settings()
3611 ecmd->port = PORT_TP; in sky2_get_settings()
3612 ethtool_cmd_speed_set(ecmd, sky2->speed); in sky2_get_settings()
3613 ecmd->supported |= SUPPORTED_Autoneg | SUPPORTED_TP; in sky2_get_settings()
3615 ethtool_cmd_speed_set(ecmd, SPEED_1000); in sky2_get_settings()
3616 ecmd->port = PORT_FIBRE; in sky2_get_settings()
3617 ecmd->supported |= SUPPORTED_Autoneg | SUPPORTED_FIBRE; in sky2_get_settings()
[all …]
Dskge.c304 struct ethtool_cmd *ecmd) in skge_get_settings() argument
309 ecmd->transceiver = XCVR_INTERNAL; in skge_get_settings()
310 ecmd->supported = skge_supported_modes(hw); in skge_get_settings()
313 ecmd->port = PORT_TP; in skge_get_settings()
314 ecmd->phy_address = hw->phy_addr; in skge_get_settings()
316 ecmd->port = PORT_FIBRE; in skge_get_settings()
318 ecmd->advertising = skge->advertising; in skge_get_settings()
319 ecmd->autoneg = skge->autoneg; in skge_get_settings()
320 ethtool_cmd_speed_set(ecmd, skge->speed); in skge_get_settings()
321 ecmd->duplex = skge->duplex; in skge_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/
Djme.c2483 jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_get_coalesce() argument
2487 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce()
2488 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce()
2491 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce()
2492 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce()
2493 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce()
2497 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce()
2501 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce()
2502 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce()
2505 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce()
[all …]
Djme.h1274 struct ethtool_cmd *ecmd);
/linux-4.1.27/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c1845 static int smc_netdev_get_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd) in smc_netdev_get_ecmd() argument
1850 ecmd->supported = (SUPPORTED_TP | SUPPORTED_AUI | in smc_netdev_get_ecmd()
1855 ecmd->port = (tmp & CFG_AUI_SELECT) ? PORT_AUI : PORT_TP; in smc_netdev_get_ecmd()
1856 ecmd->transceiver = XCVR_INTERNAL; in smc_netdev_get_ecmd()
1857 ethtool_cmd_speed_set(ecmd, SPEED_10); in smc_netdev_get_ecmd()
1858 ecmd->phy_address = ioaddr + MGMT; in smc_netdev_get_ecmd()
1862 ecmd->duplex = (tmp & TCR_FDUPLX) ? DUPLEX_FULL : DUPLEX_HALF; in smc_netdev_get_ecmd()
1867 static int smc_netdev_set_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd) in smc_netdev_set_ecmd() argument
1872 if (ethtool_cmd_speed(ecmd) != SPEED_10) in smc_netdev_set_ecmd()
1874 if (ecmd->duplex != DUPLEX_HALF && ecmd->duplex != DUPLEX_FULL) in smc_netdev_set_ecmd()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
Dethtool.c106 struct ethtool_cmd *ecmd) in ixgbevf_get_settings() argument
113 ecmd->supported = SUPPORTED_10000baseT_Full; in ixgbevf_get_settings()
114 ecmd->autoneg = AUTONEG_DISABLE; in ixgbevf_get_settings()
115 ecmd->transceiver = XCVR_DUMMY1; in ixgbevf_get_settings()
116 ecmd->port = -1; in ixgbevf_get_settings()
136 ethtool_cmd_speed_set(ecmd, speed); in ixgbevf_get_settings()
137 ecmd->duplex = DUPLEX_FULL; in ixgbevf_get_settings()
139 ethtool_cmd_speed_set(ecmd, SPEED_UNKNOWN); in ixgbevf_get_settings()
140 ecmd->duplex = DUPLEX_UNKNOWN; in ixgbevf_get_settings()
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/
Datl2.c1743 struct ethtool_cmd *ecmd) in atl2_get_settings() argument
1748 ecmd->supported = (SUPPORTED_10baseT_Half | in atl2_get_settings()
1754 ecmd->advertising = ADVERTISED_TP; in atl2_get_settings()
1756 ecmd->advertising |= ADVERTISED_Autoneg; in atl2_get_settings()
1757 ecmd->advertising |= hw->autoneg_advertised; in atl2_get_settings()
1759 ecmd->port = PORT_TP; in atl2_get_settings()
1760 ecmd->phy_address = 0; in atl2_get_settings()
1761 ecmd->transceiver = XCVR_INTERNAL; in atl2_get_settings()
1764 ethtool_cmd_speed_set(ecmd, adapter->link_speed); in atl2_get_settings()
1766 ecmd->duplex = DUPLEX_FULL; in atl2_get_settings()
[all …]
Datl1.c3221 struct ethtool_cmd *ecmd) in atl1_get_settings() argument
3226 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1_get_settings()
3232 ecmd->advertising = ADVERTISED_TP; in atl1_get_settings()
3235 ecmd->advertising |= ADVERTISED_Autoneg; in atl1_get_settings()
3237 ecmd->advertising |= ADVERTISED_Autoneg; in atl1_get_settings()
3238 ecmd->advertising |= in atl1_get_settings()
3245 ecmd->advertising |= (ADVERTISED_1000baseT_Full); in atl1_get_settings()
3247 ecmd->port = PORT_TP; in atl1_get_settings()
3248 ecmd->phy_address = 0; in atl1_get_settings()
3249 ecmd->transceiver = XCVR_INTERNAL; in atl1_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/alteon/
Dacenic.c2583 static int ace_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in ace_get_settings() argument
2589 memset(ecmd, 0, sizeof(struct ethtool_cmd)); in ace_get_settings()
2590 ecmd->supported = in ace_get_settings()
2596 ecmd->port = PORT_FIBRE; in ace_get_settings()
2597 ecmd->transceiver = XCVR_INTERNAL; in ace_get_settings()
2601 ethtool_cmd_speed_set(ecmd, SPEED_1000); in ace_get_settings()
2605 ethtool_cmd_speed_set(ecmd, SPEED_100); in ace_get_settings()
2607 ethtool_cmd_speed_set(ecmd, SPEED_10); in ace_get_settings()
2609 ethtool_cmd_speed_set(ecmd, 0); in ace_get_settings()
2612 ecmd->duplex = DUPLEX_FULL; in ace_get_settings()
[all …]
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe_transport.c96 struct ethtool_cmd ecmd; in fcoe_link_speed_update() local
98 if (!__ethtool_get_settings(netdev, &ecmd)) { in fcoe_link_speed_update()
104 if (ecmd.supported & (SUPPORTED_1000baseT_Half | in fcoe_link_speed_update()
109 if (ecmd.supported & (SUPPORTED_10000baseT_Full | in fcoe_link_speed_update()
115 if (ecmd.supported & (SUPPORTED_20000baseMLD2_Full | in fcoe_link_speed_update()
119 if (ecmd.supported & (SUPPORTED_40000baseKR4_Full | in fcoe_link_speed_update()
125 switch (ethtool_cmd_speed(&ecmd)) { in fcoe_link_speed_update()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c75 struct ethtool_cmd *ecmd) in i40evf_get_settings() argument
80 ecmd->supported = 0; in i40evf_get_settings()
81 ecmd->autoneg = AUTONEG_DISABLE; in i40evf_get_settings()
82 ecmd->transceiver = XCVR_DUMMY1; in i40evf_get_settings()
83 ecmd->port = PORT_NONE; in i40evf_get_settings()
/linux-4.1.27/drivers/net/ethernet/nvidia/
Dforcedeth.c4249 static int nv_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in nv_get_settings() argument
4256 ecmd->port = PORT_MII; in nv_get_settings()
4284 ecmd->duplex = DUPLEX_HALF; in nv_get_settings()
4286 ecmd->duplex = DUPLEX_FULL; in nv_get_settings()
4289 ecmd->duplex = DUPLEX_UNKNOWN; in nv_get_settings()
4291 ethtool_cmd_speed_set(ecmd, speed); in nv_get_settings()
4292 ecmd->autoneg = np->autoneg; in nv_get_settings()
4294 ecmd->advertising = ADVERTISED_MII; in nv_get_settings()
4296 ecmd->advertising |= ADVERTISED_Autoneg; in nv_get_settings()
4299 ecmd->advertising |= ADVERTISED_10baseT_Half; in nv_get_settings()
[all …]
/linux-4.1.27/net/bridge/
Dbr_if.c38 struct ethtool_cmd ecmd; in port_cost() local
40 if (!__ethtool_get_settings(dev, &ecmd)) { in port_cost()
41 switch (ethtool_cmd_speed(&ecmd)) { in port_cost()
/linux-4.1.27/drivers/net/ethernet/amd/
Dpcnet32.c2137 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in pcnet32_open() local
2150 ecmd.port = PORT_MII; in pcnet32_open()
2151 ecmd.transceiver = XCVR_INTERNAL; in pcnet32_open()
2152 ecmd.autoneg = AUTONEG_DISABLE; in pcnet32_open()
2153 ethtool_cmd_speed_set(&ecmd, in pcnet32_open()
2159 ecmd.duplex = DUPLEX_FULL; in pcnet32_open()
2162 ecmd.duplex = DUPLEX_HALF; in pcnet32_open()
2182 ecmd.phy_address = i; in pcnet32_open()
2184 mii_ethtool_gset(&lp->mii_if, &ecmd); in pcnet32_open()
2185 ecmd.autoneg = AUTONEG_ENABLE; in pcnet32_open()
[all …]
Damd8111e.c1424 static int amd8111e_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in amd8111e_get_settings() argument
1428 mii_ethtool_gset(&lp->mii_if, ecmd); in amd8111e_get_settings()
1433 static int amd8111e_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in amd8111e_set_settings() argument
1438 res = mii_ethtool_sset(&lp->mii_if, ecmd); in amd8111e_set_settings()
/linux-4.1.27/drivers/input/joystick/iforce/
Diforce.h107 u16 ecmd; member
Diforce-usb.c129 iforce->ecmd = 0xff00 | urb->actual_length; in iforce_usb_ctrl()
Diforce-packets.c170 iforce->ecmd = cmd; in iforce_process_packet()
Diforce-main.c363 iforce_dump_packet("info", iforce->ecmd, iforce->edata); in iforce_init_device()
/linux-4.1.27/drivers/net/ethernet/tehuti/
Dtehuti.c2143 static int bdx_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in bdx_get_settings() argument
2152 ecmd->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE); in bdx_get_settings()
2153 ecmd->advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in bdx_get_settings()
2154 ethtool_cmd_speed_set(ecmd, SPEED_10000); in bdx_get_settings()
2155 ecmd->duplex = DUPLEX_FULL; in bdx_get_settings()
2156 ecmd->port = PORT_FIBRE; in bdx_get_settings()
2157 ecmd->transceiver = XCVR_EXTERNAL; /* what does it mean? */ in bdx_get_settings()
2158 ecmd->autoneg = AUTONEG_DISABLE; in bdx_get_settings()
2162 ecmd->maxtxpkt = in bdx_get_settings()
2164 ecmd->maxrxpkt = in bdx_get_settings()
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-velocity.c3546 struct ethtool_coalesce *ecmd) in velocity_get_coalesce() argument
3550 ecmd->tx_max_coalesced_frames = vptr->options.tx_intsup; in velocity_get_coalesce()
3551 ecmd->rx_max_coalesced_frames = vptr->options.rx_intsup; in velocity_get_coalesce()
3553 ecmd->rx_coalesce_usecs = get_pending_timer_val(vptr->options.rxqueue_timer); in velocity_get_coalesce()
3554 ecmd->tx_coalesce_usecs = get_pending_timer_val(vptr->options.txqueue_timer); in velocity_get_coalesce()
3560 struct ethtool_coalesce *ecmd) in velocity_set_coalesce() argument
3567 if (ecmd->tx_coalesce_usecs > max_us) in velocity_set_coalesce()
3569 if (ecmd->rx_coalesce_usecs > max_us) in velocity_set_coalesce()
3572 if (ecmd->tx_max_coalesced_frames > 0xff) in velocity_set_coalesce()
3574 if (ecmd->rx_max_coalesced_frames > 0xff) in velocity_set_coalesce()
[all …]
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbcm63xx_enet.c1551 struct ethtool_pauseparam *ecmd) in bcm_enet_get_pauseparam() argument
1556 ecmd->autoneg = priv->pause_auto; in bcm_enet_get_pauseparam()
1557 ecmd->rx_pause = priv->pause_rx; in bcm_enet_get_pauseparam()
1558 ecmd->tx_pause = priv->pause_tx; in bcm_enet_get_pauseparam()
1562 struct ethtool_pauseparam *ecmd) in bcm_enet_set_pauseparam() argument
1569 if (ecmd->autoneg && (ecmd->rx_pause != ecmd->tx_pause)) { in bcm_enet_set_pauseparam()
1577 if (ecmd->autoneg) in bcm_enet_set_pauseparam()
1581 priv->pause_auto = ecmd->autoneg; in bcm_enet_set_pauseparam()
1582 priv->pause_rx = ecmd->rx_pause; in bcm_enet_set_pauseparam()
1583 priv->pause_tx = ecmd->tx_pause; in bcm_enet_set_pauseparam()
/linux-4.1.27/drivers/s390/net/
Dqeth_core_main.c5843 static void qeth_set_ecmd_adv_sup(struct ethtool_cmd *ecmd, in qeth_set_ecmd_adv_sup() argument
5888 ecmd->advertising = ADVERTISED_Autoneg | port_adv | spd_adv; in qeth_set_ecmd_adv_sup()
5889 ecmd->supported = SUPPORTED_Autoneg | port_sup | spd_sup; in qeth_set_ecmd_adv_sup()
5893 struct ethtool_cmd *ecmd) in qeth_core_ethtool_get_settings() argument
5906 ecmd->transceiver = XCVR_INTERNAL; in qeth_core_ethtool_get_settings()
5907 ecmd->duplex = DUPLEX_FULL; in qeth_core_ethtool_get_settings()
5908 ecmd->autoneg = AUTONEG_ENABLE; in qeth_core_ethtool_get_settings()
5913 qeth_set_ecmd_adv_sup(ecmd, SPEED_100, PORT_TP); in qeth_core_ethtool_get_settings()
5915 ecmd->port = PORT_TP; in qeth_core_ethtool_get_settings()
5920 qeth_set_ecmd_adv_sup(ecmd, SPEED_1000, PORT_FIBRE); in qeth_core_ethtool_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/rocker/
Drocker.c1573 struct ethtool_cmd *ecmd = priv; in rocker_cmd_get_port_settings_ethtool_proc() local
1595 ecmd->transceiver = XCVR_INTERNAL; in rocker_cmd_get_port_settings_ethtool_proc()
1596 ecmd->supported = SUPPORTED_TP; in rocker_cmd_get_port_settings_ethtool_proc()
1597 ecmd->phy_address = 0xff; in rocker_cmd_get_port_settings_ethtool_proc()
1598 ecmd->port = PORT_TP; in rocker_cmd_get_port_settings_ethtool_proc()
1599 ethtool_cmd_speed_set(ecmd, speed); in rocker_cmd_get_port_settings_ethtool_proc()
1600 ecmd->duplex = duplex ? DUPLEX_FULL : DUPLEX_HALF; in rocker_cmd_get_port_settings_ethtool_proc()
1601 ecmd->autoneg = autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in rocker_cmd_get_port_settings_ethtool_proc()
1687 struct ethtool_cmd *ecmd = priv; in rocker_cmd_set_port_settings_ethtool_prep() local
1700 ethtool_cmd_speed(ecmd))) in rocker_cmd_set_port_settings_ethtool_prep()
[all …]
/linux-4.1.27/drivers/staging/netlogic/
Dxlr_net.c171 static int xlr_get_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) in xlr_get_settings() argument
178 return phy_ethtool_gset(phydev, ecmd); in xlr_get_settings()
181 static int xlr_set_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) in xlr_set_settings() argument
188 return phy_ethtool_sset(phydev, ecmd); in xlr_set_settings()
/linux-4.1.27/drivers/net/bonding/
Dbond_main.c379 struct ethtool_cmd ecmd; in bond_update_speed_duplex() local
386 res = __ethtool_get_settings(slave_dev, &ecmd); in bond_update_speed_duplex()
390 slave_speed = ethtool_cmd_speed(&ecmd); in bond_update_speed_duplex()
394 switch (ecmd.duplex) { in bond_update_speed_duplex()
403 slave->duplex = ecmd.duplex; in bond_update_speed_duplex()
4015 struct ethtool_cmd *ecmd) in bond_ethtool_get_settings() argument
4022 ecmd->duplex = DUPLEX_UNKNOWN; in bond_ethtool_get_settings()
4023 ecmd->port = PORT_OTHER; in bond_ethtool_get_settings()
4034 if (ecmd->duplex == DUPLEX_UNKNOWN && in bond_ethtool_get_settings()
4036 ecmd->duplex = slave->duplex; in bond_ethtool_get_settings()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/
Dqla3xxx.c1710 static int ql_get_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) in ql_get_settings() argument
1714 ecmd->transceiver = XCVR_INTERNAL; in ql_get_settings()
1715 ecmd->supported = ql_supported_modes(qdev); in ql_get_settings()
1718 ecmd->port = PORT_FIBRE; in ql_get_settings()
1720 ecmd->port = PORT_TP; in ql_get_settings()
1721 ecmd->phy_address = qdev->PHYAddr; in ql_get_settings()
1723 ecmd->advertising = ql_supported_modes(qdev); in ql_get_settings()
1724 ecmd->autoneg = ql_get_auto_cfg_status(qdev); in ql_get_settings()
1725 ethtool_cmd_speed_set(ecmd, ql_get_speed(qdev)); in ql_get_settings()
1726 ecmd->duplex = ql_get_full_dup(qdev); in ql_get_settings()
/linux-4.1.27/drivers/staging/slicoss/
Dslicoss.c2542 struct ethtool_cmd ecmd; in slic_ioctl() local
2557 if (copy_from_user(&ecmd, rq->ifr_data, sizeof(ecmd))) in slic_ioctl()
2560 if (ecmd.cmd == ETHTOOL_GSET) { in slic_ioctl()
2588 } else if (ecmd.cmd == ETHTOOL_SSET) { in slic_ioctl()
2607 if ((ecmd.speed != edata.speed) || in slic_ioctl()
2608 (ecmd.duplex != edata.duplex)) { in slic_ioctl()
2612 if (ecmd.speed == SPEED_10) in slic_ioctl()
2616 if (ecmd.duplex == DUPLEX_FULL) in slic_ioctl()
/linux-4.1.27/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c1077 struct ethtool_cmd *ecmd) in axienet_ethtools_get_settings() argument
1083 return phy_ethtool_gset(phydev, ecmd); in axienet_ethtools_get_settings()
1098 struct ethtool_cmd *ecmd) in axienet_ethtools_set_settings() argument
1104 return phy_ethtool_sset(phydev, ecmd); in axienet_ethtools_set_settings()
/linux-4.1.27/drivers/net/cris/
Deth_v10.c1435 struct ethtool_cmd *ecmd) in e100_set_settings() argument
1437 if (ecmd->autoneg == AUTONEG_ENABLE) { in e100_set_settings()
1441 e100_set_duplex(dev, ecmd->duplex == DUPLEX_HALF ? half : full); in e100_set_settings()
1442 e100_set_speed(dev, ecmd->speed == SPEED_10 ? 10: 100); in e100_set_settings()
/linux-4.1.27/drivers/net/ethernet/packetengines/
Dhamachi.c1815 static int hamachi_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in hamachi_get_settings() argument
1819 mii_ethtool_gset(&np->mii_if, ecmd); in hamachi_get_settings()
1824 static int hamachi_set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in hamachi_set_settings() argument
1829 res = mii_ethtool_sset(&np->mii_if, ecmd); in hamachi_set_settings()
/linux-4.1.27/drivers/net/ethernet/ti/
Ddavinci_emac.c497 struct ethtool_cmd *ecmd) in emac_get_settings() argument
501 return phy_ethtool_gset(priv->phydev, ecmd); in emac_get_settings()
515 static int emac_set_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) in emac_set_settings() argument
519 return phy_ethtool_sset(priv->phydev, ecmd); in emac_set_settings()
Dcpsw.c1834 struct ethtool_cmd *ecmd) in cpsw_get_settings() argument
1840 return phy_ethtool_gset(priv->slaves[slave_no].phy, ecmd); in cpsw_get_settings()
1845 static int cpsw_set_settings(struct net_device *ndev, struct ethtool_cmd *ecmd) in cpsw_set_settings() argument
1851 return phy_ethtool_sset(priv->slaves[slave_no].phy, ecmd); in cpsw_set_settings()
/linux-4.1.27/drivers/net/ethernet/adaptec/
Dstarfire.c1820 static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in get_settings() argument
1824 mii_ethtool_gset(&np->mii_if, ecmd); in get_settings()
1829 static int set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in set_settings() argument
1834 res = mii_ethtool_sset(&np->mii_if, ecmd); in set_settings()
/linux-4.1.27/drivers/net/ethernet/dlink/
Dsundance.c1665 static int get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in get_settings() argument
1669 mii_ethtool_gset(&np->mii_if, ecmd); in get_settings()
1674 static int set_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in set_settings() argument
1679 res = mii_ethtool_sset(&np->mii_if, ecmd); in set_settings()
/linux-4.1.27/drivers/net/ethernet/renesas/
Dsh_eth.c1894 struct ethtool_cmd *ecmd) in sh_eth_get_settings() argument
1904 ret = phy_ethtool_gset(mdp->phydev, ecmd); in sh_eth_get_settings()
1911 struct ethtool_cmd *ecmd) in sh_eth_set_settings() argument
1925 ret = phy_ethtool_sset(mdp->phydev, ecmd); in sh_eth_set_settings()
1929 if (ecmd->duplex == DUPLEX_FULL) in sh_eth_set_settings()
/linux-4.1.27/drivers/net/team/
Dteam.c2775 struct ethtool_cmd ecmd; in __team_port_change_send() local
2777 err = __ethtool_get_settings(port->dev, &ecmd); in __team_port_change_send()
2779 port->state.speed = ethtool_cmd_speed(&ecmd); in __team_port_change_send()
2780 port->state.duplex = ecmd.duplex; in __team_port_change_send()
/linux-4.1.27/net/packet/
Daf_packet.c563 struct ethtool_cmd ecmd; in prb_calc_retire_blk_tmo() local
573 err = __ethtool_get_settings(dev, &ecmd); in prb_calc_retire_blk_tmo()
574 speed = ethtool_cmd_speed(&ecmd); in prb_calc_retire_blk_tmo()