Home
last modified time | relevance | path

Searched refs:cand (Results 1 – 9 of 9) sorted by relevance

/linux/net/batman-adv/
H A Drouting.c606 struct batadv_orig_ifinfo *cand; in batadv_find_router() local
635 hlist_for_each_entry_rcu(cand, &orig_node->ifinfo_list, list) { in batadv_find_router()
637 if (!kref_get_unless_zero(&cand->refcount)) in batadv_find_router()
640 cand_router = rcu_dereference(cand->router); in batadv_find_router()
653 cand->if_outgoing, router, in batadv_find_router()
664 kref_get(&cand->refcount); in batadv_find_router()
665 first_candidate = cand; in batadv_find_router()
674 next_candidate = cand; in batadv_find_router()
679 if (last_candidate == cand) in batadv_find_router()
687 batadv_orig_ifinfo_put(cand); in batadv_find_router()
H A Ddistributed-arp-table.c755 struct batadv_dat_candidate *cand; in batadv_dat_forward_data() local
761 cand = batadv_dat_select_candidates(bat_priv, ip, vid); in batadv_dat_forward_data()
762 if (!cand) in batadv_dat_forward_data()
768 if (cand[i].type == BATADV_DAT_CANDIDATE_NOT_FOUND) in batadv_dat_forward_data()
771 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data()
781 cand[i].orig_node, in batadv_dat_forward_data()
807 batadv_orig_node_put(cand[i].orig_node); in batadv_dat_forward_data()
810 kfree(cand); in batadv_dat_forward_data()
/linux/tools/perf/util/
H A Dbuild-id.c489 struct str_node *nd, *cand = NULL; in build_id_cache__complement()
504 if (cand) { /* Error: There are more than 2 candidates. */ in build_id_cache__complement()
505 cand = NULL; in build_id_cache__complement()
508 cand = nd; in build_id_cache__complement()
510 if (cand) in build_id_cache__complement()
511 sbuild_id = strdup(cand->s); in build_id_cache__complement()
486 struct str_node *nd, *cand = NULL; build_id_cache__complement() local
/linux/net/ipv4/
H A Dip_tunnel.c86 struct ip_tunnel *t, *cand = NULL; in ip_tunnel_lookup() local
105 cand = t; in ip_tunnel_lookup()
119 if (!cand) in ip_tunnel_lookup()
120 cand = t; in ip_tunnel_lookup()
139 if (!cand) in ip_tunnel_lookup()
140 cand = t; in ip_tunnel_lookup()
153 if (!cand) in ip_tunnel_lookup()
154 cand = t; in ip_tunnel_lookup()
157 if (cand) in ip_tunnel_lookup()
158 return cand; in ip_tunnel_lookup()
/linux/net/ipv6/
H A Dip6_gre.c148 struct ip6_tnl *t, *cand = NULL; in ip6gre_tunnel_lookup() local
164 if (ip6gre_tunnel_match(t, dev_type, link, &cand_score, &cand)) in ip6gre_tunnel_lookup()
165 return cand; in ip6gre_tunnel_lookup()
174 if (ip6gre_tunnel_match(t, dev_type, link, &cand_score, &cand)) in ip6gre_tunnel_lookup()
175 return cand; in ip6gre_tunnel_lookup()
186 if (ip6gre_tunnel_match(t, dev_type, link, &cand_score, &cand)) in ip6gre_tunnel_lookup()
187 return cand; in ip6gre_tunnel_lookup()
195 if (ip6gre_tunnel_match(t, dev_type, link, &cand_score, &cand)) in ip6gre_tunnel_lookup()
196 return cand; in ip6gre_tunnel_lookup()
199 if (cand) in ip6gre_tunnel_lookup()
[all …]
H A Dip6_tunnel.c119 struct ip6_tnl *t, *cand = NULL; in ip6_tnl_lookup() local
132 cand = t; in ip6_tnl_lookup()
145 else if (!cand) in ip6_tnl_lookup()
146 cand = t; in ip6_tnl_lookup()
158 else if (!cand) in ip6_tnl_lookup()
159 cand = t; in ip6_tnl_lookup()
162 if (cand) in ip6_tnl_lookup()
163 return cand; in ip6_tnl_lookup()
/linux/net/xfrm/
H A Dxfrm_policy.c206 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand,
1657 struct xfrm_pol_inexact_candidates cand; in xfrm_policy_bysel_ctx() local
1667 if (!xfrm_policy_find_inexact_candidates(&cand, bin, in xfrm_policy_bysel_ctx()
1675 for (i = 0; i < ARRAY_SIZE(cand.res); i++) { in xfrm_policy_bysel_ctx()
1678 tmp = __xfrm_policy_bysel_ctx(cand.res[i], mark, in xfrm_policy_bysel_ctx()
2022 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand, in xfrm_policy_find_inexact_candidates() argument
2034 memset(cand, 0, sizeof(*cand)); in xfrm_policy_find_inexact_candidates()
2035 cand->res[XFRM_POL_CAND_ANY] = &b->hhead; in xfrm_policy_find_inexact_candidates()
2040 cand->res[XFRM_POL_CAND_DADDR] = &n->hhead; in xfrm_policy_find_inexact_candidates()
2044 cand->res[XFRM_POL_CAND_BOTH] = &n->hhead; in xfrm_policy_find_inexact_candidates()
[all …]
/linux/tools/lib/bpf/
H A Dbtf.c4642 struct btf_type *cand; in btf_dedup_prim_type() local
4669 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
4670 if (btf_equal_int_tag(t, cand)) { in btf_dedup_prim_type()
4682 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
4683 if (btf_equal_enum(t, cand)) { in btf_dedup_prim_type()
4687 if (btf_compat_enum(t, cand)) { in btf_dedup_prim_type()
4704 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
4705 if (btf_equal_common(t, cand)) { in btf_dedup_prim_type()
5378 struct btf_type *t, *cand; in btf_dedup_ref_type() local
5406 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_ref_type()
[all …]
H A Dlibbpf.c5809 struct bpf_core_cand *new_cands, *cand; in bpf_core_add_cands() local
5844 cand = &new_cands[cands->len]; in bpf_core_add_cands()
5845 cand->btf = targ_btf; in bpf_core_add_cands()
5846 cand->id = i; in bpf_core_add_cands()