Home
last modified time | relevance | path

Searched refs:nr_types (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/hwmon/
A Dscmi-hwmon.c167 int nr_count[hwmon_max] = {0}, nr_types = 0; in scmi_hwmon_probe() local
205 nr_types++; in scmi_hwmon_probe()
213 nr_types++; in scmi_hwmon_probe()
216 scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan), in scmi_hwmon_probe()
221 ptr_scmi_ci = devm_kcalloc(dev, nr_types + 1, sizeof(*ptr_scmi_ci), in scmi_hwmon_probe()
/linux/tools/lib/bpf/
A Dbtf.c93 __u32 nr_types; member
428 btf->nr_types++; in btf_parse_type_sec()
703 for (i = 1; i < nr_types; i++) { in btf__find_by_name()
786 btf->nr_types = 0; in btf_new_empty()
838 btf->nr_types = 0; in btf_new()
1580 btf->nr_types++; in btf_commit_type()
1719 btf->nr_types += cnt; in btf__add_btf()
2007 if (btf->nr_types == 0) in btf__add_field()
2112 if (btf->nr_types == 0) in btf__add_enum_value()
2322 if (btf->nr_types == 0) in btf__add_func_param()
[all …]
A Dlibbpf.c2506 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local
2523 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps()
2524 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps()
/linux/tools/testing/selftests/bpf/
A Dbtf_helpers.c213 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw() argument
218 ASSERT_EQ(btf__type_cnt(btf) - 1, nr_types, "btf_nr_types"); in btf_validate_raw()
220 for (i = 1; i <= nr_types; i++) { in btf_validate_raw()
A Dbtf_helpers.h11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
/linux/tools/perf/trace/beauty/
A Dioctl.c146 const int nr_types = ARRAY_SIZE(ioctl_types); in ioctl__scnprintf_cmd() local
148 if (type >= ioctl_types[0].type && type <= ioctl_types[nr_types - 1].type) { in ioctl__scnprintf_cmd()
/linux/tools/bpf/resolve_btfids/
A Dmain.c487 __u32 nr_types; in symbols_resolve() local
508 nr_types = btf__type_cnt(btf); in symbols_resolve()
513 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
/linux/tools/perf/util/
A Dbpf-loader.c45 int nr_types; member
429 if (n < 0 || n >= priv->nr_types) in preproc_gen_prologue()
523 int *nr_types) in map_prologue() argument
561 *nr_types = type + 1; in map_prologue()
617 err = map_prologue(pev, priv->type_mapping, &priv->nr_types); in hook_load_preprocessor()
621 err = bpf_program__set_prep(prog, priv->nr_types, in hook_load_preprocessor()
/linux/scripts/
A Dasn1_compiler.c717 static unsigned nr_types; variable
762 nr_types = nr; in build_type_list()
789 verbose("Extracted %u types\n", nr_types); in build_type_list()
791 for (n = 0; n < nr_types; n++) { in build_type_list()
1012 ref = bsearch(cursor, type_index, nr_types, sizeof(type_index[0]), in parse_type()
/linux/kernel/bpf/
A Dbtf.c208 u32 nr_types; /* includes VOID for base BTF */ member
479 total += btf->nr_types; in btf_nr_types()
734 if (type_id >= btf->nr_types) in btf_type_by_id()
1454 if (btf->types_size == btf->nr_types) { in btf_add_type()
1474 if (btf->nr_types == 0) { in btf_add_type()
1478 btf->nr_types++; in btf_add_type()
1482 sizeof(*btf->types) * btf->nr_types); in btf_add_type()
1490 btf->types[btf->nr_types++] = t; in btf_add_type()
1563 u32 nr_types = btf->nr_types; in env_resolve_init() local
1573 resolved_ids = kvcalloc(nr_types, sizeof(*resolved_ids), in env_resolve_init()
[all …]

Completed in 55 milliseconds