Home
last modified time | relevance | path

Searched refs:nr_types (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/include/linux/
Dmdev.h47 unsigned int nr_types; member
78 unsigned int nr_types);
/linux-6.1.9/drivers/hwmon/
Dscmi-hwmon.c236 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()
Dasus_wmi_sensors.c509 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()
Dasus-ec-sensors.c895 int nr_count[hwmon_max] = { 0 }, nr_types = 0; in asus_ec_probe() local
964 ++nr_types; in asus_ec_probe()
969 nr_count[hwmon_chip]++, nr_types++; in asus_ec_probe()
972 dev, nr_types, sizeof(*asus_ec_hwmon_chan), GFP_KERNEL); in asus_ec_probe()
976 ptr_asus_ec_ci = devm_kcalloc(dev, nr_types + 1, in asus_ec_probe()
/linux-6.1.9/drivers/vfio/mdev/
Dmdev_core.c61 unsigned int nr_types) in mdev_register_parent() argument
72 parent->nr_types = nr_types; in mdev_register_parent()
Dmdev_sysfs.c212 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.1.9/tools/testing/selftests/bpf/
Dbtf_helpers.c234 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()
Dbtf_helpers.h11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
/linux-6.1.9/tools/lib/bpf/
Dbtf.c93 __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()
723 __u32 i, nr_types = btf__type_cnt(btf); in btf__find_by_name() local
728 for (i = 1; i < nr_types; i++) { in btf__find_by_name()
742 __u32 i, nr_types = btf__type_cnt(btf); in btf_find_by_name_kind() local
747 for (i = start_id; i < nr_types; i++) { in btf_find_by_name_kind()
[all …]
Dlibbpf.c2559 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local
2576 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps()
2577 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps()
/linux-6.1.9/tools/perf/trace/beauty/
Dioctl.c146 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.1.9/tools/bpf/resolve_btfids/
Dmain.c514 __u32 nr_types; in symbols_resolve() local
535 nr_types = btf__type_cnt(btf); in symbols_resolve()
540 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
/linux-6.1.9/scripts/
Dasn1_compiler.c717 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.1.9/tools/perf/util/
Dbpf-loader.c73 int nr_types; member
672 if (n < 0 || n >= priv->nr_types) in preproc_gen_prologue()
765 int *nr_types) in map_prologue() argument
803 *nr_types = type + 1; in map_prologue()
866 return map_prologue(pev, priv->type_mapping, &priv->nr_types); in hook_load_preprocessor()
/linux-6.1.9/kernel/bpf/
Dbtf.c232 u32 nr_types; /* includes VOID for base BTF */ member
511 total += btf->nr_types; in btf_nr_types()
817 if (type_id >= btf->nr_types) in btf_type_by_id()
1539 if (btf->types_size == btf->nr_types) { in btf_add_type()
1559 if (btf->nr_types == 0) { in btf_add_type()
1563 btf->nr_types++; in btf_add_type()
1567 sizeof(*btf->types) * btf->nr_types); in btf_add_type()
1575 btf->types[btf->nr_types++] = t; in btf_add_type()
1679 u32 nr_types = btf->nr_types; in env_resolve_init() local
1684 resolved_sizes = kvcalloc(nr_types, sizeof(*resolved_sizes), in env_resolve_init()
[all …]