Home
last modified time | relevance | path

Searched full:self (Results 1 – 25 of 1717) sorted by relevance

12345678910>>...69

/linux/scripts/gdb/linux/
H A Dmm.py24 def __init__(self): argument
28 self.ops = aarch64_page_ops()
33 def __init__(self): argument
34 self.SUBSECTION_SHIFT = 21
35 self.SEBSECTION_SIZE = 1 << self.SUBSECTION_SHIFT
36 self.MODULES_VSIZE = 2 * 1024 * 1024 * 1024
39 self.SECTION_SIZE_BITS = 29
41 self.SECTION_SIZE_BITS = 27
42 self.MAX_PHYSMEM_BITS = constants.LX_CONFIG_ARM64_VA_BITS
44 self.PAGE_SHIFT = constants.LX_CONFIG_PAGE_SHIFT
[all …]
H A Dpgtable.py64 def __init__(self, cr3, page_levels):
65 self.cr3 = cr3
66 self.page_levels = page_levels argument
67 self.page_level_write_through = is_bit_defined_tupled(cr3, 3)
68 self.page_level_cache_disabled = is_bit_defined_tupled(cr3, 4)
69 self.next_entry_physical_address = cr3 & PHYSICAL_ADDRESS_MASK & page_mask()
71 def next_entry(self, va):
72 next_level = self.page_levels
73 return PageHierarchyEntry(entry_va(next_level, self.next_entry_physical_address, va), next_level) argument
75 def mk_string(self)
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/Perf-Trace-Util/lib/Perf/Trace/
H A DSchedGui.py23 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)
33 (self.ts_start, self.ts_end) = sched_tracer.interval()
[all …]
/linux/tools/crypto/ccp/
H A Dtest_dbc.py34 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:
46 self.d.close()
51 def setUp(self) -> None: argument
[all …]
/linux/tools/verification/dot2/
H A Ddot2k.py21 def __init__(self, file_path, MonitorType, extra_params={}): argument
22 self.container = extra_params.get("container")
23 self.parent = extra_params.get("parent")
24 self.__fill_rv_templates_dir()
26 if self.container:
31 if self.parent:
33 self.name = extra_params.get("model_name")
34 self.events = []
35 self.states = []
36 self.main_c = self.__read_file(self.monitor_templates_dir + "main_container.c")
[all …]
H A Ddot2c.py25 def __init__(self, file_path, model_name=None): argument
27 self.line_length = 100
29 def __buff_to_string(self, buff): argument
38 def __get_enum_states_content(self): argument
40 buff.append("\t%s%s = 0," % (self.initial_state, self.enum_suffix))
41 for state in self.states:
42 if state != self.initial_state:
43 buff.append("\t%s%s," % (state, self.enum_suffix))
44 buff.append("\tstate_max%s" % (self.enum_suffix))
48 def get_enum_states_string(self): argument
[all …]
/linux/scripts/lib/kdoc/
H A Dkdoc_output.py65 def __init__(self): argument
68 self.out_mode = self.OUTPUT_ALL
69 self.enable_lineno = None
70 self.nosymbol = {}
71 self.symbol = None
72 self.function_table = None
73 self.config = None
74 self.no_doc_sections = False
76 self.data = ""
78 def set_config(self, config): argument
[all …]
H A Dkdoc_parser.py110 def __init__(self, config, ln): argument
111 self.config = config
113 self.contents = ""
114 self.function = ""
115 self.sectcheck = ""
116 self.struct_actual = ""
117 self.prototype = ""
119 self.warnings = []
121 self.parameterlist = []
122 self.parameterdescs = {}
[all …]
/linux/tools/testing/selftests/bpf/
H A Djson_writer.c29 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()
50 putc(self->sep, self->out); in jsonw_eor()
[all …]
/linux/tools/bpf/bpftool/
H A Djson_writer.c29 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()
50 putc(self->sep, self->out); in jsonw_eor()
[all …]
/linux/drivers/gpu/drm/msm/registers/
H A Dgen_header.py17 def __init__(self, message): argument
18 self.message = message
21 def __init__(self, name): argument
22 self.name = name
23 self.values = []
25 def has_name(self, name): argument
26 for (n, value) in self.values:
31 def names(self): argument
32 return [n for (n, value) in self.values]
34 def dump(self): argument
[all …]
/linux/tools/testing/selftests/damon/
H A D_damon_sysfs.py47 def __init__(self, size=None, nr_accesses=None, age=None):
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 - 1]
54 if self.nr_accesses is None:
55 self.nr_accesses = [0, 2**64 - 1] argument
56 if self.age is None:
57 self
43 __init__(self, size=None, nr_accesses=None, age=None) global() argument
58 stage(self) global() argument
96 __init__(self, metric, target_value=10000, current_value=0) global() argument
101 sysfs_dir(self) global() argument
104 stage(self) global() argument
126 __init__(self, sz=0, ms=0, goals=None, reset_interval_ms=0) global() argument
135 sysfs_dir(self) global() argument
138 stage(self) global() argument
171 __init__(self, nr_tried, sz_tried, nr_applied, sz_applied, qt_exceeds) global() argument
179 __init__(self, start, end, nr_accesses, age) global() argument
197 __init__(self, action='stat', access_pattern=DamosAccessPattern(), quota=DamosQuota(), apply_interval_us=0) global() argument
206 sysfs_dir(self) global() argument
210 stage(self) global() argument
244 __init__(self, pid) global() argument
247 sysfs_dir(self) global() argument
251 stage(self) global() argument
267 __init__(self, sample_us=5000, aggr_us=100000, update_us=1000000, min_nr_regions=10, max_nr_regions=1000) global() argument
275 interval_sysfs_dir(self) global() argument
279 nr_regions_range_sysfs_dir(self) global() argument
283 stage(self) global() argument
317 __init__(self, ops='paddr', monitoring_attrs=DamonAttrs(), targets=[], schemes=[]) global() argument
333 sysfs_dir(self) global() argument
337 stage(self) global() argument
382 __init__(self, contexts=[]) global() argument
388 sysfs_dir(self) global() argument
391 start(self) global() argument
409 stop(self) global() argument
413 update_schemes_tried_regions(self) global() argument
443 update_schemes_tried_bytes(self) global() argument
456 update_schemes_stats(self) global() argument
473 update_schemes_effective_quotas(self) global() argument
489 commit(self) global() argument
508 commit_schemes_quota_goals(self) global() argument
523 __init__(self, kdamonds=[]) global() argument
529 sysfs_dir(self) global() argument
532 start(self) global() argument
543 stop(self) global() argument
[all...]
/linux/tools/perf/pmu-events/
H A Dmetric.py13 def ToPerfJson(self) -> str: argument
17 def ToPython(self) -> str: argument
21 def Simplify(self): argument
22 """Returns a simplified version of self."""
25 def Equals(self, other) -> bool: argument
29 def Substitute(self, name: str, expression: 'Expression') -> 'Expression': argument
32 def __str__(self) -> str: argument
33 return self.ToPerfJson()
35 def __or__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
36 return Operator('|', self, other)
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_nic.c43 static void aq_nic_update_ndev_stats(struct aq_nic_s *self);
45 static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues) in aq_nic_rss_init() argument
54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init()
69 static void aq_nic_cfg_update_num_vecs(struct aq_nic_s *self) in aq_nic_cfg_update_num_vecs() argument
71 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_update_num_vecs()
75 if (self->irqvecs > AQ_HW_SERVICE_IRQS) in aq_nic_cfg_update_num_vecs()
76 cfg->vecs = min(cfg->vecs, self->irqvecs - AQ_HW_SERVICE_IRQS); in aq_nic_cfg_update_num_vecs()
80 if (ATL_HW_IS_CHIP_FEATURE(self->aq_hw, ANTIGUA)) { in aq_nic_cfg_update_num_vecs()
92 aq_nic_rss_init(self, cfg->num_rss_queues); in aq_nic_cfg_update_num_vecs()
96 void aq_nic_cfg_start(struct aq_nic_s *self) in aq_nic_cfg_start() argument
[all …]
H A Daq_vec.c30 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() local
38 if (!self) { in aq_vec_poll()
41 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_poll()
42 ring = self->ring[i]; in aq_vec_poll()
46 if (self->aq_hw_ops->hw_ring_tx_head_update) { in aq_vec_poll()
47 err = self->aq_hw_ops->hw_ring_tx_head_update( in aq_vec_poll()
48 self->aq_hw, in aq_vec_poll()
60 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll()
80 err = self->aq_hw_ops->hw_ring_rx_fill( in aq_vec_poll()
81 self->aq_hw, in aq_vec_poll()
[all …]
H A Daq_ring.c84 static int aq_get_rxpages(struct aq_ring_s *self, struct aq_ring_buff_s *rxbuf) in aq_get_rxpages() argument
86 unsigned int order = self->page_order; in aq_get_rxpages()
87 u16 page_offset = self->page_offset; in aq_get_rxpages()
88 u16 frame_max = self->frame_max; in aq_get_rxpages()
89 u16 tail_size = self->tail_size; in aq_get_rxpages()
100 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
101 self->stats.rx.pg_flips++; in aq_get_rxpages()
102 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages()
109 aq_nic_get_dev(self->aq_nic)); in aq_get_rxpages()
110 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages()
[all …]
/linux/tools/testing/kunit/
H A Dkunit_tool_test.py44 def test_is_subset_of(self): argument
46 self.assertTrue(kconfig0.is_subset_of(kconfig0))
50 self.assertTrue(kconfig1.is_subset_of(kconfig1))
51 self.assertTrue(kconfig0.is_subset_of(kconfig1))
52 self.assertFalse(kconfig1.is_subset_of(kconfig0))
54 def test_read_from_file(self): argument
66 self.assertEqual(kconfig, expected_kconfig)
68 def test_write_to_file(self): argument
81 self.assertEqual(actual_kconfig, expected_kconfig)
84 def setUp(self): argument
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dbase_device.py44 def __init__(self, path): argument
45 self.path = path
47 def __set_value(self, value): argument
48 with open(self.path, "w") as f:
51 def __get_value(self): argument
52 with open(self.path) as f:
56 def int_value(self) -> int: argument
57 return int(self.__get_value())
60 def int_value(self, v: int) -> None: argument
61 self.__set_value(v)
[all …]
/linux/tools/net/ynl/pyynl/lib/
H A Dynl.py104 def __init__(self, nl_msg): argument
105 self.nl_msg = nl_msg
106 self.error = -nl_msg.error
108 def __str__(self): argument
109 return f"Netlink error: {os.strerror(self.error)}\n{self.nl_msg}"
129 def __init__(self, raw, offset): argument
130 self._len, self._type = struct.unpack("HH", raw[offset : offset + 4])
131 self.type = self._type & ~Netlink.NLA_TYPE_MASK
132 self.is_nest = self._type & Netlink.NLA_F_NESTED
133 self.payload_len = self._len
[all …]
/linux/tools/perf/scripts/python/
H A Dsched-migration.py41 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
63 def __repr__(self): argument
64 return "%s woke up" % thread_name(self.wakee)
71 def __init__(self, child): argument
[all …]
/linux/tools/testing/selftests/tpm2/
H A Dtpm2_tests.py14 def setUp(self): argument
15 self.client = tpm2.Client()
16 self.root_key = self.client.create_root_key()
18 def tearDown(self): argument
19 self.client.flush_context(self.root_key)
20 self.client.close()
22 def test_seal_with_auth(self): argument
26 blob = self.client.seal(self.root_key, data, auth, None)
27 result = self.client.unseal(self.root_key, blob, auth, None)
28 self.assertEqual(data, result)
[all …]
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat336 def tracepoint_is_child(self, field): argument
343 def __init__(self, exit_reasons): argument
344 self.sc_perf_evt_open = 298
345 self.ioctl_numbers = IOCTL_NUMBERS
346 self.exit_reason_field = 'exit_reason'
347 self.exit_reasons = exit_reasons
349 def debugfs_is_child(self, field): argument
355 def __init__(self): argument
356 self.sc_perf_evt_open = 319
357 self.ioctl_numbers = IOCTL_NUMBERS
[all …]
/linux/tools/testing/selftests/drivers/s390x/uvdevice/
H A Dtest_uvdevice.c40 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP()
42 self->uvio_ioctl.argument_addr = (__u64)self->buffer; in FIXTURE_SETUP()
43 self->uvio_ioctl.argument_len = variant->arg_size; in FIXTURE_SETUP()
44 self->fault_page = in FIXTURE_SETUP()
50 if (self->uv_fd) in FIXTURE_TEARDOWN()
51 close(self->uv_fd); in FIXTURE_TEARDOWN()
52 munmap((void *)self->fault_page, (size_t)getpagesize()); in FIXTURE_TEARDOWN()
59 rc = ioctl(self->uv_fd, variant->ioctl_cmd, NULL); in TEST_F()
64 rc = ioctl(self->uv_fd, variant->ioctl_cmd, self->fault_page); in TEST_F()
74 self->uvio_ioctl.argument_addr = 0; in TEST_F()
[all …]
/linux/tools/net/ynl/pyynl/
H A Dynl_gen_c.py44 def get_family_id(self): argument
49 def __init__(self, family, attr_set, attr, value): argument
52 self.attr = attr
53 self.attr_set = attr_set
54 self.type = attr['type']
55 self.checks = attr.get('checks', {})
57 self.request = False
58 self.reply = False
60 self.is_selector = False
63 self.len = attr['len']
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_utils.c58 static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self,
60 static u32 hw_atl_utils_get_mpi_mbox_tid(struct aq_hw_s *self);
61 static u32 hw_atl_utils_mpi_get_state(struct aq_hw_s *self);
62 static u32 hw_atl_utils_mif_cmd_get(struct aq_hw_s *self);
63 static u32 hw_atl_utils_mif_addr_get(struct aq_hw_s *self);
64 static u32 hw_atl_utils_rpc_state_get(struct aq_hw_s *self);
65 static u32 aq_fw1x_rpc_get(struct aq_hw_s *self);
67 int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops) in hw_atl_utils_initfw() argument
71 hw_atl_utils_hw_chip_features_init(self, in hw_atl_utils_initfw()
72 &self->chip_features); in hw_atl_utils_initfw()
[all …]

12345678910>>...69