Lines Matching full:bit_offset
25 __u8 bit_offset, const void *data);
136 __u8 bit_offset, const void *data) in btf_dumper_modifier() argument
144 return btf_dumper_do_type(d, actual_type_id, bit_offset, data); in btf_dumper_modifier()
351 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, in btf_dumper_bitfield() argument
360 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield()
365 left_shift_bits = bit_offset; in btf_dumper_bitfield()
378 static void btf_dumper_int_bits(__u32 int_type, __u8 bit_offset, in btf_dumper_int_bits() argument
388 total_bits_offset = bit_offset + BTF_INT_OFFSET(int_type); in btf_dumper_int_bits()
390 bit_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_dumper_int_bits()
391 btf_dumper_bitfield(nr_bits, bit_offset, data, jw, in btf_dumper_int_bits()
395 static int btf_dumper_int(const struct btf_type *t, __u8 bit_offset, in btf_dumper_int() argument
405 if (bit_offset || BTF_INT_OFFSET(*int_type) || in btf_dumper_int()
407 btf_dumper_int_bits(*int_type, bit_offset, data, jw, in btf_dumper_int()
428 btf_dumper_int_bits(*int_type, bit_offset, data, jw, in btf_dumper_int()
441 btf_dumper_int_bits(*int_type, bit_offset, data, jw, in btf_dumper_int()
485 __u32 bit_offset = m[i].offset; in btf_dumper_struct() local
489 bitfield_size = BTF_MEMBER_BITFIELD_SIZE(bit_offset); in btf_dumper_struct()
490 bit_offset = BTF_MEMBER_BIT_OFFSET(bit_offset); in btf_dumper_struct()
494 data_off = data + BITS_ROUNDDOWN_BYTES(bit_offset); in btf_dumper_struct()
497 BITS_PER_BYTE_MASKED(bit_offset), in btf_dumper_struct()
501 BITS_PER_BYTE_MASKED(bit_offset), in btf_dumper_struct()
514 __u8 bit_offset, const void *data) in btf_dumper_var() argument
521 ret = btf_dumper_do_type(d, t->type, bit_offset, data); in btf_dumper_var()
556 __u8 bit_offset, const void *data) in btf_dumper_do_type() argument
562 return btf_dumper_int(t, bit_offset, data, d->jw, in btf_dumper_do_type()
587 return btf_dumper_modifier(d, type_id, bit_offset, data); in btf_dumper_do_type()
589 return btf_dumper_var(d, type_id, bit_offset, data); in btf_dumper_do_type()