| /linux/include/linux/ |
| H A D | mdev.h | 47 unsigned int nr_types; member 78 unsigned int nr_types);
|
| /linux/drivers/vfio/mdev/ |
| H A D | mdev_core.c | 61 unsigned int nr_types) in mdev_register_parent() argument 72 parent->nr_types = nr_types; in mdev_register_parent()
|
| /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/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()
|
| H A D | asus-ec-sensors.c | 1459 int nr_count[hwmon_max] = { 0 }, nr_types = 0; in asus_ec_probe() local 1550 ++nr_types; in asus_ec_probe() 1555 nr_count[hwmon_chip]++, nr_types++; in asus_ec_probe() 1558 dev, nr_types, sizeof(*asus_ec_hwmon_chan), GFP_KERNEL); in asus_ec_probe() 1562 ptr_asus_ec_ci = devm_kcalloc(dev, nr_types + 1, in asus_ec_probe()
|
| /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 | btf.c | 135 __u32 nr_types; member 256 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_offs_mem() 592 pr_warn("BTF type [%u] is malformed\n", btf->start_id + btf->nr_types); in btf_parse_type_sec() 604 btf->nr_types++; in btf_parse_type_sec() 780 return btf->start_id + btf->nr_types; in btf__type_cnt() 800 if (type_id >= btf->start_id + btf->nr_types) in btf__type_by_id() 1113 __u32 nr_types = btf__type_cnt(btf); in btf_find_by_name_kind() local 1132 for (; id < nr_types; id++) { in btf_find_by_name_kind() 1141 for (id = start_id; id < nr_types; id++) { in btf_find_by_name_kind() 1227 btf->nr_types = 0; in btf_new_empty() [all …]
|
| H A D | libbpf.c | 3051 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() local 3068 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 3069 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps() 12667 __u32 type_id, nr_types = btf__type_cnt(btf); in collect_btf_func_ids_by_glob() local 12673 for (type_id = 1; type_id < nr_types; type_id++) { in collect_btf_func_ids_by_glob()
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 724 __u32 nr_types; in symbols_resolve() local 727 nr_types = btf__type_cnt(btf); in symbols_resolve() 732 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve() 1538 int nr_types, i, err = 0; in sort_btf_by_name() local 1543 nr_types = btf__type_cnt(btf) - start_id; in sort_btf_by_name() 1545 permute_ids = calloc(nr_types, sizeof(*permute_ids)); in sort_btf_by_name() 1551 id_map = calloc(nr_types, sizeof(*id_map)); in sort_btf_by_name() 1557 for (i = 0, id = start_id; i < nr_types; i++, id++) in sort_btf_by_name() 1560 qsort_r(permute_ids, nr_types, sizeof(*permute_ids), cmp_type_names, in sort_btf_by_name() 1563 for (i = 0; i < nr_types; i++) { in sort_btf_by_name() [all …]
|
| /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/tools/perf/util/ |
| H A D | lock-contention.h | 9 int nr_types; member
|
| H A D | bpf_lock_contention.c | 232 if (con->filters->nr_types) { in lock_contention_prepare() 234 ntypes = con->filters->nr_types; in lock_contention_prepare() 362 if (con->filters->nr_types) { in lock_contention_prepare() 367 for (i = 0; i < con->filters->nr_types; i++) in lock_contention_prepare()
|
| /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 | 1040 if (filters.nr_types) { in report_lock_contention_begin_event() 1043 for (i = 0; i < filters.nr_types; i++) { in report_lock_contention_begin_event() 1532 filters.nr_types = 0; in lock_filter_finish() 2281 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types)); in add_lock_type() 2285 tmp[filters.nr_types++] = flags;
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 262 u32 nr_types; /* includes VOID for base BTF */ member 548 total += btf->nr_types; in btf_nr_types() 966 if (type_id >= btf->nr_types) in btf_type_by_id() 1723 if (btf->types_size == btf->nr_types) { in btf_add_type() 1743 if (btf->nr_types == 0) { in btf_add_type() 1747 btf->nr_types++; in btf_add_type() 1751 sizeof(*btf->types) * btf->nr_types); in btf_add_type() 1759 btf->types[btf->nr_types++] = t; in btf_add_type() 1929 u32 nr_types = btf->nr_types; in env_resolve_init() local 1934 resolved_sizes = kvcalloc(nr_types, sizeof(*resolved_sizes), in env_resolve_init() [all …]
|