/kernel/linux/linux-5.10/drivers/hwmon/ |
H A 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/ |
H A 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() 667 for (i = 1; i <= btf->nr_types; i++) { in btf__find_by_name() 686 for (i = 1; i <= btf->nr_types; i++) { in btf__find_by_name_kind() 1078 for (i = 1; i <= btf->nr_types; i++) { in btf__finalize_data() 1184 for (i = 1; i <= btf->nr_types; in btf_get_raw_data() [all...] |
H A 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-6.6/include/linux/ |
H A D | mdev.h | 47 unsigned int nr_types; member 78 unsigned int nr_types);
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | btf.c | 93 __u32 nr_types; member 195 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem() 428 pr_warn("BTF type [%d] is malformed\n", btf->start_id + btf->nr_types); in btf_parse_type_sec() 440 btf->nr_types++; in btf_parse_type_sec() 453 return btf->start_id + btf->nr_types; in btf__type_cnt() 473 if (type_id >= btf->start_id + btf->nr_types) in btf__type_by_id() 736 __u32 i, nr_types = btf__type_cnt(btf); in btf__find_by_name() local 741 for (i = 1; i < nr_types; i++) { in btf__find_by_name() 755 __u32 i, nr_types = btf__type_cnt(btf); in btf_find_by_name_kind() local 760 for (i = start_id; i < nr_types; in btf_find_by_name_kind() 4531 __u32 nr_types = btf__type_cnt(d->btf); btf_dedup_fill_unique_names_map() local [all...] |
H A D | libbpf.c | 2619 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 2636 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 2637 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | scmi-hwmon.c | 236 int nr_count[hwmon_max] = {0}, nr_types = 0, nr_count_temp = 0; in scmi_hwmon_probe() local 274 nr_types++; in scmi_hwmon_probe() 283 scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan), in scmi_hwmon_probe() 288 ptr_scmi_ci = devm_kcalloc(dev, nr_types + 1, sizeof(*ptr_scmi_ci), in scmi_hwmon_probe()
|
H A D | asus_wmi_sensors.c | 509 int nr_count[hwmon_max] = {}, nr_types = 0; in asus_wmi_configure_sensor_setup() local 532 nr_types++; in asus_wmi_configure_sensor_setup() 539 nr_count[hwmon_chip]++, nr_types++; in asus_wmi_configure_sensor_setup() 541 asus_wmi_hwmon_chan = devm_kcalloc(dev, nr_types, in asus_wmi_configure_sensor_setup() 547 ptr_asus_wmi_ci = devm_kcalloc(dev, nr_types + 1, in asus_wmi_configure_sensor_setup()
|
H A D | asus-ec-sensors.c | 945 int nr_count[hwmon_max] = { 0 }, nr_types = 0; in asus_ec_probe() local 1017 ++nr_types; in asus_ec_probe() 1022 nr_count[hwmon_chip]++, nr_types++; in asus_ec_probe() 1025 dev, nr_types, sizeof(*asus_ec_hwmon_chan), GFP_KERNEL); in asus_ec_probe() 1029 ptr_asus_ec_ci = devm_kcalloc(dev, nr_types + 1, in asus_ec_probe()
|
/kernel/linux/linux-6.6/drivers/vfio/mdev/ |
H A D | mdev_core.c | 51 * @nr_types: Number of entries in @types 61 unsigned int nr_types) in mdev_register_parent() 72 parent->nr_types = nr_types; in mdev_register_parent() 59 mdev_register_parent(struct mdev_parent *parent, struct device *dev, struct mdev_driver *mdev_driver, struct mdev_type **types, unsigned int nr_types) mdev_register_parent() argument
|
H A D | mdev_sysfs.c | 212 for (i = 0; i < parent->nr_types; i++) in parent_remove_sysfs_files() 226 for (i = 0; i < parent->nr_types; i++) { in parent_create_sysfs_files()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | btf_helpers.c | 234 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_validate_raw() argument 239 ASSERT_EQ(btf__type_cnt(btf) - 1, nr_types, "btf_nr_types"); in btf_validate_raw() 241 for (i = 1; i <= nr_types; i++) { in btf_validate_raw()
|
H A D | btf_helpers.h | 11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | bpf_lock_contention.c | 51 if (con->filters->nr_types) in lock_contention_prepare() 52 ntypes = con->filters->nr_types; in lock_contention_prepare() 128 if (con->filters->nr_types) { in lock_contention_prepare() 134 for (i = 0; i < con->filters->nr_types; i++) in lock_contention_prepare()
|
H A D | lock-contention.h | 9 int nr_types; member
|
/kernel/linux/linux-5.10/tools/perf/trace/beauty/ |
H A 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-6.6/tools/perf/trace/beauty/ |
H A 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/ |
H A D | bpf-loader.c | 45 int nr_types; member 429 if (n < 0 || n >= priv->nr_types) in preproc_gen_prologue() 520 * nr_types will be set to number of types. 523 int *nr_types) in map_prologue() 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() 522 map_prologue(struct perf_probe_event *pev, int *mapping, int *nr_types) map_prologue() argument
|
/kernel/linux/linux-6.6/tools/bpf/resolve_btfids/ |
H A D | main.c | 532 __u32 nr_types; in symbols_resolve() local 553 nr_types = btf__type_cnt(btf); in symbols_resolve() 558 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
|
/kernel/linux/linux-5.10/scripts/ |
H A 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-6.6/scripts/ |
H A 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/ |
H A D | btf.c | 207 u32 nr_types; member 459 for (i = 1; i <= btf->nr_types; i++) { in btf_find_by_name_kind() 668 if (type_id > btf->nr_types) in btf_type_by_id() 1391 * btf_void is not accounted in btf->nr_types because btf_void in btf_add_type() 1394 if (btf->types_size - btf->nr_types < 2) { in btf_add_type() 1414 if (btf->nr_types == 0) in btf_add_type() 1418 sizeof(*btf->types) * (btf->nr_types + 1)); in btf_add_type() 1425 btf->types[++(btf->nr_types)] = t; in btf_add_type() 1493 u32 nr_types = btf->nr_types; in env_resolve_init() local [all...] |
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-lock.c | 1131 if (filters.nr_types) { in report_lock_contention_begin_event() 1134 for (i = 0; i < filters.nr_types; i++) { in report_lock_contention_begin_event() 1636 filters.nr_types = 0; in lock_filter_finish() 2311 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types)); in add_lock_type() 2315 tmp[filters.nr_types++] = flags; in add_lock_type()
|
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | btf.c | 252 u32 nr_types; /* includes VOID for base BTF */ member 529 total += btf->nr_types; in btf_nr_types() 831 if (type_id >= btf->nr_types) in btf_type_by_id() 1566 if (btf->types_size == btf->nr_types) { in btf_add_type() 1586 if (btf->nr_types == 0) { in btf_add_type() 1590 btf->nr_types++; in btf_add_type() 1594 sizeof(*btf->types) * btf->nr_types); in btf_add_type() 1602 btf->types[btf->nr_types++] = t; in btf_add_type() 1726 u32 nr_types = btf->nr_types; in env_resolve_init() local [all...] |