Searched refs:nr_types (Results 1 - 19 of 19) sorted by relevance

/linux-master/tools/testing/selftests/bpf/
H A Dbtf_helpers.h11 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]);
H A Dbtf_helpers.c234 int btf_validate_raw(struct btf *btf, int nr_types, const char *exp_types[]) argument
239 ASSERT_EQ(btf__type_cnt(btf) - 1, nr_types, "btf_nr_types");
241 for (i = 1; i <= nr_types; i++) {
/linux-master/include/linux/
H A Dmdev.h47 unsigned int nr_types; member in struct:mdev_parent
78 unsigned int nr_types);
/linux-master/drivers/hwmon/
H A Dscmi-hwmon.c236 int nr_count[hwmon_max] = {0}, nr_types = 0, nr_count_temp = 0; local
274 nr_types++;
283 scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan),
288 ptr_scmi_ci = devm_kcalloc(dev, nr_types + 1, sizeof(*ptr_scmi_ci),
H A Dasus_wmi_sensors.c509 int nr_count[hwmon_max] = {}, nr_types = 0; local
532 nr_types++;
539 nr_count[hwmon_chip]++, nr_types++;
541 asus_wmi_hwmon_chan = devm_kcalloc(dev, nr_types,
547 ptr_asus_wmi_ci = devm_kcalloc(dev, nr_types + 1,
H A Dasus-ec-sensors.c957 int nr_count[hwmon_max] = { 0 }, nr_types = 0; local
1029 ++nr_types;
1034 nr_count[hwmon_chip]++, nr_types++;
1037 dev, nr_types, sizeof(*asus_ec_hwmon_chan), GFP_KERNEL);
1041 ptr_asus_ec_ci = devm_kcalloc(dev, nr_types + 1,
/linux-master/tools/perf/util/
H A Dlock-contention.h9 int nr_types; member in struct:lock_filter
H A Dbpf_lock_contention.c53 if (con->filters->nr_types)
54 ntypes = con->filters->nr_types;
133 if (con->filters->nr_types) {
139 for (i = 0; i < con->filters->nr_types; i++)
/linux-master/drivers/vfio/mdev/
H A Dmdev_core.c51 * @nr_types: Number of entries in @types
61 unsigned int nr_types)
72 parent->nr_types = nr_types;
59 mdev_register_parent(struct mdev_parent *parent, struct device *dev, struct mdev_driver *mdev_driver, struct mdev_type **types, unsigned int nr_types) argument
H A Dmdev_sysfs.c212 for (i = 0; i < parent->nr_types; i++)
226 for (i = 0; i < parent->nr_types; i++) {
/linux-master/tools/lib/bpf/
H A Dbtf.c93 __u32 nr_types; member in struct:btf
195 btf->nr_types, BTF_MAX_NR_TYPES, add_cnt);
428 pr_warn("BTF type [%d] is malformed\n", btf->start_id + btf->nr_types);
440 btf->nr_types++;
612 return btf->start_id + btf->nr_types;
632 if (type_id >= btf->start_id + btf->nr_types)
895 __u32 i, nr_types = btf__type_cnt(btf); local
900 for (i = 1; i < nr_types; i++) {
914 __u32 i, nr_types = btf__type_cnt(btf); local
919 for (i = start_id; i < nr_types;
4706 __u32 nr_types = btf__type_cnt(d->btf); local
[all...]
H A Dlibbpf.c2888 int nr_types, i, vlen, err; local
2905 nr_types = btf__type_cnt(obj->btf);
2906 for (i = 1; i < nr_types; i++) {
/linux-master/tools/perf/trace/beauty/
H A Dioctl.c146 const int nr_types = ARRAY_SIZE(ioctl_types); local
148 if (type >= ioctl_types[0].type && type <= ioctl_types[nr_types - 1].type) {
/linux-master/tools/bpf/resolve_btfids/
H A Dmain.c532 __u32 nr_types; local
553 nr_types = btf__type_cnt(btf);
558 for (type_id = 1; type_id < nr_types; type_id++) {
/linux-master/scripts/
H A Dasn1_compiler.c717 static unsigned nr_types; variable
762 nr_types = nr;
789 verbose("Extracted %u types\n", nr_types);
791 for (n = 0; n < nr_types; n++) {
1012 ref = bsearch(cursor, type_index, nr_types, sizeof(type_index[0]),
/linux-master/kernel/bpf/
H A Dbtf.c259 u32 nr_types; /* includes VOID for base BTF */ member in struct:btf
537 total += btf->nr_types;
853 if (type_id >= btf->nr_types)
1588 if (btf->types_size == btf->nr_types) {
1608 if (btf->nr_types == 0) {
1612 btf->nr_types++;
1616 sizeof(*btf->types) * btf->nr_types);
1624 btf->types[btf->nr_types++] = t;
1769 u32 nr_types = btf->nr_types; local
[all...]
/linux-master/fs/bcachefs/
H A Drecovery.c365 unsigned i, nr_types = jset_entry_dev_usage_nr_types(u); local
367 for (i = 0; i < min_t(unsigned, nr_types, BCH_DATA_NR); i++) {
H A Djournal_io.c705 unsigned i, nr_types = jset_entry_dev_usage_nr_types(u); local
709 for (i = 0; i < nr_types; i++) {
/linux-master/tools/perf/
H A Dbuiltin-lock.c1135 if (filters.nr_types) {
1138 for (i = 0; i < filters.nr_types; i++) {
1640 filters.nr_types = 0;
2355 tmp = realloc(filters.types, (filters.nr_types + 1) * sizeof(*filters.types));
2359 tmp[filters.nr_types++] = flags;

Completed in 483 milliseconds