/linux-6.12.1/include/linux/ |
D | mdev.h | 47 unsigned int nr_types; member 78 unsigned int nr_types);
|
/linux-6.12.1/drivers/hwmon/ |
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()
|
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()
|
D | asus-ec-sensors.c | 967 int nr_count[hwmon_max] = { 0 }, nr_types = 0; in asus_ec_probe() local 1039 ++nr_types; in asus_ec_probe() 1044 nr_count[hwmon_chip]++, nr_types++; in asus_ec_probe() 1047 dev, nr_types, sizeof(*asus_ec_hwmon_chan), GFP_KERNEL); in asus_ec_probe() 1051 ptr_asus_ec_ci = devm_kcalloc(dev, nr_types + 1, in asus_ec_probe()
|
/linux-6.12.1/drivers/vfio/mdev/ |
D | mdev_core.c | 61 unsigned int nr_types) in mdev_register_parent() argument 72 parent->nr_types = nr_types; in mdev_register_parent()
|
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()
|
/linux-6.12.1/tools/lib/bpf/ |
D | btf.c | 93 __u32 nr_types; member 198 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem() 431 pr_warn("BTF type [%d] is malformed\n", btf->start_id + btf->nr_types); in btf_parse_type_sec() 443 btf->nr_types++; in btf_parse_type_sec() 615 return btf->start_id + btf->nr_types; in btf__type_cnt() 635 if (type_id >= btf->start_id + btf->nr_types) in btf__type_by_id() 898 __u32 i, nr_types = btf__type_cnt(btf); in btf__find_by_name() local 903 for (i = 1; i < nr_types; i++) { in btf__find_by_name() 917 __u32 i, nr_types = btf__type_cnt(btf); in btf_find_by_name_kind() local 922 for (i = start_id; i < nr_types; i++) { in btf_find_by_name_kind() [all …]
|
D | btf_relocate.c | 446 unsigned int nr_types = btf__type_cnt(btf); in btf_relocate() local 459 r.nr_split_types = nr_types - r.nr_dist_base_types; in btf_relocate() 463 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate() 482 for (id = r.nr_dist_base_types; id < nr_types; id++) in btf_relocate()
|
D | libbpf.c | 2959 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 2976 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 2977 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps()
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
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()
|
D | btf_helpers.h | 11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
|
/linux-6.12.1/tools/perf/util/ |
D | bpf_lock_contention.c | 57 if (con->filters->nr_types) { in lock_contention_prepare() 59 ntypes = con->filters->nr_types; in lock_contention_prepare() 149 if (con->filters->nr_types) { in lock_contention_prepare() 154 for (i = 0; i < con->filters->nr_types; i++) in lock_contention_prepare()
|
D | lock-contention.h | 9 int nr_types; member
|
/linux-6.12.1/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-6.12.1/drivers/regulator/ |
D | tps6594-regulator.c | 572 int nr_types; in tps6594_regulator_probe() local 659 nr_types = TPS65224_REGS_INT_NB; in tps6594_regulator_probe() 663 nr_types = REGS_INT_NB; in tps6594_regulator_probe() 666 reg_irq_nb = nr_types * (nr_buck + nr_ldo); in tps6594_regulator_probe()
|
/linux-6.12.1/tools/bpf/resolve_btfids/ |
D | main.c | 540 __u32 nr_types; in symbols_resolve() local 561 nr_types = btf__type_cnt(btf); in symbols_resolve() 566 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
|
/linux-6.12.1/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-6.12.1/tools/perf/ |
D | builtin-lock.c | 1135 if (filters.nr_types) { in report_lock_contention_begin_event() 1138 for (i = 0; i < filters.nr_types; i++) { in report_lock_contention_begin_event() 1636 filters.nr_types = 0; in lock_filter_finish() 2340 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types)); in add_lock_type() 2344 tmp[filters.nr_types++] = flags; in add_lock_type()
|
/linux-6.12.1/kernel/bpf/ |
D | btf.c | 260 u32 nr_types; /* includes VOID for base BTF */ member 544 total += btf->nr_types; in btf_nr_types() 857 if (type_id >= btf->nr_types) in btf_type_by_id() 1592 if (btf->types_size == btf->nr_types) { in btf_add_type() 1612 if (btf->nr_types == 0) { in btf_add_type() 1616 btf->nr_types++; in btf_add_type() 1620 sizeof(*btf->types) * btf->nr_types); in btf_add_type() 1628 btf->types[btf->nr_types++] = t; in btf_add_type() 1789 u32 nr_types = btf->nr_types; in env_resolve_init() local 1794 resolved_sizes = kvcalloc(nr_types, sizeof(*resolved_sizes), in env_resolve_init() [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | journal_io.c | 709 unsigned i, nr_types = jset_entry_dev_usage_nr_types(u); in journal_entry_dev_usage_to_text() local 717 for (i = 0; i < nr_types; i++) { in journal_entry_dev_usage_to_text()
|