Home
last modified time | relevance | path

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

12345678910>>...35

/linux/tools/perf/scripts/python/
H A Dexported-sql-viewer.py194 def __init__(self, task, param=None, parent=None): argument
195 super(Thread, self).__init__(parent)
196 self.task = task
197 self.param = param
199 def run(self): argument
201 if self.param is None:
202 done, result = self.task()
204 done, result = self.task(self.param)
205 self.done.emit(result)
213 def __init__(self, glb, params, parent=None): argument
[all …]
/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 = 128 * 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 …]
/linux/tools/net/ynl/lib/
H A Dnlspec.py31 def __init__(self, family, yaml): argument
32 self.yaml = yaml
33 self.family = family
35 if 'name' in self.yaml:
36 self.name = self.yaml['name']
37 self.ident_name = self.name.replace('-', '_')
39 self._super_resolved = False
40 family.add_unresolved(self)
42 def __getitem__(self, key): argument
43 return self.yaml[key]
[all …]
/linux/scripts/
H A Drust_is_available_test.py98 def run_script(self, expected, override_env): argument
100 "RUSTC": self.default_rustc,
101 "BINDGEN": self.default_bindgen,
102 "CC": self.default_cc,
114 self.assertEqual(result.stdout, b"")
116 if expected == self.Expected.SUCCESS:
119 self.assertEqual(result.returncode, 0)
120 self.assertEqual(result.stderr, b"")
121 elif expected == self.Expected.SUCCESS_WITH_EXTRA_OUTPUT:
126 self.assertEqual(result.returncode, 0)
[all …]
H A Dbpf_doc.py24 def __init__(self, line='<line not provided>', reader=None): argument
26 BaseException.__init__(self,
30 BaseException.__init__(self, 'Error parsing line: %s' % line)
40 def __init__(self, proto='', desc='', ret=''): argument
41 self.proto = proto
42 self.desc = desc
43 self.ret = ret
53 def __init__(self, *args, **kwargs): argument
55 self.enum_val = None
57 def proto_break_down(self): argument
[all …]
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Denv.py39 def __init__(self, src_path, **kwargs): argument
40 self._ns = None
42 self.env = _load_env_file(src_path)
44 if 'NETIF' in self.env:
45 self.dev = ip("link show dev " + self.env['NETIF'], json=True)[0]
47 self._ns = NetdevSimDev(**kwargs)
48 self.dev = self._ns.nsims[0].dev
49 self.ifindex = self.dev['ifindex']
51 def __enter__(self): argument
54 return self
[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/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/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/drivers/gpu/drm/msm/registers/
H A Dgen_header.py16 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
31 return [n for (n, value) in self.values]
33 def dump(self): argument
[all …]
/linux/tools/verification/dot2/
H A Ddot2c.py25 def __init__(self, file_path): 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 …]
H A Ddot2k.py20 def __init__(self, file_path, MonitorType): argument
23 self.monitor_type = self.monitor_types.get(MonitorType)
24 if self.monitor_type == None:
27 self.monitor_type = MonitorType
28 self.__fill_rv_templates_dir()
29 self.main_c = self.__open_file(self.monitor_templates_dir + "main_" + MonitorType + ".c")
30 self.enum_suffix = "_%s" % self.name
32 def __fill_rv_templates_dir(self): argument
34 if os.path.exists(self.monitor_templates_dir) == True:
43 self.monitor_templates_dir = kernel_path
[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/testing/selftests/damon/
H A D_damon_sysfs.py43 def __init__(self, size=None, nr_accesses=None, age=None):
44 self.size = size argument
45 self.nr_accesses = nr_accesses
46 self.age = age
48 if self.size is None:
49 self.size = [0, 2**64 - 1]
50 if self.nr_accesses is None:
51 self.nr_accesses = [0, 2**64 - 1]
52 if self.age is None:
53 self
32 __init__(self, size=None, nr_accesses=None, age=None) global() argument
47 stage(self) global() argument
79 __init__(self, sz=0, ms=0, reset_interval_ms=0) global() argument
84 sysfs_dir(self) global() argument
87 stage(self) global() argument
106 __init__(self, nr_tried, sz_tried, nr_applied, sz_applied, qt_exceeds) global() argument
124 __init__(self, action='stat', access_pattern=DamosAccessPattern(), quota=DamosQuota(), apply_interval_us=0) global() argument
133 sysfs_dir(self) global() argument
137 stage(self) global() argument
171 __init__(self, pid) global() argument
174 sysfs_dir(self) global() argument
178 stage(self) global() argument
194 __init__(self, sample_us=5000, aggr_us=100000, update_us=1000000, min_nr_regions=10, max_nr_regions=1000) global() argument
202 interval_sysfs_dir(self) global() argument
206 nr_regions_range_sysfs_dir(self) global() argument
210 stage(self) global() argument
244 __init__(self, ops='paddr', monitoring_attrs=DamonAttrs(), targets=[], schemes=[]) global() argument
260 sysfs_dir(self) global() argument
264 stage(self) global() argument
307 __init__(self, contexts=[]) global() argument
313 sysfs_dir(self) global() argument
316 start(self) global() argument
334 update_schemes_tried_bytes(self) global() argument
347 update_schemes_stats(self) global() argument
367 __init__(self, kdamonds=[]) global() argument
373 sysfs_dir(self) global() argument
376 start(self) global() argument
[all...]
/linux/tools/testing/kunit/
H A Dkunit_tool_test.py43 def test_is_subset_of(self): argument
45 self.assertTrue(kconfig0.is_subset_of(kconfig0))
49 self.assertTrue(kconfig1.is_subset_of(kconfig1))
50 self.assertTrue(kconfig0.is_subset_of(kconfig1))
51 self.assertFalse(kconfig1.is_subset_of(kconfig0))
53 def test_read_from_file(self): argument
65 self.assertEqual(kconfig, expected_kconfig)
67 def test_write_to_file(self): argument
80 self.assertEqual(actual_kconfig, expected_kconfig)
83 def setUp(self): 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
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)
38 def __ror__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
[all …]
/linux/tools/perf/tests/shell/lib/
H A Dperf_metric_validation.py11 …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:
25self.valueLowBound, self.valueUpBound, self.description)
[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/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.c115 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
140 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_TXBUF_SIZE, in hw_atl_b0_tc_ptp_set()
144 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_RXBUF_SIZ in hw_atl_b0_tc_ptp_set()
152 hw_atl_b0_hw_qos_set(struct aq_hw_s * self) hw_atl_b0_hw_qos_set() argument
209 hw_atl_b0_hw_rss_hash_set(struct aq_hw_s * self,struct aq_rss_parameters * rss_params) hw_atl_b0_hw_rss_hash_set() argument
237 hw_atl_b0_hw_rss_set(struct aq_hw_s * self,struct aq_rss_parameters * rss_params) hw_atl_b0_hw_rss_set() argument
273 hw_atl_b0_hw_offload_set(struct aq_hw_s * self,struct aq_nic_cfg_s * aq_nic_cfg) hw_atl_b0_hw_offload_set() argument
332 hw_atl_b0_hw_init_tx_tc_rate_limit(struct aq_hw_s * self) hw_atl_b0_hw_init_tx_tc_rate_limit() argument
449 hw_atl_b0_hw_init_tx_path(struct aq_hw_s * self) hw_atl_b0_hw_init_tx_path() argument
474 hw_atl_b0_hw_init_rx_rss_ctrl1(struct aq_hw_s * self) hw_atl_b0_hw_init_rx_rss_ctrl1() argument
487 hw_atl_b0_hw_init_rx_path(struct aq_hw_s * self) hw_atl_b0_hw_init_rx_path() argument
536 hw_atl_b0_hw_mac_addr_set(struct aq_hw_s * self,const u8 * mac_addr) hw_atl_b0_hw_mac_addr_set() argument
561 hw_atl_b0_hw_init(struct aq_hw_s * self,const u8 * mac_addr) hw_atl_b0_hw_init() argument
631 hw_atl_b0_hw_ring_tx_start(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_tx_start() argument
638 hw_atl_b0_hw_ring_rx_start(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_rx_start() argument
645 hw_atl_b0_hw_start(struct aq_hw_s * self) hw_atl_b0_hw_start() argument
653 hw_atl_b0_hw_tx_ring_tail_update(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_tx_ring_tail_update() argument
661 hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s * self,struct aq_ring_s * ring,unsigned int frags) hw_atl_b0_hw_ring_tx_xmit() argument
749 hw_atl_b0_hw_ring_rx_init(struct aq_hw_s * self,struct aq_ring_s * aq_ring,struct aq_ring_param_s * aq_ring_param) hw_atl_b0_hw_ring_rx_init() argument
791 hw_atl_b0_hw_ring_tx_init(struct aq_hw_s * self,struct aq_ring_s * aq_ring,struct aq_ring_param_s * aq_ring_param) hw_atl_b0_hw_ring_tx_init() argument
820 hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s * self,struct aq_ring_s * ring,unsigned int sw_tail_old) hw_atl_b0_hw_ring_rx_fill() argument
840 hw_atl_b0_hw_ring_hwts_rx_fill(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_hwts_rx_fill() argument
862 hw_atl_b0_hw_ring_hwts_rx_receive(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_hwts_rx_receive() argument
880 hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_tx_head_update() argument
906 hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_rx_receive() argument
1006 hw_atl_b0_hw_irq_enable(struct aq_hw_s * self,u64 mask) hw_atl_b0_hw_irq_enable() argument
1013 hw_atl_b0_hw_irq_disable(struct aq_hw_s * self,u64 mask) hw_atl_b0_hw_irq_disable() argument
1023 hw_atl_b0_hw_irq_read(struct aq_hw_s * self,u64 * mask) hw_atl_b0_hw_irq_read() argument
1032 hw_atl_b0_hw_packet_filter_set(struct aq_hw_s * self,unsigned int packet_filter) hw_atl_b0_hw_packet_filter_set() argument
1070 hw_atl_b0_hw_multicast_list_set(struct aq_hw_s * self,u8 ar_mac[AQ_HW_MULTICAST_ADDRESS_MAX][ETH_ALEN],u32 count) hw_atl_b0_hw_multicast_list_set() argument
1110 hw_atl_b0_hw_interrupt_moderation_set(struct aq_hw_s * self) hw_atl_b0_hw_interrupt_moderation_set() argument
1199 hw_atl_b0_hw_stop(struct aq_hw_s * self) hw_atl_b0_hw_stop() argument
1223 hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_tx_stop() argument
1230 hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_b0_hw_ring_rx_stop() argument
1237 get_ptp_ts_val_u64(self,indx) global() argument
1240 hw_atl_b0_get_ptp_ts(struct aq_hw_s * self,u64 * stamp) hw_atl_b0_get_ptp_ts() argument
1299 hw_atl_b0_adj_sys_clock(struct aq_hw_s * self,s64 delta) hw_atl_b0_adj_sys_clock() argument
1308 hw_atl_b0_set_sys_clock(struct aq_hw_s * self,u64 time,u64 ts) hw_atl_b0_set_sys_clock() argument
1315 hw_atl_b0_ts_to_sys_clock(struct aq_hw_s * self,u64 ts,u64 * time) hw_atl_b0_ts_to_sys_clock() argument
1321 hw_atl_b0_adj_clock_freq(struct aq_hw_s * self,s32 ppb) hw_atl_b0_adj_clock_freq() argument
1343 hw_atl_b0_gpio_pulse(struct aq_hw_s * self,u32 index,u64 start,u32 period) hw_atl_b0_gpio_pulse() argument
1361 hw_atl_b0_extts_gpio_enable(struct aq_hw_s * self,u32 index,u32 enable) hw_atl_b0_extts_gpio_enable() argument
1370 hw_atl_b0_get_sync_ts(struct aq_hw_s * self,u64 * ts) hw_atl_b0_get_sync_ts() argument
1394 hw_atl_b0_rx_extract_ts(struct aq_hw_s * self,u8 * p,unsigned int len,u64 * timestamp) hw_atl_b0_rx_extract_ts() argument
1427 hw_atl_b0_extract_hwts(struct aq_hw_s * self,u8 * p,unsigned int len,u64 * timestamp) hw_atl_b0_extract_hwts() argument
1448 hw_atl_b0_hw_fl3l4_clear(struct aq_hw_s * self,struct aq_rx_filter_l3l4 * data) hw_atl_b0_hw_fl3l4_clear() argument
1474 hw_atl_b0_hw_fl3l4_set(struct aq_hw_s * self,struct aq_rx_filter_l3l4 * data) hw_atl_b0_hw_fl3l4_set() argument
1511 hw_atl_b0_hw_fl2_set(struct aq_hw_s * self,struct aq_rx_filter_l2 * data) hw_atl_b0_hw_fl2_set() argument
1536 hw_atl_b0_hw_fl2_clear(struct aq_hw_s * self,struct aq_rx_filter_l2 * data) hw_atl_b0_hw_fl2_clear() argument
1556 hw_atl_b0_hw_vlan_set(struct aq_hw_s * self,struct aq_rx_filter_vlan * aq_vlans) hw_atl_b0_hw_vlan_set() argument
1582 hw_atl_b0_hw_vlan_ctrl(struct aq_hw_s * self,bool enable) hw_atl_b0_hw_vlan_ctrl() argument
1590 hw_atl_b0_set_loopback(struct aq_hw_s * self,u32 mode,bool enable) hw_atl_b0_set_loopback() argument
1615 hw_atl_b0_ts_ready_and_latch_high_get(struct aq_hw_s * self) hw_atl_b0_ts_ready_and_latch_high_get() argument
1623 hw_atl_b0_get_mac_temp(struct aq_hw_s * self,u32 * temp) hw_atl_b0_get_mac_temp() argument
[all...]
H A Dhw_atl_a0.c86 static int hw_atl_a0_hw_reset(struct aq_hw_s *self) in hw_atl_a0_hw_reset() argument
91 hw_atl_glb_glb_reg_res_dis_set(self, 1U); in hw_atl_a0_hw_reset()
92 hw_atl_pci_pci_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
93 hw_atl_rx_rx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
94 hw_atl_tx_tx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
97 hw_atl_glb_soft_res_set(self, 1); in hw_atl_a0_hw_reset()
101 self, val, val == 0, in hw_atl_a0_hw_reset()
106 hw_atl_itr_irq_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
107 hw_atl_itr_res_irq_set(self, 1U); in hw_atl_a0_hw_reset()
111 self, va in hw_atl_a0_hw_reset()
124 hw_atl_a0_hw_qos_set(struct aq_hw_s * self) hw_atl_a0_hw_qos_set() argument
183 hw_atl_a0_hw_rss_hash_set(struct aq_hw_s * self,struct aq_rss_parameters * rss_params) hw_atl_a0_hw_rss_hash_set() argument
211 hw_atl_a0_hw_rss_set(struct aq_hw_s * self,struct aq_rss_parameters * rss_params) hw_atl_a0_hw_rss_set() argument
247 hw_atl_a0_hw_offload_set(struct aq_hw_s * self,struct aq_nic_cfg_s * aq_nic_cfg) hw_atl_a0_hw_offload_set() argument
264 hw_atl_a0_hw_init_tx_path(struct aq_hw_s * self) hw_atl_a0_hw_init_tx_path() argument
283 hw_atl_a0_hw_init_rx_path(struct aq_hw_s * self) hw_atl_a0_hw_init_rx_path() argument
325 hw_atl_a0_hw_mac_addr_set(struct aq_hw_s * self,const u8 * mac_addr) hw_atl_a0_hw_mac_addr_set() argument
351 hw_atl_a0_hw_init(struct aq_hw_s * self,const u8 * mac_addr) hw_atl_a0_hw_init() argument
405 hw_atl_a0_hw_ring_tx_start(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_a0_hw_ring_tx_start() argument
413 hw_atl_a0_hw_ring_rx_start(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_a0_hw_ring_rx_start() argument
421 hw_atl_a0_hw_start(struct aq_hw_s * self) hw_atl_a0_hw_start() argument
429 hw_atl_a0_hw_tx_ring_tail_update(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_a0_hw_tx_ring_tail_update() argument
437 hw_atl_a0_hw_ring_tx_xmit(struct aq_hw_s * self,struct aq_ring_s * ring,unsigned int frags) hw_atl_a0_hw_ring_tx_xmit() argument
513 hw_atl_a0_hw_ring_rx_init(struct aq_hw_s * self,struct aq_ring_s * aq_ring,struct aq_ring_param_s * aq_ring_param) hw_atl_a0_hw_ring_rx_init() argument
555 hw_atl_a0_hw_ring_tx_init(struct aq_hw_s * self,struct aq_ring_s * aq_ring,struct aq_ring_param_s * aq_ring_param) hw_atl_a0_hw_ring_tx_init() argument
585 hw_atl_a0_hw_ring_rx_fill(struct aq_hw_s * self,struct aq_ring_s * ring,unsigned int sw_tail_old) hw_atl_a0_hw_ring_rx_fill() argument
606 hw_atl_a0_hw_ring_tx_head_update(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_a0_hw_ring_tx_head_update() argument
623 hw_atl_a0_hw_ring_rx_receive(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_a0_hw_ring_rx_receive() argument
726 hw_atl_a0_hw_irq_enable(struct aq_hw_s * self,u64 mask) hw_atl_a0_hw_irq_enable() argument
734 hw_atl_a0_hw_irq_disable(struct aq_hw_s * self,u64 mask) hw_atl_a0_hw_irq_disable() argument
745 hw_atl_a0_hw_irq_read(struct aq_hw_s * self,u64 * mask) hw_atl_a0_hw_irq_read() argument
754 hw_atl_a0_hw_packet_filter_set(struct aq_hw_s * self,unsigned int packet_filter) hw_atl_a0_hw_packet_filter_set() argument
779 hw_atl_a0_hw_multicast_list_set(struct aq_hw_s * self,u8 ar_mac[AQ_HW_MULTICAST_ADDRESS_MAX][ETH_ALEN],u32 count) hw_atl_a0_hw_multicast_list_set() argument
819 hw_atl_a0_hw_interrupt_moderation_set(struct aq_hw_s * self) hw_atl_a0_hw_interrupt_moderation_set() argument
867 hw_atl_a0_hw_stop(struct aq_hw_s * self) hw_atl_a0_hw_stop() argument
874 hw_atl_a0_hw_ring_tx_stop(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_a0_hw_ring_tx_stop() argument
882 hw_atl_a0_hw_ring_rx_stop(struct aq_hw_s * self,struct aq_ring_s * ring) hw_atl_a0_hw_ring_rx_stop() argument
890 hw_atl_a0_hw_fl3l4_clear(struct aq_hw_s * self,struct aq_rx_filter_l3l4 * data) hw_atl_a0_hw_fl3l4_clear() argument
916 hw_atl_a0_hw_fl3l4_set(struct aq_hw_s * self,struct aq_rx_filter_l3l4 * data) hw_atl_a0_hw_fl3l4_set() argument
[all...]
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 …]
/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
156 aq_nic_update_link_status(struct aq_nic_s * self) aq_nic_update_link_status() argument
215 struct aq_nic_s *self = private; aq_linkstate_threaded_isr() local
230 struct aq_nic_s *self = container_of(work, struct aq_nic_s, aq_nic_service_task() local
257 struct aq_nic_s *self = from_timer(self, t, service_timer); aq_nic_service_timer_cb() local
267 struct aq_nic_s *self = from_timer(self, t, polling_timer); aq_nic_polling_timer_cb() local
277 aq_nic_hw_prepare(struct aq_nic_s * self) aq_nic_hw_prepare() argument
299 aq_nic_ndev_register(struct aq_nic_s * self) aq_nic_ndev_register() argument
369 aq_nic_ndev_init(struct aq_nic_s * self) aq_nic_ndev_init() argument
394 aq_nic_set_tx_ring(struct aq_nic_s * self,unsigned int idx,struct aq_ring_s * ring) aq_nic_set_tx_ring() argument
400 aq_nic_get_ndev(struct aq_nic_s * self) aq_nic_get_ndev() argument
405 aq_nic_init(struct aq_nic_s * self) aq_nic_init() argument
472 aq_nic_start(struct aq_nic_s * self) aq_nic_start() argument
575 aq_nic_map_xdp(struct aq_nic_s * self,struct xdp_frame * xdpf,struct aq_ring_s * ring) aq_nic_map_xdp() argument
672 aq_nic_map_skb(struct aq_nic_s * self,struct sk_buff * skb,struct aq_ring_s * ring) aq_nic_map_skb() argument
867 aq_nic_xmit(struct aq_nic_s * self,struct sk_buff * skb) aq_nic_xmit() argument
912 aq_nic_update_interrupt_moderation_settings(struct aq_nic_s * self) aq_nic_update_interrupt_moderation_settings() argument
917 aq_nic_set_packet_filter(struct aq_nic_s * self,unsigned int flags) aq_nic_set_packet_filter() argument
931 aq_nic_set_multicast_list(struct aq_nic_s * self,struct net_device * ndev) aq_nic_set_multicast_list() argument
973 aq_nic_set_mtu(struct aq_nic_s * self,int new_mtu) aq_nic_set_mtu() argument
980 aq_nic_set_mac(struct aq_nic_s * self,struct net_device * ndev) aq_nic_set_mac() argument
985 aq_nic_get_link_speed(struct aq_nic_s * self) aq_nic_get_link_speed() argument
990 aq_nic_get_regs(struct aq_nic_s * self,struct ethtool_regs * regs,void * p) aq_nic_get_regs() argument
1010 aq_nic_get_regs_count(struct aq_nic_s * self) aq_nic_get_regs_count() argument
1018 aq_nic_get_stats(struct aq_nic_s * self,u64 * data) aq_nic_get_stats() argument
1083 aq_nic_update_ndev_stats(struct aq_nic_s * self) aq_nic_update_ndev_stats() argument
1098 aq_nic_get_link_ksettings(struct aq_nic_s * self,struct ethtool_link_ksettings * cmd) aq_nic_get_link_ksettings() argument
1270 aq_nic_set_link_ksettings(struct aq_nic_s * self,const struct ethtool_link_ksettings * cmd) aq_nic_set_link_ksettings() argument
1337 aq_nic_get_cfg(struct aq_nic_s * self) aq_nic_get_cfg() argument
1342 aq_nic_get_fw_version(struct aq_nic_s * self) aq_nic_get_fw_version() argument
1347 aq_nic_set_loopback(struct aq_nic_s * self) aq_nic_set_loopback() argument
1385 aq_nic_stop(struct aq_nic_s * self) aq_nic_stop() argument
1412 aq_nic_set_power(struct aq_nic_s * self) aq_nic_set_power() argument
1425 aq_nic_deinit(struct aq_nic_s * self,bool link_down) aq_nic_deinit() argument
1453 aq_nic_free_vectors(struct aq_nic_s * self) aq_nic_free_vectors() argument
1470 aq_nic_realloc_vectors(struct aq_nic_s * self) aq_nic_realloc_vectors() argument
1486 aq_nic_shutdown(struct aq_nic_s * self) aq_nic_shutdown() argument
1509 aq_nic_reserve_filter(struct aq_nic_s * self,enum aq_rx_filter_type type) aq_nic_reserve_filter() argument
1536 aq_nic_release_filter(struct aq_nic_s * self,enum aq_rx_filter_type type,u32 location) aq_nic_release_filter() argument
1552 aq_nic_set_downshift(struct aq_nic_s * self,int val) aq_nic_set_downshift() argument
1573 aq_nic_set_media_detect(struct aq_nic_s * self,int val) aq_nic_set_media_detect() argument
1598 aq_nic_setup_tc_mqprio(struct aq_nic_s * self,u32 tcs,u8 * prio_tc_map) aq_nic_setup_tc_mqprio() argument
1648 aq_nic_setup_tc_max_rate(struct aq_nic_s * self,const unsigned int tc,const u32 max_rate) aq_nic_setup_tc_max_rate() argument
1668 aq_nic_setup_tc_min_rate(struct aq_nic_s * self,const unsigned int tc,const u32 min_rate) aq_nic_setup_tc_min_rate() argument
[all...]
/linux/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) 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
162 hw_atl2_hw_qos_set(struct aq_hw_s * self) hw_atl2_hw_qos_set() argument
214 hw_atl2_hw_rss_set(struct aq_hw_s * self,struct aq_rss_parameters * rss_params) hw_atl2_hw_rss_set() argument
239 hw_atl2_hw_init_tx_tc_rate_limit(struct aq_hw_s * self) hw_atl2_hw_init_tx_tc_rate_limit() argument
354 hw_atl2_hw_init_tx_path(struct aq_hw_s * self) hw_atl2_hw_init_tx_path() argument
379 hw_atl2_hw_init_new_rx_filters(struct aq_hw_s * self) hw_atl2_hw_init_new_rx_filters() argument
430 hw_atl2_hw_new_rx_filter_vlan_promisc(struct aq_hw_s * self,bool promisc) hw_atl2_hw_new_rx_filter_vlan_promisc() argument
445 hw_atl2_hw_new_rx_filter_promisc(struct aq_hw_s * self,bool promisc) hw_atl2_hw_new_rx_filter_promisc() argument
464 hw_atl2_act_rslvr_table_set(struct aq_hw_s * self,u8 location,u32 tag,u32 mask,u32 action) hw_atl2_act_rslvr_table_set() argument
484 hw_atl2_hw_init_rx_path(struct aq_hw_s * self) hw_atl2_hw_init_rx_path() argument
533 hw_atl2_hw_init(struct aq_hw_s * self,const u8 * mac_addr) hw_atl2_hw_init() 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) hw_atl2_hw_ring_rx_init() 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) hw_atl2_hw_ring_tx_init() argument
615 hw_atl2_hw_packet_filter_set(struct aq_hw_s * self,unsigned int packet_filter) hw_atl2_hw_packet_filter_set() 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) hw_atl2_hw_multicast_list_set() argument
666 hw_atl2_hw_interrupt_moderation_set(struct aq_hw_s * self) hw_atl2_hw_interrupt_moderation_set() argument
758 hw_atl2_hw_stop(struct aq_hw_s * self) hw_atl2_hw_stop() argument
765 hw_atl2_utils_get_hw_stats(struct aq_hw_s * self) hw_atl2_utils_get_hw_stats() argument
770 hw_atl2_hw_vlan_set(struct aq_hw_s * self,struct aq_rx_filter_vlan * aq_vlans) hw_atl2_hw_vlan_set() argument
816 hw_atl2_hw_vlan_ctrl(struct aq_hw_s * self,bool enable) hw_atl2_hw_vlan_ctrl() argument
[all...]
/linux/tools/testing/selftests/sgx/
H A Dmain.c259 encl_delete(&self->encl); in FIXTURE_TEARDOWN()
287 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
289 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
290 self->run.tcs = self->encl.encl_base; in TEST_F()
295 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, false), 0); in TEST_F()
297 EXPECT_EEXIT(&self->run); in TEST_F()
298 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
303 EXPECT_EQ(ENCL_CALL(&get_op, &self->run, false), 0); in TEST_F()
306 EXPECT_EEXIT(&self->run); in TEST_F()
307 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
[all …]

12345678910>>...35