Home
last modified time | relevance | path

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

/openbmc/linux/tools/lib/bpf/
H A Dbtf_dump.c1706 __u8 bit_sz);
1793 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument
1810 __u8 bit_sz) in btf_dump_bitfield_data() argument
2107 __u8 bit_sz; in btf_dump_struct_data() local
2256 __u8 bit_sz) in btf_dump_type_data_check_overflow() argument
2260 if (bit_sz) { in btf_dump_type_data_check_overflow()
2315 __u8 bit_sz) in btf_dump_type_data_check_zero() argument
2340 if (bit_sz) in btf_dump_type_data_check_zero()
2424 __u8 bit_sz) in btf_dump_dump_type_data() argument
2459 if (bit_sz) in btf_dump_dump_type_data()
[all …]
H A 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()
H A Dlibbpf.c1845 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local
1863 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range()
1865 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dbtf_helpers.c130 __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()
/openbmc/linux/tools/bpf/bpftool/
H A 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()
/openbmc/linux/drivers/pinctrl/sunplus/
H A Dsppctl.c226 static void sppctl_gmx_set(struct sppctl_pdata *pctl, u8 reg_off, u8 bit_off, u8 bit_sz, in sppctl_gmx_set() argument
236 mask = GENMASK(bit_sz - 1, 0) << SPPCTL_MOON_REG_MASK_SHIFT; in sppctl_gmx_set()