Home
last modified time | relevance | path

Searched refs:nr_attrs (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-sensor-groups.c150 int nr_attrs = 0; in get_nr_attrs() local
155 nr_attrs++; in get_nr_attrs()
157 return nr_attrs; in get_nr_attrs()
183 u32 sgid, len, nr_attrs, chipid; in opal_sensor_groups_init() local
189 nr_attrs = get_nr_attrs(ops, len); in opal_sensor_groups_init()
190 if (!nr_attrs) in opal_sensor_groups_init()
193 sgs[i].sgattrs = kcalloc(nr_attrs, sizeof(*sgs[i].sgattrs), in opal_sensor_groups_init()
198 sgs[i].sg.attrs = kcalloc(nr_attrs + 1, in opal_sensor_groups_init()
/kernel/linux/linux-5.10/drivers/powercap/
Dpowercap_sys.c492 int nr_attrs; in powercap_register_zone() local
542 nr_attrs = nr_constraints * POWERCAP_CONSTRAINTS_ATTRS + in powercap_register_zone()
544 power_zone->zone_dev_attrs = kcalloc(nr_attrs, sizeof(void *), in powercap_register_zone()
/kernel/linux/linux-5.10/tools/perf/util/
Devlist.c264 static int evlist__add_attrs(struct evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs) in evlist__add_attrs() argument
270 for (i = 0; i < nr_attrs; i++) { in evlist__add_attrs()
287 … __evlist__add_default_attrs(struct evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs) in __evlist__add_default_attrs() argument
291 for (i = 0; i < nr_attrs; i++) in __evlist__add_default_attrs()
294 return evlist__add_attrs(evlist, attrs, nr_attrs); in __evlist__add_default_attrs()
Devlist.h108 struct perf_event_attr *attrs, size_t nr_attrs);
Dheader.c3796 int nr_attrs, nr_ids, i, j, err; in perf_session__read_header() local
3838 nr_attrs = f_header.attrs.size / f_header.attr_size; in perf_session__read_header()
3841 for (i = 0; i < nr_attrs; i++) { in perf_session__read_header()
/kernel/linux/linux-5.10/fs/nfs/
Dnfs4xdr.c5638 u32 nr_attrs, val; in decode_chan_attrs() local
5651 nr_attrs = be32_to_cpup(p); in decode_chan_attrs()
5652 if (unlikely(nr_attrs > 1)) { in decode_chan_attrs()
5654 "count %u\n", __func__, nr_attrs); in decode_chan_attrs()
5657 if (nr_attrs == 1) { in decode_chan_attrs()