/Linux-v5.15/drivers/hwmon/ |
D | scmi-hwmon.c | 167 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-v5.15/tools/testing/selftests/bpf/ |
D | btf_helpers.c | 208 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw() argument 213 ASSERT_EQ(btf__get_nr_types(btf), nr_types, "btf_nr_types"); in btf_validate_raw() 215 for (i = 1; i <= nr_types; i++) { in btf_validate_raw()
|
D | btf_helpers.h | 11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
|
/Linux-v5.15/tools/lib/bpf/ |
D | btf.c | 93 __u32 nr_types; member 197 btf->nr_types, BTF_MAX_NR_TYPES, 1); in btf_add_type_idx_entry() 400 pr_warn("BTF type [%d] is malformed\n", btf->start_id + btf->nr_types); in btf_parse_type_sec() 412 btf->nr_types++; in btf_parse_type_sec() 425 return btf->start_id + btf->nr_types - 1; in btf__get_nr_types() 445 if (type_id >= btf->start_id + btf->nr_types) in btf__type_by_id() 676 __u32 i, nr_types = btf__get_nr_types(btf); in btf__find_by_name() local 681 for (i = 1; i <= nr_types; i++) { in btf__find_by_name() 695 __u32 i, nr_types = btf__get_nr_types(btf); in btf__find_by_name_kind() local 700 for (i = 1; i <= nr_types; i++) { in btf__find_by_name_kind() [all …]
|
D | libbpf.c | 2406 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 2423 nr_types = btf__get_nr_types(obj->btf); in bpf_object__init_user_btf_maps() 2424 for (i = 1; i <= nr_types; i++) { in bpf_object__init_user_btf_maps()
|
/Linux-v5.15/tools/perf/trace/beauty/ |
D | ioctl.c | 146 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-v5.15/tools/bpf/resolve_btfids/ |
D | main.c | 482 __u32 nr_types; in symbols_resolve() local 493 nr_types = btf__get_nr_types(btf); in symbols_resolve() 498 for (type_id = 1; type_id <= nr_types; type_id++) { in symbols_resolve()
|
/Linux-v5.15/tools/perf/util/ |
D | bpf-loader.c | 45 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-v5.15/scripts/ |
D | asn1_compiler.c | 717 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-v5.15/kernel/bpf/ |
D | btf.c | 208 u32 nr_types; /* includes VOID for base BTF */ member 467 total += btf->nr_types; in btf_nr_types() 715 if (type_id >= btf->nr_types) in btf_type_by_id() 1435 if (btf->types_size == btf->nr_types) { in btf_add_type() 1455 if (btf->nr_types == 0) { in btf_add_type() 1459 btf->nr_types++; in btf_add_type() 1463 sizeof(*btf->types) * btf->nr_types); in btf_add_type() 1471 btf->types[btf->nr_types++] = t; in btf_add_type() 1544 u32 nr_types = btf->nr_types; in env_resolve_init() local 1549 resolved_sizes = kvcalloc(nr_types, sizeof(*resolved_sizes), in env_resolve_init() [all …]
|