Lines Matching refs:rule

70 	struct aq_rx_filter *rule;
74 hlist_for_each_entry_safe(rule, aq_node2,
76 if (rule->aq_fsp.location == fsp->location)
78 if (aq_match_filter(&rule->aq_fsp, fsp)) {
274 "ethtool: The specified number %u rule is invalid\n",
434 struct aq_rx_filter *rule = NULL;
437 hlist_for_each_entry_safe(rule, aq_node2,
439 if (be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id)
442 if (rule && rule->type == aq_rx_filter_vlan &&
443 be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) {
446 cmd.fs.location = rule->aq_fsp.location;
634 struct aq_rx_filter *rule = NULL, *parent = NULL;
638 hlist_for_each_entry_safe(rule, aq_node2,
640 if (rule->aq_fsp.location >= index)
642 parent = rule;
645 if (rule && rule->aq_fsp.location == index) {
646 err = aq_add_del_rule(aq_nic, rule, false);
647 hlist_del(&rule->aq_node);
648 kfree(rule);
721 struct aq_rx_filter *rule = NULL;
725 hlist_for_each_entry_safe(rule, aq_node2,
727 if (rule->aq_fsp.location == cmd->fs.location)
731 if (rule && rule->aq_fsp.location == cmd->fs.location) {
732 err = aq_add_del_rule(aq_nic, rule, false);
733 hlist_del(&rule->aq_node);
734 kfree(rule);
745 struct aq_rx_filter *rule = NULL;
748 hlist_for_each_entry_safe(rule, aq_node2,
750 if (fsp->location <= rule->aq_fsp.location)
753 if (unlikely(!rule || fsp->location != rule->aq_fsp.location))
756 memcpy(fsp, &rule->aq_fsp, sizeof(*fsp));
766 struct aq_rx_filter *rule;
771 hlist_for_each_entry_safe(rule, aq_node2,
776 rule_locs[count++] = rule->aq_fsp.location;
788 struct aq_rx_filter *rule;
791 hlist_for_each_entry_safe(rule, aq_node2,
793 err = aq_add_del_rule(aq_nic, rule, false);
796 hlist_del(&rule->aq_node);
797 kfree(rule);
809 struct aq_rx_filter *rule;
812 hlist_for_each_entry_safe(rule, aq_node2,
814 err = aq_add_del_rule(aq_nic, rule, true);