Home
last modified time | relevance | path

Searched refs:member_idx (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/include/linux/
H A Dbtf.h423 static inline u32 btf_member_bit_offset(const struct btf_type *t, u32 member_idx) in btf_member_bit_offset() argument
425 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bit_offset()
430 static inline u32 btf_member_bitfield_size(const struct btf_type *t, u32 member_idx) in btf_member_bitfield_size() argument
432 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bitfield_size()
/openbmc/linux/tools/lib/bpf/
H A Dbtf.h529 __u32 member_idx) in btf_member_bit_offset() argument
531 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bit_offset()
541 __u32 member_idx) in btf_member_bitfield_size() argument
543 const struct btf_member *m = btf_members(t) + member_idx; in btf_member_bitfield_size()
H A Dlibbpf.c9136 __u32 member_idx; in bpf_object__collect_st_ops_relos() local
9193 member_idx = member - btf_members(st_ops->type); in bpf_object__collect_st_ops_relos()
9221 prog->expected_attach_type = member_idx; in bpf_object__collect_st_ops_relos()
9230 prog->expected_attach_type != member_idx) { in bpf_object__collect_st_ops_relos()
9237 st_ops->progs[member_idx] = prog; in bpf_object__collect_st_ops_relos()
/openbmc/linux/kernel/bpf/
H A Dverifier.c19739 u32 btf_id, member_idx; in check_struct_ops_btf_id() local
19756 member_idx = prog->expected_attach_type; in check_struct_ops_btf_id()
19757 if (member_idx >= btf_type_vlen(t)) { in check_struct_ops_btf_id()
19759 member_idx, st_ops->name); in check_struct_ops_btf_id()
19763 member = &btf_type_member(t)[member_idx]; in check_struct_ops_btf_id()
19769 mname, member_idx, st_ops->name); in check_struct_ops_btf_id()