Home
last modified time | relevance | path

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

/linux-6.1.9/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.1.9/kernel/bpf/
Dbtf.c2222 static void btf_int128_shift(u64 *print_num, u16 left_shift_bits, in btf_int128_shift() argument
2236 if (left_shift_bits >= 64) { in btf_int128_shift()
2237 upper_num = lower_num << (left_shift_bits - 64); in btf_int128_shift()
2240 upper_num = (upper_num << left_shift_bits) | in btf_int128_shift()
2241 (lower_num >> (64 - left_shift_bits)); in btf_int128_shift()
2242 lower_num = lower_num << left_shift_bits; in btf_int128_shift()
2266 u16 left_shift_bits, right_shift_bits; in btf_bitfield_show() local
2277 left_shift_bits = bits_offset; in btf_bitfield_show()
2279 left_shift_bits = BITS_PER_U128 - nr_copy_bits; in btf_bitfield_show()
2283 btf_int128_shift(print_num, left_shift_bits, right_shift_bits); in btf_bitfield_show()
/linux-6.1.9/tools/lib/bpf/
Dbtf_dump.c1653 __u16 left_shift_bits, right_shift_bits; in btf_dump_get_bitfield_value() local
1679 left_shift_bits = 64 - nr_copy_bits; in btf_dump_get_bitfield_value()
1682 *value = (num << left_shift_bits) >> right_shift_bits; in btf_dump_get_bitfield_value()