Searched refs:bits_offset (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_btf.h | 13 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 14 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) 15 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 17 BTF_INT_ENC(encoding, bits_offset, bits) 39 #define BTF_MEMBER_ENC(name, type, bits_offset) \ argument 40 (name), (type), (bits_offset) 42 #define BTF_MEMBER_OFFSET(bitfield_size, bits_offset) \ argument 43 ((bitfield_size) << 24 | (bits_offset))
|
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/ |
D | bpftool-btf.rst | 84 'pad' type_id=3 bits_offset=0 85 'sock' type_id=4 bits_offset=64 86 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 139 'a' type_id=3 bits_offset=0 140 'b' type_id=4 bits_offset=0 141 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 143 'const_int_field' type_id=5 bits_offset=0 144 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4 145 'arr_field' type_id=8 bits_offset=40 146 'fwd_field' type_id=10 bits_offset=192 [all …]
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | libbpf_internal.h | 26 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 27 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) 28 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 30 BTF_INT_ENC(encoding, bits_offset, bits) 31 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | btf.c | 2056 static void btf_bitfield_show(void *data, u8 bits_offset, in btf_bitfield_show() argument 2064 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show() 2070 left_shift_bits = bits_offset; in btf_bitfield_show() 2083 void *data, u8 bits_offset, in btf_int_bits_show() argument 2094 total_bits_offset = bits_offset + BTF_INT_OFFSET(int_data); in btf_int_bits_show() 2096 bits_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_int_bits_show() 2097 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show() 2101 u32 type_id, void *data, u8 bits_offset, in btf_int_show() argument 2114 if (bits_offset || BTF_INT_OFFSET(int_data) || in btf_int_show() 2116 btf_int_bits_show(btf, t, safe_data, bits_offset, show); in btf_int_show() [all …]
|
D | core.c | 272 const u32 bits_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in bpf_prog_calc_tag() local 324 bits = (__be64 *)(todo + bsize + bits_offset); in bpf_prog_calc_tag()
|
/kernel/linux/linux-5.10/include/rdma/ |
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, \
|
/kernel/linux/linux-5.10/Documentation/bpf/ |
D | btf.rst | 880 a type_id=2 bitfield_size=2 bits_offset=0 881 b type_id=2 bitfield_size=3 bits_offset=2 882 c type_id=2 bitfield_size=2 bits_offset=5
|