Home
last modified time | relevance | path

Searched refs:BTF_INT_BITS (Results 1 – 12 of 12) sorted by relevance

/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dbtf_dumper.c346 int nr_bits = BTF_INT_BITS(int_type); in btf_dumper_int_bits()
367 nr_bits = BTF_INT_BITS(*int_type); in btf_dumper_int()
383 if (BTF_INT_BITS(*int_type) == 64) in btf_dumper_int()
385 else if (BTF_INT_BITS(*int_type) == 32) in btf_dumper_int()
387 else if (BTF_INT_BITS(*int_type) == 16) in btf_dumper_int()
389 else if (BTF_INT_BITS(*int_type) == 8) in btf_dumper_int()
396 if (BTF_INT_BITS(*int_type) == 64) in btf_dumper_int()
398 else if (BTF_INT_BITS(*int_type) == 32) in btf_dumper_int()
400 else if (BTF_INT_BITS(*int_type) == 16) in btf_dumper_int()
402 else if (BTF_INT_BITS(*int_type) == 8) in btf_dumper_int()
H A Dbtf.c129 jsonw_uint_field(w, "nr_bits", BTF_INT_BITS(v)); in dump_btf_type()
133 t->size, BTF_INT_OFFSET(v), BTF_INT_BITS(v), in dump_btf_type()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dbtf.h79 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dbtf.h79 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) macro
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dbtf.h87 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) macro
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dbtf.h87 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) macro
/OK3568_Linux_fs/kernel/Documentation/bpf/
H A Dbtf.rst135 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff)
147 The ``BTF_INT_BITS()`` specifies the number of actual bits held by this int
148 type. For example, a 4-bit bitfield encodes ``BTF_INT_BITS()`` equals to 4.
149 The ``btf_type.size * 8`` must be equal to or greater than ``BTF_INT_BITS()``
150 for the type. The maximum value of ``BTF_INT_BITS()`` is 128.
157 * the int type has ``BTF_INT_OFFSET() = 2`` and ``BTF_INT_BITS() = 4``
167 * the int type has ``BTF_INT_OFFSET() = 0`` and ``BTF_INT_BITS() = 4``
257 ``BTF_INT_BITS()`` encodes the bitfield size.
269 * ``BTF_INT_BITS()`` must be equal to ``{1,2,4,8,16} * 8``.
/OK3568_Linux_fs/kernel/tools/lib/bpf/
H A Dbtf.h301 return BTF_INT_BITS(*(__u32 *)(t + 1)); in btf_int_bits()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dbtf.c688 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular()
719 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int()
1839 nr_copy_bits = BTF_INT_BITS(int_data) + in btf_int_check_member()
1878 nr_int_data_bits = BTF_INT_BITS(int_data); in btf_int_check_kflag_member()
1945 nr_bits = BTF_INT_BITS(int_data) + BTF_INT_OFFSET(int_data); in btf_int_check_meta()
1986 BTF_INT_BITS(int_data), in btf_int_log()
2087 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_bits_show()
2107 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_show()
H A Dbpf_local_storage.c596 if (BTF_INT_BITS(int_data) != 32 || BTF_INT_OFFSET(int_data)) in bpf_local_storage_map_check_btf()
H A Dlocal_storage.c412 if (BTF_INT_BITS(int_data) != 64 || BTF_INT_OFFSET(int_data)) in cgroup_storage_check_btf()
H A Darraymap.c477 if (BTF_INT_BITS(int_data) != 32 || BTF_INT_OFFSET(int_data)) in array_map_check_btf()