| /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 | 51 * @nr_types: Number of entries in @types 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 | 271 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) in btf_type_c_dump() 276 ASSERT_EQ(btf__type_cnt(btf) - 1, nr_types, "btf_nr_types"); in btf_type_c_dump() 278 for (i = 1; i <= nr_types; i++) { in btf_type_c_dump() 234 btf_validate_raw(struct btf * btf,int nr_types,const char * exp_types[]) btf_validate_raw() argument
|
| 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 | 505 int nr_count[hwmon_max] = {}, nr_types = 0; in asus_wmi_configure_sensor_setup() 528 nr_types++; in asus_wmi_configure_sensor_setup() 535 nr_count[hwmon_chip]++, nr_types++; in asus_wmi_configure_sensor_setup() 538 nr_types); in asus_wmi_configure_sensor_setup() 542 ptr_asus_wmi_ci = devm_kzalloc_objs(dev, *ptr_asus_wmi_ci, nr_types + 1); in asus_wmi_configure_sensor_setup() 509 int nr_count[hwmon_max] = {}, nr_types = 0; asus_wmi_configure_sensor_setup() local
|
| H A D | asus-ec-sensors.c | 1463 int nr_count[hwmon_max] = { 0 }, nr_types = 0; in asus_ec_probe() 1552 ++nr_types; in asus_ec_probe() 1557 nr_count[hwmon_chip]++, nr_types++; in asus_ec_probe() 1560 nr_types); in asus_ec_probe() 1564 ptr_asus_ec_ci = devm_kzalloc_objs(dev, *ptr_asus_ec_ci, nr_types + 1); in asus_ec_probe() 1459 int nr_count[hwmon_max] = { 0 }, nr_types = 0; asus_ec_probe() local
|
| /linux/tools/lib/bpf/ |
| H A D | btf_relocate.c | 447 unsigned int nr_types = btf__type_cnt(btf); in btf_relocate() 460 r.nr_split_types = nr_types - r.nr_dist_base_types; in btf_relocate() 464 r.id_map = calloc(nr_types, sizeof(*r.id_map)); in btf_relocate() 483 for (id = r.nr_dist_base_types; id < nr_types; id++) in btf_relocate() 446 unsigned int nr_types = btf__type_cnt(btf); btf_relocate() local
|
| H A D | btf.c | 138 __u32 nr_types; 259 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt); in btf_add_type_idx_entry() 621 pr_warn("BTF type [%u] is malformed\n", btf->start_id + btf->nr_types); in btf_validate_str() 633 btf->nr_types++; in btf_validate_id() 836 return btf->start_id + btf->nr_types; in determine_ptr_size() 856 if (type_id >= btf->start_id + btf->nr_types) 1169 __u32 nr_types = btf__type_cnt(btf); in btf__find_by_name_kind() 1188 for (; id < nr_types; id++) { 1197 for (id = start_id; id < nr_types; id++) { in btf__free() 1283 btf->nr_types 135 __u32 nr_types; global() member 1113 __u32 nr_types = btf__type_cnt(btf); btf_find_by_name_kind() local 5521 __u32 nr_types = btf__type_cnt(d->btf); btf_dedup_fill_unique_names_map() local [all...] |
| H A D | libbpf.c | 3097 int nr_types, i, vlen, err; in bpf_object__init_user_btf_maps() 3114 nr_types = btf__type_cnt(obj->btf); in bpf_object__init_user_btf_maps() 3115 for (i = 1; i < nr_types; i++) { in bpf_object__init_user_btf_maps() 13274 __u32 type_id, nr_types = btf__type_cnt(btf); in bpf_program__attach_uprobe_opts() 13280 for (type_id = 1; type_id < nr_types; type_id++) { in bpf_program__attach_uprobe_opts() 3051 int nr_types, i, vlen, err; bpf_object__init_user_btf_maps() local 12674 __u32 type_id, nr_types = btf__type_cnt(btf); collect_btf_func_ids_by_glob() local
|
| /linux/tools/bpf/resolve_btfids/ |
| H A D | main.c | 836 __u32 nr_types; in cmp_id() 839 nr_types = btf__type_cnt(btf); in cmp_id() 844 for (type_id = 1; type_id < nr_types; type_id++) { in sets_patch() 1875 int nr_types, i, err = 0; 1880 nr_types = btf__type_cnt(btf) - start_id; 1882 permute_ids = calloc(nr_types, sizeof(*permute_ids)); 1888 id_map = calloc(nr_types, sizeof(*id_map)); 1894 for (i = 0, id = start_id; i < nr_types; i++, id++) 1897 qsort_r(permute_ids, nr_types, sizeof(*permute_ids), cmp_type_names, 1900 for (i = 0; i < nr_types; 724 __u32 nr_types; symbols_resolve() local 1538 int nr_types, i, err = 0; sort_btf_by_name() local [all...] |
| /linux/tools/perf/trace/beauty/ |
| H A D | ioctl.c | 148 const int nr_types = ARRAY_SIZE(ioctl_types); in ioctl__scnprintf_cmd() 150 if (type >= ioctl_types[0].type && type <= ioctl_types[nr_types - 1].type) { in ioctl__scnprintf_cmd() 146 const int nr_types = ARRAY_SIZE(ioctl_types); ioctl__scnprintf_cmd() local
|
| /linux/tools/perf/util/ |
| 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()
|
| H A D | lock-contention.h | 9 int nr_types; member
|
| /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 | 1014 if (filters.nr_types) { in report_lock_contention_begin_event() 1017 for (i = 0; i < filters.nr_types; i++) { in report_lock_contention_begin_event() 1537 filters.nr_types = 0; in lock_filter_finish() 2286 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types)); in parse_lock_type() 2290 tmp[filters.nr_types++] = flags; in parse_lock_type()
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 264 u32 nr_types; /* includes VOID for base BTF */ 569 total += btf->nr_types; in btf_check_sorted() 982 if (type_id >= btf->nr_types) in __btf_type_int_is_regular() 1751 if (btf->types_size == btf->nr_types) { in btf_add_type() 1772 if (btf->nr_types == 0) { in btf_alloc_id() 1776 btf->nr_types++; in btf_alloc_id() 1780 sizeof(*btf->types) * btf->nr_types); in btf_alloc_id() 1788 btf->types[btf->nr_types++] = t; in btf_free_id() 1958 u32 nr_types = btf->nr_types; in env_resolve_init() 262 u32 nr_types; /* includes VOID for base BTF */ global() member 1929 u32 nr_types = btf->nr_types; env_resolve_init() local [all...] |