Lines Matching refs:cmd
1805 struct ethtool_link_ksettings *cmd) in b44_get_link_ksettings() argument
1812 phy_ethtool_ksettings_get(dev->phydev, cmd); in b44_get_link_ksettings()
1834 cmd->base.speed = (bp->flags & B44_FLAG_100_BASE_T) ? in b44_get_link_ksettings()
1836 cmd->base.duplex = (bp->flags & B44_FLAG_FULL_DUPLEX) ? in b44_get_link_ksettings()
1838 cmd->base.port = 0; in b44_get_link_ksettings()
1839 cmd->base.phy_address = bp->phy_addr; in b44_get_link_ksettings()
1840 cmd->base.autoneg = (bp->flags & B44_FLAG_FORCE_LINK) ? in b44_get_link_ksettings()
1842 if (cmd->base.autoneg == AUTONEG_ENABLE) in b44_get_link_ksettings()
1845 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in b44_get_link_ksettings()
1847 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in b44_get_link_ksettings()
1851 cmd->base.speed = 0; in b44_get_link_ksettings()
1852 cmd->base.duplex = 0xff; in b44_get_link_ksettings()
1859 const struct ethtool_link_ksettings *cmd) in b44_set_link_ksettings() argument
1872 ret = phy_ethtool_ksettings_set(dev->phydev, cmd); in b44_set_link_ksettings()
1879 speed = cmd->base.speed; in b44_set_link_ksettings()
1882 cmd->link_modes.advertising); in b44_set_link_ksettings()
1885 if (cmd->base.autoneg == AUTONEG_ENABLE) { in b44_set_link_ksettings()
1892 (cmd->base.duplex != DUPLEX_HALF && in b44_set_link_ksettings()
1893 cmd->base.duplex != DUPLEX_FULL)) { in b44_set_link_ksettings()
1899 if (cmd->base.autoneg == AUTONEG_ENABLE) { in b44_set_link_ksettings()
1927 if (cmd->base.duplex == DUPLEX_FULL) in b44_set_link_ksettings()
2117 static int b44_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in b44_ioctl() argument
2128 err = phy_mii_ioctl(dev->phydev, ifr, cmd); in b44_ioctl()
2130 err = generic_mii_ioctl(&bp->mii_if, if_mii(ifr), cmd, NULL); in b44_ioctl()