Lines Matching defs:cmd
3220 struct ethtool_rxnfc *cmd)
3223 struct ethtool_rx_flow_spec *fs = &cmd->fs;
3274 struct ethtool_rxnfc *cmd)
3284 if (item->fs.location == cmd->fs.location) {
3310 struct ethtool_rxnfc *cmd)
3316 if (item->fs.location == cmd->fs.location) {
3317 memcpy(&cmd->fs, &item->fs, sizeof(cmd->fs));
3325 struct ethtool_rxnfc *cmd, u32 *rule_locs)
3332 if (cnt == cmd->rule_cnt)
3337 cmd->data = bp->max_tuples;
3338 cmd->rule_cnt = cnt;
3343 static int gem_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd,
3349 switch (cmd->cmd) {
3351 cmd->data = bp->num_queues;
3354 cmd->rule_cnt = bp->rx_fs_list.count;
3357 ret = gem_get_flow_entry(netdev, cmd);
3360 ret = gem_get_all_flow_entries(netdev, cmd, rule_locs);
3364 "Command parameter %d is not supported\n", cmd->cmd);
3371 static int gem_set_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd)
3376 switch (cmd->cmd) {
3378 if ((cmd->fs.location >= bp->max_tuples)
3379 || (cmd->fs.ring_cookie >= bp->num_queues)) {
3383 ret = gem_add_flow_filter(netdev, cmd);
3386 ret = gem_del_flow_filter(netdev, cmd);
3390 "Command parameter %d is not supported\n", cmd->cmd);
3428 static int macb_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
3436 switch (cmd) {
3438 return bp->ptp_info->set_hwtst(dev, rq, cmd);
3444 return phylink_mii_ioctl(bp->phylink, rq, cmd);