Lines Matching refs:access_idx
267 int access_idx, parsed_len, i; in bpf_core_parse_spec() local
294 if (sscanf(spec_str, "%d%n", &access_idx, &parsed_len) != 1) in bpf_core_parse_spec()
299 spec->raw_spec[spec->raw_len++] = access_idx; in bpf_core_parse_spec()
309 access_idx = spec->raw_spec[0]; in bpf_core_parse_spec()
312 acc->idx = access_idx; in bpf_core_parse_spec()
316 if (!btf_is_any_enum(t) || spec->raw_len > 1 || access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
320 name_off = btf_is_enum(t) ? btf_enum(t)[access_idx].name_off in bpf_core_parse_spec()
321 : btf_enum64(t)[access_idx].name_off; in bpf_core_parse_spec()
332 spec->bit_offset = access_idx * sz * 8; in bpf_core_parse_spec()
339 access_idx = spec->raw_spec[i]; in bpf_core_parse_spec()
346 if (access_idx >= btf_vlen(t)) in bpf_core_parse_spec()
349 bit_offset = btf_member_bit_offset(t, access_idx); in bpf_core_parse_spec()
352 m = btf_members(t) + access_idx; in bpf_core_parse_spec()
359 acc->idx = access_idx; in bpf_core_parse_spec()
374 if (!flex && access_idx >= a->nelems) in bpf_core_parse_spec()
378 spec->spec[spec->len].idx = access_idx; in bpf_core_parse_spec()
384 spec->bit_offset += access_idx * sz * 8; in bpf_core_parse_spec()