Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dbtf.c177 __u32 bit_off, bit_sz; in dump_btf_type() local
181 bit_sz = BTF_MEMBER_BITFIELD_SIZE(m->offset); in dump_btf_type()
184 bit_sz = 0; in dump_btf_type()
192 if (bit_sz) { in dump_btf_type()
194 bit_sz); in dump_btf_type()
200 if (bit_sz) in dump_btf_type()
201 printf(" bitfield_size=%u", bit_sz); in dump_btf_type()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dbtf_dump.c795 int align, i, bit_sz; in btf_is_struct_packed() local
808 bit_sz = btf_member_bitfield_size(t, i); in btf_is_struct_packed()
809 if (align && bit_sz == 0 && m->offset % (8 * align) != 0) in btf_is_struct_packed()
Dlibbpf.c1546 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local
1564 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range()
1566 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()
5113 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local
5160 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo()
5162 bitfield = bit_sz > 0; in bpf_core_calc_field_relo()
5167 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo()
5183 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo()
5213 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo()
5219 *val = 64 - bit_sz; in bpf_core_calc_field_relo()