Home
last modified time | relevance | path

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

/linux-6.15/net/batman-adv/
H A Drouting.c531 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()
H A Ddistributed-arp-table.c682 struct batadv_dat_candidate *cand; in batadv_dat_forward_data() local
684 cand = batadv_dat_select_candidates(bat_priv, ip, vid); in batadv_dat_forward_data()
685 if (!cand) in batadv_dat_forward_data()
691 if (cand[i].type == BATADV_DAT_CANDIDATE_NOT_FOUND) in batadv_dat_forward_data()
694 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data()
701 cand[i].orig_node, in batadv_dat_forward_data()
727 batadv_orig_node_put(cand[i].orig_node); in batadv_dat_forward_data()
730 kfree(cand); in batadv_dat_forward_data()
/linux-6.15/tools/perf/util/
H A Dbuild-id.c471 struct str_node *nd, *cand = NULL; in build_id_cache__complement() local
486 if (cand) { /* Error: There are more than 2 candidates. */ in build_id_cache__complement()
487 cand = NULL; in build_id_cache__complement()
490 cand = nd; in build_id_cache__complement()
492 if (cand) in build_id_cache__complement()
493 sbuild_id = strdup(cand->s); in build_id_cache__complement()
/linux-6.15/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-6.15/mm/
H A Dmemblock.c222 phys_addr_t this_start, this_end, cand; in __memblock_find_range_bottom_up() local
229 cand = round_up(this_start, align); in __memblock_find_range_bottom_up()
230 if (cand < this_end && this_end - cand >= size) in __memblock_find_range_bottom_up()
231 return cand; in __memblock_find_range_bottom_up()
257 phys_addr_t this_start, this_end, cand; in __memblock_find_range_top_down() local
268 cand = round_down(this_end - size, align); in __memblock_find_range_top_down()
269 if (cand >= this_start) in __memblock_find_range_top_down()
270 return cand; in __memblock_find_range_top_down()
/linux-6.15/tools/lib/bpf/
H A Dbtf.c4214 struct btf_type *cand; in btf_dedup_prim_type() local
4241 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
4242 if (btf_equal_int_tag(t, cand)) { in btf_dedup_prim_type()
4255 if (btf_equal_enum(t, cand)) { in btf_dedup_prim_type()
4259 if (btf_compat_enum(t, cand)) { in btf_dedup_prim_type()
4277 if (btf_equal_common(t, cand)) { in btf_dedup_prim_type()
4855 struct btf_type *t, *cand; in btf_dedup_ref_type() local
4885 if (btf_equal_common(t, cand)) { in btf_dedup_ref_type()
4902 if (btf_equal_int_tag(t, cand)) { in btf_dedup_ref_type()
4926 if (btf_equal_array(t, cand)) { in btf_dedup_ref_type()
[all …]
H A Dlibbpf.c5595 struct bpf_core_cand *new_cands, *cand; in bpf_core_add_cands() local
5630 cand = &new_cands[cands->len]; in bpf_core_add_cands()
5631 cand->btf = targ_btf; in bpf_core_add_cands()
5632 cand->id = i; in bpf_core_add_cands()
/linux-6.15/net/xfrm/
H A Dxfrm_policy.c1663 struct xfrm_pol_inexact_candidates cand; in xfrm_policy_bysel_ctx() local
1681 for (i = 0; i < ARRAY_SIZE(cand.res); i++) { in xfrm_policy_bysel_ctx()
1684 tmp = __xfrm_policy_bysel_ctx(cand.res[i], mark, in xfrm_policy_bysel_ctx()
2040 memset(cand, 0, sizeof(*cand)); in xfrm_policy_find_inexact_candidates()
2041 cand->res[XFRM_POL_CAND_ANY] = &b->hhead; in xfrm_policy_find_inexact_candidates()
2046 cand->res[XFRM_POL_CAND_DADDR] = &n->hhead; in xfrm_policy_find_inexact_candidates()
2050 cand->res[XFRM_POL_CAND_BOTH] = &n->hhead; in xfrm_policy_find_inexact_candidates()
2056 cand->res[XFRM_POL_CAND_SADDR] = &n->hhead; in xfrm_policy_find_inexact_candidates()
2141 for (i = 0; i < ARRAY_SIZE(cand->res); i++) { in xfrm_policy_eval_candidates()
2142 tmp = __xfrm_policy_eval_candidates(cand->res[i], in xfrm_policy_eval_candidates()
[all …]
/linux-6.15/net/ipv6/
H A Dip6_tunnel.c120 struct ip6_tnl *t, *cand = NULL; in ip6_tnl_lookup() local
133 cand = t; in ip6_tnl_lookup()
146 else if (!cand) in ip6_tnl_lookup()
147 cand = t; in ip6_tnl_lookup()
159 else if (!cand) in ip6_tnl_lookup()
160 cand = t; in ip6_tnl_lookup()
163 if (cand) in ip6_tnl_lookup()
164 return cand; in ip6_tnl_lookup()
H A Dip6_gre.c124 struct ip6_tnl *t, *cand = NULL; in ip6gre_tunnel_lookup() local
153 cand = t; in ip6gre_tunnel_lookup()
177 cand = t; in ip6gre_tunnel_lookup()
203 cand = t; in ip6gre_tunnel_lookup()
226 cand = t; in ip6gre_tunnel_lookup()
231 if (cand) in ip6gre_tunnel_lookup()
232 return cand; in ip6gre_tunnel_lookup()