Lines Matching refs:cfp
385 rule_index = find_first_zero_bit(priv->cfp.used, in bcm_sf2_cfp_ipv4_rule_set()
471 set_bit(rule_index, priv->cfp.used); in bcm_sf2_cfp_ipv4_rule_set()
472 set_bit(rule_index, priv->cfp.unique); in bcm_sf2_cfp_ipv4_rule_set()
572 list_for_each_entry(rule, &priv->cfp.rules_list, next) { in bcm_sf2_cfp_rule_find()
587 if (list_empty(&priv->cfp.rules_list)) in bcm_sf2_cfp_rule_cmp()
590 list_for_each_entry(rule, &priv->cfp.rules_list, next) { in bcm_sf2_cfp_rule_cmp()
683 rule_index[1] = find_first_zero_bit(priv->cfp.used, in bcm_sf2_cfp_ipv6_rule_set()
693 set_bit(rule_index[1], priv->cfp.used); in bcm_sf2_cfp_ipv6_rule_set()
695 rule_index[0] = find_first_zero_bit(priv->cfp.used, in bcm_sf2_cfp_ipv6_rule_set()
833 set_bit(rule_index[0], priv->cfp.used); in bcm_sf2_cfp_ipv6_rule_set()
834 set_bit(rule_index[1], priv->cfp.unique); in bcm_sf2_cfp_ipv6_rule_set()
842 clear_bit(rule_index[1], priv->cfp.used); in bcm_sf2_cfp_ipv6_rule_set()
950 test_bit(fs->location, priv->cfp.used)) in bcm_sf2_cfp_rule_set()
969 list_add_tail(&rule->next, &priv->cfp.rules_list); in bcm_sf2_cfp_rule_set()
1005 clear_bit(loc, priv->cfp.used); in bcm_sf2_cfp_rule_del_one()
1006 clear_bit(loc, priv->cfp.unique); in bcm_sf2_cfp_rule_del_one()
1040 if (!test_bit(loc, priv->cfp.unique) || loc == 0) in bcm_sf2_cfp_rule_del()
1094 for_each_set_bit_from(index, priv->cfp.unique, priv->num_cfp_rules) { in bcm_sf2_cfp_rule_get_all()
1113 mutex_lock(&priv->cfp.lock); in bcm_sf2_get_rxnfc()
1118 nfc->rule_cnt = bitmap_weight(priv->cfp.unique, in bcm_sf2_get_rxnfc()
1134 mutex_unlock(&priv->cfp.lock); in bcm_sf2_get_rxnfc()
1156 mutex_lock(&priv->cfp.lock); in bcm_sf2_set_rxnfc()
1171 mutex_unlock(&priv->cfp.lock); in bcm_sf2_set_rxnfc()
1182 mutex_lock(&priv->cfp.lock); in bcm_sf2_set_rxnfc()
1184 mutex_unlock(&priv->cfp.lock); in bcm_sf2_set_rxnfc()
1221 if (list_empty(&priv->cfp.rules_list)) in bcm_sf2_cfp_exit()
1224 list_for_each_entry_safe_reverse(rule, n, &priv->cfp.rules_list, next) in bcm_sf2_cfp_exit()
1235 if (list_empty(&priv->cfp.rules_list)) in bcm_sf2_cfp_resume()
1246 list_for_each_entry(rule, &priv->cfp.rules_list, next) { in bcm_sf2_cfp_resume()
1319 mutex_lock(&priv->cfp.lock); in bcm_sf2_cfp_get_ethtool_stats()
1338 mutex_unlock(&priv->cfp.lock); in bcm_sf2_cfp_get_ethtool_stats()