Lines Matching refs:ecmd
774 static int rtl8150_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in rtl8150_get_settings() argument
779 ecmd->supported = (SUPPORTED_10baseT_Half | in rtl8150_get_settings()
785 ecmd->port = PORT_TP; in rtl8150_get_settings()
786 ecmd->transceiver = XCVR_INTERNAL; in rtl8150_get_settings()
787 ecmd->phy_address = dev->phy; in rtl8150_get_settings()
793 ethtool_cmd_speed_set(ecmd, speed); in rtl8150_get_settings()
794 ecmd->autoneg = AUTONEG_ENABLE; in rtl8150_get_settings()
796 ecmd->duplex = (lpa & LPA_100FULL) ? in rtl8150_get_settings()
799 ecmd->duplex = (lpa & LPA_10FULL) ? in rtl8150_get_settings()
802 ecmd->autoneg = AUTONEG_DISABLE; in rtl8150_get_settings()
803 ethtool_cmd_speed_set(ecmd, ((bmcr & BMCR_SPEED100) ? in rtl8150_get_settings()
805 ecmd->duplex = (bmcr & BMCR_FULLDPLX) ? in rtl8150_get_settings()