Lines Matching refs:nr_bits
843 u8 nr_bits, nr_bytes; in btf_type_int_is_regular() local
847 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular()
848 nr_bytes = BITS_ROUNDUP_BYTES(nr_bits); in btf_type_int_is_regular()
849 if (BITS_PER_BYTE_MASKED(nr_bits) || in btf_type_int_is_regular()
870 u8 nr_bits; in btf_member_is_reg_int() local
878 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int()
888 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int()
894 BITS_PER_BYTE_MASKED(nr_bits) || in btf_member_is_reg_int()
895 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int()
2117 u32 struct_bits_off, nr_bits, nr_int_data_bits, bytes_offset; in btf_int_check_kflag_member() local
2130 nr_bits = BTF_MEMBER_BITFIELD_SIZE(member->offset); in btf_int_check_kflag_member()
2133 if (!nr_bits) { in btf_int_check_kflag_member()
2143 nr_bits = nr_int_data_bits; in btf_int_check_kflag_member()
2144 } else if (nr_bits > nr_int_data_bits) { in btf_int_check_kflag_member()
2151 nr_copy_bits = nr_bits + BITS_PER_BYTE_MASKED(struct_bits_off); in btf_int_check_kflag_member()
2172 u32 int_data, nr_bits, meta_needed = sizeof(int_data); in btf_int_check_meta() local
2199 nr_bits = BTF_INT_BITS(int_data) + BTF_INT_OFFSET(int_data); in btf_int_check_meta()
2201 if (nr_bits > BITS_PER_U128) { in btf_int_check_meta()
2207 if (BITS_ROUNDUP_BYTES(nr_bits) > t->size) { in btf_int_check_meta()
2311 u8 nr_bits, struct btf_show *show) in btf_bitfield_show() argument
2318 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show()
2328 right_shift_bits = BITS_PER_U128 - nr_bits; in btf_bitfield_show()
2341 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_bits_show() local
2351 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show()
2361 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_show() local
2369 BITS_PER_BYTE_MASKED(nr_bits)) { in btf_int_show()
2374 switch (nr_bits) { in btf_int_show()
4028 u32 struct_bits_off, nr_bits, bytes_end, struct_size; in btf_enum_check_kflag_member() local
4032 nr_bits = BTF_MEMBER_BITFIELD_SIZE(member->offset); in btf_enum_check_kflag_member()
4033 if (!nr_bits) { in btf_enum_check_kflag_member()
4040 nr_bits = int_bitsize; in btf_enum_check_kflag_member()
4041 } else if (nr_bits > int_bitsize) { in btf_enum_check_kflag_member()
4048 bytes_end = BITS_ROUNDUP_BYTES(struct_bits_off + nr_bits); in btf_enum_check_kflag_member()