ecmd 374 drivers/net/bonding/bond_main.c struct ethtool_link_ksettings ecmd; ecmd 380 drivers/net/bonding/bond_main.c res = __ethtool_get_link_ksettings(slave_dev, &ecmd); ecmd 383 drivers/net/bonding/bond_main.c if (ecmd.base.speed == 0 || ecmd.base.speed == ((__u32)-1)) ecmd 385 drivers/net/bonding/bond_main.c switch (ecmd.base.duplex) { ecmd 393 drivers/net/bonding/bond_main.c slave->speed = ecmd.base.speed; ecmd 394 drivers/net/bonding/bond_main.c slave->duplex = ecmd.base.duplex; ecmd 2621 drivers/net/ethernet/alteon/acenic.c ecmd->trace = readl(®s->TuneTrace); ecmd 2623 drivers/net/ethernet/alteon/acenic.c ecmd->txcoal = readl(®s->TuneTxCoalTicks); ecmd 2624 drivers/net/ethernet/alteon/acenic.c ecmd->rxcoal = readl(®s->TuneRxCoalTicks); ecmd 2201 drivers/net/ethernet/amd/pcnet32.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 2214 drivers/net/ethernet/amd/pcnet32.c ecmd.port = PORT_MII; ecmd 2215 drivers/net/ethernet/amd/pcnet32.c ecmd.transceiver = XCVR_INTERNAL; ecmd 2216 drivers/net/ethernet/amd/pcnet32.c ecmd.autoneg = AUTONEG_DISABLE; ecmd 2217 drivers/net/ethernet/amd/pcnet32.c ethtool_cmd_speed_set(&ecmd, ecmd 2223 drivers/net/ethernet/amd/pcnet32.c ecmd.duplex = DUPLEX_FULL; ecmd 2226 drivers/net/ethernet/amd/pcnet32.c ecmd.duplex = DUPLEX_HALF; ecmd 2246 drivers/net/ethernet/amd/pcnet32.c ecmd.phy_address = i; ecmd 2248 drivers/net/ethernet/amd/pcnet32.c mii_ethtool_gset(&lp->mii_if, &ecmd); ecmd 2249 drivers/net/ethernet/amd/pcnet32.c ecmd.autoneg = AUTONEG_ENABLE; ecmd 2251 drivers/net/ethernet/amd/pcnet32.c mii_ethtool_sset(&lp->mii_if, &ecmd); ecmd 2880 drivers/net/ethernet/amd/pcnet32.c struct ethtool_cmd ecmd = { ecmd 2882 drivers/net/ethernet/amd/pcnet32.c mii_ethtool_gset(&lp->mii_if, &ecmd); ecmd 2884 drivers/net/ethernet/amd/pcnet32.c ethtool_cmd_speed(&ecmd), ecmd 2885 drivers/net/ethernet/amd/pcnet32.c (ecmd.duplex == DUPLEX_FULL) ecmd 1529 drivers/net/ethernet/broadcom/bcm63xx_enet.c struct ethtool_pauseparam *ecmd) ecmd 1534 drivers/net/ethernet/broadcom/bcm63xx_enet.c ecmd->autoneg = priv->pause_auto; ecmd 1535 drivers/net/ethernet/broadcom/bcm63xx_enet.c ecmd->rx_pause = priv->pause_rx; ecmd 1536 drivers/net/ethernet/broadcom/bcm63xx_enet.c ecmd->tx_pause = priv->pause_tx; ecmd 1540 drivers/net/ethernet/broadcom/bcm63xx_enet.c struct ethtool_pauseparam *ecmd) ecmd 1547 drivers/net/ethernet/broadcom/bcm63xx_enet.c if (ecmd->autoneg && (ecmd->rx_pause != ecmd->tx_pause)) { ecmd 1555 drivers/net/ethernet/broadcom/bcm63xx_enet.c if (ecmd->autoneg) ecmd 1559 drivers/net/ethernet/broadcom/bcm63xx_enet.c priv->pause_auto = ecmd->autoneg; ecmd 1560 drivers/net/ethernet/broadcom/bcm63xx_enet.c priv->pause_rx = ecmd->rx_pause; ecmd 1561 drivers/net/ethernet/broadcom/bcm63xx_enet.c priv->pause_tx = ecmd->tx_pause; ecmd 215 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 223 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_zero_link_mode(ecmd, supported); ecmd 224 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_zero_link_mode(ecmd, advertising); ecmd 228 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.port = PORT_TP; ecmd 229 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 230 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); ecmd 231 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, Pause); ecmd 232 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, ecmd 235 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, Pause); ecmd 236 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, ecmd 247 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.transceiver = XCVR_EXTERNAL; ecmd 253 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.port = PORT_FIBRE; ecmd 254 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 255 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, FIBRE); ecmd 257 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, Pause); ecmd 258 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, Pause); ecmd 263 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, 25000baseSR_Full); ecmd 265 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, 25000baseKR_Full); ecmd 267 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, 25000baseCR_Full); ecmd 271 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 274 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 277 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 290 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 293 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 296 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 301 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 304 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 307 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 315 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, FEC_RS); ecmd 317 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, FEC_NONE); ecmd 322 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, FEC_RS); ecmd 326 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, FEC_NONE); ecmd 331 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 334 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 337 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 341 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 344 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 347 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 353 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 356 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 359 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, supported, ecmd 363 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 366 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 369 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd, advertising, ecmd 374 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, ecmd 376 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, ecmd 383 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.speed = linfo->link.s.speed; ecmd 384 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.duplex = linfo->link.s.duplex; ecmd 386 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.speed = SPEED_UNKNOWN; ecmd 387 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.duplex = DUPLEX_UNKNOWN; ecmd 394 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c const struct ethtool_link_ksettings *ecmd) ecmd 396 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c const int speed = ecmd->base.speed; ecmd 415 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c if ((ecmd->base.duplex != DUPLEX_UNKNOWN && ecmd 416 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.duplex != linfo->link.s.duplex) || ecmd 417 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.autoneg != AUTONEG_DISABLE || ecmd 418 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c (ecmd->base.speed != 10000 && ecmd->base.speed != 25000 && ecmd 419 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c ecmd->base.speed != SPEED_UNKNOWN)) ecmd 108 drivers/net/ethernet/cisco/enic/enic_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 111 drivers/net/ethernet/cisco/enic/enic_ethtool.c struct ethtool_link_settings *base = &ecmd->base; ecmd 113 drivers/net/ethernet/cisco/enic/enic_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, ecmd 115 drivers/net/ethernet/cisco/enic/enic_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, FIBRE); ecmd 116 drivers/net/ethernet/cisco/enic/enic_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, ecmd 118 drivers/net/ethernet/cisco/enic/enic_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, FIBRE); ecmd 302 drivers/net/ethernet/cisco/enic/enic_ethtool.c struct ethtool_coalesce *ecmd) ecmd 308 drivers/net/ethernet/cisco/enic/enic_ethtool.c ecmd->tx_coalesce_usecs = enic->tx_coalesce_usecs; ecmd 309 drivers/net/ethernet/cisco/enic/enic_ethtool.c ecmd->rx_coalesce_usecs = enic->rx_coalesce_usecs; ecmd 311 drivers/net/ethernet/cisco/enic/enic_ethtool.c ecmd->use_adaptive_rx_coalesce = 1; ecmd 312 drivers/net/ethernet/cisco/enic/enic_ethtool.c ecmd->rx_coalesce_usecs_low = rxcoal->small_pkt_range_start; ecmd 313 drivers/net/ethernet/cisco/enic/enic_ethtool.c ecmd->rx_coalesce_usecs_high = rxcoal->range_end; ecmd 366 drivers/net/ethernet/cisco/enic/enic_ethtool.c struct ethtool_coalesce *ecmd) ecmd 378 drivers/net/ethernet/cisco/enic/enic_ethtool.c ret = enic_coalesce_valid(enic, ecmd); ecmd 382 drivers/net/ethernet/cisco/enic/enic_ethtool.c tx_coalesce_usecs = min_t(u32, ecmd->tx_coalesce_usecs, ecmd 384 drivers/net/ethernet/cisco/enic/enic_ethtool.c rx_coalesce_usecs = min_t(u32, ecmd->rx_coalesce_usecs, ecmd 387 drivers/net/ethernet/cisco/enic/enic_ethtool.c rx_coalesce_usecs_low = min_t(u32, ecmd->rx_coalesce_usecs_low, ecmd 389 drivers/net/ethernet/cisco/enic/enic_ethtool.c rx_coalesce_usecs_high = min_t(u32, ecmd->rx_coalesce_usecs_high, ecmd 400 drivers/net/ethernet/cisco/enic/enic_ethtool.c rxcoal->use_adaptive_rx_coalesce = !!ecmd->use_adaptive_rx_coalesce; ecmd 403 drivers/net/ethernet/cisco/enic/enic_ethtool.c if (ecmd->rx_coalesce_usecs_high) { ecmd 2162 drivers/net/ethernet/cortina/gemini.c struct ethtool_coalesce *ecmd) ecmd 2166 drivers/net/ethernet/cortina/gemini.c ecmd->rx_max_coalesced_frames = 1; ecmd 2167 drivers/net/ethernet/cortina/gemini.c ecmd->tx_max_coalesced_frames = port->irq_every_tx_packets; ecmd 2168 drivers/net/ethernet/cortina/gemini.c ecmd->rx_coalesce_usecs = port->rx_coalesce_nsecs / 1000; ecmd 2174 drivers/net/ethernet/cortina/gemini.c struct ethtool_coalesce *ecmd) ecmd 2178 drivers/net/ethernet/cortina/gemini.c if (ecmd->tx_max_coalesced_frames < 1) ecmd 2180 drivers/net/ethernet/cortina/gemini.c if (ecmd->tx_max_coalesced_frames >= 1 << port->txq_order) ecmd 2183 drivers/net/ethernet/cortina/gemini.c port->irq_every_tx_packets = ecmd->tx_max_coalesced_frames; ecmd 2184 drivers/net/ethernet/cortina/gemini.c port->rx_coalesce_nsecs = ecmd->rx_coalesce_usecs * 1000; ecmd 694 drivers/net/ethernet/emulex/benet/be_ethtool.c be_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) ecmd 698 drivers/net/ethernet/emulex/benet/be_ethtool.c be_cmd_get_flow_control(adapter, &ecmd->tx_pause, &ecmd->rx_pause); ecmd 699 drivers/net/ethernet/emulex/benet/be_ethtool.c ecmd->autoneg = adapter->phy.fc_autoneg; ecmd 703 drivers/net/ethernet/emulex/benet/be_ethtool.c be_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *ecmd) ecmd 708 drivers/net/ethernet/emulex/benet/be_ethtool.c if (ecmd->autoneg != adapter->phy.fc_autoneg) ecmd 711 drivers/net/ethernet/emulex/benet/be_ethtool.c status = be_cmd_set_flow_control(adapter, ecmd->tx_pause, ecmd 712 drivers/net/ethernet/emulex/benet/be_ethtool.c ecmd->rx_pause); ecmd 718 drivers/net/ethernet/emulex/benet/be_ethtool.c adapter->tx_fc = ecmd->tx_pause; ecmd 719 drivers/net/ethernet/emulex/benet/be_ethtool.c adapter->rx_fc = ecmd->rx_pause; ecmd 2416 drivers/net/ethernet/jme.c jme_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) ecmd 2420 drivers/net/ethernet/jme.c ecmd->tx_coalesce_usecs = PCC_TX_TO; ecmd 2421 drivers/net/ethernet/jme.c ecmd->tx_max_coalesced_frames = PCC_TX_CNT; ecmd 2424 drivers/net/ethernet/jme.c ecmd->use_adaptive_rx_coalesce = false; ecmd 2425 drivers/net/ethernet/jme.c ecmd->rx_coalesce_usecs = 0; ecmd 2426 drivers/net/ethernet/jme.c ecmd->rx_max_coalesced_frames = 0; ecmd 2430 drivers/net/ethernet/jme.c ecmd->use_adaptive_rx_coalesce = true; ecmd 2434 drivers/net/ethernet/jme.c ecmd->rx_coalesce_usecs = PCC_P1_TO; ecmd 2435 drivers/net/ethernet/jme.c ecmd->rx_max_coalesced_frames = PCC_P1_CNT; ecmd 2438 drivers/net/ethernet/jme.c ecmd->rx_coalesce_usecs = PCC_P2_TO; ecmd 2439 drivers/net/ethernet/jme.c ecmd->rx_max_coalesced_frames = PCC_P2_CNT; ecmd 2442 drivers/net/ethernet/jme.c ecmd->rx_coalesce_usecs = PCC_P3_TO; ecmd 2443 drivers/net/ethernet/jme.c ecmd->rx_max_coalesced_frames = PCC_P3_CNT; ecmd 2453 drivers/net/ethernet/jme.c jme_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ecmd) ecmd 2461 drivers/net/ethernet/jme.c if (ecmd->use_adaptive_rx_coalesce && ecmd 2470 drivers/net/ethernet/jme.c } else if (!(ecmd->use_adaptive_rx_coalesce) && ecmd 2482 drivers/net/ethernet/jme.c struct ethtool_pauseparam *ecmd) ecmd 2487 drivers/net/ethernet/jme.c ecmd->tx_pause = (jme->reg_txpfc & TXPFC_PF_EN) != 0; ecmd 2488 drivers/net/ethernet/jme.c ecmd->rx_pause = (jme->reg_rxmcs & RXMCS_FLOWCTRL) != 0; ecmd 2494 drivers/net/ethernet/jme.c ecmd->autoneg = ecmd 2500 drivers/net/ethernet/jme.c struct ethtool_pauseparam *ecmd) ecmd 2506 drivers/net/ethernet/jme.c (ecmd->tx_pause != 0)) { ecmd 2508 drivers/net/ethernet/jme.c if (ecmd->tx_pause) ecmd 2518 drivers/net/ethernet/jme.c (ecmd->rx_pause != 0)) { ecmd 2520 drivers/net/ethernet/jme.c if (ecmd->rx_pause) ecmd 2532 drivers/net/ethernet/jme.c (ecmd->autoneg != 0)) { ecmd 2534 drivers/net/ethernet/jme.c if (ecmd->autoneg) ecmd 553 drivers/net/ethernet/marvell/skge.c struct ethtool_pauseparam *ecmd) ecmd 557 drivers/net/ethernet/marvell/skge.c ecmd->rx_pause = ((skge->flow_control == FLOW_MODE_SYMMETRIC) || ecmd 559 drivers/net/ethernet/marvell/skge.c ecmd->tx_pause = (ecmd->rx_pause || ecmd 562 drivers/net/ethernet/marvell/skge.c ecmd->autoneg = ecmd->rx_pause || ecmd->tx_pause; ecmd 566 drivers/net/ethernet/marvell/skge.c struct ethtool_pauseparam *ecmd) ecmd 574 drivers/net/ethernet/marvell/skge.c if (ecmd->autoneg != old.autoneg) ecmd 575 drivers/net/ethernet/marvell/skge.c skge->flow_control = ecmd->autoneg ? FLOW_MODE_NONE : FLOW_MODE_SYMMETRIC; ecmd 577 drivers/net/ethernet/marvell/skge.c if (ecmd->rx_pause && ecmd->tx_pause) ecmd 579 drivers/net/ethernet/marvell/skge.c else if (ecmd->rx_pause && !ecmd->tx_pause) ecmd 581 drivers/net/ethernet/marvell/skge.c else if (!ecmd->rx_pause && ecmd->tx_pause) ecmd 618 drivers/net/ethernet/marvell/skge.c struct ethtool_coalesce *ecmd) ecmd 624 drivers/net/ethernet/marvell/skge.c ecmd->rx_coalesce_usecs = 0; ecmd 625 drivers/net/ethernet/marvell/skge.c ecmd->tx_coalesce_usecs = 0; ecmd 632 drivers/net/ethernet/marvell/skge.c ecmd->rx_coalesce_usecs = delay; ecmd 634 drivers/net/ethernet/marvell/skge.c ecmd->tx_coalesce_usecs = delay; ecmd 642 drivers/net/ethernet/marvell/skge.c struct ethtool_coalesce *ecmd) ecmd 650 drivers/net/ethernet/marvell/skge.c if (ecmd->rx_coalesce_usecs == 0) ecmd 652 drivers/net/ethernet/marvell/skge.c else if (ecmd->rx_coalesce_usecs < 25 || ecmd 653 drivers/net/ethernet/marvell/skge.c ecmd->rx_coalesce_usecs > 33333) ecmd 657 drivers/net/ethernet/marvell/skge.c delay = ecmd->rx_coalesce_usecs; ecmd 660 drivers/net/ethernet/marvell/skge.c if (ecmd->tx_coalesce_usecs == 0) ecmd 662 drivers/net/ethernet/marvell/skge.c else if (ecmd->tx_coalesce_usecs < 25 || ecmd 663 drivers/net/ethernet/marvell/skge.c ecmd->tx_coalesce_usecs > 33333) ecmd 667 drivers/net/ethernet/marvell/skge.c delay = min(delay, ecmd->rx_coalesce_usecs); ecmd 4012 drivers/net/ethernet/marvell/sky2.c struct ethtool_pauseparam *ecmd) ecmd 4018 drivers/net/ethernet/marvell/sky2.c ecmd->tx_pause = ecmd->rx_pause = 0; ecmd 4021 drivers/net/ethernet/marvell/sky2.c ecmd->tx_pause = 1, ecmd->rx_pause = 0; ecmd 4024 drivers/net/ethernet/marvell/sky2.c ecmd->tx_pause = 0, ecmd->rx_pause = 1; ecmd 4027 drivers/net/ethernet/marvell/sky2.c ecmd->tx_pause = ecmd->rx_pause = 1; ecmd 4030 drivers/net/ethernet/marvell/sky2.c ecmd->autoneg = (sky2->flags & SKY2_FLAG_AUTO_PAUSE) ecmd 4035 drivers/net/ethernet/marvell/sky2.c struct ethtool_pauseparam *ecmd) ecmd 4039 drivers/net/ethernet/marvell/sky2.c if (ecmd->autoneg == AUTONEG_ENABLE) ecmd 4044 drivers/net/ethernet/marvell/sky2.c sky2->flow_mode = sky2_flow(ecmd->rx_pause, ecmd->tx_pause); ecmd 4053 drivers/net/ethernet/marvell/sky2.c struct ethtool_coalesce *ecmd) ecmd 4059 drivers/net/ethernet/marvell/sky2.c ecmd->tx_coalesce_usecs = 0; ecmd 4062 drivers/net/ethernet/marvell/sky2.c ecmd->tx_coalesce_usecs = sky2_clk2us(hw, clks); ecmd 4064 drivers/net/ethernet/marvell/sky2.c ecmd->tx_max_coalesced_frames = sky2_read16(hw, STAT_TX_IDX_TH); ecmd 4067 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs = 0; ecmd 4070 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs = sky2_clk2us(hw, clks); ecmd 4072 drivers/net/ethernet/marvell/sky2.c ecmd->rx_max_coalesced_frames = sky2_read8(hw, STAT_FIFO_WM); ecmd 4075 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs_irq = 0; ecmd 4078 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs_irq = sky2_clk2us(hw, clks); ecmd 4081 drivers/net/ethernet/marvell/sky2.c ecmd->rx_max_coalesced_frames_irq = sky2_read8(hw, STAT_FIFO_ISR_WM); ecmd 4088 drivers/net/ethernet/marvell/sky2.c struct ethtool_coalesce *ecmd) ecmd 4094 drivers/net/ethernet/marvell/sky2.c if (ecmd->tx_coalesce_usecs > tmax || ecmd 4095 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs > tmax || ecmd 4096 drivers/net/ethernet/marvell/sky2.c ecmd->rx_coalesce_usecs_irq > tmax) ecmd 4099 drivers/net/ethernet/marvell/sky2.c if (ecmd->tx_max_coalesced_frames >= sky2->tx_ring_size-1) ecmd 4101 drivers/net/ethernet/marvell/sky2.c if (ecmd->rx_max_coalesced_frames > RX_MAX_PENDING) ecmd 4103 drivers/net/ethernet/marvell/sky2.c if (ecmd->rx_max_coalesced_frames_irq > RX_MAX_PENDING) ecmd 4106 drivers/net/ethernet/marvell/sky2.c if (ecmd->tx_coalesce_usecs == 0) ecmd 4110 drivers/net/ethernet/marvell/sky2.c sky2_us2clk(hw, ecmd->tx_coalesce_usecs)); ecmd 4113 drivers/net/ethernet/marvell/sky2.c sky2_write16(hw, STAT_TX_IDX_TH, ecmd->tx_max_coalesced_frames); ecmd 4115 drivers/net/ethernet/marvell/sky2.c if (ecmd->rx_coalesce_usecs == 0) ecmd 4119 drivers/net/ethernet/marvell/sky2.c sky2_us2clk(hw, ecmd->rx_coalesce_usecs)); ecmd 4122 drivers/net/ethernet/marvell/sky2.c sky2_write8(hw, STAT_FIFO_WM, ecmd->rx_max_coalesced_frames); ecmd 4124 drivers/net/ethernet/marvell/sky2.c if (ecmd->rx_coalesce_usecs_irq == 0) ecmd 4128 drivers/net/ethernet/marvell/sky2.c sky2_us2clk(hw, ecmd->rx_coalesce_usecs_irq)); ecmd 4131 drivers/net/ethernet/marvell/sky2.c sky2_write8(hw, STAT_FIFO_ISR_WM, ecmd->rx_max_coalesced_frames_irq); ecmd 644 drivers/net/ethernet/natsemi/natsemi.c struct ethtool_link_ksettings *ecmd); ecmd 646 drivers/net/ethernet/natsemi/natsemi.c const struct ethtool_link_ksettings *ecmd); ecmd 2588 drivers/net/ethernet/natsemi/natsemi.c struct ethtool_link_ksettings *ecmd) ecmd 2592 drivers/net/ethernet/natsemi/natsemi.c netdev_get_ecmd(dev, ecmd); ecmd 2598 drivers/net/ethernet/natsemi/natsemi.c const struct ethtool_link_ksettings *ecmd) ecmd 2603 drivers/net/ethernet/natsemi/natsemi.c res = netdev_set_ecmd(dev, ecmd); ecmd 2834 drivers/net/ethernet/natsemi/natsemi.c struct ethtool_link_ksettings *ecmd) ecmd 2840 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.port = dev->if_port; ecmd 2841 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.speed = np->speed; ecmd 2842 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.duplex = np->duplex; ecmd 2843 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.autoneg = np->autoneg; ecmd 2858 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.phy_address = np->phy_addr_external; ecmd 2878 drivers/net/ethernet/natsemi/natsemi.c switch (ecmd->base.port) { ecmd 2892 drivers/net/ethernet/natsemi/natsemi.c if (ecmd->base.autoneg == AUTONEG_ENABLE) { ecmd 2897 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.speed = SPEED_100; ecmd 2899 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.speed = SPEED_10; ecmd 2901 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.duplex = DUPLEX_FULL; ecmd 2903 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.duplex = DUPLEX_HALF; ecmd 2908 drivers/net/ethernet/natsemi/natsemi.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, ecmd 2910 drivers/net/ethernet/natsemi/natsemi.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, ecmd 2917 drivers/net/ethernet/natsemi/natsemi.c const struct ethtool_link_ksettings *ecmd) ecmd 2923 drivers/net/ethernet/natsemi/natsemi.c ecmd->link_modes.advertising); ecmd 2925 drivers/net/ethernet/natsemi/natsemi.c if (ecmd->base.port != PORT_TP && ecmd 2926 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.port != PORT_MII && ecmd 2927 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.port != PORT_FIBRE) ecmd 2929 drivers/net/ethernet/natsemi/natsemi.c if (ecmd->base.autoneg == AUTONEG_ENABLE) { ecmd 2936 drivers/net/ethernet/natsemi/natsemi.c } else if (ecmd->base.autoneg == AUTONEG_DISABLE) { ecmd 2937 drivers/net/ethernet/natsemi/natsemi.c u32 speed = ecmd->base.speed; ecmd 2940 drivers/net/ethernet/natsemi/natsemi.c if (ecmd->base.duplex != DUPLEX_HALF && ecmd 2941 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.duplex != DUPLEX_FULL) ecmd 2952 drivers/net/ethernet/natsemi/natsemi.c if (np->ignore_phy && (ecmd->base.autoneg == AUTONEG_ENABLE || ecmd 2953 drivers/net/ethernet/natsemi/natsemi.c ecmd->base.port == PORT_TP)) ecmd 2972 drivers/net/ethernet/natsemi/natsemi.c dev->if_port = ecmd->base.port; ecmd 2973 drivers/net/ethernet/natsemi/natsemi.c np->autoneg = ecmd->base.autoneg; ecmd 2974 drivers/net/ethernet/natsemi/natsemi.c np->phy_addr_external = ecmd->base.phy_address & PhyAddrMask; ecmd 2987 drivers/net/ethernet/natsemi/natsemi.c np->speed = ecmd->base.speed; ecmd 2988 drivers/net/ethernet/natsemi/natsemi.c np->duplex = ecmd->base.duplex; ecmd 2995 drivers/net/ethernet/natsemi/natsemi.c if (ecmd->base.port == PORT_TP) ecmd 73 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 78 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c mii_ethtool_get_link_ksettings(&adapter->mii, ecmd); ecmd 81 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c ecmd->link_modes.supported); ecmd 83 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c ecmd->link_modes.advertising); ecmd 88 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, ecmd 90 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, ecmd 94 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c ecmd->base.speed = SPEED_UNKNOWN; ecmd 108 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c const struct ethtool_link_ksettings *ecmd) ecmd 113 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c u32 speed = ecmd->base.speed; ecmd 119 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c memcpy(©_ecmd, ecmd, sizeof(*ecmd)); ecmd 3294 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c struct ethtool_link_ksettings *ecmd) ecmd 3313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.speed = ahw->link_speed; ecmd 3314 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.duplex = ahw->link_duplex; ecmd 3315 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.autoneg = ahw->link_autoneg; ecmd 3317 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.speed = SPEED_UNKNOWN; ecmd 3318 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.duplex = DUPLEX_UNKNOWN; ecmd 3319 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 3329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->link_modes.advertising); ecmd 3331 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (ecmd->base.autoneg == AUTONEG_ENABLE) { ecmd 3366 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.port = PORT_FIBRE; ecmd 3371 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.port = PORT_TP; ecmd 3376 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.port = PORT_DA; ecmd 3381 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.port = PORT_OTHER; ecmd 3384 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ecmd->base.phy_address = ahw->physical_port; ecmd 3386 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, ecmd 3388 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, ecmd 3395 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c const struct ethtool_link_ksettings *ecmd) ecmd 3402 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (ecmd->base.duplex == DUPLEX_HALF) { ecmd 3408 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (ecmd->base.autoneg) { ecmd 3415 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c switch (ecmd->base.speed) { ecmd 633 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h struct ethtool_link_ksettings *ecmd); ecmd 635 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h const struct ethtool_link_ksettings *ecmd); ecmd 289 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 311 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.speed = adapter->ahw->link_speed; ecmd 312 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.duplex = adapter->ahw->link_duplex; ecmd 313 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = adapter->ahw->link_autoneg; ecmd 335 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.speed = ahw->link_speed; ecmd 336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = ahw->link_autoneg; ecmd 337 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.duplex = ahw->link_duplex; ecmd 341 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.speed = SPEED_UNKNOWN; ecmd 342 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.duplex = DUPLEX_UNKNOWN; ecmd 343 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 348 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.phy_address = adapter->ahw->physical_port; ecmd 362 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_TP; ecmd 363 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = adapter->ahw->link_autoneg; ecmd 370 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_MII; ecmd 371 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 384 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_FIBRE; ecmd 385 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 389 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 393 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_FIBRE; ecmd 397 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.autoneg = AUTONEG_ENABLE; ecmd 401 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_TP; ecmd 416 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_FIBRE; ecmd 421 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_TP; ecmd 424 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ecmd->base.port = PORT_OTHER; ecmd 428 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, ecmd 430 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, ecmd 437 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 442 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c return qlcnic_82xx_get_link_ksettings(adapter, ecmd); ecmd 444 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c return qlcnic_83xx_get_link_ksettings(adapter, ecmd); ecmd 451 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c const struct ethtool_link_ksettings *ecmd) ecmd 455 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c if (ecmd->base.duplex) ecmd 458 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c if (ecmd->base.autoneg) ecmd 461 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c switch (ecmd->base.speed) { ecmd 485 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c const struct ethtool_link_ksettings *ecmd) ecmd 497 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ret = qlcnic_83xx_set_link_ksettings(adapter, ecmd); ecmd 499 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c ret = qlcnic_set_port_config(adapter, ecmd); ecmd 504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c adapter->ahw->link_speed = ecmd->base.speed; ecmd 505 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c adapter->ahw->link_duplex = ecmd->base.duplex; ecmd 506 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ethtool.c adapter->ahw->link_autoneg = ecmd->base.autoneg; ecmd 1116 drivers/net/ethernet/rocker/rocker_main.c struct ethtool_link_ksettings *ecmd = priv; ecmd 1138 drivers/net/ethernet/rocker/rocker_main.c ethtool_link_ksettings_zero_link_mode(ecmd, supported); ecmd 1139 drivers/net/ethernet/rocker/rocker_main.c ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); ecmd 1141 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.phy_address = 0xff; ecmd 1142 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.port = PORT_TP; ecmd 1143 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.speed = speed; ecmd 1144 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.duplex = duplex ? DUPLEX_FULL : DUPLEX_HALF; ecmd 1145 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.autoneg = autoneg ? AUTONEG_ENABLE : AUTONEG_DISABLE; ecmd 1252 drivers/net/ethernet/rocker/rocker_main.c struct ethtool_link_ksettings *ecmd = priv; ecmd 1265 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.speed)) ecmd 1268 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.duplex)) ecmd 1271 drivers/net/ethernet/rocker/rocker_main.c ecmd->base.autoneg)) ecmd 1351 drivers/net/ethernet/rocker/rocker_main.c struct ethtool_link_ksettings *ecmd) ecmd 1356 drivers/net/ethernet/rocker/rocker_main.c ecmd); ecmd 1378 drivers/net/ethernet/rocker/rocker_main.c const struct ethtool_link_ksettings *ecmd) ecmd 1382 drivers/net/ethernet/rocker/rocker_main.c memcpy(©_ecmd, ecmd, sizeof(copy_ecmd)); ecmd 2248 drivers/net/ethernet/rocker/rocker_main.c struct ethtool_link_ksettings *ecmd) ecmd 2252 drivers/net/ethernet/rocker/rocker_main.c return rocker_cmd_get_port_settings_ethtool(rocker_port, ecmd); ecmd 2257 drivers/net/ethernet/rocker/rocker_main.c const struct ethtool_link_ksettings *ecmd) ecmd 2261 drivers/net/ethernet/rocker/rocker_main.c return rocker_cmd_set_port_settings_ethtool(rocker_port, ecmd); ecmd 1847 drivers/net/ethernet/smsc/smc91c92_cs.c struct ethtool_link_ksettings *ecmd) ecmd 1858 drivers/net/ethernet/smsc/smc91c92_cs.c ecmd->base.port = (tmp & CFG_AUI_SELECT) ? PORT_AUI : PORT_TP; ecmd 1859 drivers/net/ethernet/smsc/smc91c92_cs.c ecmd->base.speed = SPEED_10; ecmd 1860 drivers/net/ethernet/smsc/smc91c92_cs.c ecmd->base.phy_address = ioaddr + MGMT; ecmd 1864 drivers/net/ethernet/smsc/smc91c92_cs.c ecmd->base.duplex = (tmp & TCR_FDUPLX) ? DUPLEX_FULL : DUPLEX_HALF; ecmd 1866 drivers/net/ethernet/smsc/smc91c92_cs.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, ecmd 1871 drivers/net/ethernet/smsc/smc91c92_cs.c const struct ethtool_link_ksettings *ecmd) ecmd 1876 drivers/net/ethernet/smsc/smc91c92_cs.c if (ecmd->base.speed != SPEED_10) ecmd 1878 drivers/net/ethernet/smsc/smc91c92_cs.c if (ecmd->base.duplex != DUPLEX_HALF && ecmd 1879 drivers/net/ethernet/smsc/smc91c92_cs.c ecmd->base.duplex != DUPLEX_FULL) ecmd 1881 drivers/net/ethernet/smsc/smc91c92_cs.c if (ecmd->base.port != PORT_TP && ecmd->base.port != PORT_AUI) ecmd 1884 drivers/net/ethernet/smsc/smc91c92_cs.c if (ecmd->base.port == PORT_AUI) ecmd 1891 drivers/net/ethernet/smsc/smc91c92_cs.c if (ecmd->base.duplex == DUPLEX_FULL) ecmd 1914 drivers/net/ethernet/smsc/smc91c92_cs.c struct ethtool_link_ksettings *ecmd) ecmd 1924 drivers/net/ethernet/smsc/smc91c92_cs.c mii_ethtool_get_link_ksettings(&smc->mii_if, ecmd); ecmd 1926 drivers/net/ethernet/smsc/smc91c92_cs.c smc_netdev_get_ecmd(dev, ecmd); ecmd 1933 drivers/net/ethernet/smsc/smc91c92_cs.c const struct ethtool_link_ksettings *ecmd) ecmd 1944 drivers/net/ethernet/smsc/smc91c92_cs.c ret = mii_ethtool_set_link_ksettings(&smc->mii_if, ecmd); ecmd 1946 drivers/net/ethernet/smsc/smc91c92_cs.c ret = smc_netdev_set_ecmd(dev, ecmd); ecmd 2128 drivers/net/ethernet/tehuti/tehuti.c struct ethtool_link_ksettings *ecmd) ecmd 2130 drivers/net/ethernet/tehuti/tehuti.c ethtool_link_ksettings_zero_link_mode(ecmd, supported); ecmd 2131 drivers/net/ethernet/tehuti/tehuti.c ethtool_link_ksettings_add_link_mode(ecmd, supported, ecmd 2133 drivers/net/ethernet/tehuti/tehuti.c ethtool_link_ksettings_add_link_mode(ecmd, supported, FIBRE); ecmd 2134 drivers/net/ethernet/tehuti/tehuti.c ethtool_link_ksettings_zero_link_mode(ecmd, advertising); ecmd 2135 drivers/net/ethernet/tehuti/tehuti.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, ecmd 2137 drivers/net/ethernet/tehuti/tehuti.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, FIBRE); ecmd 2139 drivers/net/ethernet/tehuti/tehuti.c ecmd->base.speed = SPEED_10000; ecmd 2140 drivers/net/ethernet/tehuti/tehuti.c ecmd->base.duplex = DUPLEX_FULL; ecmd 2141 drivers/net/ethernet/tehuti/tehuti.c ecmd->base.port = PORT_FIBRE; ecmd 2142 drivers/net/ethernet/tehuti/tehuti.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 396 drivers/net/ethernet/ti/cpsw_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 405 drivers/net/ethernet/ti/cpsw_ethtool.c phy_ethtool_ksettings_get(cpsw->slaves[slave_no].phy, ecmd); ecmd 410 drivers/net/ethernet/ti/cpsw_ethtool.c const struct ethtool_link_ksettings *ecmd) ecmd 419 drivers/net/ethernet/ti/cpsw_ethtool.c return phy_ethtool_ksettings_set(cpsw->slaves[slave_no].phy, ecmd); ecmd 422 drivers/net/ethernet/ti/cpsw_priv.h struct ethtool_link_ksettings *ecmd); ecmd 424 drivers/net/ethernet/ti/cpsw_priv.h const struct ethtool_link_ksettings *ecmd); ecmd 3520 drivers/net/ethernet/via/via-velocity.c struct ethtool_coalesce *ecmd) ecmd 3524 drivers/net/ethernet/via/via-velocity.c ecmd->tx_max_coalesced_frames = vptr->options.tx_intsup; ecmd 3525 drivers/net/ethernet/via/via-velocity.c ecmd->rx_max_coalesced_frames = vptr->options.rx_intsup; ecmd 3527 drivers/net/ethernet/via/via-velocity.c ecmd->rx_coalesce_usecs = get_pending_timer_val(vptr->options.rxqueue_timer); ecmd 3528 drivers/net/ethernet/via/via-velocity.c ecmd->tx_coalesce_usecs = get_pending_timer_val(vptr->options.txqueue_timer); ecmd 3534 drivers/net/ethernet/via/via-velocity.c struct ethtool_coalesce *ecmd) ecmd 3541 drivers/net/ethernet/via/via-velocity.c if (ecmd->tx_coalesce_usecs > max_us) ecmd 3543 drivers/net/ethernet/via/via-velocity.c if (ecmd->rx_coalesce_usecs > max_us) ecmd 3546 drivers/net/ethernet/via/via-velocity.c if (ecmd->tx_max_coalesced_frames > 0xff) ecmd 3548 drivers/net/ethernet/via/via-velocity.c if (ecmd->rx_max_coalesced_frames > 0xff) ecmd 3551 drivers/net/ethernet/via/via-velocity.c vptr->options.rx_intsup = ecmd->rx_max_coalesced_frames; ecmd 3552 drivers/net/ethernet/via/via-velocity.c vptr->options.tx_intsup = ecmd->tx_max_coalesced_frames; ecmd 3555 drivers/net/ethernet/via/via-velocity.c ecmd->rx_coalesce_usecs); ecmd 3557 drivers/net/ethernet/via/via-velocity.c ecmd->tx_coalesce_usecs); ecmd 164 drivers/net/fjes/fjes_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 166 drivers/net/fjes/fjes_ethtool.c ethtool_link_ksettings_zero_link_mode(ecmd, supported); ecmd 167 drivers/net/fjes/fjes_ethtool.c ethtool_link_ksettings_zero_link_mode(ecmd, advertising); ecmd 168 drivers/net/fjes/fjes_ethtool.c ecmd->base.duplex = DUPLEX_FULL; ecmd 169 drivers/net/fjes/fjes_ethtool.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 170 drivers/net/fjes/fjes_ethtool.c ecmd->base.port = PORT_NONE; ecmd 171 drivers/net/fjes/fjes_ethtool.c ecmd->base.speed = 20000; /* 20Gb/s */ ecmd 184 drivers/net/mdio.c struct ethtool_cmd *ecmd, ecmd 193 drivers/net/mdio.c ecmd->transceiver = XCVR_INTERNAL; ecmd 194 drivers/net/mdio.c ecmd->phy_address = mdio->prtad; ecmd 195 drivers/net/mdio.c ecmd->mdio_support = ecmd 205 drivers/net/mdio.c ecmd->port = PORT_TP; ecmd 206 drivers/net/mdio.c ecmd->supported = SUPPORTED_TP; ecmd 210 drivers/net/mdio.c ecmd->supported |= SUPPORTED_10000baseT_Full; ecmd 212 drivers/net/mdio.c ecmd->supported |= (SUPPORTED_1000baseT_Full | ecmd 215 drivers/net/mdio.c ecmd->supported |= (SUPPORTED_100baseT_Full | ecmd 218 drivers/net/mdio.c ecmd->supported |= (SUPPORTED_10baseT_Full | ecmd 220 drivers/net/mdio.c ecmd->advertising = ADVERTISED_TP; ecmd 224 drivers/net/mdio.c ecmd->port = PORT_OTHER; ecmd 225 drivers/net/mdio.c ecmd->supported = 0; ecmd 226 drivers/net/mdio.c ecmd->advertising = 0; ecmd 232 drivers/net/mdio.c ecmd->port = PORT_OTHER; ecmd 233 drivers/net/mdio.c ecmd->supported = SUPPORTED_Backplane; ecmd 237 drivers/net/mdio.c ecmd->supported |= SUPPORTED_10000baseKX4_Full; ecmd 239 drivers/net/mdio.c ecmd->supported |= SUPPORTED_10000baseKR_Full; ecmd 241 drivers/net/mdio.c ecmd->supported |= SUPPORTED_1000baseKX_Full; ecmd 245 drivers/net/mdio.c ecmd->supported |= SUPPORTED_10000baseR_FEC; ecmd 246 drivers/net/mdio.c ecmd->advertising = ADVERTISED_Backplane; ecmd 251 drivers/net/mdio.c ecmd->port = PORT_FIBRE; ecmd 252 drivers/net/mdio.c ecmd->supported = SUPPORTED_FIBRE; ecmd 253 drivers/net/mdio.c ecmd->advertising = ADVERTISED_FIBRE; ecmd 258 drivers/net/mdio.c ecmd->supported |= SUPPORTED_Autoneg; ecmd 262 drivers/net/mdio.c ecmd->autoneg = AUTONEG_ENABLE; ecmd 263 drivers/net/mdio.c ecmd->advertising |= ecmd 268 drivers/net/mdio.c ecmd->autoneg = AUTONEG_DISABLE; ecmd 271 drivers/net/mdio.c ecmd->autoneg = AUTONEG_DISABLE; ecmd 274 drivers/net/mdio.c if (ecmd->autoneg) { ecmd 282 drivers/net/mdio.c ecmd->lp_advertising = ecmd 285 drivers/net/mdio.c ecmd->lp_advertising |= ADVERTISED_Autoneg; ecmd 286 drivers/net/mdio.c modes = ecmd->advertising & ecmd->lp_advertising; ecmd 289 drivers/net/mdio.c modes = ecmd->advertising; ecmd 295 drivers/net/mdio.c ecmd->duplex = DUPLEX_FULL; ecmd 300 drivers/net/mdio.c ecmd->duplex = !(modes & ADVERTISED_1000baseT_Half); ecmd 304 drivers/net/mdio.c ecmd->duplex = !!(modes & ADVERTISED_100baseT_Full); ecmd 307 drivers/net/mdio.c ecmd->duplex = !!(modes & ADVERTISED_10baseT_Full); ecmd 315 drivers/net/mdio.c ecmd->duplex = (reg & MDIO_CTRL1_FULLDPLX || ecmd 319 drivers/net/mdio.c ethtool_cmd_speed_set(ecmd, speed); ecmd 322 drivers/net/mdio.c if (ecmd->port == PORT_TP ecmd 323 drivers/net/mdio.c && (ethtool_cmd_speed(ecmd) == SPEED_10000)) { ecmd 327 drivers/net/mdio.c ecmd->eth_tp_mdix = ETH_TP_MDI; ecmd 330 drivers/net/mdio.c ecmd->eth_tp_mdix = ETH_TP_MDI_X; ecmd 334 drivers/net/mdio.c ecmd->eth_tp_mdix = ETH_TP_MDI_INVALID; ecmd 55 drivers/net/mii.c int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) ecmd 61 drivers/net/mii.c ecmd->supported = ecmd 66 drivers/net/mii.c ecmd->supported |= SUPPORTED_1000baseT_Half | ecmd 70 drivers/net/mii.c ecmd->port = PORT_MII; ecmd 73 drivers/net/mii.c ecmd->transceiver = XCVR_INTERNAL; ecmd 76 drivers/net/mii.c ecmd->phy_address = mii->phy_id; ecmd 77 drivers/net/mii.c ecmd->mdio_support = ETH_MDIO_SUPPORTS_C22; ecmd 79 drivers/net/mii.c ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; ecmd 88 drivers/net/mii.c ecmd->advertising |= ADVERTISED_Autoneg; ecmd 89 drivers/net/mii.c ecmd->autoneg = AUTONEG_ENABLE; ecmd 91 drivers/net/mii.c ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); ecmd 93 drivers/net/mii.c ecmd->advertising |= ecmd 97 drivers/net/mii.c ecmd->lp_advertising = mii_get_an(mii, MII_LPA); ecmd 98 drivers/net/mii.c ecmd->lp_advertising |= ecmd 101 drivers/net/mii.c ecmd->lp_advertising = 0; ecmd 104 drivers/net/mii.c nego = ecmd->advertising & ecmd->lp_advertising; ecmd 108 drivers/net/mii.c ethtool_cmd_speed_set(ecmd, SPEED_1000); ecmd 109 drivers/net/mii.c ecmd->duplex = !!(nego & ADVERTISED_1000baseT_Full); ecmd 112 drivers/net/mii.c ethtool_cmd_speed_set(ecmd, SPEED_100); ecmd 113 drivers/net/mii.c ecmd->duplex = !!(nego & ADVERTISED_100baseT_Full); ecmd 115 drivers/net/mii.c ethtool_cmd_speed_set(ecmd, SPEED_10); ecmd 116 drivers/net/mii.c ecmd->duplex = !!(nego & ADVERTISED_10baseT_Full); ecmd 119 drivers/net/mii.c ecmd->autoneg = AUTONEG_DISABLE; ecmd 121 drivers/net/mii.c ethtool_cmd_speed_set(ecmd, ecmd 127 drivers/net/mii.c ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; ecmd 130 drivers/net/mii.c mii->full_duplex = ecmd->duplex; ecmd 237 drivers/net/mii.c int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd) ecmd 240 drivers/net/mii.c u32 speed = ethtool_cmd_speed(ecmd); ecmd 246 drivers/net/mii.c if (ecmd->duplex != DUPLEX_HALF && ecmd->duplex != DUPLEX_FULL) ecmd 248 drivers/net/mii.c if (ecmd->port != PORT_MII) ecmd 250 drivers/net/mii.c if (ecmd->transceiver != XCVR_INTERNAL) ecmd 252 drivers/net/mii.c if (ecmd->phy_address != mii->phy_id) ecmd 254 drivers/net/mii.c if (ecmd->autoneg != AUTONEG_DISABLE && ecmd->autoneg != AUTONEG_ENABLE) ecmd 261 drivers/net/mii.c if (ecmd->autoneg == AUTONEG_ENABLE) { ecmd 265 drivers/net/mii.c if ((ecmd->advertising & (ADVERTISED_10baseT_Half | ecmd 280 drivers/net/mii.c tmp |= ethtool_adv_to_mii_adv_t(ecmd->advertising); ecmd 284 drivers/net/mii.c ethtool_adv_to_mii_ctrl1000_t(ecmd->advertising); ecmd 309 drivers/net/mii.c if (ecmd->duplex == DUPLEX_FULL) { ecmd 2902 drivers/net/team/team.c struct ethtool_link_ksettings ecmd; ecmd 2904 drivers/net/team/team.c err = __ethtool_get_link_ksettings(port->dev, &ecmd); ecmd 2906 drivers/net/team/team.c port->state.speed = ecmd.base.speed; ecmd 2907 drivers/net/team/team.c port->state.duplex = ecmd.base.duplex; ecmd 174 drivers/net/usb/asix_devices.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 177 drivers/net/usb/asix_devices.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 180 drivers/net/usb/asix_devices.c if (ecmd.duplex != DUPLEX_FULL) ecmd 184 drivers/net/usb/asix_devices.c ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); ecmd 301 drivers/net/usb/asix_devices.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 304 drivers/net/usb/asix_devices.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 307 drivers/net/usb/asix_devices.c if (ethtool_cmd_speed(&ecmd) != SPEED_100) ecmd 310 drivers/net/usb/asix_devices.c if (ecmd.duplex != DUPLEX_FULL) ecmd 314 drivers/net/usb/asix_devices.c ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); ecmd 957 drivers/net/usb/asix_devices.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 964 drivers/net/usb/asix_devices.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 966 drivers/net/usb/asix_devices.c speed = ethtool_cmd_speed(&ecmd); ecmd 977 drivers/net/usb/asix_devices.c if (ecmd.duplex == DUPLEX_FULL) ecmd 983 drivers/net/usb/asix_devices.c speed, ecmd.duplex, mode); ecmd 671 drivers/net/usb/ax88179_178a.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 674 drivers/net/usb/ax88179_178a.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 676 drivers/net/usb/ax88179_178a.c if (ecmd.duplex & DUPLEX_FULL) { ecmd 713 drivers/net/usb/ax88179_178a.c supported = (ecmd.speed == SPEED_1000) ? ecmd 217 drivers/net/usb/ch9200.c struct ethtool_cmd ecmd; ecmd 220 drivers/net/usb/ch9200.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 223 drivers/net/usb/ch9200.c ecmd.speed, ecmd.duplex); ecmd 549 drivers/net/usb/dm9601.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 552 drivers/net/usb/dm9601.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 555 drivers/net/usb/dm9601.c ethtool_cmd_speed(&ecmd), ecmd.duplex); ecmd 1165 drivers/net/usb/lan78xx.c struct ethtool_link_ksettings ecmd; ecmd 1192 drivers/net/usb/lan78xx.c phy_ethtool_ksettings_get(phydev, &ecmd); ecmd 1195 drivers/net/usb/lan78xx.c if (ecmd.base.speed == 1000) { ecmd 1223 drivers/net/usb/lan78xx.c ecmd.base.speed, ecmd.base.duplex, ladv, radv); ecmd 1225 drivers/net/usb/lan78xx.c ret = lan78xx_update_flowcontrol(dev, ecmd.base.duplex, ladv, ecmd 1557 drivers/net/usb/lan78xx.c struct ethtool_link_ksettings ecmd; ecmd 1559 drivers/net/usb/lan78xx.c phy_ethtool_ksettings_get(phydev, &ecmd); ecmd 1575 drivers/net/usb/lan78xx.c struct ethtool_link_ksettings ecmd; ecmd 1578 drivers/net/usb/lan78xx.c phy_ethtool_ksettings_get(phydev, &ecmd); ecmd 1580 drivers/net/usb/lan78xx.c if (pause->autoneg && !ecmd.base.autoneg) { ecmd 1592 drivers/net/usb/lan78xx.c if (ecmd.base.autoneg) { ecmd 1597 drivers/net/usb/lan78xx.c ecmd.link_modes.advertising); ecmd 1599 drivers/net/usb/lan78xx.c ecmd.link_modes.advertising); ecmd 1602 drivers/net/usb/lan78xx.c linkmode_or(ecmd.link_modes.advertising, fc, ecmd 1603 drivers/net/usb/lan78xx.c ecmd.link_modes.advertising); ecmd 1605 drivers/net/usb/lan78xx.c phy_ethtool_ksettings_set(phydev, &ecmd); ecmd 949 drivers/net/usb/pegasus.c struct ethtool_link_ksettings *ecmd) ecmd 954 drivers/net/usb/pegasus.c mii_ethtool_get_link_ksettings(&pegasus->mii, ecmd); ecmd 960 drivers/net/usb/pegasus.c const struct ethtool_link_ksettings *ecmd) ecmd 963 drivers/net/usb/pegasus.c return mii_ethtool_set_link_ksettings(&pegasus->mii, ecmd); ecmd 790 drivers/net/usb/rtl8150.c struct ethtool_link_ksettings *ecmd) ecmd 802 drivers/net/usb/rtl8150.c ecmd->base.port = PORT_TP; ecmd 803 drivers/net/usb/rtl8150.c ecmd->base.phy_address = dev->phy; ecmd 809 drivers/net/usb/rtl8150.c ecmd->base.speed = speed; ecmd 810 drivers/net/usb/rtl8150.c ecmd->base.autoneg = AUTONEG_ENABLE; ecmd 812 drivers/net/usb/rtl8150.c ecmd->base.duplex = (lpa & LPA_100FULL) ? ecmd 815 drivers/net/usb/rtl8150.c ecmd->base.duplex = (lpa & LPA_10FULL) ? ecmd 818 drivers/net/usb/rtl8150.c ecmd->base.autoneg = AUTONEG_DISABLE; ecmd 819 drivers/net/usb/rtl8150.c ecmd->base.speed = ((bmcr & BMCR_SPEED100) ? ecmd 821 drivers/net/usb/rtl8150.c ecmd->base.duplex = (bmcr & BMCR_FULLDPLX) ? ecmd 825 drivers/net/usb/rtl8150.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, ecmd 629 drivers/net/usb/smsc75xx.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 644 drivers/net/usb/smsc75xx.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 649 drivers/net/usb/smsc75xx.c ethtool_cmd_speed(&ecmd), ecmd.duplex, lcladv, rmtadv); ecmd 651 drivers/net/usb/smsc75xx.c return smsc75xx_update_flowcontrol(dev, ecmd.duplex, lcladv, rmtadv); ecmd 555 drivers/net/usb/smsc95xx.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 570 drivers/net/usb/smsc95xx.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 576 drivers/net/usb/smsc95xx.c ethtool_cmd_speed(&ecmd), ecmd.duplex, lcladv, rmtadv); ecmd 579 drivers/net/usb/smsc95xx.c if (ecmd.duplex != DUPLEX_FULL) { ecmd 592 drivers/net/usb/smsc95xx.c ret = smsc95xx_phy_update_flowcontrol(dev, ecmd.duplex, lcladv, rmtadv); ecmd 509 drivers/net/usb/sr9700.c struct ethtool_cmd ecmd; ecmd 512 drivers/net/usb/sr9700.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 515 drivers/net/usb/sr9700.c ecmd.speed, ecmd.duplex); ecmd 536 drivers/net/usb/sr9800.c struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; ecmd 540 drivers/net/usb/sr9800.c mii_ethtool_gset(&dev->mii, &ecmd); ecmd 543 drivers/net/usb/sr9800.c if (ethtool_cmd_speed(&ecmd) != SPEED_100) ecmd 546 drivers/net/usb/sr9800.c if (ecmd.duplex != DUPLEX_FULL) ecmd 550 drivers/net/usb/sr9800.c __func__, ethtool_cmd_speed(&ecmd), ecmd.duplex, mode); ecmd 485 drivers/net/vmxnet3/vmxnet3_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 489 drivers/net/vmxnet3/vmxnet3_ethtool.c ethtool_link_ksettings_zero_link_mode(ecmd, supported); ecmd 490 drivers/net/vmxnet3/vmxnet3_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, 10000baseT_Full); ecmd 491 drivers/net/vmxnet3/vmxnet3_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, 1000baseT_Full); ecmd 492 drivers/net/vmxnet3/vmxnet3_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, supported, TP); ecmd 493 drivers/net/vmxnet3/vmxnet3_ethtool.c ethtool_link_ksettings_zero_link_mode(ecmd, advertising); ecmd 494 drivers/net/vmxnet3/vmxnet3_ethtool.c ethtool_link_ksettings_add_link_mode(ecmd, advertising, TP); ecmd 495 drivers/net/vmxnet3/vmxnet3_ethtool.c ecmd->base.port = PORT_TP; ecmd 498 drivers/net/vmxnet3/vmxnet3_ethtool.c ecmd->base.speed = adapter->link_speed; ecmd 499 drivers/net/vmxnet3/vmxnet3_ethtool.c ecmd->base.duplex = DUPLEX_FULL; ecmd 501 drivers/net/vmxnet3/vmxnet3_ethtool.c ecmd->base.speed = SPEED_UNKNOWN; ecmd 502 drivers/net/vmxnet3/vmxnet3_ethtool.c ecmd->base.duplex = DUPLEX_UNKNOWN; ecmd 119 drivers/scsi/fcoe/fcoe_transport.c struct ethtool_link_ksettings ecmd; ecmd 121 drivers/scsi/fcoe/fcoe_transport.c if (!__ethtool_get_link_ksettings(netdev, &ecmd)) { ecmd 127 drivers/scsi/fcoe/fcoe_transport.c if (ecmd.link_modes.supported[0] & ( ecmd 133 drivers/scsi/fcoe/fcoe_transport.c if (ecmd.link_modes.supported[0] & ( ecmd 140 drivers/scsi/fcoe/fcoe_transport.c if (ecmd.link_modes.supported[0] & ( ecmd 145 drivers/scsi/fcoe/fcoe_transport.c if (ecmd.link_modes.supported[0] & ( ecmd 152 drivers/scsi/fcoe/fcoe_transport.c lport->link_speed = eth2fc_speed(ecmd.base.speed); ecmd 147 drivers/staging/netlogic/xlr_net.c struct ethtool_link_ksettings *ecmd) ecmd 155 drivers/staging/netlogic/xlr_net.c phy_ethtool_ksettings_get(phydev, ecmd); ecmd 161 drivers/staging/netlogic/xlr_net.c const struct ethtool_link_ksettings *ecmd) ecmd 168 drivers/staging/netlogic/xlr_net.c return phy_ethtool_ksettings_set(phydev, ecmd); ecmd 380 drivers/staging/qlge/qlge_ethtool.c struct ethtool_link_ksettings *ecmd) ecmd 392 drivers/staging/qlge/qlge_ethtool.c ecmd->base.port = PORT_TP; ecmd 393 drivers/staging/qlge/qlge_ethtool.c ecmd->base.autoneg = AUTONEG_ENABLE; ecmd 397 drivers/staging/qlge/qlge_ethtool.c ecmd->base.port = PORT_FIBRE; ecmd 400 drivers/staging/qlge/qlge_ethtool.c ecmd->base.speed = SPEED_10000; ecmd 401 drivers/staging/qlge/qlge_ethtool.c ecmd->base.duplex = DUPLEX_FULL; ecmd 403 drivers/staging/qlge/qlge_ethtool.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.supported, ecmd 405 drivers/staging/qlge/qlge_ethtool.c ethtool_convert_legacy_u32_to_link_mode(ecmd->link_modes.advertising, ecmd 147 include/linux/mdio.h struct ethtool_cmd *ecmd, ecmd 165 include/linux/mdio.h struct ethtool_cmd *ecmd) ecmd 167 include/linux/mdio.h mdio45_ethtool_gset_npage(mdio, ecmd, 0, 0); ecmd 35 include/linux/mii.h extern int mii_ethtool_gset(struct mii_if_info *mii, struct ethtool_cmd *ecmd); ecmd 38 include/linux/mii.h extern int mii_ethtool_sset(struct mii_if_info *mii, struct ethtool_cmd *ecmd); ecmd 37 net/bridge/br_if.c struct ethtool_link_ksettings ecmd; ecmd 39 net/bridge/br_if.c if (!__ethtool_get_link_ksettings(dev, &ecmd)) { ecmd 40 net/bridge/br_if.c switch (ecmd.base.speed) { ecmd 524 net/packet/af_packet.c struct ethtool_link_ksettings ecmd; ecmd 533 net/packet/af_packet.c err = __ethtool_get_link_ksettings(dev, &ecmd); ecmd 540 net/packet/af_packet.c if (ecmd.base.speed < SPEED_1000 || ecmd 541 net/packet/af_packet.c ecmd.base.speed == SPEED_UNKNOWN) { ecmd 545 net/packet/af_packet.c div = ecmd.base.speed / 1000; ecmd 310 net/sched/sch_cbs.c struct ethtool_link_ksettings ecmd; ecmd 315 net/sched/sch_cbs.c err = __ethtool_get_link_ksettings(dev, &ecmd); ecmd 319 net/sched/sch_cbs.c if (ecmd.base.speed && ecmd.base.speed != SPEED_UNKNOWN) ecmd 320 net/sched/sch_cbs.c speed = ecmd.base.speed; ecmd 328 net/sched/sch_cbs.c ecmd.base.speed); ecmd 1047 net/sched/sch_taprio.c struct ethtool_link_ksettings ecmd; ecmd 1052 net/sched/sch_taprio.c err = __ethtool_get_link_ksettings(dev, &ecmd); ecmd 1056 net/sched/sch_taprio.c if (ecmd.base.speed && ecmd.base.speed != SPEED_UNKNOWN) ecmd 1057 net/sched/sch_taprio.c speed = ecmd.base.speed; ecmd 1065 net/sched/sch_taprio.c ecmd.base.speed);