/tools/lib/thermal/ |
D | events.c | 25 struct nlattr *attrs[THERMAL_GENL_ATTR_MAX + 1]; in handle_thermal_event() local 29 genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL); in handle_thermal_event() 42 return ops->tz_create(nla_get_string(attrs[THERMAL_GENL_ATTR_TZ_NAME]), in handle_thermal_event() 43 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 46 return ops->tz_delete(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 49 return ops->tz_enable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 52 return ops->tz_disable(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); in handle_thermal_event() 55 return ops->trip_change(nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_event() 56 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event() 57 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TYPE]), in handle_thermal_event() [all …]
|
D | sampling.c | 15 struct nlattr *attrs[THERMAL_GENL_ATTR_MAX + 1]; in handle_thermal_sample() local 19 genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL); in handle_thermal_sample() 25 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_sample() 26 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg); in handle_thermal_sample()
|
D | commands.c | 45 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_TZ], rem) { in parse_tz_get() 79 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_CDEV], rem) { in parse_cdev_get() 119 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_TZ_TRIP], rem) { in parse_tz_get_trip() 154 if (info->attrs[THERMAL_GENL_ATTR_TZ_ID]) in parse_tz_get_temp() 155 id = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_ID]); in parse_tz_get_temp() 160 if (info->attrs[THERMAL_GENL_ATTR_TZ_TEMP]) in parse_tz_get_temp() 161 tz->temp = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_TEMP]); in parse_tz_get_temp() 170 if (info->attrs[THERMAL_GENL_ATTR_TZ_ID]) in parse_tz_get_gov() 171 id = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_ID]); in parse_tz_get_gov() 176 if (info->attrs[THERMAL_GENL_ATTR_TZ_GOV_NAME]) { in parse_tz_get_gov() [all …]
|
/tools/testing/selftests/efivarfs/ |
D | efivarfs.sh | 55 local attrs='\x07\x00\x00\x00' 58 printf "$attrs\x00" > $file 100 local attrs='\x07\x00\x00\x00' 103 printf "$attrs\x00" > $file 123 local attrs='\x07\x00\x00\x00' 126 printf "$attrs\x00" > $file 134 printf "$attrs" > $file 151 local attrs='\x07\x00\x00\x00' 158 printf "$attrs\x00" > $file 173 local attrs='\x07\x00\x00\x00' [all …]
|
/tools/perf/arch/x86/util/ |
D | evlist.c | 12 struct perf_event_attr *attrs, in ___evlist__add_default_attrs() argument 19 event_attr_init(attrs + i); in ___evlist__add_default_attrs() 22 return evlist__add_attrs(evlist, attrs, nr_attrs); in ___evlist__add_default_attrs() 27 if (attrs[i].type == PERF_TYPE_SOFTWARE) { in ___evlist__add_default_attrs() 28 struct evsel *evsel = evsel__new(attrs + i); in ___evlist__add_default_attrs() 40 evsel = evsel__new(attrs + i); in ___evlist__add_default_attrs() 67 struct perf_event_attr *attrs, in arch_evlist__add_default_attrs() argument 73 return ___evlist__add_default_attrs(evlist, attrs, nr_attrs); in arch_evlist__add_default_attrs()
|
/tools/perf/Documentation/ |
D | asciidoctor-extensions.rb | 11 def process(parent, target, attrs) argument 13 %(<a href="#{target}.html">#{target}(#{attrs[1]})</a>\n) 15 "#{target}(#{attrs[1]})" 19 "<manvolnum>#{attrs[1]}</manvolnum>\n" \
|
D | perf.data-file-format.txt | 22 uint64_t attr_size; /* size of an attribute in attrs */ 23 struct perf_file_section attrs; 137 Another description of the perf_event_attrs, more detailed than header.attrs 649 The information about attrs, data, and event_types is instead in the
|
/tools/testing/selftests/net/mptcp/ |
D | pm_nl_ctl.c | 83 struct rtattr *attrs = (struct rtattr *)NLMSG_DATA(nh); in nl_error() local 88 while (RTA_OK(attrs, len)) { in nl_error() 89 if (attrs->rta_type == NLMSGERR_ATTR_MSG) in nl_error() 91 (char *)RTA_DATA(attrs)); in nl_error() 92 if (attrs->rta_type == NLMSGERR_ATTR_OFFS) { in nl_error() 93 memcpy(&off, RTA_DATA(attrs), 4); in nl_error() 97 attrs = RTA_NEXT(attrs, len); in nl_error() 110 struct rtattr *attrs; in capture_events() local 151 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in capture_events() 152 while (RTA_OK(attrs, msg_len)) { in capture_events() [all …]
|
/tools/net/ynl/ |
D | cli.py | 35 attrs = {} 37 attrs = json.loads(args.json_text) 48 reply = ynl.do(args.do, attrs, args.flags) 51 reply = ynl.dump(args.dump, attrs)
|
/tools/testing/selftests/damon/ |
D | _chk_dependency.sh | 21 for f in attrs target_ids monitor_on 31 for f in attrs target_ids monitor_on
|
/tools/gpio/ |
D | gpio-utils.c | 272 config.attrs[0].attr.id = GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES; in gpiotools_sets() 274 gpiotools_set_bit(&config.attrs[0].mask, i); in gpiotools_sets() 275 gpiotools_assign_bit(&config.attrs[0].attr.values, in gpiotools_sets()
|
D | gpio-event-mon.c | 226 gpiotools_set_bit(&config.attrs[attr].mask, i); in main() 227 config.attrs[attr].attr.id = GPIO_V2_LINE_ATTR_ID_DEBOUNCE; in main() 228 config.attrs[attr].attr.debounce_period_us = debounce_period_us; in main()
|
D | lsgpio.c | 95 if (info->attrs[i].id == GPIO_V2_LINE_ATTR_ID_DEBOUNCE) in print_attributes() 97 info->attrs[i].debounce_period_us); in print_attributes()
|
/tools/testing/selftests/gpio/ |
D | gpio-mockup-cdev.c | 34 req.config.attrs[0].mask = 1; in request_line_v2() 35 req.config.attrs[0].attr.id = GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES; in request_line_v2() 37 req.config.attrs[0].attr.values = 1; in request_line_v2()
|
/tools/net/ynl/lib/ |
D | nlspec.py | 192 self.attrs = collections.OrderedDict() 202 self.attrs[attr.name] = attr 209 self.attrs[attr.name] = attr 216 return self.attrs[key] 219 return key in self.attrs 222 yield from self.attrs 225 return self.attrs.items()
|
D | ynl.py | 166 self.attrs = [] 172 self.attrs.append(attr) 175 yield from self.attrs 179 for a in self.attrs: 516 def _decode(self, attrs, space): argument 519 for attr in attrs: 552 def _decode_extack_path(self, attrs, attr_set, offset, target): argument 553 for attr in attrs: 619 attrs = self._decode(decoded.raw_attrs, op.attr_set.name) 621 attrs.update(self._decode_fixed_header(decoded, op.fixed_header)) [all …]
|
/tools/power/x86/intel-speed-select/ |
D | hfi-events.c | 194 struct nlattr *attrs[THERMAL_GENL_ATTR_MAX + 1]; in handle_event() local 198 ret = genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL); in handle_event() 206 nla_for_each_nested(cap, attrs[THERMAL_GENL_ATTR_CPU_CAPABILITY], j) { in handle_event()
|
/tools/perf/scripts/python/ |
D | exported-sql-viewer.py | 1434 def __init__(self, data, graph_width, graph_height, attrs, event_handler, parent=None): argument 1440 self.attrs = attrs 1448 if not(last is None or last.hregion.pid == 0 or x < self.attrs.subrange.x.lo): 1449 if last.x < self.attrs.subrange.x.lo: 1450 x0 = self.attrs.subrange.x.lo 1453 if x > self.attrs.subrange.x.hi: 1454 x1 = self.attrs.subrange.x.hi 1457 x0 = self.attrs.XToPixel(x0) 1458 x1 = self.attrs.XToPixel(x1) 1460 y0 = self.attrs.YToPixel(last.y) [all …]
|
/tools/perf/util/ |
D | evlist.h | 103 int evlist__add_attrs(struct evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs); 106 struct perf_event_attr *attrs, size_t nr_attrs); 109 struct perf_event_attr *attrs,
|
D | header.h | 68 struct perf_file_section attrs; member
|
D | evlist.c | 317 int evlist__add_attrs(struct evlist *evlist, struct perf_event_attr *attrs, size_t nr_attrs) in evlist__add_attrs() argument 324 evsel = evsel__new_idx(attrs + i, evlist->core.nr_entries + i); in evlist__add_attrs() 340 int __evlist__add_default_attrs(struct evlist *evlist, struct perf_event_attr *attrs, size_t nr_att… in __evlist__add_default_attrs() argument 345 event_attr_init(attrs + i); in __evlist__add_default_attrs() 347 return evlist__add_attrs(evlist, attrs, nr_attrs); in __evlist__add_default_attrs() 351 struct perf_event_attr *attrs, in arch_evlist__add_default_attrs() argument 357 return __evlist__add_default_attrs(evlist, attrs, nr_attrs); in arch_evlist__add_default_attrs()
|
D | synthetic-events.h | 67 …*config, struct perf_tool *tool, struct evlist *evlist, perf_event__handler_t process, bool attrs);
|
/tools/workqueue/ |
D | wq_dump.py | 143 if pool.attrs.affn_strict:
|
/tools/testing/nvdimm/test/ |
D | ndtest.c | 397 .attrs = ndtest_region_attributes, 554 .attrs = dimm_attributes, 711 .attrs = ndtest_nvdimm_attributes, 803 .attrs = of_node_attributes,
|
/tools/testing/selftests/kvm/lib/aarch64/ |
D | processor.c | 61 static uint64_t addr_pte(struct kvm_vm *vm, uint64_t pa, uint64_t attrs) in addr_pte() argument 68 pte |= attrs; in addr_pte()
|