Lines Matching full:acc
72 const struct bpf_core_accessor *acc, in is_flex_arr() argument
78 if (!acc->name || arr->nelems > 0) in is_flex_arr()
82 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr()
83 return acc->idx == btf_vlen(t) - 1; in is_flex_arr()
268 struct bpf_core_accessor *acc; in bpf_core_parse_spec() local
310 acc = &spec->spec[0]; in bpf_core_parse_spec()
311 acc->type_id = id; in bpf_core_parse_spec()
312 acc->idx = access_idx; in bpf_core_parse_spec()
322 acc->name = btf__name_by_offset(btf, name_off); in bpf_core_parse_spec()
340 acc = &spec->spec[spec->len]; in bpf_core_parse_spec()
358 acc->type_id = id; in bpf_core_parse_spec()
359 acc->idx = access_idx; in bpf_core_parse_spec()
360 acc->name = name; in bpf_core_parse_spec()
373 flex = is_flex_arr(btf, acc - 1, a); in bpf_core_parse_spec()
684 const struct bpf_core_accessor *acc; in bpf_core_calc_field_relo() local
702 acc = &spec->spec[spec->len - 1]; in bpf_core_calc_field_relo()
703 t = btf_type_by_id(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
706 if (!acc->name) { in bpf_core_calc_field_relo()
710 sz = btf__resolve_size(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
714 *type_id = acc->type_id; in bpf_core_calc_field_relo()
716 sz = btf__resolve_size(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
730 m = btf_members(t) + acc->idx; in bpf_core_calc_field_relo()
733 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo()