Lines Matching refs:acc
44 const struct bpf_core_accessor *acc, in is_flex_arr() argument
50 if (!acc->name || arr->nelems > 0) in is_flex_arr()
54 t = btf__type_by_id(btf, acc->type_id); in is_flex_arr()
55 return acc->idx == btf_vlen(t) - 1; in is_flex_arr()
160 struct bpf_core_accessor *acc; in bpf_core_parse_spec() local
201 acc = &spec->spec[0]; in bpf_core_parse_spec()
202 acc->type_id = id; in bpf_core_parse_spec()
203 acc->idx = access_idx; in bpf_core_parse_spec()
211 acc->name = btf__name_by_offset(btf, btf_enum(t)[access_idx].name_off); in bpf_core_parse_spec()
229 acc = &spec->spec[spec->len]; in bpf_core_parse_spec()
247 acc->type_id = id; in bpf_core_parse_spec()
248 acc->idx = access_idx; in bpf_core_parse_spec()
249 acc->name = name; in bpf_core_parse_spec()
262 flex = is_flex_arr(btf, acc - 1, a); in bpf_core_parse_spec()
564 const struct bpf_core_accessor *acc; in bpf_core_calc_field_relo() local
582 acc = &spec->spec[spec->len - 1]; in bpf_core_calc_field_relo()
583 t = btf__type_by_id(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
586 if (!acc->name) { in bpf_core_calc_field_relo()
590 sz = btf__resolve_size(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
594 *type_id = acc->type_id; in bpf_core_calc_field_relo()
596 sz = btf__resolve_size(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
610 m = btf_members(t) + acc->idx; in bpf_core_calc_field_relo()
613 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo()