| /linux/scripts/gdb/linux/ |
| H A D | mm.py | 1 # SPDX-License-Identifier: GPL-2.0 6 # Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com> 14 return ((n) + (d) - 1) // (d) 24 def __init__(self): argument 28 self.ops = aarch64_page_ops() 29 elif utils.is_target_arch('x86_64') or utils.is_target_arch('x86-64'): 30 self.ops = x86_page_ops() 35 def __init__(self): argument 36 self.struct_page_size = utils.get_page_type().sizeof 37 self.PAGE_SHIFT = constants.LX_CONFIG_PAGE_SHIFT [all …]
|
| H A D | pgtable.py | 1 # SPDX-License-Identifier: GPL-2.0-only 42 return (bit_start, bit_end), data >> bit_start & ((1 << (1 + bit_end - bit_start)) - 1) 64 def __init__(self, cr3, page_levels): 65 self.cr3 = cr3 66 self.page_levels = page_levels argument 67 self 73 next_entry(self, va) global() argument 77 mk_string(self) global() argument 89 __init__(self, address, level) global() argument 136 next_entry(self, va) global() argument 144 mk_string(self) global() argument 204 __init__(self) global() argument 207 invoke(self, arg, from_tty) global() argument [all...] |
| /linux/tools/perf/scripts/python/ |
| H A D | exported-sql-viewer.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # exported-sql-viewer.py: view data from sql database 4 # Copyright (c) 2014-2018, Intel Corporation. 7 # export-to-sqlite.py or the export-to-postgresql.py script. Refer to those 11 # call-graph can be displayed for the pt_example database like this: 13 # python tools/perf/scripts/python/exported-sql-viewer.py pt_example 18 # python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password… 20 # The result is a GUI window with a tree representing a context-sensitive 21 # call-graph. Expanding a couple of levels of the tree and adjusting column 26 # v- ls [all …]
|
| H A D | sched-migration.py | 5 # perf script event handlers have been generated by perf script -g python 23 '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') 24 sys.path.append('scripts/python/Perf-Trace-Util/lib/Perf/Trace') 41 def __repr__(self): argument 49 def __init__(self, sleeper): argument 50 self.sleeper = sleeper 52 def __repr__(self): argument 53 return "%s gone to sleep" % thread_name(self.sleeper) 60 def __init__(self, wakee): argument 61 self.wakee = wakee [all …]
|
| /linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| H A D | SchedGui.py | 1 # SchedGui.py - Python extension for perf script, basic GUI code for 23 def __init__(self, sched_tracer, title, parent = None, id = -1): argument 24 wx.Frame.__init__(self, parent, id, title) 26 (self.screen_width, self.screen_height) = wx.GetDisplaySize() 27 self.screen_width -= 10 28 self.screen_height -= 10 29 self.zoom = 0.5 30 self.scroll_scale = 20 31 self.sched_tracer = sched_tracer 32 self.sched_tracer.set_root_win(self) [all …]
|
| /linux/tools/lib/python/feat/ |
| H A D | parse_features.py | 4 # SPDX-License-Identifier: GPL-2.0 47 # The only missing status is "..", which was mapped as "---", 52 def __init__(self, prefix, debug=0, enable_fname=False): 57 self.prefix = prefix 58 self.debug = debug 59 self 41 __init__(self, prefix, debug=0, enable_fname=False) global() argument 65 emit(self, msg="", end="n") global() argument 68 parse_error(self, fname, ln, msg, data=None) global() argument 84 parse_feat_file(self, fname) global() argument 206 parse(self) global() argument 222 output_arch_table(self, arch, feat=None) global() argument 282 output_feature(self, feat) global() argument 332 matrix_lines(self, desc_size, max_size_status, header) global() argument 346 output_matrix(self) global() argument 466 list_arch_features(self, arch, feat) global() argument [all...] |
| /linux/tools/crypto/ccp/ |
| H A D | test_dbc.py | 2 # SPDX-License-Identifier: GPL-2.0 25 def system_is_secured() -> bool: 34 def __init__(self, data) -> None: argument 35 self.d = None 36 self.signature = b"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" 37 self.uid = b"1111111111111111" 40 def setUp(self) -> None: argument 41 self.d = open(DEVICE_NODE) 44 def tearDown(self) -> None: argument 45 if self.d: [all …]
|
| /linux/rust/syn/gen/ |
| H A D | clone.rs | 1 // SPDX-License-Identifier: Apache-2.0 OR MIT 3 // This file is @generated by syn-internal-codegen. 8 #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] 10 fn clone(&self) -> Self { in clone() argument 12 extern_token: self.extern_token.clone(), in clone() 13 name: self.name.clone(), in clone() 18 #[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))] 20 fn clone(&self) -> Self { in clone() argument 22 colon2_token: self.colon2_token.clone(), in clone() 23 lt_token: self.lt_token.clone(), in clone() [all …]
|
| /linux/tools/testing/selftests/drivers/net/lib/py/ |
| H A D | env.py | 1 # SPDX-License-Identifier: GPL-2.0 24 def __init__(self, src_path): 25 self.src_path = Path(src_path) 26 self.test_dir = self.src_path.parent.resolve() 27 self.net_lib_dir = (Path(__file__).parent / "../../../../net/lib").resolve() 29 self.env = self 21 __init__(self, src_path) global() argument 28 _load_env_file(self) global() argument 56 __init__(self, src_path, nsim_test=None, **kwargs) global() argument 75 __enter__(self) global() argument 80 __exit__(self, ex_type, ex_value, ex_tb) global() argument 86 __del__(self) global() argument 105 __init__(self, src_path, nsim_test=None) global() argument 166 create_local(self) global() argument 186 _check_env(self) global() argument 210 resolve_remote_ifc(self) global() argument 222 __enter__(self) global() argument 225 __exit__(self, ex_type, ex_value, ex_tb) global() argument 231 __del__(self) global() argument 245 require_ipver(self, ipver) global() argument 249 _require_cmd(self, comm, key, host=None) global() argument 257 require_cmd(self, comm, local=True, remote=False) global() argument 265 wait_hw_stats_settle(self) global() argument [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | json_writer.c | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) 29 static void jsonw_indent(json_writer_t *self) in jsonw_indent() argument 32 for (i = 0; i < self->depth; ++i) in jsonw_indent() 33 fputs(" ", self->out); in jsonw_indent() 37 static void jsonw_eol(json_writer_t *self) in jsonw_eol() argument 39 if (!self->pretty) in jsonw_eol() 42 putc('\n', self->out); in jsonw_eol() 43 jsonw_indent(self); in jsonw_eol() 47 static void jsonw_eor(json_writer_t *self) in jsonw_eor() argument 49 if (self->sep != '\0') in jsonw_eor() [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | json_writer.c | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) 29 static void jsonw_indent(json_writer_t *self) in jsonw_indent() argument 32 for (i = 0; i < self->depth; ++i) in jsonw_indent() 33 fputs(" ", self->out); in jsonw_indent() 37 static void jsonw_eol(json_writer_t *self) in jsonw_eol() argument 39 if (!self->pretty) in jsonw_eol() 42 putc('\n', self->out); in jsonw_eol() 43 jsonw_indent(self); in jsonw_eol() 47 static void jsonw_eor(json_writer_t *self) in jsonw_eor() argument 49 if (self->sep != '\0') in jsonw_eor() [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | generator.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright (C) 2019-2022 Red Hat, Inc. Daniel Bristot de Oliveira <bristot@kernel.org> 15 def __init__(self, extra_params={}): argument 16 self.name = extra_params.get("model_name") 17 self.parent = extra_params.get("parent") 18 self.abs_template_dir = \ 19 os.path.join(os.path.dirname(__file__), "templates", self 27 __fill_rv_kernel_dir(self) global() argument 53 _read_file(self, path) global() argument 64 _read_template_file(self, file) global() argument 74 fill_parent(self) global() argument 77 fill_include_parent(self) global() argument 82 fill_tracepoint_handlers_skel(self) global() argument 85 fill_tracepoint_attach_probe(self) global() argument 88 fill_tracepoint_detach_helper(self) global() argument 91 fill_main_c(self) global() argument 109 fill_model_h(self) global() argument 112 fill_monitor_class_type(self) global() argument 115 fill_monitor_class(self) global() argument 118 fill_tracepoint_args_skel(self, tp_type) global() argument 121 fill_monitor_deps(self) global() argument 129 fill_kconfig(self) global() argument 140 _patch_file(self, file, marker, line) global() argument 147 fill_tracepoint_tooltip(self) global() argument 160 _kconfig_marker(self, container=None) global() argument 164 fill_kconfig_tooltip(self) global() argument 177 fill_makefile_tooltip(self) global() argument 191 fill_monitor_tooltip(self) global() argument 196 __create_directory(self) global() argument 207 __write_file(self, file_name, content) global() argument 217 _create_file(self, file_name, content) global() argument 223 __get_main_name(self) global() argument 229 print_files(self) global() argument 248 __init__(self, extra_params={}) global() argument 252 fill_trace_h(self) global() argument 266 print_files(self) global() argument [all...] |
| H A D | ltl2ba.py | 2 # SPDX-License-Identifier: GPL-2.0-only 6 # Simple On-the-fly Automatic Verification of Linear Temporal Logic. 7 # https://doi.org/10.1007/978-0-387-34892- 72 __init__(self, incoming: set['GraphNode'], new, old, _next) global() argument 83 expand(self, node_set) global() argument 95 __lt__(self, other) global() argument 101 __init__(self, op) global() argument 106 __hash__(self) global() argument 109 __eq__(self, other) global() argument 112 __iter__(self) global() argument 116 negate(self) global() argument 120 expand(self, node, node_set) global() argument 123 __str__(self) global() argument 130 normalize(self) global() argument 142 __init__(self, left: ASTNode, right: ASTNode) global() argument 146 __hash__(self) global() argument 149 __iter__(self) global() argument 153 normalize(self) global() argument 156 negate(self) global() argument 159 _is_temporal(self) global() argument 162 is_temporal(self) global() argument 176 normalize(self) global() argument 179 negate(self) global() argument 182 _is_temporal(self) global() argument 200 normalize(self) global() argument 203 negate(self) global() argument 206 _is_temporal(self) global() argument 226 normalize(self) global() argument 229 negate(self) global() argument 232 _is_temporal(self) global() argument 248 normalize(self) global() argument 251 negate(self) global() argument 254 _is_temporal(self) global() argument 270 normalize(self) global() argument 274 _is_temporal(self) global() argument 277 negate(self) global() argument 282 __init__(self, child: ASTNode) global() argument 285 __iter__(self) global() argument 288 __hash__(self) global() argument 291 normalize(self) global() argument 294 _is_temporal(self) global() argument 297 is_temporal(self) global() argument 302 negate(self) global() argument 306 __str__(self) global() argument 309 normalize(self) global() argument 313 _is_temporal(self) global() argument 316 negate(self) global() argument 321 normalize(self) global() argument 326 _is_temporal(self) global() argument 329 negate(self) global() argument 334 normalize(self) global() argument 337 _is_temporal(self) global() argument 340 negate(self) global() argument 354 __str__(self) global() argument 357 normalize(self) global() argument 360 negate(self) global() argument 363 _is_temporal(self) global() argument 375 __init__(self, name: str) global() argument 378 __hash__(self) global() argument 381 __iter__(self) global() argument 384 negate(self) global() argument 388 normalize(self) global() argument 391 is_temporal(self) global() argument 403 __init__(self, value: bool) global() argument 406 __iter__(self) global() argument 409 __hash__(self) global() argument 412 __str__(self) global() argument 417 negate(self) global() argument 421 normalize(self) global() argument 424 is_temporal(self) global() argument [all...] |
| H A D | dot2c.py | 2 # SPDX-License-Identifier: GPL-2.0-only 4 # Copyright (C) 2019-2022 Red Hat, Inc. Daniel Bristot de Oliveira <bristot@kernel.org> 26 def __init__(self, file_path, model_name=None): 28 self.line_length = 100 30 def __get_enum_states_content(self) -> list[str]: 32 buff.append(f"\t{self 25 __init__(self, file_path, model_name=None) global() argument 29 __buff_to_string(self, buff) global() argument 38 __get_enum_states_content(self) global() argument 48 get_enum_states_string(self) global() argument 52 format_states_enum(self) global() argument 60 __get_enum_events_content(self) global() argument 74 get_enum_events_string(self) global() argument 78 format_events_enum(self) global() argument 86 get_minimun_type(self) global() argument 100 format_automaton_definition(self) global() argument 112 format_aut_init_header(self) global() argument 117 __get_string_vector_per_line_content(self, buff) global() argument 130 get_aut_init_events_string(self) global() argument 133 get_aut_init_states_string(self) global() argument 136 format_aut_init_events_string(self) global() argument 143 format_aut_init_states_string(self) global() argument 151 __get_max_strlen_of_states(self) global() argument 155 get_aut_init_function(self) global() argument 183 format_aut_init_function(self) global() argument 191 get_aut_init_initial_state(self) global() argument 194 format_aut_init_initial_state(self) global() argument 201 get_aut_init_final_states(self) global() argument 216 format_aut_init_final_states(self) global() argument 222 __get_automaton_initialization_footer_string(self) global() argument 226 format_aut_init_footer(self) global() argument 232 format_invalid_state(self) global() argument 238 format_model(self) global() argument 254 print_model_classic(self) global() argument [all...] |
| /linux/tools/lib/python/kdoc/ |
| H A D | kdoc_output.py | 2 # SPDX-License-Identifier: GPL-2.0 8 Classes to implement output filters to print kernel-doc documentation. 32 type_constant2 = KernRe(r"\%([-_*\w]+)", cache=False) 34 type_param_ref = KernRe(r"([\!~\*]?)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)", cache=False) 40 type_fp_param2 = KernRe(r"\@(\w+->\S+)\(\)", cache=False) 47 type_member = KernRe(r"\&([_\w]+)(\.|->)([_\w]+)", cache=False) 54 Base class for OutputFormat. If used as-is, it means that only 62 OUTPUT_INTERNAL = 3 #: Output non-exporte 65 __init__(self) global() argument 78 set_config(self, config) global() argument 85 set_filter(self, export, internal, symbol, nosymbol, function_table, enable_lineno, no_doc_sections) global() argument 112 highlight_block(self, block) global() argument 122 out_warnings(self, args) global() argument 130 check_doc(self, name, args) global() argument 150 check_declaration(self, dtype, name, args) global() argument 178 msg(self, fname, name, args) global() argument 218 set_symbols(self, symbols) global() argument 221 out_doc(self, fname, name, args) global() argument 224 out_function(self, fname, name, args) global() argument 227 out_enum(self, fname, name, args) global() argument 230 out_typedef(self, fname, name, args) global() argument 233 out_struct(self, fname, name, args) global() argument 264 __init__(self) global() argument 275 print_lineno(self, ln) global() argument 282 output_highlight(self, args) global() argument 334 out_section(self, args, out_docblock=False) global() argument 359 out_doc(self, fname, name, args) global() argument 364 out_function(self, fname, name, args) global() argument 446 out_enum(self, fname, name, args) global() argument 475 out_typedef(self, fname, name, args) global() argument 492 out_struct(self, fname, name, args) global() argument 573 __init__(self, modulename) global() argument 600 arg_name(self, args, name) global() argument 620 set_symbols(self, symbols) global() argument 629 out_tail(self, fname, name, args) global() argument 652 msg(self, fname, name, args) global() argument 663 output_highlight(self, block) global() argument 684 out_doc(self, fname, name, args) global() argument 696 out_function(self, fname, name, args) global() argument 744 out_enum(self, fname, name, args) global() argument 776 out_typedef(self, fname, name, args) global() argument 790 out_struct(self, fname, name, args) global() argument [all...] |
| /linux/drivers/gpu/drm/msm/registers/ |
| H A D | gen_header.py | 3 # Copyright © 2019-2024 Google, Inc. 5 # SPDX-License-Identifier: MIT 16 def __init__(self, message): argument 17 self.message = message 20 def __init__(self, name): argument 21 self.name = name 22 self.values = [] 24 def has_name(self, name): argument 25 for (n, value) in self.values: 30 def names(self): argument [all …]
|
| /linux/tools/perf/pmu-events/ |
| H A D | metric.py | 1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 16 def LoadEvents(directory: str) -> None: 23 "context\\-switches", 24 "cpu\\-cycles", 63 def CheckPmu(name: str) -> bool: 67 def CheckEvent(name: str) -> bool: 83 def CheckEveryEvent(*names: str) -> None: 103 def IsExperimentalEvent(name: str) -> bool: 124 def ToPerfJson(self) -> str: argument 128 def ToPython(self) -> str: argument [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | base_device.py | 2 # SPDX-License-Identifier: GPL-2.0 3 # -*- coding: utf-8 -*- 46 def __init__(self, path): argument 47 self.path = path 49 def __set_value(self, value): argument 50 with open(self.path, "w") as f: 53 def __get_value(self): argument 54 with open(self.path) as f: 58 def int_value(self) -> int: argument 59 return int(self.__get_value()) [all …]
|
| /linux/tools/testing/selftests/vfio/ |
| H A D | vfio_pci_driver_test.c | 1 // SPDX-License-Identifier: GPL-2.0-only 17 ASSERT_EQ(-1, read(_eventfd, &__value, 8)); \ 29 vaddr = mmap(NULL, size, prot, flags, -1, 0); in region_setup() 32 region->vaddr = vaddr; in region_setup() 33 region->iova = iova_allocator_alloc(iova_allocator, size); in region_setup() 34 region->size = size; in region_setup() 42 VFIO_ASSERT_EQ(munmap(region->vaddr, region->size), 0); in region_teardown() 76 self->iommu = iommu_init(variant->iommu_mode); in FIXTURE_SETUP() 77 self->device = vfio_pci_device_init(device_bdf, self->iommu); in FIXTURE_SETUP() 78 self->iova_allocator = iova_allocator_init(self->iommu); in FIXTURE_SETUP() [all …]
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_tool_test.py | 2 # SPDX-License-Identifier: GPL-2.0 46 def test_is_subset_of(self): argument 48 self.assertTrue(kconfig0.is_subset_of(kconfig0)) 52 self.assertTrue(kconfig1.is_subset_of(kconfig1)) 53 self.assertTrue(kconfig0.is_subset_of(kconfig1)) 54 self.assertFalse(kconfig1.is_subset_of(kconfig0)) 56 def test_read_from_file(self): argument 68 self.assertEqual(kconfig, expected_kconfig) 70 def test_write_to_file(self): argument 83 self.assertEqual(actual_kconfig, expected_kconfig) [all …]
|
| /linux/tools/testing/selftests/damon/ |
| H A D | _damon_sysfs.py | 1 # SPDX-License-Identifier: GPL-2.0 47 def __init__(self, size=None, nr_accesses=None, age=None): argument 48 self.size = size 49 self.nr_accesses = nr_accesses 50 self.age = age 52 if self.size is None: 53 self.size = [0, 2**64 - 59 sysfs_dir(self) global() argument 62 stage(self) global() argument 101 __init__(self, metric, target_value=10000, current_value=0, nid=0) global() argument 107 sysfs_dir(self) global() argument 110 stage(self) global() argument 139 __init__(self, sz=0, ms=0, goals=None, reset_interval_ms=0, weight_sz_permil=0, weight_nr_accesses_permil=0, weight_age_permil=0) global() argument 153 sysfs_dir(self) global() argument 156 stage(self) global() argument 204 __init__(self, metric='none', interval=0, high=0, mid=0, low=0) global() argument 211 sysfs_dir(self) global() argument 214 stage(self) global() argument 245 __init__(self, type_='anon', matching=False, allow=False, memcg_path='', addr_start=0, addr_end=0, target_idx=0, min_=0, max_=0) global() argument 258 sysfs_dir(self) global() argument 261 stage(self) global() argument 301 __init__(self, name, filters=[]) global() argument 308 sysfs_dir(self) global() argument 311 stage(self) global() argument 328 __init__(self, id=0, weight=0) global() argument 332 sysfs_dir(self) global() argument 335 stage(self) global() argument 348 __init__(self, dests=[]) global() argument 354 sysfs_dir(self) global() argument 357 stage(self) global() argument 375 __init__(self, nr_tried, sz_tried, nr_applied, sz_applied, qt_exceeds) global() argument 383 __init__(self, start, end, nr_accesses, age) global() argument 406 __init__(self, action='stat', access_pattern=DamosAccessPattern(), quota=DamosQuota(), watermarks=DamosWatermarks(), core_filters=[], ops_filters=[], filters=[], target_nid=0, dests=DamosDests(), apply_interval_us=0) global() argument 433 sysfs_dir(self) global() argument 437 stage(self) global() argument 483 __init__(self, pid, obsolete=False) global() argument 487 sysfs_dir(self) global() argument 491 stage(self) global() argument 511 __init__(self, access_bp=0, aggrs=0, min_sample_us=0, max_sample_us=0) global() argument 517 sysfs_dir(self) global() argument 520 stage(self) global() argument 547 __init__(self, sample_us=5000, aggr_us=100000, intervals_goal=IntervalsGoal(), update_us=1000000, min_nr_regions=10, max_nr_regions=1000) global() argument 558 interval_sysfs_dir(self) global() argument 562 nr_regions_range_sysfs_dir(self) global() argument 566 stage(self) global() argument 603 __init__(self, ops='paddr', monitoring_attrs=DamonAttrs(), targets=[], schemes=[]) global() argument 619 sysfs_dir(self) global() argument 623 stage(self) global() argument 668 __init__(self, contexts=[]) global() argument 674 sysfs_dir(self) global() argument 677 start(self) global() argument 698 stop(self) global() argument 702 update_schemes_tried_regions(self) global() argument 732 update_schemes_tried_bytes(self) global() argument 745 update_schemes_stats(self) global() argument 762 update_schemes_effective_quotas(self) global() argument 778 commit(self) global() argument 797 commit_schemes_quota_goals(self) global() argument 812 __init__(self, kdamonds=[]) global() argument 818 sysfs_dir(self) global() argument 821 start(self) global() argument 832 stop(self) global() argument [all...] |
| /linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
| H A D | hw_atl_b0.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 115 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument 119 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset() 123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 125 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset() 130 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument 132 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc() 137 static int hw_atl_b0_tc_ptp_set(struct aq_hw_s *self) in hw_atl_b0_tc_ptp_set() argument [all …]
|
| /linux/tools/perf/tests/shell/lib/ |
| H A D | perf_metric_validation.py | 1 # SPDX-License-Identifier: GPL-2.0 11 …def __init__(self, metric: list[str], wl: str, value: list[float], low: float, up=float('nan'), de… argument 12 self.metric: list = metric # multiple metrics in relationship type tests 13 self.workloads = [wl] # multiple workloads possible 14 self.collectedValue: list = value 15 self.valueLowBound = low 16 self.valueUpBound = up 17 self.description = description 19 def __repr__(self) -> str: argument 20 if len(self.metric) > 1: [all …]
|
| /linux/tools/net/ynl/pyynl/lib/ |
| H A D | ynl.py | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 # pylint: disable=missing-class-docstring, missing-function-docstring 4 # pylint: disable=too-man 104 __init__(self, nl_msg) global() argument 108 __str__(self) global() argument 129 __init__(self, raw, offset) global() argument 145 as_scalar(self, attr_type, byte_order=None) global() argument 149 as_auto_scalar(self, attr_type, byte_order=None) global() argument 156 as_strz(self) global() argument 159 as_bin(self) global() argument 162 as_c_array(self, type) global() argument 166 __repr__(self) global() argument 171 __init__(self, msg, offset=0) global() argument 179 __iter__(self) global() argument 182 __repr__(self) global() argument 192 __init__(self, msg, offset, attr_space=None) global() argument 236 _decode_policy(self, raw) global() argument 260 annotate_extack(self, attr_space) global() argument 272 cmd(self) global() argument 275 __repr__(self) global() argument 285 __init__(self, data) global() argument 294 __iter__(self) global() argument 364 __init__(self, nl_msg) global() argument 369 cmd(self) global() argument 372 __repr__(self) global() argument 381 __init__(self, family_name, proto_num) global() argument 385 _message(self, nl_type, nl_flags, seq=None) global() argument 391 message(self, flags, command, version, seq=None) global() argument 394 _decode(self, nl_msg) global() argument 397 decode(self, ynl, nl_msg, op) global() argument 405 get_mcast_id(self, mcast_name, mcast_groups) global() argument 410 msghdr_size(self) global() argument 415 __init__(self, family_name) global() argument 425 message(self, flags, command, version, seq=None) global() argument 430 _decode(self, nl_msg) global() argument 433 get_mcast_id(self, mcast_name, mcast_groups) global() argument 438 msghdr_size(self) global() argument 445 __init__(self, attr_space, attrs, outer = None) global() argument 450 lookup(self, name) global() argument 467 __init__(self, def_path, schema=None, process_unknown=False, recv_size=0) global() argument 511 ntf_subscribe(self, mcast_name) global() argument 517 set_recv_dbg(self, enabled) global() argument 520 _recv_dbg_print(self, reply, nl_msgs) global() argument 528 _encode_enum(self, attr_spec, value) global() argument 540 _get_scalar(self, attr_spec, value) global() argument 550 _add_attr(self, space, name, value, search_attrs) global() argument 626 _get_enum_or_unknown(self, enum, raw) global() argument 636 _decode_enum(self, raw, attr_spec) global() argument 650 _decode_binary(self, attr, attr_spec) global() argument 666 _decode_array_attr(self, attr, attr_spec) global() argument 692 _decode_nest_type_value(self, attr, attr_spec) global() argument 702 _decode_unknown(self, attr) global() argument 708 _rsp_add(self, rsp, name, is_multi, decoded) global() argument 723 _resolve_selector(self, attr_spec, search_attrs) global() argument 737 _decode_sub_msg(self, attr, attr_spec, search_attrs) global() argument 752 _decode(self, attrs, space, outer_attrs = None) global() argument 812 _decode_extack_path(self, attrs, attr_set, offset, target, search_attrs) global() argument 848 _decode_extack(self, request, op, extack, vals) global() argument 861 _struct_size(self, name) global() argument 878 _decode_struct(self, data, name) global() argument 907 _encode_struct(self, name, vals) global() argument 931 _formatted_string(self, raw, display_hint) global() argument 947 _from_string(self, string, attr_spec) global() argument 959 handle_ntf(self, decoded) global() argument 972 check_ntf(self) global() argument 997 poll_ntf(self, duration=None) global() argument 1016 operation_do_attributes(self, name) global() argument 1027 _encode_message(self, op, vals, flags, req_seq) global() argument 1041 _ops(self, ops) global() argument 1110 _op(self, method, vals, flags=None, dump=False) global() argument 1118 do(self, method, vals, flags=None) global() argument 1121 dump(self, method, vals) global() argument 1124 do_multi(self, ops) global() argument [all...] |
| /linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
| H A D | hw_atl2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 19 static int hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location, 89 static u32 hw_atl2_sem_act_rslvr_get(struct aq_hw_s *self) in hw_atl2_sem_act_rslvr_get() argument 91 return hw_atl_reg_glb_cpu_sem_get(self, HW_ATL2_FW_SM_ACT_RSLVR); in hw_atl2_sem_act_rslvr_get() 94 static int hw_atl2_hw_reset(struct aq_hw_s *self) in hw_atl2_hw_reset() argument 96 struct hw_atl2_priv *priv = self->priv; in hw_atl2_hw_reset() 99 err = hw_atl2_utils_soft_reset(self); in hw_atl2_hw_reset() 105 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset() 107 err = aq_hw_err_from_flags(self); in hw_atl2_hw_reset() 112 static int hw_atl2_hw_queue_to_tc_map_set(struct aq_hw_s *self) in hw_atl2_hw_queue_to_tc_map_set() argument [all …]
|