Home
last modified time | relevance | path

Searched refs:bits_offset (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/
Dtest_btf.h15 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
16 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
17 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
19 BTF_INT_ENC(encoding, bits_offset, bits)
41 #define BTF_MEMBER_ENC(name, type, bits_offset) \ argument
42 (name), (type), (bits_offset)
45 #define BTF_MEMBER_OFFSET(bitfield_size, bits_offset) \ argument
46 ((bitfield_size) << 24 | (bits_offset))
/linux-6.1.9/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst102 'pad' type_id=3 bits_offset=0
103 'sock' type_id=4 bits_offset=64
104 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
157 'a' type_id=3 bits_offset=0
158 'b' type_id=4 bits_offset=0
159 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
161 'const_int_field' type_id=5 bits_offset=0
162 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4
163 'arr_field' type_id=8 bits_offset=40
164 'fwd_field' type_id=10 bits_offset=192
[all …]
Dbpftool-gen.rst388 [1] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
394 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=(none)
396 [9] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
405 'ent' type_id=3 bits_offset=0
406 'id' type_id=7 bits_offset=64
407 'args' type_id=9 bits_offset=128
408 '__data' type_id=12 bits_offset=512
410 'type' type_id=4 bits_offset=0
411 'flags' type_id=5 bits_offset=16
412 'preempt_count' type_id=5 bits_offset=24
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dsyscall.c24 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
25 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
26 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
28 BTF_INT_ENC(encoding, bits_offset, bits)
/linux-6.1.9/tools/lib/bpf/
Dlibbpf_internal.h63 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
64 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
65 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
67 BTF_INT_ENC(encoding, bits_offset, bits)
68 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
Dbtf_dump.c1603 __u8 bits_offset,
1649 __u8 bits_offset, in btf_dump_get_bitfield_value() argument
1671 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value()
1675 nr_copy_bits = t->size * 8 - bits_offset; in btf_dump_get_bitfield_value()
1690 __u8 bits_offset, in btf_dump_bitfield_check_zero() argument
1696 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero()
1707 __u8 bits_offset, in btf_dump_bitfield_data() argument
1713 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &print_num); in btf_dump_bitfield_data()
1764 __u8 bits_offset) in btf_dump_int_data() argument
2153 __u8 bits_offset) in btf_dump_type_data_check_overflow() argument
[all …]
/linux-6.1.9/include/rdma/
Dibta_vol1_c12.h13 #define CM_FIELD_BLOC(field_struct, byte_offset, bits_offset, width) \ argument
15 (byte_offset + sizeof(struct ib_mad_hdr)), bits_offset, \
/linux-6.1.9/kernel/bpf/
Dbtf.c2263 static void btf_bitfield_show(void *data, u8 bits_offset, in btf_bitfield_show() argument
2271 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show()
2277 left_shift_bits = bits_offset; in btf_bitfield_show()
2290 void *data, u8 bits_offset, in btf_int_bits_show() argument
2301 total_bits_offset = bits_offset + BTF_INT_OFFSET(int_data); in btf_int_bits_show()
2303 bits_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_int_bits_show()
2304 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show()
2308 u32 type_id, void *data, u8 bits_offset, in btf_int_show() argument
2321 if (bits_offset || BTF_INT_OFFSET(int_data) || in btf_int_show()
2323 btf_int_bits_show(btf, t, safe_data, bits_offset, show); in btf_int_show()
[all …]
Dcore.c275 const u32 bits_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in bpf_prog_calc_tag() local
327 bits = (__be64 *)(todo + bsize + bits_offset); in bpf_prog_calc_tag()
/linux-6.1.9/Documentation/bpf/
Dbtf.rst975 a type_id=2 bitfield_size=2 bits_offset=0
976 b type_id=2 bitfield_size=3 bits_offset=2
977 c type_id=2 bitfield_size=2 bits_offset=5