Searched refs:cand (Results 1 – 6 of 6) sorted by relevance
/net/batman-adv/ |
D | routing.c | 531 struct batadv_orig_ifinfo *cand, *first_candidate = NULL; in batadv_find_router() local 563 hlist_for_each_entry_rcu(cand, &orig_node->ifinfo_list, list) { in batadv_find_router() 565 if (!kref_get_unless_zero(&cand->refcount)) in batadv_find_router() 568 cand_router = rcu_dereference(cand->router); in batadv_find_router() 581 cand->if_outgoing, router, in batadv_find_router() 592 kref_get(&cand->refcount); in batadv_find_router() 593 first_candidate = cand; in batadv_find_router() 602 next_candidate = cand; in batadv_find_router() 607 if (last_candidate == cand) in batadv_find_router() 615 batadv_orig_ifinfo_put(cand); in batadv_find_router()
|
D | distributed-arp-table.c | 683 struct batadv_dat_candidate *cand; in batadv_dat_forward_data() local 685 cand = batadv_dat_select_candidates(bat_priv, ip, vid); in batadv_dat_forward_data() 686 if (!cand) in batadv_dat_forward_data() 692 if (cand[i].type == BATADV_DAT_CANDIDATE_NOT_FOUND) in batadv_dat_forward_data() 695 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data() 702 cand[i].orig_node, in batadv_dat_forward_data() 728 batadv_orig_node_put(cand[i].orig_node); in batadv_dat_forward_data() 732 kfree(cand); in batadv_dat_forward_data()
|
/net/ipv4/ |
D | ip_tunnel.c | 88 struct ip_tunnel *t, *cand = NULL; in ip_tunnel_lookup() local 108 cand = t; in ip_tunnel_lookup() 122 else if (!cand) in ip_tunnel_lookup() 123 cand = t; in ip_tunnel_lookup() 142 else if (!cand) in ip_tunnel_lookup() 143 cand = t; in ip_tunnel_lookup() 155 else if (!cand) in ip_tunnel_lookup() 156 cand = t; in ip_tunnel_lookup() 159 if (cand) in ip_tunnel_lookup() 160 return cand; in ip_tunnel_lookup()
|
/net/xfrm/ |
D | xfrm_policy.c | 187 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand, 1661 struct xfrm_pol_inexact_candidates cand; in xfrm_policy_bysel_ctx() local 1671 if (!xfrm_policy_find_inexact_candidates(&cand, bin, in xfrm_policy_bysel_ctx() 1679 for (i = 0; i < ARRAY_SIZE(cand.res); i++) { in xfrm_policy_bysel_ctx() 1682 tmp = __xfrm_policy_bysel_ctx(cand.res[i], mark, in xfrm_policy_bysel_ctx() 2026 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand, in xfrm_policy_find_inexact_candidates() argument 2038 memset(cand, 0, sizeof(*cand)); in xfrm_policy_find_inexact_candidates() 2039 cand->res[XFRM_POL_CAND_ANY] = &b->hhead; in xfrm_policy_find_inexact_candidates() 2044 cand->res[XFRM_POL_CAND_DADDR] = &n->hhead; in xfrm_policy_find_inexact_candidates() 2048 cand->res[XFRM_POL_CAND_BOTH] = &n->hhead; in xfrm_policy_find_inexact_candidates() [all …]
|
/net/ipv6/ |
D | ip6_tunnel.c | 118 struct ip6_tnl *t, *cand = NULL; in ip6_tnl_lookup() local 131 cand = t; in ip6_tnl_lookup() 144 else if (!cand) in ip6_tnl_lookup() 145 cand = t; in ip6_tnl_lookup() 157 else if (!cand) in ip6_tnl_lookup() 158 cand = t; in ip6_tnl_lookup() 161 if (cand) in ip6_tnl_lookup() 162 return cand; in ip6_tnl_lookup()
|
D | ip6_gre.c | 123 struct ip6_tnl *t, *cand = NULL; in ip6gre_tunnel_lookup() local 152 cand = t; in ip6gre_tunnel_lookup() 176 cand = t; in ip6gre_tunnel_lookup() 202 cand = t; in ip6gre_tunnel_lookup() 225 cand = t; in ip6gre_tunnel_lookup() 230 if (cand) in ip6gre_tunnel_lookup() 231 return cand; in ip6gre_tunnel_lookup()
|