Home
last modified time | relevance | path

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

/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()
/linux/tools/bpf/bpftool/
H A Dbtf.c194 __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 Dsppctl.c227 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()
/linux/tools/lib/bpf/
H A Dlibbpf.c2179 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local
2197 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range()
2199 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()