| /linux/tools/testing/selftests/bpf/ |
| H A D | test_btf.h | 15 #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 D | bpftool-btf.rst | 103 'pad' type_id=3 bits_offset=0 104 'sock' type_id=4 bits_offset=64 105 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 158 'a' type_id=3 bits_offset=0 159 'b' type_id=4 bits_offset=0 160 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 162 'const_int_field' type_id=5 bits_offset=0 163 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4 164 'arr_field' type_id=8 bits_offset=40 165 'fwd_field' type_id=10 bits_offset=192 [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | syscall.c | 31 #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 D | libbpf_internal.h | 82 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 83 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) 84 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 86 BTF_INT_ENC(encoding, bits_offset, bits) 87 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
|
| /linux/include/rdma/ |
| H A D | ibta_vol1_c12.h | 13 #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 D | btf.c | 2498 static void btf_bitfield_show(void *data, u8 bits_offset, in btf_bitfield_show() argument 2506 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show() 2512 left_shift_bits = bits_offset; in btf_bitfield_show() 2525 void *data, u8 bits_offset, in btf_int_bits_show() argument 2536 total_bits_offset = bits_offset + BTF_INT_OFFSET(int_data); in btf_int_bits_show() 2538 bits_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_int_bits_show() 2539 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show() 2543 u32 type_id, void *data, u8 bits_offset, in btf_int_show() argument 2556 if (bits_offset || BTF_INT_OFFSET(int_data) || in btf_int_show() 2558 btf_int_bits_show(btf, t, safe_data, bits_offset, show); in btf_int_show() [all …]
|
| /linux/Documentation/bpf/ |
| H A D | llvm_reloc.rst | 435 '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)
|