Lines Matching refs:existing_rule
6290 struct necp_route_rule *existing_rule = NULL; in necp_create_route_rule() local
6452 …existing_rule = necp_lookup_route_rule_by_contents_locked(list, default_action, cellular_action, w… in necp_create_route_rule()
6453 if (existing_rule != NULL) { in necp_create_route_rule()
6454 route_rule_id = existing_rule->id; in necp_create_route_rule()
6455 os_ref_retain_locked(&existing_rule->refcount); in necp_create_route_rule()
6492 struct necp_aggregate_route_rule * __single existing_rule = NULL; in necp_remove_aggregate_route_rule_for_id() local
6495 LIST_FOREACH_SAFE(existing_rule, &necp_aggregate_route_rules, chain, tmp_rule) { in necp_remove_aggregate_route_rule_for_id()
6498 u_int32_t route_rule_id = existing_rule->rule_ids[index]; in necp_remove_aggregate_route_rule_for_id()
6500 LIST_REMOVE(existing_rule, chain); in necp_remove_aggregate_route_rule_for_id()
6501 kfree_type(struct necp_aggregate_route_rule, existing_rule); in necp_remove_aggregate_route_rule_for_id()
6514 struct necp_route_rule * __single existing_rule = NULL; in necp_remove_route_rule() local
6518 existing_rule = necp_lookup_route_rule_locked(list, route_rule_id); in necp_remove_route_rule()
6519 if (existing_rule != NULL) { in necp_remove_route_rule()
6520 if (os_ref_release_locked(&existing_rule->refcount) == 0) { in necp_remove_route_rule()
6521 necp_remove_aggregate_route_rule_for_id(existing_rule->id); in necp_remove_route_rule()
6522 necp_remove_agent_uuid_id_mapping_with_agent_id(existing_rule->netagent_id); in necp_remove_route_rule()
6523 necp_remove_agent_uuid_id_mapping_with_agent_id(existing_rule->match_netagent_id); in necp_remove_route_rule()
6524 LIST_REMOVE(existing_rule, chain); in necp_remove_route_rule()
6525 kfree_type(struct necp_route_rule, existing_rule); in necp_remove_route_rule()
6558 struct necp_aggregate_route_rule *existing_rule = NULL; in necp_create_aggregate_route_rule() local
6563 LIST_FOREACH(existing_rule, &necp_aggregate_route_rules, chain) { in necp_create_aggregate_route_rule()
6564 …if (memcmp(existing_rule->rule_ids, rule_ids, (sizeof(u_int32_t) * MAX_AGGREGATE_ROUTE_RULES)) == … in necp_create_aggregate_route_rule()
6566 return existing_rule->id; in necp_create_aggregate_route_rule()