Searched refs:nr_types (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/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() 206 nr_count[hwmon_chip]++, nr_types++; in scmi_hwmon_probe() 208 scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan), in scmi_hwmon_probe() 213 ptr_scmi_ci = devm_kcalloc(dev, nr_types + 1, sizeof(*ptr_scmi_ci), in scmi_hwmon_probe()
|
/Linux-v5.4/tools/lib/bpf/ |
D | btf.c | 33 __u32 nr_types; member 46 if (btf->types_size - btf->nr_types < 2) { in btf_add_type() 60 if (btf->nr_types == 0) in btf_add_type() 67 btf->types[++(btf->nr_types)] = t; in btf_add_type() 206 return btf->nr_types; in btf__get_nr_types() 211 if (type_id > btf->nr_types) in btf__type_by_id() 309 for (i = 1; i <= btf->nr_types; i++) { in btf__find_by_name() 566 for (i = 1; i <= btf->nr_types; i++) { in btf__finalize_data() 1411 d->map = malloc(sizeof(__u32) * (1 + btf->nr_types)); in btf_dedup_new() 1418 for (i = 1; i <= btf->nr_types; i++) { in btf_dedup_new() [all …]
|
D | libbpf.c | 1273 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 1291 nr_types = btf__get_nr_types(obj->btf); in bpf_object__init_user_btf_maps() 1292 for (i = 1; i <= nr_types; i++) { in bpf_object__init_user_btf_maps()
|
/Linux-v5.4/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.4/tools/perf/util/ |
D | bpf-loader.c | 45 int nr_types; member 434 if (n < 0 || n >= priv->nr_types) in preproc_gen_prologue() 531 int *nr_types) in map_prologue() argument 569 *nr_types = type + 1; in map_prologue() 625 err = map_prologue(pev, priv->type_mapping, &priv->nr_types); in hook_load_preprocessor() 629 err = bpf_program__set_prep(prog, priv->nr_types, in hook_load_preprocessor()
|
/Linux-v5.4/kernel/bpf/ |
D | btf.c | 209 u32 nr_types; member 594 if (type_id > btf->nr_types) in btf_type_by_id() 825 if (btf->types_size - btf->nr_types < 2) { in btf_add_type() 845 if (btf->nr_types == 0) in btf_add_type() 849 sizeof(*btf->types) * (btf->nr_types + 1)); in btf_add_type() 856 btf->types[++(btf->nr_types)] = t; in btf_add_type() 924 u32 nr_types = btf->nr_types; in env_resolve_init() local 930 resolved_sizes = kvcalloc(nr_types + 1, sizeof(*resolved_sizes), in env_resolve_init() 935 resolved_ids = kvcalloc(nr_types + 1, sizeof(*resolved_ids), in env_resolve_init() 940 visit_states = kvcalloc(nr_types + 1, sizeof(*visit_states), in env_resolve_init() [all …]
|
/Linux-v5.4/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()
|