Home
last modified time | relevance | path

Searched refs:bit_sz (Results 1 – 5 of 5) sorted by relevance

/external/libbpf/src/
Dbtf_dump.c831 int align, i, bit_sz; in btf_is_struct_packed() local
844 bit_sz = btf_member_bitfield_size(t, i); in btf_is_struct_packed()
845 if (align && bit_sz == 0 && m->offset % (8 * align) != 0) in btf_is_struct_packed()
1537 __u8 bit_sz);
1583 __u8 bit_sz, in btf_dump_get_bitfield_value() argument
1604 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value()
1613 right_shift_bits = 64 - bit_sz; in btf_dump_get_bitfield_value()
1624 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument
1629 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero()
1641 __u8 bit_sz) in btf_dump_bitfield_data() argument
[all …]
Drelo_core.c592 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local
639 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo()
641 bitfield = bit_sz > 0; in bpf_core_calc_field_relo()
646 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo()
662 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo()
692 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo()
698 *val = 64 - bit_sz; in bpf_core_calc_field_relo()
Dlibbpf.c1725 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local
1743 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range()
1745 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dbtf_helpers.c129 __u32 bit_off, bit_sz; in fprintf_btf_type_raw() local
132 bit_sz = btf_member_bitfield_size(t, i); in fprintf_btf_type_raw()
135 if (bit_sz) in fprintf_btf_type_raw()
136 fprintf(out, " bitfield_size=%u", bit_sz); in fprintf_btf_type_raw()
/external/bpftool/src/
Dbtf.c181 __u32 bit_off, bit_sz; in dump_btf_type() local
185 bit_sz = BTF_MEMBER_BITFIELD_SIZE(m->offset); in dump_btf_type()
188 bit_sz = 0; in dump_btf_type()
196 if (bit_sz) { in dump_btf_type()
198 bit_sz); in dump_btf_type()
204 if (bit_sz) in dump_btf_type()
205 printf(" bitfield_size=%u", bit_sz); in dump_btf_type()