Lines Matching refs:cmd
2900 struct ethtool_rxnfc *cmd) in mtk_hwlro_add_ipaddr() argument
2903 (struct ethtool_rx_flow_spec *)&cmd->fs; in mtk_hwlro_add_ipaddr()
2924 struct ethtool_rxnfc *cmd) in mtk_hwlro_del_ipaddr() argument
2927 (struct ethtool_rx_flow_spec *)&cmd->fs; in mtk_hwlro_del_ipaddr()
2962 struct ethtool_rxnfc *cmd) in mtk_hwlro_get_fdir_entry() argument
2966 (struct ethtool_rx_flow_spec *)&cmd->fs; in mtk_hwlro_get_fdir_entry()
2989 struct ethtool_rxnfc *cmd, in mtk_hwlro_get_fdir_all() argument
2997 if (cnt == cmd->rule_cnt) in mtk_hwlro_get_fdir_all()
3006 cmd->rule_cnt = cnt; in mtk_hwlro_get_fdir_all()
4059 static int mtk_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in mtk_do_ioctl() argument
4063 switch (cmd) { in mtk_do_ioctl()
4067 return phylink_mii_ioctl(mac->phylink, ifr, cmd); in mtk_do_ioctl()
4227 struct ethtool_link_ksettings *cmd) in mtk_get_link_ksettings() argument
4234 return phylink_ethtool_ksettings_get(mac->phylink, cmd); in mtk_get_link_ksettings()
4238 const struct ethtool_link_ksettings *cmd) in mtk_set_link_ksettings() argument
4245 return phylink_ethtool_ksettings_set(mac->phylink, cmd); in mtk_set_link_ksettings()
4370 static int mtk_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd, in mtk_get_rxnfc() argument
4375 switch (cmd->cmd) { in mtk_get_rxnfc()
4378 cmd->data = MTK_MAX_RX_RING_NUM; in mtk_get_rxnfc()
4386 cmd->rule_cnt = mac->hwlro_ip_cnt; in mtk_get_rxnfc()
4392 ret = mtk_hwlro_get_fdir_entry(dev, cmd); in mtk_get_rxnfc()
4396 ret = mtk_hwlro_get_fdir_all(dev, cmd, in mtk_get_rxnfc()
4406 static int mtk_set_rxnfc(struct net_device *dev, struct ethtool_rxnfc *cmd) in mtk_set_rxnfc() argument
4410 switch (cmd->cmd) { in mtk_set_rxnfc()
4413 ret = mtk_hwlro_add_ipaddr(dev, cmd); in mtk_set_rxnfc()
4417 ret = mtk_hwlro_del_ipaddr(dev, cmd); in mtk_set_rxnfc()