Lines Matching refs:cmd

719 				      struct ethtool_link_ksettings *cmd)  in pcnet32_get_link_ksettings()  argument
726 mii_ethtool_get_link_ksettings(&lp->mii_if, cmd); in pcnet32_get_link_ksettings()
729 cmd->base.autoneg = AUTONEG_ENABLE; in pcnet32_get_link_ksettings()
731 cmd->base.port = PORT_AUI; in pcnet32_get_link_ksettings()
733 cmd->base.port = PORT_TP; in pcnet32_get_link_ksettings()
735 cmd->base.autoneg = AUTONEG_DISABLE; in pcnet32_get_link_ksettings()
736 cmd->base.port = lp->port_tp ? PORT_TP : PORT_AUI; in pcnet32_get_link_ksettings()
738 cmd->base.duplex = lp->fdx ? DUPLEX_FULL : DUPLEX_HALF; in pcnet32_get_link_ksettings()
739 cmd->base.speed = SPEED_10; in pcnet32_get_link_ksettings()
741 cmd->link_modes.supported, in pcnet32_get_link_ksettings()
749 const struct ethtool_link_ksettings *cmd) in pcnet32_set_link_ksettings() argument
759 r = mii_ethtool_set_link_ksettings(&lp->mii_if, cmd); in pcnet32_set_link_ksettings()
765 lp->autoneg = cmd->base.autoneg == AUTONEG_ENABLE; in pcnet32_set_link_ksettings()
767 if (cmd->base.autoneg == AUTONEG_ENABLE) { in pcnet32_set_link_ksettings()
772 lp->port_tp = cmd->base.port == PORT_TP; in pcnet32_set_link_ksettings()
774 if (cmd->base.port == PORT_TP) in pcnet32_set_link_ksettings()
779 lp->fdx = cmd->base.duplex == DUPLEX_FULL; in pcnet32_set_link_ksettings()
781 if (cmd->base.duplex == DUPLEX_FULL) in pcnet32_set_link_ksettings()
2195 struct ethtool_cmd ecmd = { .cmd = ETHTOOL_GSET }; in pcnet32_open()
2777 static int pcnet32_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in pcnet32_ioctl() argument
2786 rc = generic_mii_ioctl(&lp->mii_if, if_mii(rq), cmd, NULL); in pcnet32_ioctl()
2873 .cmd = ETHTOOL_GSET }; in pcnet32_check_media()