Lines Matching refs:targ_spec
4996 struct bpf_core_spec *targ_spec)
5003 memset(targ_spec, 0, sizeof(*targ_spec));
5004 targ_spec->btf = targ_btf;
5005 targ_spec->root_type_id = targ_id;
5006 targ_spec->relo_kind = local_spec->relo_kind;
5015 targ_acc = &targ_spec->spec[0];
5023 targ_type = skip_mods_and_typedefs(targ_spec->btf, targ_id, &targ_id);
5030 targ_name = btf__name_by_offset(targ_spec->btf, e->name_off);
5038 targ_spec->len++;
5039 targ_spec->raw_spec[targ_spec->raw_len] = targ_acc->idx;
5040 targ_spec->raw_len++;
5051 targ_type = skip_mods_and_typedefs(targ_spec->btf, targ_id,
5060 targ_spec, &targ_id);
5085 if (targ_spec->raw_len == BPF_CORE_SPEC_MAX_LEN)
5091 targ_spec->len++;
5092 targ_spec->raw_spec[targ_spec->raw_len] = targ_acc->idx;
5093 targ_spec->raw_len++;
5098 targ_spec->bit_offset += local_acc->idx * sz * 8;
5325 const struct bpf_core_spec *targ_spec,
5342 err = err ?: bpf_core_calc_field_relo(prog, relo, targ_spec,
5356 new_t = btf__type_by_id(targ_spec->btf, res->new_type_id);
5386 err = err ?: bpf_core_calc_type_relo(relo, targ_spec, &res->new_val);
5389 err = err ?: bpf_core_calc_enumval_relo(relo, targ_spec, &res->new_val);
5732 struct bpf_core_spec local_spec, cand_spec, targ_spec = {};
5825 targ_spec = cand_spec;
5826 } else if (cand_spec.bit_offset != targ_spec.bit_offset) {
5832 targ_spec.bit_offset);
5882 /* bpf_core_patch_insn() should know how to handle missing targ_spec */