Lines Matching full:acc
71 const struct bpf_core_accessor *acc, in is_flex_arr() argument
77 if (!acc->name || arr->nelems > 0) in is_flex_arr()
81 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr()
82 return acc->idx == btf_vlen(t) - 1; in is_flex_arr()
267 struct bpf_core_accessor *acc; in bpf_core_parse_spec() local
311 acc = &spec->spec[0]; in bpf_core_parse_spec()
312 acc->type_id = id; in bpf_core_parse_spec()
313 acc->idx = access_idx; in bpf_core_parse_spec()
323 acc->name = btf__name_by_offset(btf, name_off); in bpf_core_parse_spec()
341 acc = &spec->spec[spec->len]; in bpf_core_parse_spec()
359 acc->type_id = id; in bpf_core_parse_spec()
360 acc->idx = access_idx; in bpf_core_parse_spec()
361 acc->name = name; in bpf_core_parse_spec()
374 flex = is_flex_arr(btf, acc - 1, a); in bpf_core_parse_spec()
685 const struct bpf_core_accessor *acc; in bpf_core_calc_field_relo() local
703 acc = &spec->spec[spec->len - 1]; in bpf_core_calc_field_relo()
704 t = btf_type_by_id(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
707 if (!acc->name) { in bpf_core_calc_field_relo()
714 t = skip_mods_and_typedefs(spec->btf, acc->type_id, &elem_id); in bpf_core_calc_field_relo()
721 *type_id = acc->type_id; in bpf_core_calc_field_relo()
723 sz = btf__resolve_size(spec->btf, acc->type_id); in bpf_core_calc_field_relo()
737 m = btf_members(t) + acc->idx; in bpf_core_calc_field_relo()
740 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo()