Lines Matching refs:cmd
1437 struct ethtool_link_ksettings *cmd) in bcm_enet_get_link_ksettings() argument
1448 phy_ethtool_ksettings_get(dev->phydev, cmd); in bcm_enet_get_link_ksettings()
1452 cmd->base.autoneg = 0; in bcm_enet_get_link_ksettings()
1453 cmd->base.speed = (priv->force_speed_100) ? in bcm_enet_get_link_ksettings()
1455 cmd->base.duplex = (priv->force_duplex_full) ? in bcm_enet_get_link_ksettings()
1463 cmd->link_modes.supported, supported); in bcm_enet_get_link_ksettings()
1465 cmd->link_modes.advertising, advertising); in bcm_enet_get_link_ksettings()
1466 cmd->base.port = PORT_MII; in bcm_enet_get_link_ksettings()
1472 const struct ethtool_link_ksettings *cmd) in bcm_enet_set_link_ksettings() argument
1480 return phy_ethtool_ksettings_set(dev->phydev, cmd); in bcm_enet_set_link_ksettings()
1483 if (cmd->base.autoneg || in bcm_enet_set_link_ksettings()
1484 (cmd->base.speed != SPEED_100 && in bcm_enet_set_link_ksettings()
1485 cmd->base.speed != SPEED_10) || in bcm_enet_set_link_ksettings()
1486 cmd->base.port != PORT_MII) in bcm_enet_set_link_ksettings()
1490 (cmd->base.speed == SPEED_100) ? 1 : 0; in bcm_enet_set_link_ksettings()
1492 (cmd->base.duplex == DUPLEX_FULL) ? 1 : 0; in bcm_enet_set_link_ksettings()
1601 static int bcm_enet_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in bcm_enet_ioctl() argument
1609 return phy_mii_ioctl(dev->phydev, rq, cmd); in bcm_enet_ioctl()
1619 return generic_mii_ioctl(&mii, if_mii(rq), cmd, NULL); in bcm_enet_ioctl()
2434 static int bcm_enetsw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in bcm_enetsw_ioctl() argument
2444 return generic_mii_ioctl(&mii, if_mii(rq), cmd, NULL); in bcm_enetsw_ioctl()