Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 37) sorted by relevance

12

/tools/lib/thermal/
A Devents.c25 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()
43 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), arg); 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()
58 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_TEMP]), in handle_thermal_event()
63 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event()
79 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TRIP_ID]), in handle_thermal_event()
84 nla_get_u32(attrs[THERMAL_GENL_ATTR_CDEV_ID]), in handle_thermal_event()
113 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), in handle_thermal_event()
[all …]
A Dsampling.c15 struct nlattr *attrs[THERMAL_GENL_ATTR_MAX + 1]; in handle_thermal_sample() local
21 genlmsg_parse(nlh, 0, attrs, THERMAL_GENL_ATTR_MAX, NULL); in handle_thermal_sample()
27 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_ID]), in handle_thermal_sample()
28 nla_get_u32(attrs[THERMAL_GENL_ATTR_TZ_TEMP]), arg); in handle_thermal_sample()
A Dcommands.c51 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_TZ], rem) { in parse_tz_get()
85 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_CDEV], rem) { in parse_cdev_get()
125 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_TZ_TRIP], rem) { in parse_tz_get_trip()
160 if (info->attrs[THERMAL_GENL_ATTR_TZ_ID]) in parse_tz_get_temp()
161 id = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_ID]); in parse_tz_get_temp()
166 if (info->attrs[THERMAL_GENL_ATTR_TZ_TEMP]) in parse_tz_get_temp()
167 tz->temp = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_TEMP]); in parse_tz_get_temp()
176 if (info->attrs[THERMAL_GENL_ATTR_TZ_ID]) in parse_tz_get_gov()
177 id = nla_get_u32(info->attrs[THERMAL_GENL_ATTR_TZ_ID]); in parse_tz_get_gov()
182 if (info->attrs[THERMAL_GENL_ATTR_TZ_GOV_NAME]) { in parse_tz_get_gov()
[all …]
/tools/testing/selftests/bpf/progs/
A Dtest_tcp_custom_syncookie.c273 ctx->attrs.sack_ok = 1; in tcp_parse_option()
305 if (!ctx->attrs.sack_ok) in tcp_validate_sysctl()
354 if (ctx->attrs.wscale_ok) in tcp_prepare_cookie()
357 if (ctx->attrs.sack_ok) in tcp_prepare_cookie()
371 ctx->attrs.mss); in tcp_write_options()
373 if (ctx->attrs.wscale_ok) in tcp_write_options()
380 if (ctx->attrs.sack_ok) in tcp_write_options()
481 if (ctx->attrs.tstamp_ok) in tcp_validate_cookie()
497 ctx->attrs.rcv_wscale = ctx->attrs.snd_wscale; in tcp_validate_cookie()
498 ctx->attrs.wscale_ok = ctx->attrs.snd_wscale == BPF_SYNCOOKIE_WSCALE_MASK; in tcp_validate_cookie()
[all …]
/tools/testing/selftests/efivarfs/
A Defivarfs.sh55 local attrs='\x07\x00\x00\x00'
58 printf "$attrs\x00" > $file
103 local attrs='\x07\x00\x00\x00'
106 printf "$attrs\x00" > $file
126 local attrs='\x07\x00\x00\x00'
129 printf "$attrs\x00" > $file
137 printf "$attrs" > $file
154 local attrs='\x07\x00\x00\x00'
161 printf "$attrs\x00" > $file
176 local attrs='\x07\x00\x00\x00'
[all …]
/tools/perf/Documentation/
A Dasciidoctor-extensions.rb11 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" \
/tools/testing/selftests/net/mptcp/
A Dpm_nl_ctl.c91 attrs = RTA_NEXT(attrs, len); in nl_error()
104 struct rtattr *attrs; in capture_events() local
192 attrs = RTA_NEXT(attrs, msg_len); in capture_events()
244 struct rtattr *attrs; in genl_parse_getfamily() local
301 attrs = RTA_NEXT(attrs, len); in genl_parse_getfamily()
1045 attrs = RTA_NEXT(attrs, len); in print_addr()
1052 struct rtattr *attrs; in print_addrs() local
1071 attrs->rta_len); in print_addrs()
1072 attrs = RTA_NEXT(attrs, len); in print_addrs()
1187 struct rtattr *attrs; in print_limits() local
[all …]
/tools/testing/selftests/damon/
A Dsysfs.py144 def assert_monitoring_attrs_committed(attrs, dump): argument
145 assert_true(dump['sample_interval'] == attrs.sample_us, 'sample_interval',
147 assert_true(dump['aggr_interval'] == attrs.aggr_us, 'aggr_interval', dump)
149 attrs.intervals_goal.access_bp, 'access_bp',
151 assert_true(dump['intervals_goal']['aggrs'] == attrs.intervals_goal.aggrs,
154 attrs.intervals_goal.min_sample_us, 'min_sample_us',
157 attrs.intervals_goal.max_sample_us, 'max_sample_us',
160 assert_true(dump['ops_update_interval'] == attrs.update_us,
162 assert_true(dump['min_nr_regions'] == attrs.min_nr_regions,
164 assert_true(dump['max_nr_regions'] == attrs.max_nr_regions,
A Ddamon_nr_regions.py110 attrs = kdamonds.kdamonds[0].contexts[0].monitoring_attrs
111 attrs.min_nr_regions = 3
112 attrs.max_nr_regions = 7
113 attrs.update_us = 100000
A Ddrgn_dump_damon_status.py41 def attrs_to_dict(attrs): argument
42 return to_dict(attrs, [
/tools/gpio/
A Dgpio-utils.c272 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()
A Dgpio-event-mon.c226 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()
A Dlsgpio.c95 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/net/ynl/pyynl/
A Dcli.py108 attrs = {}
110 attrs = json.loads(args.json_text)
140 reply = ynl.do(args.do, attrs, args.flags)
143 reply = ynl.dump(args.dump, attrs)
A Dynl_gen_rst.py167 def parse_do_attributes(attrs: Dict[str, Any], level: int = 0) -> str:
169 if "attributes" not in attrs:
171 lines = [rst_fields("attributes", rst_list_inline(attrs["attributes"]), level + 1)]
/tools/testing/selftests/gpio/
A Dgpio-mockup-cdev.c34 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/power/x86/intel-speed-select/
A Dhfi-events.c194 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/net/ynl/pyynl/lib/
A Dnlspec.py206 self.attrs = collections.OrderedDict()
216 self.attrs[attr.name] = attr
226 self.attrs[attr.name] = attr
233 return self.attrs[key]
236 return key in self.attrs
239 yield from self.attrs
242 return self.attrs.items()
A Dynl.py172 self.attrs = []
177 self.attrs.append(attr)
180 yield from self.attrs
184 for a in self.attrs:
445 def __init__(self, attr_space, attrs, outer = None): argument
758 for attr in attrs:
813 for attr in attrs:
880 attrs = dict()
904 attrs[m.name] = value
905 return attrs
[all …]
/tools/testing/selftests/net/ovpn/
A Dovpn-cli.c255 struct nlattr *attrs; in ovpn_nl_cb_error() local
270 attrs = (void *)((uint8_t *)nlh + ack_len); in ovpn_nl_cb_error()
751 struct nlattr *attrs[OVPN_A_MAX + 1]; in ovpn_handle_peer() local
757 if (!attrs[OVPN_A_PEER]) { in ovpn_handle_peer()
763 nla_len(attrs[OVPN_A_PEER]), NULL); in ovpn_handle_peer()
963 struct nlattr *attrs[OVPN_A_MAX + 1]; in ovpn_handle_key() local
968 if (!attrs[OVPN_A_KEYCONF]) { in ovpn_handle_key()
974 nla_len(attrs[OVPN_A_KEYCONF]), NULL); in ovpn_handle_key()
1481 struct nlattr *attrs[OVPN_A_MAX + 1]; in ovpn_handle_msg() local
1502 if (!attrs[OVPN_A_IFINDEX]) { in ovpn_handle_msg()
[all …]
/tools/perf/scripts/python/
A Dexported-sql-viewer.py1443 self.attrs = attrs
1560 attrs = self.parentItem().attrs
1570 attrs = self.parentItem().attrs
1590 attrs = self.parentItem().attrs
1602 attrs = self.parentItem().attrs
1686 self.attrs = attrs
1695 graph_width = attrs.XToPixel(attrs.subrange.x.hi) + 1
1696 graph_height = attrs.YToPixel(attrs.subrange.y.hi) + 1
2329 self.attrs.Update()
2340 self.attrs.Update()
[all …]
/tools/testing/selftests/bpf/
A Dbpf_kfuncs.h62 struct bpf_tcp_req_attrs *attrs, int attrs__sz) __ksym;
/tools/perf/util/
A Dheader.h84 struct perf_file_section attrs; member
/tools/testing/nvdimm/test/
A Dndtest.c403 .attrs = ndtest_region_attributes,
560 .attrs = dimm_attributes,
717 .attrs = ndtest_nvdimm_attributes,
809 .attrs = of_node_attributes,
/tools/testing/selftests/net/openvswitch/
A Dovs-dpctl.py334 attrs = []
341 attrs.append([attr, datum])
354 return attrs, actstr[1:]
423 attrs, actstr = parse_attrs(actstr, desc)
425 for attr in attrs:
466 attrs, actstr = parse_attrs(actstr, desc)
468 for attr in attrs:
609 attrs, actstr = parse_attrs(actstr, attrs_desc)
610 for attr in attrs:

Completed in 61 milliseconds

12