Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 651) sorted by relevance

12345678910>>...27

/Linux-v5.4/tools/perf/scripts/python/
Dexported-sql-viewer.py184 def __init__(self, task, param=None, parent=None): argument
185 super(Thread, self).__init__(parent)
186 self.task = task
187 self.param = param
189 def run(self): argument
191 if self.param is None:
192 done, result = self.task()
194 done, result = self.task(self.param)
195 self.done.emit(result)
203 def __init__(self, glb, params, parent=None): argument
[all …]
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 …]
Dcompaction-times.py29 def __init__(self, re): argument
30 self.re = re
32 def filter(self, pid, comm): argument
33 m = self.re.search(comm)
37 def __init__(self, low, high): argument
38 self.low = (0 if low == "" else int(low))
39 self.high = (0 if high == "" else int(high))
41 def filter(self, pid, comm): argument
42 return not (pid >= self.low and (self.high == 0 or pid <= self.high))
55 def __init__(self, aval, bval, alabel = None, blabel = None): argument
[all …]
/Linux-v5.4/tools/bpf/bpftool/
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-v5.4/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
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-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c37 static void aq_nic_update_ndev_stats(struct aq_nic_s *self);
39 static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues) in aq_nic_rss_init() argument
41 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init()
62 void aq_nic_cfg_start(struct aq_nic_s *self) in aq_nic_cfg_start() argument
64 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_start()
93 if (self->irqvecs > AQ_HW_SERVICE_IRQS) in aq_nic_cfg_start()
94 cfg->vecs = min(cfg->vecs, self->irqvecs - AQ_HW_SERVICE_IRQS); in aq_nic_cfg_start()
107 aq_nic_rss_init(self, cfg->num_rss_queues); in aq_nic_cfg_start()
109 cfg->irq_type = aq_pci_func_get_irq_type(self); in aq_nic_cfg_start()
122 if (AQ_HW_SERVICE_IRQS > 0 && cfg->vecs + 1 <= self->irqvecs) in aq_nic_cfg_start()
[all …]
Daq_vec.c34 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() local
42 if (!self) { in aq_vec_poll()
45 for (i = 0U, ring = self->ring[0]; in aq_vec_poll()
46 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_poll()
47 if (self->aq_hw_ops->hw_ring_tx_head_update) { in aq_vec_poll()
48 err = self->aq_hw_ops->hw_ring_tx_head_update( in aq_vec_poll()
49 self->aq_hw, in aq_vec_poll()
61 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll()
81 err = self->aq_hw_ops->hw_ring_rx_fill( in aq_vec_poll()
82 self->aq_hw, in aq_vec_poll()
[all …]
Daq_ring.c59 static int aq_get_rxpages(struct aq_ring_s *self, struct aq_ring_buff_s *rxbuf, in aq_get_rxpages() argument
71 self->stats.rx.pg_flips++; in aq_get_rxpages()
77 aq_nic_get_dev(self->aq_nic)); in aq_get_rxpages()
78 self->stats.rx.pg_losts++; in aq_get_rxpages()
82 self->stats.rx.pg_reuses++; in aq_get_rxpages()
88 aq_nic_get_dev(self->aq_nic)); in aq_get_rxpages()
95 static struct aq_ring_s *aq_ring_alloc(struct aq_ring_s *self, in aq_ring_alloc() argument
100 self->buff_ring = in aq_ring_alloc()
101 kcalloc(self->size, sizeof(struct aq_ring_buff_s), GFP_KERNEL); in aq_ring_alloc()
103 if (!self->buff_ring) { in aq_ring_alloc()
[all …]
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_b0.c89 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument
93 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset()
97 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset()
99 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset()
104 static int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument
106 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc()
110 static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self) in hw_atl_b0_hw_qos_set() argument
117 hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set(self, 0x0U); in hw_atl_b0_hw_qos_set()
118 hw_atl_tps_tx_pkt_shed_desc_rate_lim_set(self, 0xA); in hw_atl_b0_hw_qos_set()
121 hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set(self, 0U); in hw_atl_b0_hw_qos_set()
[all …]
Dhw_atl_a0.c82 static int hw_atl_a0_hw_reset(struct aq_hw_s *self) in hw_atl_a0_hw_reset() argument
87 hw_atl_glb_glb_reg_res_dis_set(self, 1U); in hw_atl_a0_hw_reset()
88 hw_atl_pci_pci_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
89 hw_atl_rx_rx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
90 hw_atl_tx_tx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
93 hw_atl_glb_soft_res_set(self, 1); in hw_atl_a0_hw_reset()
97 self, val, val == 0, in hw_atl_a0_hw_reset()
102 hw_atl_itr_irq_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
103 hw_atl_itr_res_irq_set(self, 1U); in hw_atl_a0_hw_reset()
107 self, val, val == 0, in hw_atl_a0_hw_reset()
[all …]
Dhw_atl_utils.c52 static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self,
55 static u32 hw_atl_utils_get_mpi_mbox_tid(struct aq_hw_s *self);
56 static u32 hw_atl_utils_mpi_get_state(struct aq_hw_s *self);
57 static u32 hw_atl_utils_mif_cmd_get(struct aq_hw_s *self);
58 static u32 hw_atl_utils_mif_addr_get(struct aq_hw_s *self);
59 static u32 hw_atl_utils_rpc_state_get(struct aq_hw_s *self);
61 int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops) in hw_atl_utils_initfw() argument
65 err = hw_atl_utils_soft_reset(self); in hw_atl_utils_initfw()
69 hw_atl_utils_hw_chip_features_init(self, in hw_atl_utils_initfw()
70 &self->chip_features); in hw_atl_utils_initfw()
[all …]
Dhw_atl_utils_fw2x.c68 static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed);
69 static int aq_fw2x_set_state(struct aq_hw_s *self,
72 static u32 aq_fw2x_mbox_get(struct aq_hw_s *self);
73 static u32 aq_fw2x_rpc_get(struct aq_hw_s *self);
74 static u32 aq_fw2x_state2_get(struct aq_hw_s *self);
76 static int aq_fw2x_init(struct aq_hw_s *self) in aq_fw2x_init() argument
82 self, self->mbox_addr, in aq_fw2x_init()
83 self->mbox_addr != 0U, in aq_fw2x_init()
87 self, self->rpc_addr, in aq_fw2x_init()
88 self->rpc_addr != 0U, in aq_fw2x_init()
[all …]
/Linux-v5.4/tools/kvm/kvm_stat/
Dkvm_stat263 def tracepoint_is_child(self, field): argument
270 def __init__(self, exit_reasons): argument
271 self.sc_perf_evt_open = 298
272 self.ioctl_numbers = IOCTL_NUMBERS
273 self.exit_reasons = exit_reasons
275 def debugfs_is_child(self, field): argument
281 def __init__(self): argument
282 self.sc_perf_evt_open = 319
283 self.ioctl_numbers = IOCTL_NUMBERS
284 self.ioctl_numbers['ENABLE'] = 0x20002400
[all …]
/Linux-v5.4/scripts/kconfig/tests/
Dconftest.py30 def __init__(self, request): argument
36 self._test_dir = os.path.dirname(str(request.fspath))
39 def _run_conf(self, mode, dot_config=None, out_file='.config', argument
54 extra_env['srctree'] = self._test_dir
62 shutil.copyfile(os.path.join(self._test_dir, dot_config),
82 self.retcode = ps.returncode
83 self.stdout = ps.stdout.read().decode()
84 self.stderr = ps.stderr.read().decode()
89 if self.retcode == 0 and out_file:
91 self.config = f.read()
[all …]
/Linux-v5.4/tools/testing/selftests/tpm2/
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 …]
Dtpm2.py203 def __init__(self, alg): argument
204 self.alg = alg
206 def __str__(self): argument
211 def __init__(self, name): argument
212 self.name = name
214 def __str__(self): argument
219 def __init__(self, alg): argument
220 self.alg = alg
222 def __str__(self): argument
227 def __init__(self, cc, rc): argument
[all …]
/Linux-v5.4/tools/testing/selftests/tc-testing/plugin-lib/
DnsPlugin.py11 def __init__(self): argument
12 self.sub_class = 'ns/SubPlugin'
15 def pre_suite(self, testcount, testidlist): argument
19 if self.args.namespace:
20 self._ns_create()
22 self._ports_create()
24 def post_suite(self, index): argument
27 if self.args.verbose:
28 print('{}.post_suite'.format(self.sub_class))
30 if self.args.namespace:
[all …]
DvalgrindPlugin.py22 def __init__(self): argument
23 self.sub_class = 'valgrind/SubPlugin'
24 self.tap = ''
25 self._tsr = TestSuiteReport()
28 def pre_suite(self, testcount, testidlist): argument
31 if self.args.verbose > 1:
32 print('{}.pre_suite'.format(self.sub_class))
33 if self.args.valgrind:
34 self._add_to_tap('1..{}\n'.format(self.testcount))
36 def post_suite(self, index): argument
[all …]
/Linux-v5.4/tools/testing/selftests/tc-testing/
DTdcPlugin.py4 def __init__(self): argument
6 print(' -- {}.__init__'.format(self.sub_class))
8 def pre_suite(self, testcount, testidlist): argument
10 self.testcount = testcount
11 self.testidlist = testidlist
12 if self.args.verbose > 1:
13 print(' -- {}.pre_suite'.format(self.sub_class))
15 def post_suite(self, index): argument
18 if self.args.verbose > 1:
19 print(' -- {}.post_suite'.format(self.sub_class))
[all …]
DTdcResults.py12 def __init__(self, test_id="", test_name=""): argument
13 self.test_id = test_id
14 self.test_name = test_name
15 self.result = ResultState.noresult
16 self.failmsg = ""
17 self.errormsg = ""
18 self.steps = []
20 def set_result(self, result): argument
22 self.result = result
27 def get_result(self): argument
[all …]
/Linux-v5.4/tools/perf/tests/
Dattr.py33 def __init__(self, test, msg): argument
34 self.msg = msg
35 self.test = test
36 def getMsg(self): argument
37 return '\'%s\' - %s' % (self.test.path, self.msg)
40 def __init__(self, test, arch): argument
41 self.arch = arch
42 self.test = test
43 def getMsg(self): argument
44 return '[%s] \'%s\'' % (self.arch, self.test.path)
[all …]
/Linux-v5.4/scripts/
Dbpf_helpers_doc.py17 def __init__(self, line='<line not provided>', reader=None): argument
19 BaseException.__init__(self,
23 BaseException.__init__(self, 'Error parsing line: %s' % line)
32 def __init__(self, proto='', desc='', ret=''): argument
33 self.proto = proto
34 self.desc = desc
35 self.ret = ret
37 def proto_break_down(self): argument
46 capture = proto_re.match(self.proto)
71 def __init__(self, filename): argument
[all …]
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dcw1200_sdio.c66 static int cw1200_sdio_memcpy_fromio(struct hwbus_priv *self, in cw1200_sdio_memcpy_fromio() argument
70 return sdio_memcpy_fromio(self->func, dst, addr, count); in cw1200_sdio_memcpy_fromio()
73 static int cw1200_sdio_memcpy_toio(struct hwbus_priv *self, in cw1200_sdio_memcpy_toio() argument
77 return sdio_memcpy_toio(self->func, addr, (void *)src, count); in cw1200_sdio_memcpy_toio()
80 static void cw1200_sdio_lock(struct hwbus_priv *self) in cw1200_sdio_lock() argument
82 sdio_claim_host(self->func); in cw1200_sdio_lock()
85 static void cw1200_sdio_unlock(struct hwbus_priv *self) in cw1200_sdio_unlock() argument
87 sdio_release_host(self->func); in cw1200_sdio_unlock()
92 struct hwbus_priv *self = sdio_get_drvdata(func); in cw1200_sdio_irq_handler() local
95 if (self->core) in cw1200_sdio_irq_handler()
[all …]
/Linux-v5.4/Documentation/sphinx/
Dkernel_include.py61 def run(self): argument
63 os.path.expandvars(self.arguments[0]))
67 raise self.severe(
69 % (self.name, path))
71 self.arguments[0] = path
74 return self._run()
76 def _run(self): argument
84 if not self.state.document.settings.file_insertion_enabled:
85 raise self.warning('"%s" directive disabled.' % self.name)
86 source = self.state_machine.input_lines.source(
[all …]
/Linux-v5.4/tools/cgroup/
Diocost_monitor.py67 def walk(self, blkcg, q_id, parent_path): argument
68 if not self.include_dying and \
79 self.blkgs.append((path if path else '/', blkg))
83 self.walk(c, q_id, path)
85 def __init__(self, root_blkcg, q_id, include_dying=False): argument
86 self.include_dying = include_dying
87 self.blkgs = []
88 self.walk(root_blkcg, q_id, '')
90 def __iter__(self): argument
91 return iter(self.blkgs)
[all …]

12345678910>>...27