Home
last modified time | relevance | path

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

/linux-5.19.10/tools/testing/selftests/bpf/
Dtest_btf.h72 #define BTF_DECL_TAG_ENC(value, type, component_idx) \ argument
73 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
Dbtf_helpers.c185 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Dfw.c743 u16 identifier, component_idx = 0; in mlx5_get_boot_img_component_index() local
748 err = mlx5_reg_mcqs_query(dev, out, component_idx); in mlx5_get_boot_img_component_index()
755 } while (!quit && ++component_idx); in mlx5_get_boot_img_component_index()
759 component_idx); in mlx5_get_boot_img_component_index()
763 return component_idx; in mlx5_get_boot_img_component_index()
/linux-5.19.10/tools/include/uapi/linux/
Dbtf.h186 __s32 component_idx; member
/linux-5.19.10/include/uapi/linux/
Dbtf.h186 __s32 component_idx; member
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c287 ASSERT_EQ(btf_decl_tag(t)->component_idx, -1, "tag_component_idx"); in gen_btf()
297 ASSERT_EQ(btf_decl_tag(t)->component_idx, 1, "tag_component_idx"); in gen_btf()
/linux-5.19.10/tools/lib/bpf/
Dlibbpf_internal.h74 #define BTF_TYPE_DECL_TAG_ENC(value, type, component_idx) \ argument
75 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
Dbtf.h246 int component_idx);
Dbtf.c395 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest()
2584 int component_idx) in btf__add_decl_tag() argument
2589 if (!value || !value[0] || component_idx < -1) in btf__add_decl_tag()
2610 btf_decl_tag(t)->component_idx = component_idx; in btf__add_decl_tag()
/linux-5.19.10/tools/bpf/bpftool/
Dbtf.c354 jsonw_int_field(w, "component_idx", tag->component_idx); in dump_btf_type()
356 printf(" type_id=%u component_idx=%d", t->type, tag->component_idx); in dump_btf_type()
/linux-5.19.10/Documentation/bpf/
Dbtf.rst483 __u32 component_idx;
488 For ``var`` or ``typedef`` type, ``btf_decl_tag.component_idx`` must be ``-1``.
491 ``btf_decl_tag.component_idx`` must be ``-1``. Otherwise,
493 a ``func`` argument, and ``btf_decl_tag.component_idx`` should be a
/linux-5.19.10/kernel/bpf/
Dbtf.c4207 s32 component_idx; in btf_decl_tag_check_meta() local
4233 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_check_meta()
4234 if (component_idx < -1) { in btf_decl_tag_check_meta()
4251 s32 component_idx; in btf_decl_tag_resolve() local
4264 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_resolve()
4265 if (component_idx != -1) { in btf_decl_tag_resolve()
4279 if ((u32)component_idx >= vlen) { in btf_decl_tag_resolve()
4293 btf_type_decl_tag(t)->component_idx); in btf_decl_tag_log()