Lines Matching defs:cc

7086 	struct bpf_cand_cache *cc;
7103 cc = bpf_core_find_cands(&ctx, type_id);
7104 if (IS_ERR(cc)) {
7105 err = PTR_ERR(cc);
7111 if (cc->cnt != 1) {
7114 cc->cnt == 0 ? "has no matches" : "is ambiguous");
7115 err = cc->cnt == 0 ? -ENOENT : -ESRCH;
7118 if (btf_is_module(cc->cands[0].btf)) {
7124 kern_type_id = cc->cands[0].id;
8453 struct bpf_cand_cache *cc;
8457 cc = cache[i];
8458 if (!cc)
8460 bpf_log(log, "[%d]%s(", i, cc->name);
8461 for (j = 0; j < cc->cnt; j++) {
8462 bpf_log(log, "%d", cc->cands[j].id);
8463 if (j < cc->cnt - 1)
8490 struct bpf_cand_cache *cc = cache[hash_cands(cands) % cache_size];
8492 if (cc && cc->name_len == cands->name_len &&
8493 !strncmp(cc->name, cands->name, cands->name_len))
8494 return cc;
8507 struct bpf_cand_cache **cc = &cache[hash_cands(cands) % cache_size], *new_cands;
8509 if (*cc) {
8510 bpf_free_cands_from_cache(*cc);
8511 *cc = NULL;
8527 *cc = new_cands;
8535 struct bpf_cand_cache *cc;
8539 cc = cache[i];
8540 if (!cc)
8547 bpf_free_cands_from_cache(cc);
8554 for (j = 0; j < cc->cnt; j++)
8555 if (cc->cands[j].btf == btf) {
8556 bpf_free_cands_from_cache(cc);
8624 struct bpf_cand_cache *cands, *cc, local_cand = {};
8653 cc = check_cand_cache(cands, vmlinux_cand_cache, VMLINUX_CAND_CACHE_SIZE);
8655 if (cc) {
8656 if (cc->cnt)
8657 return cc;
8669 cc = populate_cand_cache(cands, vmlinux_cand_cache, VMLINUX_CAND_CACHE_SIZE);
8670 if (IS_ERR(cc))
8671 return ERR_CAST(cc);
8674 if (cc->cnt)
8675 return cc;
8679 cc = check_cand_cache(cands, module_cand_cache, MODULE_CAND_CACHE_SIZE);
8680 if (cc)
8681 /* if cache has it return it even if cc->cnt == 0 */
8682 return cc;
8726 struct bpf_cand_cache *cc;
8730 cc = bpf_core_find_cands(ctx, relo->type_id);
8731 if (IS_ERR(cc)) {
8734 err = PTR_ERR(cc);
8737 if (cc->cnt) {
8738 cands.cands = kcalloc(cc->cnt, sizeof(*cands.cands), GFP_KERNEL);
8744 for (i = 0; i < cc->cnt; i++) {
8747 btf_kind_str[cc->kind], cc->name, cc->cands[i].id);
8748 cands.cands[i].btf = cc->cands[i].btf;
8749 cands.cands[i].id = cc->cands[i].id;
8751 cands.len = cc->cnt;