Home
last modified time | relevance | path

Searched refs:left_shift_bits (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/tools/bpf/bpftool/
Dbtf_dumper.c310 static void btf_int128_shift(__u64 *print_num, __u16 left_shift_bits, in btf_int128_shift() argument
324 if (left_shift_bits >= 64) { in btf_int128_shift()
325 upper_num = lower_num << (left_shift_bits - 64); in btf_int128_shift()
328 upper_num = (upper_num << left_shift_bits) | in btf_int128_shift()
329 (lower_num >> (64 - left_shift_bits)); in btf_int128_shift()
330 lower_num = lower_num << left_shift_bits; in btf_int128_shift()
355 int left_shift_bits, right_shift_bits; in btf_dumper_bitfield() local
365 left_shift_bits = bit_offset; in btf_dumper_bitfield()
367 left_shift_bits = 128 - bits_to_copy; in btf_dumper_bitfield()
373 btf_int128_shift(print_num, left_shift_bits, right_shift_bits); in btf_dumper_bitfield()
/linux-6.12.1/tools/lib/bpf/
Dbtf_dump.c1755 __u16 left_shift_bits, right_shift_bits; in btf_dump_get_bitfield_value() local
1781 left_shift_bits = 64 - nr_copy_bits; in btf_dump_get_bitfield_value()
1784 *value = (num << left_shift_bits) >> right_shift_bits; in btf_dump_get_bitfield_value()
/linux-6.12.1/kernel/bpf/
Dbtf.c2332 static void btf_int128_shift(u64 *print_num, u16 left_shift_bits, in btf_int128_shift() argument
2346 if (left_shift_bits >= 64) { in btf_int128_shift()
2347 upper_num = lower_num << (left_shift_bits - 64); in btf_int128_shift()
2350 upper_num = (upper_num << left_shift_bits) | in btf_int128_shift()
2351 (lower_num >> (64 - left_shift_bits)); in btf_int128_shift()
2352 lower_num = lower_num << left_shift_bits; in btf_int128_shift()
2376 u16 left_shift_bits, right_shift_bits; in btf_bitfield_show() local
2387 left_shift_bits = bits_offset; in btf_bitfield_show()
2389 left_shift_bits = BITS_PER_U128 - nr_copy_bits; in btf_bitfield_show()
2393 btf_int128_shift(print_num, left_shift_bits, right_shift_bits); in btf_bitfield_show()