Lines Matching refs:nr_bits

829 	u8 nr_bits, nr_bytes;  in btf_type_int_is_regular()  local
833 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular()
834 nr_bytes = BITS_ROUNDUP_BYTES(nr_bits); in btf_type_int_is_regular()
835 if (BITS_PER_BYTE_MASKED(nr_bits) || in btf_type_int_is_regular()
856 u8 nr_bits; in btf_member_is_reg_int() local
864 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int()
874 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int()
880 BITS_PER_BYTE_MASKED(nr_bits) || in btf_member_is_reg_int()
881 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int()
2070 u32 struct_bits_off, nr_bits, nr_int_data_bits, bytes_offset; in btf_int_check_kflag_member() local
2083 nr_bits = BTF_MEMBER_BITFIELD_SIZE(member->offset); in btf_int_check_kflag_member()
2086 if (!nr_bits) { in btf_int_check_kflag_member()
2096 nr_bits = nr_int_data_bits; in btf_int_check_kflag_member()
2097 } else if (nr_bits > nr_int_data_bits) { in btf_int_check_kflag_member()
2104 nr_copy_bits = nr_bits + BITS_PER_BYTE_MASKED(struct_bits_off); in btf_int_check_kflag_member()
2125 u32 int_data, nr_bits, meta_needed = sizeof(int_data); in btf_int_check_meta() local
2152 nr_bits = BTF_INT_BITS(int_data) + BTF_INT_OFFSET(int_data); in btf_int_check_meta()
2154 if (nr_bits > BITS_PER_U128) { in btf_int_check_meta()
2160 if (BITS_ROUNDUP_BYTES(nr_bits) > t->size) { in btf_int_check_meta()
2264 u8 nr_bits, struct btf_show *show) in btf_bitfield_show() argument
2271 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show()
2281 right_shift_bits = BITS_PER_U128 - nr_bits; in btf_bitfield_show()
2294 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_bits_show() local
2304 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show()
2314 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_show() local
2322 BITS_PER_BYTE_MASKED(nr_bits)) { in btf_int_show()
2327 switch (nr_bits) { in btf_int_show()
3645 u32 struct_bits_off, nr_bits, bytes_end, struct_size; in btf_enum_check_kflag_member() local
3649 nr_bits = BTF_MEMBER_BITFIELD_SIZE(member->offset); in btf_enum_check_kflag_member()
3650 if (!nr_bits) { in btf_enum_check_kflag_member()
3657 nr_bits = int_bitsize; in btf_enum_check_kflag_member()
3658 } else if (nr_bits > int_bitsize) { in btf_enum_check_kflag_member()
3665 bytes_end = BITS_ROUNDUP_BYTES(struct_bits_off + nr_bits); in btf_enum_check_kflag_member()