/openbmc/linux/net/batman-adv/ |
H A 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()
|
H A 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()
|
/openbmc/linux/net/ipv4/ |
H A D | ip_tunnel.c | 89 struct ip_tunnel *t, *cand = NULL; in ip_tunnel_lookup() local 108 cand = t; in ip_tunnel_lookup() 122 if (!cand) in ip_tunnel_lookup() 123 cand = t; in ip_tunnel_lookup() 142 if (!cand) in ip_tunnel_lookup() 143 cand = t; in ip_tunnel_lookup() 155 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()
|
/openbmc/qemu/hw/timer/ |
H A D | cadence_ttc.c | 139 int64_t cand = (uint64_t)s->reg_match[i] << 16; in cadence_timer_run() local 140 if (is_between(cand, (uint64_t)s->reg_value, next_value)) { in cadence_timer_run() 141 next_value = cand; in cadence_timer_run()
|
/openbmc/qemu/hw/core/ |
H A D | loader.c | 1445 RomSec *cand = g_new(RomSec, 1); in add_romsec_to_list() local 1446 cand->base = base; in add_romsec_to_list() 1447 cand->se = se; in add_romsec_to_list() 1448 return g_list_prepend(secs, cand); in add_romsec_to_list() 1454 RomSec *cand; in rom_find_largest_gap_between() local 1488 cand = (RomSec *) it->data; in rom_find_largest_gap_between() 1489 if (count == 0 && count + cand->se == 1) { in rom_find_largest_gap_between() 1490 size_t gap = cand->base - gapstart; in rom_find_largest_gap_between() 1495 } else if (count == 1 && count + cand->se == 0) { in rom_find_largest_gap_between() 1496 gapstart = cand->base; in rom_find_largest_gap_between() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | build-id.c | 531 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()
|
/openbmc/linux/mm/ |
H A D | memblock.c | 224 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()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | btf.c | 3746 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 = btf_type_by_id(d->btf, cand_id); in btf_dedup_ref_type() [all …]
|
H A D | libbpf.c | 5462 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()
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_policy.c | 187 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand, 1682 struct xfrm_pol_inexact_candidates cand; in xfrm_policy_bysel_ctx() local 1692 if (!xfrm_policy_find_inexact_candidates(&cand, bin, in xfrm_policy_bysel_ctx() 1700 for (i = 0; i < ARRAY_SIZE(cand.res); i++) { in xfrm_policy_bysel_ctx() 1703 tmp = __xfrm_policy_bysel_ctx(cand.res[i], mark, in xfrm_policy_bysel_ctx() 2047 xfrm_policy_find_inexact_candidates(struct xfrm_pol_inexact_candidates *cand, in xfrm_policy_find_inexact_candidates() argument 2059 memset(cand, 0, sizeof(*cand)); in xfrm_policy_find_inexact_candidates() 2060 cand->res[XFRM_POL_CAND_ANY] = &b->hhead; in xfrm_policy_find_inexact_candidates() 2065 cand->res[XFRM_POL_CAND_DADDR] = &n->hhead; in xfrm_policy_find_inexact_candidates() 2069 cand->res[XFRM_POL_CAND_BOTH] = &n->hhead; in xfrm_policy_find_inexact_candidates() [all …]
|
/openbmc/linux/net/ipv6/ |
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/net/wireless/legacy/ |
H A D | rndis_wlan.c | 2990 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() 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()
|