Searched refs:cands (Results 1 – 5 of 5) sorted by relevance
7702 } cands[]; member7745 if (btf_is_module(cc->cands[0].btf)) { in btf_get_ptr_to_btf_id()7751 kern_type_id = cc->cands[0].id; in btf_get_ptr_to_btf_id()9149 static void bpf_free_cands(struct bpf_cand_cache *cands) in bpf_free_cands() argument9151 if (!cands->cnt) in bpf_free_cands()9154 kfree(cands); in bpf_free_cands()9157 static void bpf_free_cands_from_cache(struct bpf_cand_cache *cands) in bpf_free_cands_from_cache() argument9159 kfree(cands->name); in bpf_free_cands_from_cache()9160 kfree(cands); in bpf_free_cands_from_cache()9182 bpf_log(log, "%d", cc->cands[j].id); in __print_cand_cache()[all …]
16 struct bpf_core_cand *cands; member85 struct bpf_core_cand_list *cands,
5690 void bpf_core_free_cands(struct bpf_core_cand_list *cands) in bpf_core_free_cands() argument5692 if (!cands) in bpf_core_free_cands()5695 free(cands->cands); in bpf_core_free_cands()5696 free(cands); in bpf_core_free_cands()5704 struct bpf_core_cand_list *cands) in bpf_core_add_cands() argument5736 new_cands = libbpf_reallocarray(cands->cands, cands->len + 1, in bpf_core_add_cands()5737 sizeof(*cands->cands)); in bpf_core_add_cands()5741 cand = &new_cands[cands->len]; in bpf_core_add_cands()5745 cands->cands = new_cands; in bpf_core_add_cands()5746 cands->len++; in bpf_core_add_cands()[all …]
713 struct bpf_core_cand_list *cands);714 void bpf_core_free_cands(struct bpf_core_cand_list *cands);
559 struct batadv_dat_candidate *cands, in batadv_choose_next_candidate() argument573 cands[select].type = BATADV_DAT_CANDIDATE_NOT_FOUND; in batadv_choose_next_candidate()587 if (!batadv_is_orig_node_eligible(cands, select, in batadv_choose_next_candidate()603 cands[select].type = BATADV_DAT_CANDIDATE_ORIG; in batadv_choose_next_candidate()604 cands[select].orig_node = max_orig_node; in batadv_choose_next_candidate()