Searched refs:bit_sz (Results 1 – 5 of 5) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | btf_dump.c | 838 int max_align = 1, align, i, bit_sz; in btf_is_struct_packed() local 846 bit_sz = btf_member_bitfield_size(t, i); in btf_is_struct_packed() 847 if (align && bit_sz == 0 && m->offset % (8 * align) != 0) in btf_is_struct_packed() 1707 __u8 bit_sz); 1753 __u8 bit_sz, in btf_dump_get_bitfield_value() argument 1774 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value() 1783 right_shift_bits = 64 - bit_sz; in btf_dump_get_bitfield_value() 1794 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument 1799 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero() 1811 __u8 bit_sz) in btf_dump_bitfield_data() argument [all …]
|
H A D | libbpf.c | 2137 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local 2155 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range() 2157 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 | 192 __u32 bit_off, bit_sz; in dump_btf_type() local 196 bit_sz = BTF_MEMBER_BITFIELD_SIZE(m->offset); in dump_btf_type() 199 bit_sz = 0; in dump_btf_type() 207 if (bit_sz) { in dump_btf_type() 209 bit_sz); in dump_btf_type() 215 if (bit_sz) in dump_btf_type() 216 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()
|