Searched refs:bit_sz (Results 1 – 5 of 5) sorted by relevance
| /tools/lib/bpf/ |
| A D | btf_dump.c | 1714 __u8 bit_sz); 1801 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument 1818 __u8 bit_sz) in btf_dump_bitfield_data() argument 2171 __u8 bit_sz; in btf_dump_struct_data() local 2320 __u8 bit_sz) in btf_dump_type_data_check_overflow() argument 2324 if (bit_sz) { in btf_dump_type_data_check_overflow() 2379 __u8 bit_sz) in btf_dump_type_data_check_zero() argument 2404 if (bit_sz) in btf_dump_type_data_check_zero() 2488 __u8 bit_sz) in btf_dump_dump_type_data() argument 2523 if (bit_sz) in btf_dump_dump_type_data() [all …]
|
| A D | relo_core.c | 686 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id, elem_id; in bpf_core_calc_field_relo() local 739 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo() 741 bitfield = bit_sz > 0; in bpf_core_calc_field_relo() 746 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo() 762 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo() 801 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo() 807 *val = 64 - bit_sz; in bpf_core_calc_field_relo()
|
| A D | libbpf.c | 2149 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local 2167 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range() 2169 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()
|
| /tools/testing/selftests/bpf/ |
| A D | btf_helpers.c | 130 __u32 bit_off, bit_sz; in fprintf_btf_type_raw() local 133 bit_sz = btf_member_bitfield_size(t, i); in fprintf_btf_type_raw() 136 if (bit_sz) in fprintf_btf_type_raw() 137 fprintf(out, " bitfield_size=%u", bit_sz); in fprintf_btf_type_raw()
|
| /tools/bpf/bpftool/ |
| A D | btf.c | 194 __u32 bit_off, bit_sz; in dump_btf_type() local 198 bit_sz = BTF_MEMBER_BITFIELD_SIZE(m->offset); in dump_btf_type() 201 bit_sz = 0; in dump_btf_type() 209 if (bit_sz) { in dump_btf_type() 211 bit_sz); in dump_btf_type() 217 if (bit_sz) in dump_btf_type() 218 printf(" bitfield_size=%u", bit_sz); in dump_btf_type()
|
Completed in 37 milliseconds