Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/
Dmdio.c184 struct ethtool_cmd *ecmd, in mdio45_ethtool_gset_npage() argument
193 ecmd->transceiver = XCVR_INTERNAL; in mdio45_ethtool_gset_npage()
194 ecmd->phy_address = mdio->prtad; in mdio45_ethtool_gset_npage()
195 ecmd->mdio_support = in mdio45_ethtool_gset_npage()
205 ecmd->port = PORT_TP; in mdio45_ethtool_gset_npage()
206 ecmd->supported = SUPPORTED_TP; in mdio45_ethtool_gset_npage()
210 ecmd->supported |= SUPPORTED_10000baseT_Full; in mdio45_ethtool_gset_npage()
212 ecmd->supported |= (SUPPORTED_1000baseT_Full | in mdio45_ethtool_gset_npage()
215 ecmd->supported |= (SUPPORTED_100baseT_Full | in mdio45_ethtool_gset_npage()
218 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
Dprestera_ethtool.c321 static int prestera_port_type_set(const struct ethtool_link_ksettings *ecmd, in prestera_port_type_set() argument
329 if (port_types[type].eth_type == ecmd->base.port && in prestera_port_type_set()
331 ecmd->link_modes.supported)) { in prestera_port_type_set()
338 if (type != port->caps.type && ecmd->base.autoneg == AUTONEG_ENABLE) in prestera_port_type_set()
417 static void prestera_port_supp_types_get(struct ethtool_link_ksettings *ecmd, in prestera_port_supp_types_get() argument
430 ecmd->link_modes.supported); in prestera_port_supp_types_get()
434 static void prestera_port_remote_cap_get(struct ethtool_link_ksettings *ecmd, in prestera_port_remote_cap_get() argument
444 prestera_modes_to_eth(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
447 if (!bitmap_empty(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
449 ethtool_link_ksettings_add_link_mode(ecmd, in prestera_port_remote_cap_get()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c108 struct ethtool_link_ksettings *ecmd) in enic_get_ksettings() argument
111 struct ethtool_link_settings *base = &ecmd->base; in enic_get_ksettings()
113 ethtool_link_ksettings_add_link_mode(ecmd, supported, in enic_get_ksettings()
115 ethtool_link_ksettings_add_link_mode(ecmd, supported, FIBRE); in enic_get_ksettings()
116 ethtool_link_ksettings_add_link_mode(ecmd, advertising, in enic_get_ksettings()
118 ethtool_link_ksettings_add_link_mode(ecmd, advertising, FIBRE); in enic_get_ksettings()
301 struct ethtool_coalesce *ecmd) in enic_get_coalesce() argument
307 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce()
308 ecmd->rx_coalesce_usecs = enic->rx_coalesce_usecs; in enic_get_coalesce()
310 ecmd->use_adaptive_rx_coalesce = 1; in enic_get_coalesce()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c288 struct ethtool_link_ksettings *ecmd) in qlcnic_82xx_get_link_ksettings() argument
310 ecmd->base.speed = adapter->ahw->link_speed; in qlcnic_82xx_get_link_ksettings()
311 ecmd->base.duplex = adapter->ahw->link_duplex; in qlcnic_82xx_get_link_ksettings()
312 ecmd->base.autoneg = adapter->ahw->link_autoneg; in qlcnic_82xx_get_link_ksettings()
334 ecmd->base.speed = ahw->link_speed; in qlcnic_82xx_get_link_ksettings()
335 ecmd->base.autoneg = ahw->link_autoneg; in qlcnic_82xx_get_link_ksettings()
336 ecmd->base.duplex = ahw->link_duplex; in qlcnic_82xx_get_link_ksettings()
340 ecmd->base.speed = SPEED_UNKNOWN; in qlcnic_82xx_get_link_ksettings()
341 ecmd->base.duplex = DUPLEX_UNKNOWN; in qlcnic_82xx_get_link_ksettings()
342 ecmd->base.autoneg = AUTONEG_DISABLE; in qlcnic_82xx_get_link_ksettings()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c73 struct ethtool_link_ksettings *ecmd) in pch_gbe_get_link_ksettings() argument
78 mii_ethtool_get_link_ksettings(&adapter->mii, ecmd); in pch_gbe_get_link_ksettings()
81 ecmd->link_modes.supported); in pch_gbe_get_link_ksettings()
83 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings()
88 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in pch_gbe_get_link_ksettings()
90 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings()
94 ecmd->base.speed = SPEED_UNKNOWN; in pch_gbe_get_link_ksettings()
108 const struct ethtool_link_ksettings *ecmd) in pch_gbe_set_link_ksettings() argument
113 u32 speed = ecmd->base.speed; in pch_gbe_set_link_ksettings()
119 memcpy(&copy_ecmd, ecmd, sizeof(*ecmd)); in pch_gbe_set_link_ksettings()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c215 struct ethtool_link_ksettings *ecmd) in lio_get_link_ksettings() argument
223 ethtool_link_ksettings_zero_link_mode(ecmd, supported); in lio_get_link_ksettings()
224 ethtool_link_ksettings_zero_link_mode(ecmd, advertising); in lio_get_link_ksettings()
228 ecmd->base.port = PORT_TP; in lio_get_link_ksettings()
229 ecmd->base.autoneg = AUTONEG_DISABLE; in lio_get_link_ksettings()
230 ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); in lio_get_link_ksettings()
231 ethtool_link_ksettings_add_link_mode(ecmd, supported, Pause); in lio_get_link_ksettings()
232 ethtool_link_ksettings_add_link_mode(ecmd, supported, in lio_get_link_ksettings()
235 ethtool_link_ksettings_add_link_mode(ecmd, advertising, Pause); in lio_get_link_ksettings()
236 ethtool_link_ksettings_add_link_mode(ecmd, advertising, in lio_get_link_ksettings()
[all …]
/kernel/linux/linux-5.10/drivers/net/fjes/
Dfjes_ethtool.c164 struct ethtool_link_ksettings *ecmd) in fjes_get_link_ksettings() argument
166 ethtool_link_ksettings_zero_link_mode(ecmd, supported); in fjes_get_link_ksettings()
167 ethtool_link_ksettings_zero_link_mode(ecmd, advertising); in fjes_get_link_ksettings()
168 ecmd->base.duplex = DUPLEX_FULL; in fjes_get_link_ksettings()
169 ecmd->base.autoneg = AUTONEG_DISABLE; in fjes_get_link_ksettings()
170 ecmd->base.port = PORT_NONE; in fjes_get_link_ksettings()
171 ecmd->base.speed = 20000; /* 20Gb/s */ in fjes_get_link_ksettings()
/kernel/linux/linux-5.10/drivers/net/ethernet/natsemi/
Dnatsemi.c644 struct ethtool_link_ksettings *ecmd);
646 const struct ethtool_link_ksettings *ecmd);
2584 struct ethtool_link_ksettings *ecmd) in get_link_ksettings() argument
2588 netdev_get_ecmd(dev, ecmd); in get_link_ksettings()
2594 const struct ethtool_link_ksettings *ecmd) in set_link_ksettings() argument
2599 res = netdev_set_ecmd(dev, ecmd); in set_link_ksettings()
2830 struct ethtool_link_ksettings *ecmd) in netdev_get_ecmd() argument
2836 ecmd->base.port = dev->if_port; in netdev_get_ecmd()
2837 ecmd->base.speed = np->speed; in netdev_get_ecmd()
2838 ecmd->base.duplex = np->duplex; in netdev_get_ecmd()
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Dasix_devices.c174 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88172_link_reset() local
177 mii_ethtool_gset(&dev->mii, &ecmd); in ax88172_link_reset()
180 if (ecmd.duplex != DUPLEX_FULL) in ax88172_link_reset()
184 ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in ax88172_link_reset()
301 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88772_link_reset() local
304 mii_ethtool_gset(&dev->mii, &ecmd); in ax88772_link_reset()
307 if (ethtool_cmd_speed(&ecmd) != SPEED_100) in ax88772_link_reset()
310 if (ecmd.duplex != DUPLEX_FULL) in ax88772_link_reset()
314 ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in ax88772_link_reset()
957 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88178_link_reset() local
[all …]
Drtl8150.c778 struct ethtool_link_ksettings *ecmd) in rtl8150_get_link_ksettings() argument
790 ecmd->base.port = PORT_TP; in rtl8150_get_link_ksettings()
791 ecmd->base.phy_address = dev->phy; in rtl8150_get_link_ksettings()
797 ecmd->base.speed = speed; in rtl8150_get_link_ksettings()
798 ecmd->base.autoneg = AUTONEG_ENABLE; in rtl8150_get_link_ksettings()
800 ecmd->base.duplex = (lpa & LPA_100FULL) ? in rtl8150_get_link_ksettings()
803 ecmd->base.duplex = (lpa & LPA_10FULL) ? in rtl8150_get_link_ksettings()
806 ecmd->base.autoneg = AUTONEG_DISABLE; in rtl8150_get_link_ksettings()
807 ecmd->base.speed = ((bmcr & BMCR_SPEED100) ? in rtl8150_get_link_ksettings()
809 ecmd->base.duplex = (bmcr & BMCR_FULLDPLX) ? in rtl8150_get_link_ksettings()
[all …]
Dch9200.c215 struct ethtool_cmd ecmd; in ch9200_link_reset() local
218 mii_ethtool_gset(&dev->mii, &ecmd); in ch9200_link_reset()
221 __func__, ecmd.speed, ecmd.duplex); in ch9200_link_reset()
Dsr9700.c509 struct ethtool_cmd ecmd; in sr9700_link_reset() local
512 mii_ethtool_gset(&dev->mii, &ecmd); in sr9700_link_reset()
515 ecmd.speed, ecmd.duplex); in sr9700_link_reset()
Dsr9800.c536 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in sr9800_link_reset() local
540 mii_ethtool_gset(&dev->mii, &ecmd); in sr9800_link_reset()
543 if (ethtool_cmd_speed(&ecmd) != SPEED_100) in sr9800_link_reset()
546 if (ecmd.duplex != DUPLEX_FULL) in sr9800_link_reset()
550 __func__, ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); in sr9800_link_reset()
/kernel/linux/linux-5.10/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c1847 struct ethtool_link_ksettings *ecmd) in smc_netdev_get_ecmd() argument
1858 ecmd->base.port = (tmp & CFG_AUI_SELECT) ? PORT_AUI : PORT_TP; in smc_netdev_get_ecmd()
1859 ecmd->base.speed = SPEED_10; in smc_netdev_get_ecmd()
1860 ecmd->base.phy_address = ioaddr + MGMT; in smc_netdev_get_ecmd()
1864 ecmd->base.duplex = (tmp & TCR_FDUPLX) ? DUPLEX_FULL : DUPLEX_HALF; in smc_netdev_get_ecmd()
1866 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in smc_netdev_get_ecmd()
1871 const struct ethtool_link_ksettings *ecmd) in smc_netdev_set_ecmd() argument
1876 if (ecmd->base.speed != SPEED_10) in smc_netdev_set_ecmd()
1878 if (ecmd->base.duplex != DUPLEX_HALF && in smc_netdev_set_ecmd()
1879 ecmd->base.duplex != DUPLEX_FULL) in smc_netdev_set_ecmd()
[all …]
/kernel/linux/linux-5.10/net/sched/
Dsch_cbs.c310 struct ethtool_link_ksettings ecmd; in cbs_set_port_rate() local
315 err = __ethtool_get_link_ksettings(dev, &ecmd); in cbs_set_port_rate()
319 if (ecmd.base.speed && ecmd.base.speed != SPEED_UNKNOWN) in cbs_set_port_rate()
320 speed = ecmd.base.speed; in cbs_set_port_rate()
328 ecmd.base.speed); in cbs_set_port_rate()
/kernel/linux/linux-5.10/drivers/staging/qlge/
Dqlge_ethtool.c383 struct ethtool_link_ksettings *ecmd) in ql_get_link_ksettings() argument
395 ecmd->base.port = PORT_TP; in ql_get_link_ksettings()
396 ecmd->base.autoneg = AUTONEG_ENABLE; in ql_get_link_ksettings()
400 ecmd->base.port = PORT_FIBRE; in ql_get_link_ksettings()
403 ecmd->base.speed = SPEED_10000; in ql_get_link_ksettings()
404 ecmd->base.duplex = DUPLEX_FULL; in ql_get_link_ksettings()
406 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in ql_get_link_ksettings()
408 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in ql_get_link_ksettings()
/kernel/linux/linux-5.10/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c571 struct ethtool_link_ksettings *ecmd) in vmxnet3_get_link_ksettings() argument
575 ethtool_link_ksettings_zero_link_mode(ecmd, supported); in vmxnet3_get_link_ksettings()
576 ethtool_link_ksettings_add_link_mode(ecmd, supported, 10000baseT_Full); in vmxnet3_get_link_ksettings()
577 ethtool_link_ksettings_add_link_mode(ecmd, supported, 1000baseT_Full); in vmxnet3_get_link_ksettings()
578 ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); in vmxnet3_get_link_ksettings()
579 ethtool_link_ksettings_zero_link_mode(ecmd, advertising); in vmxnet3_get_link_ksettings()
580 ethtool_link_ksettings_add_link_mode(ecmd, advertising, TP); in vmxnet3_get_link_ksettings()
581 ecmd->base.port = PORT_TP; in vmxnet3_get_link_ksettings()
584 ecmd->base.speed = adapter->link_speed; in vmxnet3_get_link_ksettings()
585 ecmd->base.duplex = DUPLEX_FULL; in vmxnet3_get_link_ksettings()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/
Djme.c2405 jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) in jme_get_coalesce() argument
2409 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce()
2410 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce()
2413 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce()
2414 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce()
2415 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce()
2419 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce()
2423 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce()
2424 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce()
2427 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce()
[all …]
/kernel/linux/linux-5.10/net/bridge/
Dbr_device.c280 struct ethtool_link_ksettings ecmd; in br_get_link_ksettings() local
286 if (__ethtool_get_link_ksettings(pdev, &ecmd)) in br_get_link_ksettings()
289 if (ecmd.base.speed == (__u32)SPEED_UNKNOWN) in br_get_link_ksettings()
293 cmd->base.speed < ecmd.base.speed) in br_get_link_ksettings()
294 cmd->base.speed = ecmd.base.speed; in br_get_link_ksettings()
/kernel/linux/linux-5.10/drivers/scsi/fcoe/
Dfcoe_transport.c119 struct ethtool_link_ksettings ecmd; in fcoe_link_speed_update() local
121 if (!__ethtool_get_link_ksettings(netdev, &ecmd)) { in fcoe_link_speed_update()
127 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
133 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
140 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
145 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
152 lport->link_speed = eth2fc_speed(ecmd.base.speed); in fcoe_link_speed_update()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dsky2.c4012 struct ethtool_pauseparam *ecmd) in sky2_get_pauseparam() argument
4018 ecmd->tx_pause = ecmd->rx_pause = 0; in sky2_get_pauseparam()
4021 ecmd->tx_pause = 1, ecmd->rx_pause = 0; in sky2_get_pauseparam()
4024 ecmd->tx_pause = 0, ecmd->rx_pause = 1; in sky2_get_pauseparam()
4027 ecmd->tx_pause = ecmd->rx_pause = 1; in sky2_get_pauseparam()
4030 ecmd->autoneg = (sky2->flags & SKY2_FLAG_AUTO_PAUSE) in sky2_get_pauseparam()
4035 struct ethtool_pauseparam *ecmd) in sky2_set_pauseparam() argument
4039 if (ecmd->autoneg == AUTONEG_ENABLE) in sky2_set_pauseparam()
4044 sky2->flow_mode = sky2_flow(ecmd->rx_pause, ecmd->tx_pause); in sky2_set_pauseparam()
4053 struct ethtool_coalesce *ecmd) in sky2_get_coalesce() argument
[all …]
/kernel/linux/linux-5.10/include/linux/
Dmdio.h158 struct ethtool_cmd *ecmd,
176 struct ethtool_cmd *ecmd) in mdio45_ethtool_gset() argument
178 mdio45_ethtool_gset_npage(mdio, ecmd, 0, 0); in mdio45_ethtool_gset()
/kernel/linux/linux-5.10/drivers/net/ethernet/rocker/
Drocker_main.c1119 struct ethtool_link_ksettings *ecmd = priv; in rocker_cmd_get_port_settings_ethtool_proc() local
1141 ethtool_link_ksettings_zero_link_mode(ecmd, supported); in rocker_cmd_get_port_settings_ethtool_proc()
1142 ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); in rocker_cmd_get_port_settings_ethtool_proc()
1144 ecmd->base.phy_address = 0xff; in rocker_cmd_get_port_settings_ethtool_proc()
1145 ecmd->base.port = PORT_TP; in rocker_cmd_get_port_settings_ethtool_proc()
1146 ecmd->base.speed = speed; in rocker_cmd_get_port_settings_ethtool_proc()
1147 ecmd->base.duplex = duplex ? DUPLEX_FULL : DUPLEX_HALF; in rocker_cmd_get_port_settings_ethtool_proc()
1148 ecmd->base.autoneg = autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; in rocker_cmd_get_port_settings_ethtool_proc()
1255 struct ethtool_link_ksettings *ecmd = priv; in rocker_cmd_set_port_settings_ethtool_prep() local
1268 ecmd->base.speed)) in rocker_cmd_set_port_settings_ethtool_prep()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c693 be_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) in be_get_pauseparam() argument
697 be_cmd_get_flow_control(adapter, &ecmd->tx_pause, &ecmd->rx_pause); in be_get_pauseparam()
698 ecmd->autoneg = adapter->phy.fc_autoneg; in be_get_pauseparam()
702 be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) in be_set_pauseparam() argument
707 if (ecmd->autoneg != adapter->phy.fc_autoneg) in be_set_pauseparam()
710 status = be_cmd_set_flow_control(adapter, ecmd->tx_pause, in be_set_pauseparam()
711 ecmd->rx_pause); in be_set_pauseparam()
717 adapter->tx_fc = ecmd->tx_pause; in be_set_pauseparam()
718 adapter->rx_fc = ecmd->rx_pause; in be_set_pauseparam()

12