Lines Matching refs:cmd
3568 struct ethtool_rxnfc *cmd) in gem_add_flow_filter() argument
3571 struct ethtool_rx_flow_spec *fs = &cmd->fs; in gem_add_flow_filter()
3623 struct ethtool_rxnfc *cmd) in gem_del_flow_filter() argument
3633 if (item->fs.location == cmd->fs.location) { in gem_del_flow_filter()
3659 struct ethtool_rxnfc *cmd) in gem_get_flow_entry() argument
3665 if (item->fs.location == cmd->fs.location) { in gem_get_flow_entry()
3666 memcpy(&cmd->fs, &item->fs, sizeof(cmd->fs)); in gem_get_flow_entry()
3674 struct ethtool_rxnfc *cmd, u32 *rule_locs) in gem_get_all_flow_entries() argument
3681 if (cnt == cmd->rule_cnt) in gem_get_all_flow_entries()
3686 cmd->data = bp->max_tuples; in gem_get_all_flow_entries()
3687 cmd->rule_cnt = cnt; in gem_get_all_flow_entries()
3692 static int gem_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd, in gem_get_rxnfc() argument
3698 switch (cmd->cmd) { in gem_get_rxnfc()
3700 cmd->data = bp->num_queues; in gem_get_rxnfc()
3703 cmd->rule_cnt = bp->rx_fs_list.count; in gem_get_rxnfc()
3706 ret = gem_get_flow_entry(netdev, cmd); in gem_get_rxnfc()
3709 ret = gem_get_all_flow_entries(netdev, cmd, rule_locs); in gem_get_rxnfc()
3713 "Command parameter %d is not supported\n", cmd->cmd); in gem_get_rxnfc()
3720 static int gem_set_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd) in gem_set_rxnfc() argument
3725 switch (cmd->cmd) { in gem_set_rxnfc()
3727 if ((cmd->fs.location >= bp->max_tuples) in gem_set_rxnfc()
3728 || (cmd->fs.ring_cookie >= bp->num_queues)) { in gem_set_rxnfc()
3732 ret = gem_add_flow_filter(netdev, cmd); in gem_set_rxnfc()
3735 ret = gem_del_flow_filter(netdev, cmd); in gem_set_rxnfc()
3739 "Command parameter %d is not supported\n", cmd->cmd); in gem_set_rxnfc()
3777 static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in macb_ioctl() argument
3785 switch (cmd) { in macb_ioctl()
3787 return bp->ptp_info->set_hwtst(dev, rq, cmd); in macb_ioctl()
3793 return phylink_mii_ioctl(bp->phylink, rq, cmd); in macb_ioctl()