Home
last modified time | relevance | path

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

/Linux-v5.15/net/batman-adv/
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()
Ddistributed-arp-table.c684 struct batadv_dat_candidate *cand; in batadv_dat_forward_data() local
686 cand = batadv_dat_select_candidates(bat_priv, ip, vid); in batadv_dat_forward_data()
687 if (!cand) in batadv_dat_forward_data()
693 if (cand[i].type == BATADV_DAT_CANDIDATE_NOT_FOUND) in batadv_dat_forward_data()
696 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data()
703 cand[i].orig_node, in batadv_dat_forward_data()
729 batadv_orig_node_put(cand[i].orig_node); in batadv_dat_forward_data()
733 kfree(cand); in batadv_dat_forward_data()
/Linux-v5.15/net/ipv4/
Dip_tunnel.c88 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()
/Linux-v5.15/tools/perf/util/
Dbuild-id.c535 struct str_node *nd, *cand = NULL; in build_id_cache__complement() local
550 if (cand) { /* Error: There are more than 2 candidates. */ in build_id_cache__complement()
551 cand = NULL; in build_id_cache__complement()
554 cand = nd; in build_id_cache__complement()
556 if (cand) in build_id_cache__complement()
557 sbuild_id = strdup(cand->s); in build_id_cache__complement()
/Linux-v5.15/mm/
Dmemblock.c214 phys_addr_t this_start, this_end, cand; in __memblock_find_range_bottom_up() local
221 cand = round_up(this_start, align); in __memblock_find_range_bottom_up()
222 if (cand < this_end && this_end - cand >= size) in __memblock_find_range_bottom_up()
223 return cand; in __memblock_find_range_bottom_up()
249 phys_addr_t this_start, this_end, cand; in __memblock_find_range_top_down() local
260 cand = round_down(this_end - size, align); in __memblock_find_range_top_down()
261 if (cand >= this_start) in __memblock_find_range_top_down()
262 return cand; in __memblock_find_range_top_down()
/Linux-v5.15/tools/lib/bpf/
Dbtf.c3574 struct btf_type *cand; in btf_dedup_prim_type() local
3599 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3600 if (btf_equal_int(t, cand)) { in btf_dedup_prim_type()
3611 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3612 if (btf_equal_enum(t, cand)) { in btf_dedup_prim_type()
3618 if (btf_compat_enum(t, cand)) { in btf_dedup_prim_type()
3635 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3636 if (btf_equal_common(t, cand)) { in btf_dedup_prim_type()
4177 struct btf_type *t, *cand; in btf_dedup_ref_type() local
4205 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_ref_type()
[all …]
Dlibbpf.c4809 struct bpf_core_cand *new_cands, *cand; in bpf_core_add_cands() local
4841 cand = &new_cands[cands->len]; in bpf_core_add_cands()
4842 cand->btf = targ_btf; in bpf_core_add_cands()
4843 cand->t = t; in bpf_core_add_cands()
4844 cand->name = targ_name; in bpf_core_add_cands()
4845 cand->id = i; in bpf_core_add_cands()
/Linux-v5.15/net/xfrm/
Dxfrm_policy.c185 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand,
1652 struct xfrm_pol_inexact_candidates cand; in xfrm_policy_bysel_ctx() local
1662 if (!xfrm_policy_find_inexact_candidates(&cand, bin, in xfrm_policy_bysel_ctx()
1670 for (i = 0; i < ARRAY_SIZE(cand.res); i++) { in xfrm_policy_bysel_ctx()
1673 tmp = __xfrm_policy_bysel_ctx(cand.res[i], mark, in xfrm_policy_bysel_ctx()
1946 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand, in xfrm_policy_find_inexact_candidates() argument
1958 memset(cand, 0, sizeof(*cand)); in xfrm_policy_find_inexact_candidates()
1959 cand->res[XFRM_POL_CAND_ANY] = &b->hhead; in xfrm_policy_find_inexact_candidates()
1964 cand->res[XFRM_POL_CAND_DADDR] = &n->hhead; in xfrm_policy_find_inexact_candidates()
1968 cand->res[XFRM_POL_CAND_BOTH] = &n->hhead; in xfrm_policy_find_inexact_candidates()
[all …]
/Linux-v5.15/net/ipv6/
Dip6_tunnel.c118 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()
Dip6_gre.c123 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()
/Linux-v5.15/drivers/net/wireless/
Drndis_wlan.c2991 struct ndis_80211_pmkid_candidate *cand = in rndis_wlan_pmkid_cand_list_indication() local
2993 bool preauth = !!(cand->flags & NDIS_80211_PMKID_CAND_PREAUTH); in rndis_wlan_pmkid_cand_list_indication()
2996 i, le32_to_cpu(cand->flags), preauth, cand->bssid); in rndis_wlan_pmkid_cand_list_indication()
2998 cfg80211_pmksa_candidate_notify(usbdev->net, i, cand->bssid, in rndis_wlan_pmkid_cand_list_indication()