Searched refs:self (Results 51 - 75 of 645) sorted by relevance

1234567891011>>

/linux-master/tools/perf/scripts/python/
H A Dsched-migration.py41 def __repr__(self):
49 def __init__(self, sleeper):
50 self.sleeper = sleeper
52 def __repr__(self):
53 return "%s gone to sleep" % thread_name(self.sleeper)
60 def __init__(self, wakee):
61 self.wakee = wakee
63 def __repr__(self):
64 return "%s woke up" % thread_name(self.wakee)
71 def __init__(self, chil
[all...]
H A Dcompaction-times.py29 def __init__(self, re):
30 self.re = re
32 def filter(self, pid, comm):
33 m = self.re.search(comm)
37 def __init__(self, low, high):
38 self.low = (0 if low == "" else int(low))
39 self.high = (0 if high == "" else int(high))
41 def filter(self, pid, comm):
42 return not (pid >= self.low and (self
[all...]
/linux-master/tools/testing/selftests/mount/
H A Drun_unprivileged_remount.sh7 if [ -f /proc/self/uid_map ] ; then
10 echo "WARN: No /proc/self/uid_map exist, test skipped." ;
/linux-master/tools/testing/selftests/tc-testing/plugin-lib/
H A DscapyPlugin.py21 def __init__(self):
22 self.sub_class = 'scapy/SubPlugin'
25 def post_execute(self):
26 if 'scapy' not in self.args.caseinfo:
27 if self.args.verbose:
28 print('{}.post_execute: no scapy info in test case'.format(self.sub_class))
32 lscapyinfo = self.args.caseinfo['scapy']
46 .format(self.sub_class))
H A DvalgrindPlugin.py22 def __init__(self):
23 self.sub_class = 'valgrind/SubPlugin'
24 self.tap = ''
25 self._tsr = TestSuiteReport()
28 def pre_suite(self, testcount, testist):
30 self.testidlist = [tidx['id'] for tidx in testlist]
32 if self.args.verbose > 1:
33 print('{}.pre_suite'.format(self.sub_class))
34 if self.args.valgrind:
35 self
[all...]
H A DrootPlugin.py9 def __init__(self):
10 self.sub_class = 'root/SubPlugin'
13 def pre_suite(self, testcount, testlist):
/linux-master/drivers/net/wireless/st/cw1200/
H A Dcw1200_spi.c59 static int cw1200_spi_memcpy_fromio(struct hwbus_priv *self, argument
91 if (self->func->bits_per_word == 8)
98 ret = spi_sync(self->func, &m);
114 if (self->func->bits_per_word == 8)
125 static int cw1200_spi_memcpy_toio(struct hwbus_priv *self, argument
156 if (self->func->bits_per_word == 8)
178 rval = spi_sync(self->func, &m);
186 if (self->func->bits_per_word == 8)
196 static void cw1200_spi_lock(struct hwbus_priv *self) argument
204 add_wait_queue(&self
222 cw1200_spi_unlock(struct hwbus_priv *self) argument
236 struct hwbus_priv *self = dev_id; local
248 cw1200_spi_irq_subscribe(struct hwbus_priv *self) argument
273 cw1200_spi_irq_unsubscribe(struct hwbus_priv *self) argument
280 cw1200_spi_off(struct hwbus_priv *self, const struct cw1200_platform_data_spi *pdata) argument
296 cw1200_spi_on(struct hwbus_priv *self, const struct cw1200_platform_data_spi *pdata) argument
334 cw1200_spi_align_size(struct hwbus_priv *self, size_t size) argument
339 cw1200_spi_pm(struct hwbus_priv *self, bool suspend) argument
358 struct hwbus_priv *self; local
437 struct hwbus_priv *self = spi_get_drvdata(func); local
451 struct hwbus_priv *self = spi_get_drvdata(to_spi_device(dev)); local
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtest_bpftool_synctypes.py28 def __init__(self, reader):
29 self.reader = reader
31 def search_block(self, start_marker):
36 offset = self.reader.tell()
37 array_start = re.search(start_marker, self.reader.read())
40 self.reader.seek(offset + array_start.start())
42 def parse(self, pattern, end_marker):
51 line = self.reader.readline()
67 def __init__(self, reader, array_name):
68 self
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
H A Dhw_atl2.c19 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) argument
91 return hw_atl_reg_glb_cpu_sem_get(self, HW_ATL2_FW_SM_ACT_RSLVR);
94 static int hw_atl2_hw_reset(struct aq_hw_s *self) argument
96 struct hw_atl2_priv *priv = self->priv;
99 err = hw_atl2_utils_soft_reset(self);
105 self->aq_fw_ops->set_state(self, MPI_RESET);
107 err = aq_hw_err_from_flags(self);
112 static int hw_atl2_hw_queue_to_tc_map_set(struct aq_hw_s *self) argument
162 hw_atl2_hw_qos_set(struct aq_hw_s *self) argument
214 hw_atl2_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) argument
239 hw_atl2_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) argument
354 hw_atl2_hw_init_tx_path(struct aq_hw_s *self) argument
379 hw_atl2_hw_init_new_rx_filters(struct aq_hw_s *self) argument
430 hw_atl2_hw_new_rx_filter_vlan_promisc(struct aq_hw_s *self, bool promisc) argument
445 hw_atl2_hw_new_rx_filter_promisc(struct aq_hw_s *self, bool promisc) argument
464 hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location, u32 tag, u32 mask, u32 action) argument
484 hw_atl2_hw_init_rx_path(struct aq_hw_s *self) argument
533 hw_atl2_hw_init(struct aq_hw_s *self, const u8 *mac_addr) argument
599 hw_atl2_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) argument
606 hw_atl2_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring, struct aq_ring_param_s *aq_ring_param) argument
615 hw_atl2_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) argument
625 hw_atl2_hw_multicast_list_set(struct aq_hw_s *self, u8 ar_mac [AQ_HW_MULTICAST_ADDRESS_MAX] [ETH_ALEN], u32 count) argument
666 hw_atl2_hw_interrupt_moderation_set(struct aq_hw_s *self) argument
758 hw_atl2_hw_stop(struct aq_hw_s *self) argument
765 hw_atl2_utils_get_hw_stats(struct aq_hw_s *self) argument
770 hw_atl2_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) argument
816 hw_atl2_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) argument
[all...]
/linux-master/tools/testing/selftests/hid/tests/
H A Dtest_wacom_generic.py62 def fill(self, reportdata):
64 reportdata.inrange = self in [ProximityState.IN_RANGE]
65 reportdata.wacomsense = self in [
98 def fill(self, reportdata):
100 reportdata.barrelswitch = int(self.primary or 0)
101 reportdata.secondarybarrelswitch = int(self.secondary or 0)
102 reportdata.b3 = int(self.tertiary or 0)
123 def fill(self, reportdata):
125 reportdata.transducerserialnumber = self.serial & 0xFFFFFFFF
126 reportdata.serialhi = (self
[all...]
H A Dtest_usb_crash.py53 def __init__(self, name=None, input_info=None):
60 def is_ready(self):
65 def get_evdev(self, application=None):
78 # def usbVidPid(self, request):
82 def new_uhdev(self, usbVidPid, request):
83 self.module, self.vid, self.pid = usbVidPid
84 self._load_kernel_module(None, self
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_pci_func.h23 int aq_pci_func_alloc_irq(struct aq_nic_s *self, unsigned int i,
26 void aq_pci_func_free_irqs(struct aq_nic_s *self);
27 unsigned int aq_pci_func_get_irq_type(struct aq_nic_s *self);
H A Daq_hw.h210 int (*hw_ring_tx_xmit)(struct aq_hw_s *self, struct aq_ring_s *aq_ring,
213 int (*hw_ring_rx_receive)(struct aq_hw_s *self,
216 int (*hw_ring_rx_fill)(struct aq_hw_s *self, struct aq_ring_s *aq_ring,
219 int (*hw_ring_tx_head_update)(struct aq_hw_s *self,
222 int (*hw_set_mac_address)(struct aq_hw_s *self, const u8 *mac_addr);
224 int (*hw_soft_reset)(struct aq_hw_s *self);
226 int (*hw_prepare)(struct aq_hw_s *self,
229 int (*hw_reset)(struct aq_hw_s *self);
231 int (*hw_init)(struct aq_hw_s *self, const u8 *mac_addr);
233 int (*hw_start)(struct aq_hw_s *self);
[all...]
/linux-master/tools/kvm/kvm_stat/
H A Dkvm_stat336 def tracepoint_is_child(self, field):
343 def __init__(self, exit_reasons):
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):
355 def __init__(self):
356 self.sc_perf_evt_open = 319
357 self
[all...]
/linux-master/tools/testing/kunit/
H A Dkunit_config.py21 def __str__(self) -> str:
22 if self.value == 'n':
23 return f'# CONFIG_{self.name} is not set'
24 return f'CONFIG_{self.name}={self.value}'
34 def __init__(self) -> None:
35 self._entries = {} # type: Dict[str, str]
37 def __eq__(self, other: Any) -> bool:
38 if not isinstance(other, self.__class__):
40 return self
[all...]
/linux-master/tools/testing/selftests/net/
H A Dbind_timewait.c32 self->addr.sin_family = AF_INET;
33 self->addr.sin_port = 0;
34 self->addr.sin_addr.s_addr = htonl(variant->addr_const);
35 self->addrlen = sizeof(self->addr);
43 FIXTURE_DATA(bind_timewait) *self)
52 ret = bind(server_fd, (struct sockaddr *)&self->addr, self->addrlen);
58 ret = getsockname(server_fd, (struct sockaddr *)&self->addr, &self
42 create_timewait_socket(struct __test_metadata *_metadata, FIXTURE_DATA(bind_timewait) *self) argument
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_utils_fw2x.c85 static int aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed);
86 static int aq_fw2x_set_state(struct aq_hw_s *self,
89 static u32 aq_fw2x_mbox_get(struct aq_hw_s *self);
90 static u32 aq_fw2x_rpc_get(struct aq_hw_s *self);
91 static int aq_fw2x_settings_get(struct aq_hw_s *self, u32 *addr);
92 static u32 aq_fw2x_state_get(struct aq_hw_s *self);
93 static u32 aq_fw2x_state2_get(struct aq_hw_s *self);
95 static int aq_fw2x_init(struct aq_hw_s *self) argument
101 self, self
115 aq_fw2x_deinit(struct aq_hw_s *self) argument
179 aq_fw2x_set_link_speed(struct aq_hw_s *self, u32 speed) argument
188 aq_fw2x_upd_flow_control_bits(struct aq_hw_s *self, u32 *mpi_state, u32 fc) argument
210 aq_fw2x_upd_eee_rate_bits(struct aq_hw_s *self, u32 *mpi_opts, u32 eee_speeds) argument
221 aq_fw2x_set_state(struct aq_hw_s *self, enum hal_atl_utils_fw_state_e state) argument
247 aq_fw2x_update_link_status(struct aq_hw_s *self) argument
279 aq_fw2x_get_mac_permanent(struct aq_hw_s *self, u8 *mac) argument
301 aq_fw2x_update_stats(struct aq_hw_s *self) argument
324 aq_fw2x_get_phy_temp(struct aq_hw_s *self, int *temp) argument
358 aq_fw2x_set_wol(struct aq_hw_s *self, const u8 *mac) argument
403 aq_fw2x_set_power(struct aq_hw_s *self, unsigned int power_state, const u8 *mac) argument
414 aq_fw2x_send_fw_request(struct aq_hw_s *self, const struct hw_fw_request_iface *fw_req, size_t size) argument
447 aq_fw3x_enable_ptp(struct aq_hw_s *self, int enable) argument
461 aq_fw3x_adjust_ptp(struct aq_hw_s *self, uint64_t adj) argument
469 aq_fw2x_led_control(struct aq_hw_s *self, u32 mode) argument
479 aq_fw2x_set_eee_rate(struct aq_hw_s *self, u32 speed) argument
490 aq_fw2x_get_eee_rate(struct aq_hw_s *self, u32 *rate, u32 *supported_rates) argument
514 aq_fw2x_renegotiate(struct aq_hw_s *self) argument
525 aq_fw2x_set_flow_control(struct aq_hw_s *self) argument
537 aq_fw2x_get_flow_control(struct aq_hw_s *self, u32 *fcmode) argument
551 aq_fw2x_set_phyloopback(struct aq_hw_s *self, u32 mode, bool enable) argument
579 aq_fw2x_mbox_get(struct aq_hw_s *self) argument
584 aq_fw2x_rpc_get(struct aq_hw_s *self) argument
589 aq_fw2x_settings_get(struct aq_hw_s *self, u32 *addr) argument
602 aq_fw2x_state_get(struct aq_hw_s *self) argument
607 aq_fw2x_state2_get(struct aq_hw_s *self) argument
612 aq_fw2x_set_downshift(struct aq_hw_s *self, u32 counter) argument
633 aq_fw2x_set_media_detect(struct aq_hw_s *self, bool on) argument
647 aq_fw2x_get_link_capabilities(struct aq_hw_s *self) argument
[all...]
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Dsharedbuffer_configuration.py28 def __init__(self, pools):
29 self._pools = []
31 self._pools.append(pool)
33 def _cell_size(self):
34 return self._pools[0]["cell_size"]
36 def _get_static_size(self, th):
39 return th * 8000 * self._cell_size()
41 def _get_size(self):
42 return self._get_static_size(16)
44 def _get_thtype(self)
[all...]
/linux-master/scripts/gdb/linux/
H A Dpage_owner.py38 def __init__(self):
39 super(DumpPageOwner, self).__init__("lx-dump-page-owner", gdb.COMMAND_SUPPORT)
41 def invoke(self, args, from_tty):
49 self.p_ops = mm.page_ops().ops
50 self.get_page_owner_info()
53 self.read_page_owner()
57 self.read_page_owner_by_addr(self.p_ops.pfn_to_page(pfn))
63 def get_page_owner_info(self):
64 self
[all...]
/linux-master/Documentation/sphinx/
H A DrstFlatTable.py112 def run(self):
114 if not self.content:
115 error = self.state_machine.reporter.error(
116 'The "%s" directive is empty; content required.' % self.name,
117 nodes.literal_block(self.block_text, self.block_text),
118 line=self.lineno)
121 title, messages = self.make_title()
123 self.state.nested_parse(self
[all...]
H A Dkernel_feat.py70 def warn(self, message, **replace):
71 replace["fname"] = self.state.document.current_source
72 replace["line_no"] = replace.get("line_no", self.lineno)
74 self.state.document.settings.env.app.warn(message, prefix="")
76 def run(self):
77 doc = self.state.document
79 raise self.warning("docutils: file insertion disabled")
90 os.path.join(srctree, 'Documentation', self.arguments[0]),
93 if len(self.arguments) > 1:
94 args.extend(['--arch', self
[all...]
/linux-master/tools/testing/selftests/mm/
H A Dmigration.c37 self->nthreads = numa_num_task_cpus() - 1;
38 self->n1 = -1;
39 self->n2 = -1;
43 if (self->n1 == -1) {
44 self->n1 = n;
46 self->n2 = n;
51 self->threads = malloc(self->nthreads * sizeof(*self->threads));
52 ASSERT_NE(self
[all...]
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c93 fd = open("/proc/self/ns/time_for_children", O_RDONLY | O_CLOEXEC);
131 self->nsfds[i] = -EBADF;
132 self->child_nsfds1[i] = -EBADF;
133 self->child_nsfds2[i] = -EBADF;
136 proc_fd = open("/proc/self/ns", O_DIRECTORY | O_CLOEXEC);
138 TH_LOG("%m - Failed to open /proc/self/ns");
141 self->pid = getpid();
144 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC);
145 if (self->nsfds[i] < 0) {
148 info->name, self
[all...]
/linux-master/scripts/
H A Dspdxcheck.py16 def __init__(self, tok, txt):
17 self.tok = tok
18 self.txt = txt
21 def __init__(self, el, txt):
22 self.el = el
23 self.txt = txt
26 def __init__(self):
27 self.license_files = 0
28 self.exception_files = 0
29 self
[all...]
/linux-master/tools/workqueue/
H A Dwq_monitor.py77 def __init__(self, wq):
78 self.name = wq.name.string_().decode()
79 self.unbound = wq.flags & WQ_UNBOUND != 0
80 self.mem_reclaim = wq.flags & WQ_MEM_RECLAIM != 0
81 self.stats = [0] * PWQ_NR_STATS
84 self.stats[i] += int(pwq.stats[i])
86 def dict(self, now):
88 'name' : self.name,
89 'unbound' : self.unbound,
90 'mem_reclaim' : self
[all...]

Completed in 232 milliseconds

1234567891011>>