Lines Matching refs:rule
597 struct bcmgenet_rxnfc_rule *rule)
599 struct ethtool_rx_flow_spec *fs = &rule->fs;
693 rule->state = BCMGENET_RXNFC_STATE_DISABLED;
699 rule->state = BCMGENET_RXNFC_STATE_ENABLED;
1446 struct bcmgenet_rxnfc_rule *rule;
1452 rule = &priv->rxnfc_rules[cmd->fs.location];
1453 if (rule->state == BCMGENET_RXNFC_STATE_UNUSED) {
1458 if (rule->state == BCMGENET_RXNFC_STATE_ENABLED)
1460 if (rule->state != BCMGENET_RXNFC_STATE_UNUSED) {
1461 list_del(&rule->list);
1464 rule->state = BCMGENET_RXNFC_STATE_UNUSED;
1465 memset(&rule->fs, 0, sizeof(struct ethtool_rx_flow_spec));
1496 struct bcmgenet_rxnfc_rule *rule;
1502 rule = &priv->rxnfc_rules[loc];
1503 if (rule->state == BCMGENET_RXNFC_STATE_UNUSED)
1506 memcpy(&cmd->fs, &rule->fs,
1527 struct bcmgenet_rxnfc_rule *rule;
1543 list_for_each_entry(rule, &priv->rxnfc_list, list)
1545 rule_locs[i++] = rule->fs.location;
4163 struct bcmgenet_rxnfc_rule *rule;
4197 list_for_each_entry(rule, &priv->rxnfc_list, list)
4198 if (rule->state != BCMGENET_RXNFC_STATE_UNUSED)
4199 bcmgenet_hfb_create_rxnfc_filter(priv, rule);