Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_btf.h75 #define BTF_DECL_TAG_ENC(value, type, component_idx) \ argument
76 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
Dbtf_helpers.c204 t->type, btf_decl_tag(t)->component_idx); in fprintf_btf_type_raw()
Dtest_loader.c406 if (t->type != func_id || btf_decl_tag(t)->component_idx != -1) in parse_test_spec()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Dfw.c755 u16 identifier, component_idx = 0; in mlx5_get_boot_img_component_index() local
760 err = mlx5_reg_mcqs_query(dev, out, component_idx); in mlx5_get_boot_img_component_index()
767 } while (!quit && ++component_idx); in mlx5_get_boot_img_component_index()
771 component_idx); in mlx5_get_boot_img_component_index()
775 return component_idx; in mlx5_get_boot_img_component_index()
/linux-6.12.1/tools/include/uapi/linux/
Dbtf.h187 __s32 component_idx; member
/linux-6.12.1/include/uapi/linux/
Dbtf.h187 __s32 component_idx; member
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c288 ASSERT_EQ(btf_decl_tag(t)->component_idx, -1, "tag_component_idx"); in gen_btf()
298 ASSERT_EQ(btf_decl_tag(t)->component_idx, 1, "tag_component_idx"); in gen_btf()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf_internal.h89 #define BTF_TYPE_DECL_TAG_ENC(value, type, component_idx) \ argument
90 BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx)
Dbtf.h242 int component_idx);
Dbtf.c408 btf_decl_tag(t)->component_idx = bswap_32(btf_decl_tag(t)->component_idx); in btf_bswap_type_rest()
2857 int component_idx) in btf__add_decl_tag() argument
2862 if (!value || !value[0] || component_idx < -1) in btf__add_decl_tag()
2883 btf_decl_tag(t)->component_idx = component_idx; in btf__add_decl_tag()
Dlibbpf.c6617 if (!btf_is_decl_tag(t) || btf_decl_tag(t)->component_idx != -1) in bpf_prog_assign_exc_cb()
6942 arg_idx = btf_decl_tag(t)->component_idx; in bpf_program_fixup_func_info()
/linux-6.12.1/drivers/accel/habanalabs/gaudi2/
Dgaudi2_coresight.c2604 u32 component_idx = 0; in gaudi2_coresight_set_disabled_components() local
2618 u32 component_mask = 1 << component_idx; in gaudi2_coresight_set_disabled_components()
2620 if (component_idx >= unit_count) { in gaudi2_coresight_set_disabled_components()
2622 component_idx, unit_count); in gaudi2_coresight_set_disabled_components()
2641 &(binning_table[component_idx]); in gaudi2_coresight_set_disabled_components()
2664 component_idx++; in gaudi2_coresight_set_disabled_components()
/linux-6.12.1/tools/bpf/bpftool/
Dbtf.c410 jsonw_int_field(w, "component_idx", tag->component_idx); in dump_btf_type()
412 printf(" type_id=%u component_idx=%d", t->type, tag->component_idx); in dump_btf_type()
484 if (btf_decl_tag(t)->component_idx != -1) in dump_btf_kfuncs()
/linux-6.12.1/Documentation/bpf/
Dbtf.rst489 __u32 component_idx;
494 For ``var`` or ``typedef`` type, ``btf_decl_tag.component_idx`` must be ``-1``.
497 ``btf_decl_tag.component_idx`` must be ``-1``. Otherwise,
499 a ``func`` argument, and ``btf_decl_tag.component_idx`` should be a
/linux-6.12.1/kernel/bpf/
Dbtf.c3389 if (btf_type_decl_tag(t)->component_idx != comp_idx) in btf_find_next_decl_tag()
4907 s32 component_idx; in btf_decl_tag_check_meta() local
4933 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_check_meta()
4934 if (component_idx < -1) { in btf_decl_tag_check_meta()
4951 s32 component_idx; in btf_decl_tag_resolve() local
4964 component_idx = btf_type_decl_tag(t)->component_idx; in btf_decl_tag_resolve()
4965 if (component_idx != -1) { in btf_decl_tag_resolve()
4979 if ((u32)component_idx >= vlen) { in btf_decl_tag_resolve()
4993 btf_type_decl_tag(t)->component_idx); in btf_decl_tag_log()