Searched refs:nr_types (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | scmi-hwmon.c | 166 int nr_count[hwmon_max] = {0}, nr_types = 0; in scmi_hwmon_probe() local 199 nr_types++; in scmi_hwmon_probe() 207 nr_types++; in scmi_hwmon_probe() 210 scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan), in scmi_hwmon_probe() 215 ptr_scmi_ci = devm_kcalloc(dev, nr_types + 1, sizeof(*ptr_scmi_ci), in scmi_hwmon_probe()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
D | btf.c | 84 __u32 nr_types; member 171 btf->nr_types + 1, BTF_MAX_NR_TYPES, 1); in btf_add_type_idx_entry() 396 btf->nr_types++; in btf_parse_type_sec() 409 return btf->nr_types; in btf__get_nr_types() 423 if (type_id > btf->nr_types) in btf__type_by_id() 434 for (i = 1; i <= btf->nr_types; i++) { in determine_ptr_size() 654 for (i = 1; i <= btf->nr_types; i++) { in btf__find_by_name() 673 for (i = 1; i <= btf->nr_types; i++) { in btf__find_by_name_kind() 1065 for (i = 1; i <= btf->nr_types; i++) { in btf__finalize_data() 1171 for (i = 1; i <= btf->nr_types; i++) { in btf_get_raw_data() [all …]
|
D | libbpf.c | 2286 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 2303 nr_types = btf__get_nr_types(obj->btf); in bpf_object__init_user_btf_maps() 2304 for (i = 1; i <= nr_types; i++) { in bpf_object__init_user_btf_maps()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | btf.c | 207 u32 nr_types; member 459 for (i = 1; i <= btf->nr_types; i++) { in btf_find_by_name_kind() 672 if (type_id > btf->nr_types) in btf_type_by_id() 1398 if (btf->types_size - btf->nr_types < 2) { in btf_add_type() 1418 if (btf->nr_types == 0) in btf_add_type() 1422 sizeof(*btf->types) * (btf->nr_types + 1)); in btf_add_type() 1429 btf->types[++(btf->nr_types)] = t; in btf_add_type() 1497 u32 nr_types = btf->nr_types; in env_resolve_init() local 1503 resolved_sizes = kvcalloc(nr_types + 1, sizeof(*resolved_sizes), in env_resolve_init() 1508 resolved_ids = kvcalloc(nr_types + 1, sizeof(*resolved_ids), in env_resolve_init() [all …]
|