Lines Matching refs:ecmd
508 static void efx_mcdi_phy_get_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd)
514 ecmd->supported =
516 ecmd->advertising = efx->link_advertising;
517 ecmd->speed = efx->link_state.speed;
518 ecmd->duplex = efx->link_state.fd;
519 ecmd->port = mcdi_to_ethtool_media(phy_cfg->media);
520 ecmd->phy_address = phy_cfg->port;
521 ecmd->transceiver = XCVR_INTERNAL;
522 ecmd->autoneg = !!(efx->link_advertising & ADVERTISED_Autoneg);
523 ecmd->mdio_support = (efx->mdio.mode_support &
534 ecmd->lp_advertising =
539 static int efx_mcdi_phy_set_settings(struct efx_nic *efx, struct ethtool_cmd *ecmd)
545 if (ecmd->autoneg) {
546 caps = (ethtool_to_mcdi_cap(ecmd->advertising) |
548 } else if (ecmd->duplex) {
549 switch (ecmd->speed) {
557 switch (ecmd->speed) {
570 if (ecmd->autoneg) {
572 efx, ecmd->advertising | ADVERTISED_Autoneg);