Lines Matching refs:targ_spec
4934 struct bpf_core_spec *targ_spec) in bpf_core_spec_match() argument
4941 memset(targ_spec, 0, sizeof(*targ_spec)); in bpf_core_spec_match()
4942 targ_spec->btf = targ_btf; in bpf_core_spec_match()
4943 targ_spec->root_type_id = targ_id; in bpf_core_spec_match()
4944 targ_spec->relo_kind = local_spec->relo_kind; in bpf_core_spec_match()
4953 targ_acc = &targ_spec->spec[0]; in bpf_core_spec_match()
4961 targ_type = skip_mods_and_typedefs(targ_spec->btf, targ_id, &targ_id); in bpf_core_spec_match()
4968 targ_name = btf__name_by_offset(targ_spec->btf, e->name_off); in bpf_core_spec_match()
4976 targ_spec->len++; in bpf_core_spec_match()
4977 targ_spec->raw_spec[targ_spec->raw_len] = targ_acc->idx; in bpf_core_spec_match()
4978 targ_spec->raw_len++; in bpf_core_spec_match()
4989 targ_type = skip_mods_and_typedefs(targ_spec->btf, targ_id, in bpf_core_spec_match()
4998 targ_spec, &targ_id); in bpf_core_spec_match()
5023 if (targ_spec->raw_len == BPF_CORE_SPEC_MAX_LEN) in bpf_core_spec_match()
5029 targ_spec->len++; in bpf_core_spec_match()
5030 targ_spec->raw_spec[targ_spec->raw_len] = targ_acc->idx; in bpf_core_spec_match()
5031 targ_spec->raw_len++; in bpf_core_spec_match()
5036 targ_spec->bit_offset += local_acc->idx * sz * 8; in bpf_core_spec_match()
5263 const struct bpf_core_spec *targ_spec, in bpf_core_calc_relo() argument
5280 err = err ?: bpf_core_calc_field_relo(prog, relo, targ_spec, in bpf_core_calc_relo()
5294 new_t = btf__type_by_id(targ_spec->btf, res->new_type_id); in bpf_core_calc_relo()
5324 err = err ?: bpf_core_calc_type_relo(relo, targ_spec, &res->new_val); in bpf_core_calc_relo()
5327 err = err ?: bpf_core_calc_enumval_relo(relo, targ_spec, &res->new_val); in bpf_core_calc_relo()
5670 struct bpf_core_spec local_spec, cand_spec, targ_spec = {}; in bpf_core_apply_relo() local
5763 targ_spec = cand_spec; in bpf_core_apply_relo()
5764 } else if (cand_spec.bit_offset != targ_spec.bit_offset) { in bpf_core_apply_relo()
5770 targ_spec.bit_offset); in bpf_core_apply_relo()