Home
last modified time | relevance | path

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

12

/linux-5.19.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.c53 void mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) in mii_ethtool_gset() argument
59 ecmd->supported = in mii_ethtool_gset()
64 ecmd->supported |= SUPPORTED_1000baseT_Half | in mii_ethtool_gset()
68 ecmd->port = PORT_MII; in mii_ethtool_gset()
71 ecmd->transceiver = XCVR_INTERNAL; in mii_ethtool_gset()
74 ecmd->phy_address = mii->phy_id; in mii_ethtool_gset()
75 ecmd->mdio_support = ETH_MDIO_SUPPORTS_C22; in mii_ethtool_gset()
77 ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_gset()
86 ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_gset()
88 ecmd->advertising |= in mii_ethtool_gset()
[all …]
/linux-5.19.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
328 if (port_types[type].eth_type == ecmd->base.port && in prestera_port_type_set()
330 ecmd->link_modes.supported)) { in prestera_port_type_set()
337 if (type != port->caps.type && ecmd->base.autoneg == AUTONEG_ENABLE) in prestera_port_type_set()
411 static void prestera_port_supp_types_get(struct ethtool_link_ksettings *ecmd, in prestera_port_supp_types_get() argument
424 ecmd->link_modes.supported); in prestera_port_supp_types_get()
428 static void prestera_port_remote_cap_get(struct ethtool_link_ksettings *ecmd, in prestera_port_remote_cap_get() argument
446 prestera_modes_to_eth(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
449 if (!bitmap_empty(ecmd->link_modes.lp_advertising, in prestera_port_remote_cap_get()
451 ethtool_link_ksettings_add_link_mode(ecmd, in prestera_port_remote_cap_get()
[all …]
/linux-5.19.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()
305 struct ethtool_coalesce *ecmd, in enic_get_coalesce() argument
313 ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; in enic_get_coalesce()
314 ecmd->rx_coalesce_usecs = enic->rx_coalesce_usecs; in enic_get_coalesce()
316 ecmd->use_adaptive_rx_coalesce = 1; in enic_get_coalesce()
[all …]
/linux-5.19.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 …]
/linux-5.19.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c75 struct ethtool_link_ksettings *ecmd) in pch_gbe_get_link_ksettings() argument
80 mii_ethtool_get_link_ksettings(&adapter->mii, ecmd); in pch_gbe_get_link_ksettings()
83 ecmd->link_modes.supported); in pch_gbe_get_link_ksettings()
85 ecmd->link_modes.advertising); in pch_gbe_get_link_ksettings()
90 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in pch_gbe_get_link_ksettings()
92 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in pch_gbe_get_link_ksettings()
96 ecmd->base.speed = SPEED_UNKNOWN; in pch_gbe_get_link_ksettings()
110 const struct ethtool_link_ksettings *ecmd) in pch_gbe_set_link_ksettings() argument
115 u32 speed = ecmd->base.speed; in pch_gbe_set_link_ksettings()
121 memcpy(&copy_ecmd, ecmd, sizeof(*ecmd)); in pch_gbe_set_link_ksettings()
/linux-5.19.10/drivers/net/ethernet/cavium/liquidio/
Dlio_ethtool.c216 struct ethtool_link_ksettings *ecmd) in lio_get_link_ksettings() argument
224 ethtool_link_ksettings_zero_link_mode(ecmd, supported); in lio_get_link_ksettings()
225 ethtool_link_ksettings_zero_link_mode(ecmd, advertising); in lio_get_link_ksettings()
229 ecmd->base.port = PORT_TP; in lio_get_link_ksettings()
230 ecmd->base.autoneg = AUTONEG_DISABLE; in lio_get_link_ksettings()
231 ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); in lio_get_link_ksettings()
232 ethtool_link_ksettings_add_link_mode(ecmd, supported, Pause); in lio_get_link_ksettings()
233 ethtool_link_ksettings_add_link_mode(ecmd, supported, in lio_get_link_ksettings()
236 ethtool_link_ksettings_add_link_mode(ecmd, advertising, Pause); in lio_get_link_ksettings()
237 ethtool_link_ksettings_add_link_mode(ecmd, advertising, in lio_get_link_ksettings()
[all …]
/linux-5.19.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()
/linux-5.19.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 …]
/linux-5.19.10/drivers/net/usb/
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()
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()
1009 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in ax88178_link_reset() local
1016 mii_ethtool_gset(&dev->mii, &ecmd); in ax88178_link_reset()
1018 speed = ethtool_cmd_speed(&ecmd); in ax88178_link_reset()
1029 if (ecmd.duplex == DUPLEX_FULL) in ax88178_link_reset()
1035 speed, ecmd.duplex, mode); in ax88178_link_reset()
Dsr9700.c512 struct ethtool_cmd ecmd; in sr9700_link_reset() local
515 mii_ethtool_gset(&dev->mii, &ecmd); in sr9700_link_reset()
518 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()
/linux-5.19.10/drivers/net/ethernet/smsc/
Dsmc91c92_cs.c1850 struct ethtool_link_ksettings *ecmd) in smc_netdev_get_ecmd() argument
1861 ecmd->base.port = (tmp & CFG_AUI_SELECT) ? PORT_AUI : PORT_TP; in smc_netdev_get_ecmd()
1862 ecmd->base.speed = SPEED_10; in smc_netdev_get_ecmd()
1863 ecmd->base.phy_address = ioaddr + MGMT; in smc_netdev_get_ecmd()
1867 ecmd->base.duplex = (tmp & TCR_FDUPLX) ? DUPLEX_FULL : DUPLEX_HALF; in smc_netdev_get_ecmd()
1869 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in smc_netdev_get_ecmd()
1874 const struct ethtool_link_ksettings *ecmd) in smc_netdev_set_ecmd() argument
1879 if (ecmd->base.speed != SPEED_10) in smc_netdev_set_ecmd()
1881 if (ecmd->base.duplex != DUPLEX_HALF && in smc_netdev_set_ecmd()
1882 ecmd->base.duplex != DUPLEX_FULL) in smc_netdev_set_ecmd()
[all …]
/linux-5.19.10/net/sched/
Dsch_cbs.c311 struct ethtool_link_ksettings ecmd; in cbs_set_port_rate() local
316 err = __ethtool_get_link_ksettings(dev, &ecmd); in cbs_set_port_rate()
320 if (ecmd.base.speed && ecmd.base.speed != SPEED_UNKNOWN) in cbs_set_port_rate()
321 speed = ecmd.base.speed; in cbs_set_port_rate()
329 ecmd.base.speed); in cbs_set_port_rate()
/linux-5.19.10/drivers/staging/qlge/
Dqlge_ethtool.c382 struct ethtool_link_ksettings *ecmd) in qlge_get_link_ksettings() argument
394 ecmd->base.port = PORT_TP; in qlge_get_link_ksettings()
395 ecmd->base.autoneg = AUTONEG_ENABLE; in qlge_get_link_ksettings()
399 ecmd->base.port = PORT_FIBRE; in qlge_get_link_ksettings()
402 ecmd->base.speed = SPEED_10000; in qlge_get_link_ksettings()
403 ecmd->base.duplex = DUPLEX_FULL; in qlge_get_link_ksettings()
405 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, in qlge_get_link_ksettings()
407 ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, in qlge_get_link_ksettings()
/linux-5.19.10/drivers/net/vmxnet3/
Dvmxnet3_ethtool.c556 struct ethtool_link_ksettings *ecmd) in vmxnet3_get_link_ksettings() argument
560 ethtool_link_ksettings_zero_link_mode(ecmd, supported); in vmxnet3_get_link_ksettings()
561 ethtool_link_ksettings_add_link_mode(ecmd, supported, 10000baseT_Full); in vmxnet3_get_link_ksettings()
562 ethtool_link_ksettings_add_link_mode(ecmd, supported, 1000baseT_Full); in vmxnet3_get_link_ksettings()
563 ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); in vmxnet3_get_link_ksettings()
564 ethtool_link_ksettings_zero_link_mode(ecmd, advertising); in vmxnet3_get_link_ksettings()
565 ethtool_link_ksettings_add_link_mode(ecmd, advertising, TP); in vmxnet3_get_link_ksettings()
566 ecmd->base.port = PORT_TP; in vmxnet3_get_link_ksettings()
569 ecmd->base.speed = adapter->link_speed; in vmxnet3_get_link_ksettings()
570 ecmd->base.duplex = DUPLEX_FULL; in vmxnet3_get_link_ksettings()
[all …]
/linux-5.19.10/drivers/net/ethernet/
Djme.c2390 struct ethtool_coalesce *ecmd, in jme_get_coalesce() argument
2396 ecmd->tx_coalesce_usecs = PCC_TX_TO; in jme_get_coalesce()
2397 ecmd->tx_max_coalesced_frames = PCC_TX_CNT; in jme_get_coalesce()
2400 ecmd->use_adaptive_rx_coalesce = false; in jme_get_coalesce()
2401 ecmd->rx_coalesce_usecs = 0; in jme_get_coalesce()
2402 ecmd->rx_max_coalesced_frames = 0; in jme_get_coalesce()
2406 ecmd->use_adaptive_rx_coalesce = true; in jme_get_coalesce()
2410 ecmd->rx_coalesce_usecs = PCC_P1_TO; in jme_get_coalesce()
2411 ecmd->rx_max_coalesced_frames = PCC_P1_CNT; in jme_get_coalesce()
2414 ecmd->rx_coalesce_usecs = PCC_P2_TO; in jme_get_coalesce()
[all …]
/linux-5.19.10/net/bridge/
Dbr_device.c271 struct ethtool_link_ksettings ecmd; in br_get_link_ksettings() local
277 if (__ethtool_get_link_ksettings(pdev, &ecmd)) in br_get_link_ksettings()
280 if (ecmd.base.speed == (__u32)SPEED_UNKNOWN) in br_get_link_ksettings()
284 cmd->base.speed < ecmd.base.speed) in br_get_link_ksettings()
285 cmd->base.speed = ecmd.base.speed; in br_get_link_ksettings()
/linux-5.19.10/drivers/scsi/fcoe/
Dfcoe_transport.c120 struct ethtool_link_ksettings ecmd; in fcoe_link_speed_update() local
122 if (!__ethtool_get_link_ksettings(netdev, &ecmd)) { in fcoe_link_speed_update()
128 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
134 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
141 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
146 if (ecmd.link_modes.supported[0] & ( in fcoe_link_speed_update()
153 lport->link_speed = eth2fc_speed(ecmd.base.speed); in fcoe_link_speed_update()
/linux-5.19.10/drivers/net/ethernet/marvell/
Dsky2.c4013 struct ethtool_pauseparam *ecmd) in sky2_get_pauseparam() argument
4019 ecmd->tx_pause = ecmd->rx_pause = 0; in sky2_get_pauseparam()
4022 ecmd->tx_pause = 1, ecmd->rx_pause = 0; in sky2_get_pauseparam()
4025 ecmd->tx_pause = 0, ecmd->rx_pause = 1; in sky2_get_pauseparam()
4028 ecmd->tx_pause = ecmd->rx_pause = 1; in sky2_get_pauseparam()
4031 ecmd->autoneg = (sky2->flags & SKY2_FLAG_AUTO_PAUSE) in sky2_get_pauseparam()
4036 struct ethtool_pauseparam *ecmd) in sky2_set_pauseparam() argument
4040 if (ecmd->autoneg == AUTONEG_ENABLE) in sky2_set_pauseparam()
4045 sky2->flow_mode = sky2_flow(ecmd->rx_pause, ecmd->tx_pause); in sky2_set_pauseparam()
4054 struct ethtool_coalesce *ecmd, in sky2_get_coalesce() argument
[all …]
Dskge.c556 struct ethtool_pauseparam *ecmd) in skge_get_pauseparam() argument
560 ecmd->rx_pause = ((skge->flow_control == FLOW_MODE_SYMMETRIC) || in skge_get_pauseparam()
562 ecmd->tx_pause = (ecmd->rx_pause || in skge_get_pauseparam()
565 ecmd->autoneg = ecmd->rx_pause || ecmd->tx_pause; in skge_get_pauseparam()
569 struct ethtool_pauseparam *ecmd) in skge_set_pauseparam() argument
577 if (ecmd->autoneg != old.autoneg) in skge_set_pauseparam()
578 skge->flow_control = ecmd->autoneg ? FLOW_MODE_NONE : FLOW_MODE_SYMMETRIC; in skge_set_pauseparam()
580 if (ecmd->rx_pause && ecmd->tx_pause) in skge_set_pauseparam()
582 else if (ecmd->rx_pause && !ecmd->tx_pause) in skge_set_pauseparam()
584 else if (!ecmd->rx_pause && ecmd->tx_pause) in skge_set_pauseparam()
[all …]
/linux-5.19.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 …]
/linux-5.19.10/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c699 be_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) in be_get_pauseparam() argument
703 be_cmd_get_flow_control(adapter, &ecmd->tx_pause, &ecmd->rx_pause); in be_get_pauseparam()
704 ecmd->autoneg = adapter->phy.fc_autoneg; in be_get_pauseparam()
708 be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) in be_set_pauseparam() argument
713 if (ecmd->autoneg != adapter->phy.fc_autoneg) in be_set_pauseparam()
716 status = be_cmd_set_flow_control(adapter, ecmd->tx_pause, in be_set_pauseparam()
717 ecmd->rx_pause); in be_set_pauseparam()
723 adapter->tx_fc = ecmd->tx_pause; in be_set_pauseparam()
724 adapter->rx_fc = ecmd->rx_pause; in be_set_pauseparam()

12