Searched refs:bit_sz (Results 1 – 6 of 6) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | btf_dump.c | 841 int max_align = 1, align, i, bit_sz; in btf_is_struct_packed() local 849 bit_sz = btf_member_bitfield_size(t, i); in btf_is_struct_packed() 850 if (align && bit_sz == 0 && m->offset % (8 * align) != 0) in btf_is_struct_packed() 1713 __u8 bit_sz); 1759 __u8 bit_sz, in btf_dump_get_bitfield_value() argument 1771 nr_bytes = (start_bit + bit_sz + 7) / 8; in btf_dump_get_bitfield_value() 1789 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value() 1798 right_shift_bits = 64 - bit_sz; in btf_dump_get_bitfield_value() 1809 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument 1814 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero() [all …]
|
| H A D | relo_core.c | 687 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id, elem_id; in bpf_core_calc_field_relo() local 740 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo() 742 bitfield = bit_sz > 0; in bpf_core_calc_field_relo() 747 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo() 763 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo() 802 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo() 808 *val = 64 - bit_sz; in bpf_core_calc_field_relo()
|
| H A D | libbpf.c | 2208 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local 2226 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range() 2228 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()
|
| /linux/tools/testing/selftests/bpf/ |
| H 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()
|
| /linux/tools/bpf/bpftool/ |
| H 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()
|
| /linux/drivers/pinctrl/sunplus/ |
| H A D | sppctl.c | 227 static void sppctl_gmx_set(struct sppctl_pdata *pctl, u8 reg_off, u8 bit_off, u8 bit_sz, in sppctl_gmx_set() argument 237 mask = GENMASK(bit_sz - 1, 0) << SPPCTL_MOON_REG_MASK_SHIFT; in sppctl_gmx_set()
|