Searched refs:nr_types (Results 1 – 6 of 6) sorted by relevance
/Linux-v4.19/drivers/hwmon/ |
D | scmi-hwmon.c | 118 int nr_count[hwmon_max] = {0}, nr_types = 0; in scmi_hwmon_probe() local 151 nr_types++; in scmi_hwmon_probe() 158 nr_count[hwmon_chip]++, nr_types++; in scmi_hwmon_probe() 160 scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan), in scmi_hwmon_probe() 165 ptr_scmi_ci = devm_kcalloc(dev, nr_types + 1, sizeof(*ptr_scmi_ci), in scmi_hwmon_probe()
|
/Linux-v4.19/tools/lib/bpf/ |
D | btf.c | 34 __u32 nr_types; member 42 if (btf->types_size - btf->nr_types < 2) { in btf_add_type() 56 if (btf->nr_types == 0) in btf_add_type() 63 btf->types[++(btf->nr_types)] = t; in btf_add_type() 191 if (type_id > btf->nr_types) in btf__type_by_id() 296 for (i = 1; i <= btf->nr_types; i++) { in btf__find_by_name()
|
/Linux-v4.19/tools/perf/trace/beauty/ |
D | ioctl.c | 134 const int nr_types = ARRAY_SIZE(ioctl_types); in ioctl__scnprintf_cmd() local 136 if (type >= ioctl_types[0].type && type <= ioctl_types[nr_types - 1].type) { in ioctl__scnprintf_cmd()
|
/Linux-v4.19/kernel/bpf/ |
D | btf.c | 198 u32 nr_types; member 441 if (type_id > btf->nr_types) in btf_type_by_id() 596 if (btf->types_size - btf->nr_types < 2) { in btf_add_type() 616 if (btf->nr_types == 0) in btf_add_type() 620 sizeof(*btf->types) * (btf->nr_types + 1)); in btf_add_type() 627 btf->types[++(btf->nr_types)] = t; in btf_add_type() 695 u32 nr_types = btf->nr_types; in env_resolve_init() local 701 resolved_sizes = kvcalloc(nr_types + 1, sizeof(*resolved_sizes), in env_resolve_init() 706 resolved_ids = kvcalloc(nr_types + 1, sizeof(*resolved_ids), in env_resolve_init() 711 visit_states = kvcalloc(nr_types + 1, sizeof(*visit_states), in env_resolve_init() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | bpf-loader.c | 50 int nr_types; member 443 if (n < 0 || n >= priv->nr_types) in preproc_gen_prologue() 540 int *nr_types) in map_prologue() argument 578 *nr_types = type + 1; in map_prologue() 634 err = map_prologue(pev, priv->type_mapping, &priv->nr_types); in hook_load_preprocessor() 638 err = bpf_program__set_prep(prog, priv->nr_types, in hook_load_preprocessor()
|
/Linux-v4.19/scripts/ |
D | asn1_compiler.c | 721 static unsigned nr_types; variable 766 nr_types = nr; in build_type_list() 793 verbose("Extracted %u types\n", nr_types); in build_type_list() 795 for (n = 0; n < nr_types; n++) { in build_type_list() 1016 ref = bsearch(cursor, type_index, nr_types, sizeof(type_index[0]), in parse_type()
|