Searched refs:nr_types (Results 1 – 13 of 13) sorted by relevance
| /linux/include/linux/ |
| H A D | mdev.h | 47 unsigned int nr_types; member 78 unsigned int nr_types);
|
| /linux/drivers/hwmon/ |
| 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()
|
| /linux/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[]);
|
| /linux/tools/lib/bpf/ |
| H A 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()
|
| H A D | libbpf.c | 3019 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 3036 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 3037 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps()
|
| /linux/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()
|
| /linux/drivers/vfio/mdev/ |
| 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()
|
| /linux/tools/perf/util/ |
| H A D | bpf_lock_contention.c | 228 if (con->filters->nr_types) { in lock_contention_prepare() 230 ntypes = con->filters->nr_types; in lock_contention_prepare() 352 if (con->filters->nr_types) { in lock_contention_prepare() 357 for (i = 0; i < con->filters->nr_types; i++) in lock_contention_prepare()
|
| H A D | lock-contention.h | 9 int nr_types; member
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 541 __u32 nr_types; in symbols_resolve() local 562 nr_types = btf__type_cnt(btf); in symbols_resolve() 567 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
|
| /linux/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()
|
| /linux/tools/perf/ |
| H A D | builtin-lock.c | 1042 if (filters.nr_types) { in report_lock_contention_begin_event() 1045 for (i = 0; i < filters.nr_types; i++) { in report_lock_contention_begin_event() 1535 filters.nr_types = 0; in lock_filter_finish() 2277 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types)); in add_lock_type() 2281 tmp[filters.nr_types++] = flags; in add_lock_type()
|