/drivers/net/sfc/ |
D | mdio_10g.c | 296 struct ethtool_cmd *ecmd) in mdio_clause45_get_settings() argument 298 mdio_clause45_get_settings_ext(efx, ecmd, 0, 0); in mdio_clause45_get_settings() 312 struct ethtool_cmd *ecmd, in mdio_clause45_get_settings_ext() argument 318 ecmd->transceiver = XCVR_INTERNAL; in mdio_clause45_get_settings_ext() 319 ecmd->phy_address = phy_id; in mdio_clause45_get_settings_ext() 328 ecmd->port = PORT_TP; in mdio_clause45_get_settings_ext() 329 ecmd->supported = SUPPORTED_TP; in mdio_clause45_get_settings_ext() 333 ecmd->supported |= SUPPORTED_10000baseT_Full; in mdio_clause45_get_settings_ext() 335 ecmd->supported |= (SUPPORTED_1000baseT_Full | in mdio_clause45_get_settings_ext() 338 ecmd->supported |= (SUPPORTED_100baseT_Full | in mdio_clause45_get_settings_ext() [all …]
|
D | tenxpress.c | 456 static bool sft9001_link_ok(struct efx_nic *efx, struct ethtool_cmd *ecmd) in sft9001_link_ok() argument 473 if (ecmd->speed == 10000) { in sft9001_link_ok() 516 struct ethtool_cmd ecmd; in tenxpress_phy_reconfigure() local 534 efx->phy_op->get_settings(efx, &ecmd); in tenxpress_phy_reconfigure() 546 rc = efx->phy_op->set_settings(efx, &ecmd); in tenxpress_phy_reconfigure() 562 efx->phy_op->get_settings(efx, &ecmd); in tenxpress_phy_reconfigure() 563 efx->link_speed = ecmd.speed; in tenxpress_phy_reconfigure() 564 efx->link_fd = ecmd.duplex == DUPLEX_FULL; in tenxpress_phy_reconfigure() 565 efx->link_up = sft9001_link_ok(efx, &ecmd); in tenxpress_phy_reconfigure() 680 struct ethtool_cmd ecmd; in sft9001_run_tests() local [all …]
|
D | ethtool.h | 21 struct ethtool_cmd *ecmd); 23 struct ethtool_cmd *ecmd);
|
/drivers/net/ |
D | mii.c | 43 int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) in mii_ethtool_gset() argument 49 ecmd->supported = in mii_ethtool_gset() 54 ecmd->supported |= SUPPORTED_1000baseT_Half | in mii_ethtool_gset() 58 ecmd->port = PORT_MII; in mii_ethtool_gset() 61 ecmd->transceiver = XCVR_INTERNAL; in mii_ethtool_gset() 64 ecmd->phy_address = mii->phy_id; in mii_ethtool_gset() 66 ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_gset() 72 ecmd->advertising |= ADVERTISED_10baseT_Half; in mii_ethtool_gset() 74 ecmd->advertising |= ADVERTISED_10baseT_Full; in mii_ethtool_gset() 76 ecmd->advertising |= ADVERTISED_100baseT_Half; in mii_ethtool_gset() [all …]
|
D | 3c509.c | 1163 el3_netdev_get_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd) in el3_netdev_get_ecmd() argument 1171 ecmd->transceiver = XCVR_INTERNAL; in el3_netdev_get_ecmd() 1174 ecmd->port = PORT_TP; in el3_netdev_get_ecmd() 1177 ecmd->port = PORT_AUI; in el3_netdev_get_ecmd() 1178 ecmd->transceiver = XCVR_EXTERNAL; in el3_netdev_get_ecmd() 1181 ecmd->port = PORT_BNC; in el3_netdev_get_ecmd() 1186 ecmd->duplex = DUPLEX_HALF; in el3_netdev_get_ecmd() 1187 ecmd->supported = 0; in el3_netdev_get_ecmd() 1190 ecmd->supported |= SUPPORTED_AUI; in el3_netdev_get_ecmd() 1192 ecmd->supported |= SUPPORTED_BNC; in el3_netdev_get_ecmd() [all …]
|
D | natsemi.c | 643 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 ecmd->speed = np->speed; in netdev_get_ecmd() 2825 ecmd->duplex = np->duplex; in netdev_get_ecmd() [all …]
|
D | sky2.c | 3076 static int sky2_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in sky2_get_settings() argument 3081 ecmd->transceiver = XCVR_INTERNAL; in sky2_get_settings() 3082 ecmd->supported = sky2_supported_modes(hw); in sky2_get_settings() 3083 ecmd->phy_address = PHY_ADDR_MARV; in sky2_get_settings() 3085 ecmd->port = PORT_TP; in sky2_get_settings() 3086 ecmd->speed = sky2->speed; in sky2_get_settings() 3088 ecmd->speed = SPEED_1000; in sky2_get_settings() 3089 ecmd->port = PORT_FIBRE; in sky2_get_settings() 3092 ecmd->advertising = sky2->advertising; in sky2_get_settings() 3093 ecmd->autoneg = sky2->autoneg; in sky2_get_settings() [all …]
|
D | ucc_geth_ethtool.c | 112 uec_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in uec_get_settings() argument 121 ecmd->maxtxpkt = 1; in uec_get_settings() 122 ecmd->maxrxpkt = ug_info->interruptcoalescingmaxvalue[0]; in uec_get_settings() 124 return phy_ethtool_gset(phydev, ecmd); in uec_get_settings() 128 uec_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in uec_set_settings() argument 136 return phy_ethtool_sset(phydev, ecmd); in uec_set_settings()
|
D | jme.c | 2141 jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_get_coalesce() argument 2145 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce() 2146 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce() 2149 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce() 2150 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce() 2151 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce() 2155 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce() 2159 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce() 2160 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce() 2163 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce() [all …]
|
D | ewrk3.c | 1514 static int ewrk3_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in ewrk3_get_settings() argument 1522 ecmd->supported = SUPPORTED_BNC; in ewrk3_get_settings() 1523 ecmd->port = PORT_BNC; in ewrk3_get_settings() 1527 ecmd->supported = SUPPORTED_TP; in ewrk3_get_settings() 1528 ecmd->port = PORT_TP; in ewrk3_get_settings() 1532 ecmd->supported = SUPPORTED_TP | SUPPORTED_BNC | SUPPORTED_AUI; in ewrk3_get_settings() 1533 ecmd->autoneg = !(cr & CR_APD); in ewrk3_get_settings() 1538 if (!ecmd->autoneg) in ewrk3_get_settings() 1539 ecmd->port = (cr & CR_PSEL) ? PORT_BNC : PORT_TP; in ewrk3_get_settings() 1543 ecmd->supported |= SUPPORTED_10baseT_Half; in ewrk3_get_settings() [all …]
|
D | skge.c | 283 struct ethtool_cmd *ecmd) in skge_get_settings() argument 288 ecmd->transceiver = XCVR_INTERNAL; in skge_get_settings() 289 ecmd->supported = skge_supported_modes(hw); in skge_get_settings() 292 ecmd->port = PORT_TP; in skge_get_settings() 293 ecmd->phy_address = hw->phy_addr; in skge_get_settings() 295 ecmd->port = PORT_FIBRE; in skge_get_settings() 297 ecmd->advertising = skge->advertising; in skge_get_settings() 298 ecmd->autoneg = skge->autoneg; in skge_get_settings() 299 ecmd->speed = skge->speed; in skge_get_settings() 300 ecmd->duplex = skge->duplex; in skge_get_settings() [all …]
|
/drivers/net/netxen/ |
D | netxen_nic_ethtool.c | 118 netxen_nic_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd) in netxen_nic_get_settings() argument 125 ecmd->supported = (SUPPORTED_10baseT_Half | in netxen_nic_get_settings() 132 ecmd->advertising = (ADVERTISED_100baseT_Half | in netxen_nic_get_settings() 137 ecmd->port = PORT_TP; in netxen_nic_get_settings() 139 ecmd->speed = adapter->link_speed; in netxen_nic_get_settings() 140 ecmd->duplex = adapter->link_duplex; in netxen_nic_get_settings() 141 ecmd->autoneg = adapter->link_autoneg; in netxen_nic_get_settings() 148 ecmd->supported = SUPPORTED_1000baseT_Full; in netxen_nic_get_settings() 149 ecmd->advertising = ADVERTISED_1000baseT_Full; in netxen_nic_get_settings() 151 ecmd->supported = SUPPORTED_10000baseT_Full; in netxen_nic_get_settings() [all …]
|
/drivers/net/atl1c/ |
D | atl1c_ethtool.c | 29 struct ethtool_cmd *ecmd) in atl1c_get_settings() argument 34 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1c_get_settings() 41 ecmd->supported |= SUPPORTED_1000baseT_Full; in atl1c_get_settings() 43 ecmd->advertising = ADVERTISED_TP; in atl1c_get_settings() 45 ecmd->advertising |= hw->autoneg_advertised; in atl1c_get_settings() 47 ecmd->port = PORT_TP; in atl1c_get_settings() 48 ecmd->phy_address = 0; in atl1c_get_settings() 49 ecmd->transceiver = XCVR_INTERNAL; in atl1c_get_settings() 52 ecmd->speed = adapter->link_speed; in atl1c_get_settings() 54 ecmd->duplex = DUPLEX_FULL; in atl1c_get_settings() [all …]
|
/drivers/net/atl1e/ |
D | atl1e_ethtool.c | 29 struct ethtool_cmd *ecmd) in atl1e_get_settings() argument 34 ecmd->supported = (SUPPORTED_10baseT_Half | in atl1e_get_settings() 41 ecmd->supported |= SUPPORTED_1000baseT_Full; in atl1e_get_settings() 43 ecmd->advertising = ADVERTISED_TP; in atl1e_get_settings() 45 ecmd->advertising |= ADVERTISED_Autoneg; in atl1e_get_settings() 46 ecmd->advertising |= hw->autoneg_advertised; in atl1e_get_settings() 48 ecmd->port = PORT_TP; in atl1e_get_settings() 49 ecmd->phy_address = 0; in atl1e_get_settings() 50 ecmd->transceiver = XCVR_INTERNAL; in atl1e_get_settings() 53 ecmd->speed = adapter->link_speed; in atl1e_get_settings() [all …]
|
/drivers/net/qlge/ |
D | qlge_ethtool.c | 266 struct ethtool_cmd *ecmd) in ql_get_settings() argument 270 ecmd->supported = SUPPORTED_10000baseT_Full; in ql_get_settings() 271 ecmd->advertising = ADVERTISED_10000baseT_Full; in ql_get_settings() 272 ecmd->autoneg = AUTONEG_ENABLE; in ql_get_settings() 273 ecmd->transceiver = XCVR_EXTERNAL; in ql_get_settings() 275 ecmd->supported |= (SUPPORTED_TP | SUPPORTED_Autoneg); in ql_get_settings() 276 ecmd->advertising |= (ADVERTISED_TP | ADVERTISED_Autoneg); in ql_get_settings() 277 ecmd->port = PORT_TP; in ql_get_settings() 279 ecmd->supported |= SUPPORTED_FIBRE; in ql_get_settings() 280 ecmd->advertising |= ADVERTISED_FIBRE; in ql_get_settings() [all …]
|
/drivers/net/benet/ |
D | be_ethtool.c | 295 static int be_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in be_get_settings() argument 297 ecmd->speed = SPEED_10000; in be_get_settings() 298 ecmd->duplex = DUPLEX_FULL; in be_get_settings() 299 ecmd->autoneg = AUTONEG_DISABLE; in be_get_settings() 316 be_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) in be_get_pauseparam() argument 320 be_cmd_get_flow_control(&adapter->ctrl, &ecmd->tx_pause, in be_get_pauseparam() 321 &ecmd->rx_pause); in be_get_pauseparam() 322 ecmd->autoneg = AUTONEG_ENABLE; in be_get_pauseparam() 326 be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) in be_set_pauseparam() argument 331 if (ecmd->autoneg != AUTONEG_ENABLE) in be_set_pauseparam() [all …]
|
/drivers/net/tulip/ |
D | de2104x.c | 1470 static int __de_get_settings(struct de_private *de, struct ethtool_cmd *ecmd) in __de_get_settings() argument 1472 ecmd->supported = de->media_supported; in __de_get_settings() 1473 ecmd->transceiver = XCVR_INTERNAL; in __de_get_settings() 1474 ecmd->phy_address = 0; in __de_get_settings() 1475 ecmd->advertising = de->media_advertise; in __de_get_settings() 1479 ecmd->port = PORT_AUI; in __de_get_settings() 1480 ecmd->speed = 5; in __de_get_settings() 1483 ecmd->port = PORT_BNC; in __de_get_settings() 1484 ecmd->speed = 2; in __de_get_settings() 1487 ecmd->port = PORT_TP; in __de_get_settings() [all …]
|
/drivers/net/ixgbe/ |
D | ixgbe_ethtool.c | 114 struct ethtool_cmd *ecmd) in ixgbe_get_settings() argument 121 ecmd->supported = SUPPORTED_10000baseT_Full; in ixgbe_get_settings() 122 ecmd->autoneg = AUTONEG_ENABLE; in ixgbe_get_settings() 123 ecmd->transceiver = XCVR_EXTERNAL; in ixgbe_get_settings() 125 ecmd->supported |= (SUPPORTED_1000baseT_Full | in ixgbe_get_settings() 128 ecmd->advertising = (ADVERTISED_TP | ADVERTISED_Autoneg); in ixgbe_get_settings() 130 ecmd->advertising |= ADVERTISED_10000baseT_Full; in ixgbe_get_settings() 132 ecmd->advertising |= ADVERTISED_1000baseT_Full; in ixgbe_get_settings() 134 ecmd->port = PORT_TP; in ixgbe_get_settings() 136 ecmd->supported |= SUPPORTED_FIBRE; in ixgbe_get_settings() [all …]
|
/drivers/net/ixgb/ |
D | ixgb_ethtool.c | 89 ixgb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in ixgb_get_settings() argument 93 ecmd->supported = (SUPPORTED_10000baseT_Full | SUPPORTED_FIBRE); in ixgb_get_settings() 94 ecmd->advertising = (ADVERTISED_10000baseT_Full | ADVERTISED_FIBRE); in ixgb_get_settings() 95 ecmd->port = PORT_FIBRE; in ixgb_get_settings() 96 ecmd->transceiver = XCVR_EXTERNAL; in ixgb_get_settings() 99 ecmd->speed = SPEED_10000; in ixgb_get_settings() 100 ecmd->duplex = DUPLEX_FULL; in ixgb_get_settings() 102 ecmd->speed = -1; in ixgb_get_settings() 103 ecmd->duplex = -1; in ixgb_get_settings() 106 ecmd->autoneg = AUTONEG_DISABLE; in ixgb_get_settings() [all …]
|
/drivers/net/usb/ |
D | asix.c | 794 struct ethtool_cmd ecmd; in ax88172_link_reset() local 797 mii_ethtool_gset(&dev->mii, &ecmd); in ax88172_link_reset() 800 if (ecmd.duplex != DUPLEX_FULL) in ax88172_link_reset() 803 …devdbg(dev, "ax88172_link_reset() speed: %d duplex: %d setting mode to 0x%04x", ecmd.speed, ecmd.d… in ax88172_link_reset() 882 struct ethtool_cmd ecmd; in ax88772_link_reset() local 885 mii_ethtool_gset(&dev->mii, &ecmd); in ax88772_link_reset() 888 if (ecmd.speed != SPEED_100) in ax88772_link_reset() 891 if (ecmd.duplex != DUPLEX_FULL) in ax88772_link_reset() 894 …devdbg(dev, "ax88772_link_reset() speed: %d duplex: %d setting mode to 0x%04x", ecmd.speed, ecmd.d… in ax88772_link_reset() 1096 struct ethtool_cmd ecmd; in ax88178_link_reset() local [all …]
|
D | rtl8150.c | 834 static int rtl8150_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in rtl8150_get_settings() argument 839 ecmd->supported = (SUPPORTED_10baseT_Half | in rtl8150_get_settings() 845 ecmd->port = PORT_TP; in rtl8150_get_settings() 846 ecmd->transceiver = XCVR_INTERNAL; in rtl8150_get_settings() 847 ecmd->phy_address = dev->phy; in rtl8150_get_settings() 851 ecmd->autoneg = AUTONEG_ENABLE; in rtl8150_get_settings() 852 ecmd->speed = (lpa & (LPA_100HALF | LPA_100FULL)) ? in rtl8150_get_settings() 854 if (ecmd->speed == SPEED_100) in rtl8150_get_settings() 855 ecmd->duplex = (lpa & LPA_100FULL) ? in rtl8150_get_settings() 858 ecmd->duplex = (lpa & LPA_10FULL) ? in rtl8150_get_settings() [all …]
|
/drivers/net/e1000e/ |
D | ethtool.c | 108 struct ethtool_cmd *ecmd) in e1000_get_settings() argument 116 ecmd->supported = (SUPPORTED_10baseT_Half | in e1000_get_settings() 124 ecmd->supported &= ~SUPPORTED_1000baseT_Full; in e1000_get_settings() 125 ecmd->advertising = ADVERTISED_TP; in e1000_get_settings() 128 ecmd->advertising |= ADVERTISED_Autoneg; in e1000_get_settings() 130 ecmd->advertising |= hw->phy.autoneg_advertised; in e1000_get_settings() 133 ecmd->port = PORT_TP; in e1000_get_settings() 134 ecmd->phy_address = hw->phy.addr; in e1000_get_settings() 135 ecmd->transceiver = XCVR_INTERNAL; in e1000_get_settings() 138 ecmd->supported = (SUPPORTED_1000baseT_Full | in e1000_get_settings() [all …]
|
/drivers/net/e1000/ |
D | e1000_ethtool.c | 103 struct ethtool_cmd *ecmd) in e1000_get_settings() argument 110 ecmd->supported = (SUPPORTED_10baseT_Half | in e1000_get_settings() 118 ecmd->supported &= ~SUPPORTED_1000baseT_Full; in e1000_get_settings() 119 ecmd->advertising = ADVERTISED_TP; in e1000_get_settings() 122 ecmd->advertising |= ADVERTISED_Autoneg; in e1000_get_settings() 124 ecmd->advertising |= hw->autoneg_advertised; in e1000_get_settings() 127 ecmd->port = PORT_TP; in e1000_get_settings() 128 ecmd->phy_address = hw->phy_addr; in e1000_get_settings() 131 ecmd->transceiver = XCVR_EXTERNAL; in e1000_get_settings() 133 ecmd->transceiver = XCVR_INTERNAL; in e1000_get_settings() [all …]
|
/drivers/net/igb/ |
D | igb_ethtool.c | 117 static int igb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in igb_get_settings() argument 124 ecmd->supported = (SUPPORTED_10baseT_Half | in igb_get_settings() 131 ecmd->advertising = ADVERTISED_TP; in igb_get_settings() 134 ecmd->advertising |= ADVERTISED_Autoneg; in igb_get_settings() 136 ecmd->advertising |= hw->phy.autoneg_advertised; in igb_get_settings() 139 ecmd->port = PORT_TP; in igb_get_settings() 140 ecmd->phy_address = hw->phy.addr; in igb_get_settings() 142 ecmd->supported = (SUPPORTED_1000baseT_Full | in igb_get_settings() 146 ecmd->advertising = (ADVERTISED_1000baseT_Full | in igb_get_settings() 150 ecmd->port = PORT_FIBRE; in igb_get_settings() [all …]
|
/drivers/net/pcmcia/ |
D | smc91c92_cs.c | 2021 static int smc_netdev_get_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd) in smc_netdev_get_ecmd() argument 2026 ecmd->supported = (SUPPORTED_TP | SUPPORTED_AUI | in smc_netdev_get_ecmd() 2031 ecmd->port = (tmp & CFG_AUI_SELECT) ? PORT_AUI : PORT_TP; in smc_netdev_get_ecmd() 2032 ecmd->transceiver = XCVR_INTERNAL; in smc_netdev_get_ecmd() 2033 ecmd->speed = SPEED_10; in smc_netdev_get_ecmd() 2034 ecmd->phy_address = ioaddr + MGMT; in smc_netdev_get_ecmd() 2038 ecmd->duplex = (tmp & TCR_FDUPLX) ? DUPLEX_FULL : DUPLEX_HALF; in smc_netdev_get_ecmd() 2043 static int smc_netdev_set_ecmd(struct net_device *dev, struct ethtool_cmd *ecmd) in smc_netdev_set_ecmd() argument 2048 if (ecmd->speed != SPEED_10) in smc_netdev_set_ecmd() 2050 if (ecmd->duplex != DUPLEX_HALF && ecmd->duplex != DUPLEX_FULL) in smc_netdev_set_ecmd() [all …]
|