Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/
H A 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/tools/bpf/bpftool/Documentation/
H A Dbpftool-btf.rst98 'pad' type_id=3 bits_offset=0
99 'sock' type_id=4 bits_offset=64
100 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
153 'a' type_id=3 bits_offset=0
154 'b' type_id=4 bits_offset=0
155 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
157 'const_int_field' type_id=5 bits_offset=0
158 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4
159 'arr_field' type_id=8 bits_offset=40
160 'fwd_field' type_id=10 bits_offset=192
[all …]
H A Dbpftool-gen.rst412 [1] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
418 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=(none)
420 [9] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
429 'ent' type_id=3 bits_offset=0
430 'id' type_id=7 bits_offset=64
431 'args' type_id=9 bits_offset=128
432 '__data' type_id=12 bits_offset=512
434 'type' type_id=4 bits_offset=0
435 'flags' type_id=5 bits_offset=16
436 'preempt_count' type_id=5 bits_offset=24
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c31 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
32 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
33 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
35 BTF_INT_ENC(encoding, bits_offset, bits)
/linux/tools/lib/bpf/
H A Dbtf_dump.c1705 __u8 bits_offset,
1751 __u8 bits_offset, in btf_dump_get_bitfield_value() argument
1773 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value()
1777 nr_copy_bits = t->size * 8 - bits_offset; in btf_dump_get_bitfield_value()
1792 __u8 bits_offset, in btf_dump_bitfield_check_zero() argument
1798 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero()
1809 __u8 bits_offset, in btf_dump_bitfield_data() argument
1815 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &print_num); in btf_dump_bitfield_data()
1866 __u8 bits_offset) in btf_dump_int_data() argument
2260 __u8 bits_offset, in btf_dump_type_data_check_overflow() argument
[all …]
H A Dlibbpf_internal.h79 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
80 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
81 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
83 BTF_INT_ENC(encoding, bits_offset, bits)
84 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
/linux/include/rdma/
H A 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/kernel/bpf/
H A Dbtf.c2373 static void btf_bitfield_show(void *data, u8 bits_offset, in btf_bitfield_show() argument
2381 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show()
2387 left_shift_bits = bits_offset; in btf_bitfield_show()
2400 void *data, u8 bits_offset, in btf_int_bits_show() argument
2411 total_bits_offset = bits_offset + BTF_INT_OFFSET(int_data); in btf_int_bits_show()
2413 bits_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_int_bits_show()
2414 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show()
2418 u32 type_id, void *data, u8 bits_offset, in btf_int_show() argument
2431 if (bits_offset || BTF_INT_OFFSET(int_data) || in btf_int_show()
2433 btf_int_bits_show(btf, t, safe_data, bits_offset, show); in btf_int_show()
[all …]
H A Dcore.c291 const u32 bits_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in bpf_prog_calc_tag() local
343 bits = (__be64 *)(todo + bsize + bits_offset); in bpf_prog_calc_tag()
/linux/Documentation/bpf/
H A Dllvm_reloc.rst435 'a' type_id=3 bits_offset=0
436 'b' type_id=3 bits_offset=32
437 'c' type_id=4 bits_offset=64 bitfield_size=15
438 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
439 [4] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
H A Dbtf.rst1023 a type_id=2 bitfield_size=2 bits_offset=0
1024 b type_id=2 bitfield_size=3 bits_offset=2
1025 c type_id=2 bitfield_size=2 bits_offset=5