Lines Matching refs:cmd
124 struct ethtool_gfeatures cmd = { in ethtool_get_features() local
125 .cmd = ETHTOOL_GFEATURES, in ethtool_get_features()
151 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_features()
153 useraddr += sizeof(cmd); in ethtool_get_features()
162 struct ethtool_sfeatures cmd; in ethtool_set_features() local
167 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_features()
169 useraddr += sizeof(cmd); in ethtool_set_features()
171 if (cmd.size != ETHTOOL_DEV_FEATURE_WORDS) in ethtool_set_features()
307 .cmd = ethcmd, in ethtool_get_one_feature()
548 struct ethtool_cmd cmd; in __ethtool_get_link_ksettings() local
565 memset(&cmd, 0, sizeof(cmd)); in __ethtool_get_link_ksettings()
566 cmd.cmd = ETHTOOL_GSET; in __ethtool_get_link_ksettings()
567 err = dev->ethtool_ops->get_settings(dev, &cmd); in __ethtool_get_link_ksettings()
573 convert_legacy_settings_to_link_ksettings(link_ksettings, &cmd); in __ethtool_get_link_ksettings()
666 link_ksettings.base.cmd = ETHTOOL_GLINKSETTINGS; in ethtool_get_link_ksettings()
693 link_ksettings.base.cmd = ETHTOOL_GLINKSETTINGS; in ethtool_get_link_ksettings()
757 struct ethtool_cmd cmd; in ethtool_get_settings() local
771 convert_link_ksettings_to_legacy_settings(&cmd, in ethtool_get_settings()
775 cmd.cmd = ETHTOOL_GSET; in ethtool_get_settings()
786 memset(&cmd, 0, sizeof(cmd)); in ethtool_get_settings()
787 cmd.cmd = ETHTOOL_GSET; in ethtool_get_settings()
788 err = dev->ethtool_ops->get_settings(dev, &cmd); in ethtool_get_settings()
793 if (copy_to_user(useraddr, &cmd, sizeof(cmd))) in ethtool_get_settings()
811 struct ethtool_cmd cmd; in ethtool_set_settings() local
815 if (copy_from_user(&cmd, useraddr, sizeof(cmd))) in ethtool_set_settings()
823 &cmd)) in ethtool_set_settings()
826 link_ksettings.base.cmd = ETHTOOL_SLINKSETTINGS; in ethtool_set_settings()
842 return dev->ethtool_ops->set_settings(dev, &cmd); in ethtool_set_settings()
852 info.cmd = ETHTOOL_GDRVINFO; in ethtool_get_drvinfo()
911 info.cmd = ETHTOOL_GSSET_INFO; in ethtool_get_sset_info()
948 u32 cmd, void __user *useraddr) in ethtool_set_rxnfc() argument
961 if (cmd == ETHTOOL_SRXFH) in ethtool_set_rxnfc()
972 if (cmd == ETHTOOL_SRXCLSRLINS && in ethtool_set_rxnfc()
980 u32 cmd, void __user *useraddr) in ethtool_get_rxnfc() argument
995 if (cmd == ETHTOOL_GRXFH) in ethtool_get_rxnfc()
1002 if (info.cmd == ETHTOOL_GRXCLSRLALL) { in ethtool_get_rxnfc()
1170 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh_indir()
1321 rx_rings.cmd = ETHTOOL_GRXRINGS; in ethtool_set_rxfh()
1430 struct ethtool_wolinfo wol = { .cmd = ETHTOOL_GWOL }; in ethtool_get_wol()
1464 edata.cmd = ETHTOOL_GEEE; in ethtool_get_eee()
1499 struct ethtool_value edata = { .cmd = ETHTOOL_GLINK }; in ethtool_get_link()
1625 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_coalesce()
1653 struct ethtool_ringparam ringparam = { .cmd = ETHTOOL_GRINGPARAM }; in ethtool_get_ringparam()
1681 struct ethtool_channels channels = { .cmd = ETHTOOL_GCHANNELS }; in ethtool_get_channels()
1696 struct ethtool_channels channels, max = { .cmd = ETHTOOL_GCHANNELS }; in ethtool_set_channels()
1982 u32 cmd, u32 (*actor)(struct net_device *)) in ethtool_get_value() argument
1984 struct ethtool_value edata = { .cmd = cmd }; in ethtool_get_value()
2093 tmp.cmd = ETHTOOL_GET_DUMP_FLAG; in ethtool_get_dump_data()
2148 info.cmd = ETHTOOL_GET_TS_INFO; in ethtool_get_ts_info()
2328 struct ethtool_coalesce coalesce = { .cmd = ETHTOOL_GCOALESCE }; in ethtool_get_per_queue_coalesce()