Home
last modified time | relevance | path

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

/third_party/libbpf/src/
Dbtf_dump.c837 int max_align = 1, align, i, bit_sz; in btf_is_struct_packed() local
845 bit_sz = btf_member_bitfield_size(t, i); in btf_is_struct_packed()
846 if (align && bit_sz == 0 && m->offset % (8 * align) != 0) in btf_is_struct_packed()
1704 __u8 bit_sz);
1750 __u8 bit_sz, in btf_dump_get_bitfield_value() argument
1771 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value()
1780 right_shift_bits = 64 - bit_sz; in btf_dump_get_bitfield_value()
1791 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument
1796 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero()
1808 __u8 bit_sz) in btf_dump_bitfield_data() argument
[all …]
Drelo_core.c686 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local
733 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo()
735 bitfield = bit_sz > 0; in bpf_core_calc_field_relo()
740 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo()
756 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo()
785 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo()
791 *val = 64 - bit_sz; in bpf_core_calc_field_relo()
Dlibbpf.c1942 int bit_sz = ext->kcfg.sz * 8; local
1960 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz);
1962 return (v >> bit_sz) == 0;