Home
last modified time | relevance | path

Searched refs:cand (Results 1 - 21 of 21) sorted by relevance

/kernel/linux/linux-5.10/net/batman-adv/
H A Drouting.c549 struct batadv_orig_ifinfo *cand, *first_candidate = NULL; in batadv_find_router() local
581 hlist_for_each_entry_rcu(cand, &orig_node->ifinfo_list, list) { in batadv_find_router()
583 if (!kref_get_unless_zero(&cand->refcount)) in batadv_find_router()
586 cand_router = rcu_dereference(cand->router); in batadv_find_router()
599 cand->if_outgoing, router, in batadv_find_router()
610 kref_get(&cand->refcount); in batadv_find_router()
611 first_candidate = cand; in batadv_find_router()
620 next_candidate = cand; in batadv_find_router()
625 if (last_candidate == cand) in batadv_find_router()
633 batadv_orig_ifinfo_put(cand); in batadv_find_router()
[all...]
H A Ddistributed-arp-table.c686 struct batadv_dat_candidate *cand; in batadv_dat_forward_data() local
688 cand = batadv_dat_select_candidates(bat_priv, ip, vid); in batadv_dat_forward_data()
689 if (!cand) in batadv_dat_forward_data()
695 if (cand[i].type == BATADV_DAT_CANDIDATE_NOT_FOUND) in batadv_dat_forward_data()
698 neigh_node = batadv_orig_router_get(cand[i].orig_node, in batadv_dat_forward_data()
705 cand[i].orig_node, in batadv_dat_forward_data()
731 batadv_orig_node_put(cand[i].orig_node); in batadv_dat_forward_data()
735 kfree(cand); in batadv_dat_forward_data()
/kernel/linux/linux-6.6/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()
[all...]
H A Ddistributed-arp-table.c683 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()
/kernel/linux/linux-5.10/mm/
H A 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()
/kernel/linux/linux-5.10/tools/perf/util/
H A Dbuild-id.c526 struct str_node *nd, *cand = NULL; in build_id_cache__complement() local
541 if (cand) { /* Error: There are more than 2 candidates. */ in build_id_cache__complement()
542 cand = NULL; in build_id_cache__complement()
545 cand = nd; in build_id_cache__complement()
547 if (cand) in build_id_cache__complement()
548 sbuild_id = strdup(cand->s); in build_id_cache__complement()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dbuild-id.c531 struct str_node *nd, *cand = NULL; in build_id_cache__complement() local
546 if (cand) { /* Error: There are more than 2 candidates. */ in build_id_cache__complement()
547 cand = NULL; in build_id_cache__complement()
550 cand = nd; in build_id_cache__complement()
552 if (cand) in build_id_cache__complement()
553 sbuild_id = strdup(cand->s); in build_id_cache__complement()
/kernel/linux/linux-5.10/net/ipv4/
H A 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()
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A 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()
[all...]
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbtf.c3746 struct btf_type *cand; in btf_dedup_prim_type() local
3773 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3774 if (btf_equal_int_tag(t, cand)) { in btf_dedup_prim_type()
3786 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3787 if (btf_equal_enum(t, cand)) { in btf_dedup_prim_type()
3791 if (btf_compat_enum(t, cand)) { in btf_dedup_prim_type()
3808 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3809 if (btf_equal_common(t, cand)) { in btf_dedup_prim_type()
4387 struct btf_type *t, *cand; in btf_dedup_ref_type() local
4416 cand in btf_dedup_ref_type()
[all...]
H A Dlibbpf.c5462 struct bpf_core_cand *new_cands, *cand; in bpf_core_add_cands() local
5497 cand = &new_cands[cands->len]; in bpf_core_add_cands()
5498 cand->btf = targ_btf; in bpf_core_add_cands()
5499 cand->id = i; in bpf_core_add_cands()
/kernel/linux/linux-6.6/mm/
H A Dmemblock.c224 phys_addr_t this_start, this_end, cand; in __memblock_find_range_bottom_up() local
231 cand = round_up(this_start, align); in __memblock_find_range_bottom_up()
232 if (cand < this_end && this_end - cand >= size) in __memblock_find_range_bottom_up()
233 return cand; in __memblock_find_range_bottom_up()
259 phys_addr_t this_start, this_end, cand; in __memblock_find_range_top_down() local
270 cand = round_down(this_end - size, align); in __memblock_find_range_top_down()
271 if (cand >= this_start) in __memblock_find_range_top_down()
272 return cand; in __memblock_find_range_top_down()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbtf.c3573 struct btf_type *cand; in btf_dedup_prim_type() local
3598 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3599 if (btf_equal_int(t, cand)) { in btf_dedup_prim_type()
3610 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3611 if (btf_equal_enum(t, cand)) { in btf_dedup_prim_type()
3617 if (btf_compat_enum(t, cand)) { in btf_dedup_prim_type()
3633 cand = btf_type_by_id(d->btf, cand_id); in btf_dedup_prim_type()
3634 if (btf_equal_common(t, cand)) { in btf_dedup_prim_type()
4130 struct btf_type *t, *cand; in btf_dedup_ref_type() local
4158 cand in btf_dedup_ref_type()
[all...]
/kernel/linux/linux-5.10/net/xfrm/
H A Dxfrm_policy.c187 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()
1947 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand, in xfrm_policy_find_inexact_candidates() argument
1959 memset(cand, 0, sizeof(*cand)); in xfrm_policy_find_inexact_candidates()
1960 cand->res[XFRM_POL_CAND_ANY] = &b->hhead; in xfrm_policy_find_inexact_candidates()
1965 cand in xfrm_policy_find_inexact_candidates()
2052 xfrm_policy_eval_candidates(struct xfrm_pol_inexact_candidates *cand, struct xfrm_policy *prefer, const struct flowi *fl, u8 type, u16 family, int dir, u32 if_id) xfrm_policy_eval_candidates() argument
2081 struct xfrm_pol_inexact_candidates cand; xfrm_policy_lookup_bytype() local
[all...]
/kernel/linux/linux-6.6/net/xfrm/
H A Dxfrm_policy.c187 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand,
1659 struct xfrm_pol_inexact_candidates cand; in xfrm_policy_bysel_ctx() local
1669 if (!xfrm_policy_find_inexact_candidates(&cand, bin, in xfrm_policy_bysel_ctx()
1677 for (i = 0; i < ARRAY_SIZE(cand.res); i++) { in xfrm_policy_bysel_ctx()
1680 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 in xfrm_policy_find_inexact_candidates()
2131 xfrm_policy_eval_candidates(struct xfrm_pol_inexact_candidates *cand, struct xfrm_policy *prefer, const struct flowi *fl, u8 type, u16 family, u32 if_id) xfrm_policy_eval_candidates() argument
2159 struct xfrm_pol_inexact_candidates cand; xfrm_policy_lookup_bytype() local
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Dip6_tunnel.c148 struct ip6_tnl *t, *cand = NULL; in ip6_tnl_lookup() local
161 cand = t; in ip6_tnl_lookup()
174 else if (!cand) in ip6_tnl_lookup()
175 cand = t; in ip6_tnl_lookup()
187 else if (!cand) in ip6_tnl_lookup()
188 cand = t; in ip6_tnl_lookup()
191 if (cand) in ip6_tnl_lookup()
192 return cand; in ip6_tnl_lookup()
H A 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()
/kernel/linux/linux-6.6/net/ipv6/
H A 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()
H A 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()
/kernel/linux/linux-5.10/drivers/net/wireless/
H A Drndis_wlan.c2987 struct ndis_80211_pmkid_candidate *cand = in rndis_wlan_pmkid_cand_list_indication() local
2989 bool preauth = !!(cand->flags & NDIS_80211_PMKID_CAND_PREAUTH); in rndis_wlan_pmkid_cand_list_indication()
2991 netdev_dbg(usbdev->net, "cand[%i]: flags: 0x%08x, preauth: %d, bssid: %pM\n", in rndis_wlan_pmkid_cand_list_indication()
2992 i, le32_to_cpu(cand->flags), preauth, cand->bssid); in rndis_wlan_pmkid_cand_list_indication()
2994 cfg80211_pmksa_candidate_notify(usbdev->net, i, cand->bssid, in rndis_wlan_pmkid_cand_list_indication()
/kernel/linux/linux-6.6/drivers/net/wireless/legacy/
H A Drndis_wlan.c2990 struct ndis_80211_pmkid_candidate *cand = in rndis_wlan_pmkid_cand_list_indication() local
2992 bool preauth = !!(cand->flags & NDIS_80211_PMKID_CAND_PREAUTH); in rndis_wlan_pmkid_cand_list_indication()
2994 netdev_dbg(usbdev->net, "cand[%i]: flags: 0x%08x, preauth: %d, bssid: %pM\n", in rndis_wlan_pmkid_cand_list_indication()
2995 i, le32_to_cpu(cand->flags), preauth, cand->bssid); in rndis_wlan_pmkid_cand_list_indication()
2997 cfg80211_pmksa_candidate_notify(usbdev->net, i, cand->bssid, in rndis_wlan_pmkid_cand_list_indication()

Completed in 72 milliseconds