Searched refs:self (Results 26 - 50 of 645) sorted by relevance

1234567891011>>

/linux-master/scripts/tracing/
H A Ddraw_functrace.py35 def __init__(self, func, time = None, parent = None):
36 self._func = func
37 self._time = time
39 self._parent = CallTree.ROOT
41 self._parent = parent
42 self._children = []
44 def calls(self, func, calltime):
49 child = CallTree(func, calltime, self)
50 self._children.append(child)
53 def getParent(self, fun
[all...]
/linux-master/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'), description=str()):
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:
20 if len(self.metric) > 1:
24 \tRelationship rule description: \'{5}\'".format(self
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_b0.h35 int hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self,
37 int hw_atl_b0_hw_offload_set(struct aq_hw_s *self,
40 int hw_atl_b0_hw_ring_tx_start(struct aq_hw_s *self, struct aq_ring_s *ring);
41 int hw_atl_b0_hw_ring_rx_start(struct aq_hw_s *self, struct aq_ring_s *ring);
43 int hw_atl_b0_hw_ring_rx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring,
45 int hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring,
47 int hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring);
49 int hw_atl_b0_hw_ring_tx_init(struct aq_hw_s *self, struct aq_ring_s *aq_ring,
51 int hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self, struct aq_ring_s *ring,
53 int hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s *self,
[all...]
H A Dhw_atl_a0.c86 static int hw_atl_a0_hw_reset(struct aq_hw_s *self) argument
91 hw_atl_glb_glb_reg_res_dis_set(self, 1U);
92 hw_atl_pci_pci_reg_res_dis_set(self, 0U);
93 hw_atl_rx_rx_reg_res_dis_set(self, 0U);
94 hw_atl_tx_tx_reg_res_dis_set(self, 0U);
97 hw_atl_glb_soft_res_set(self, 1);
101 self, val, val == 0,
106 hw_atl_itr_irq_reg_res_dis_set(self, 0U);
107 hw_atl_itr_res_irq_set(self, 1U);
111 self, va
124 hw_atl_a0_hw_qos_set(struct aq_hw_s *self) argument
183 hw_atl_a0_hw_rss_hash_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) argument
211 hw_atl_a0_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) argument
247 hw_atl_a0_hw_offload_set(struct aq_hw_s *self, struct aq_nic_cfg_s *aq_nic_cfg) argument
264 hw_atl_a0_hw_init_tx_path(struct aq_hw_s *self) argument
283 hw_atl_a0_hw_init_rx_path(struct aq_hw_s *self) argument
325 hw_atl_a0_hw_mac_addr_set(struct aq_hw_s *self, const u8 *mac_addr) argument
351 hw_atl_a0_hw_init(struct aq_hw_s *self, const u8 *mac_addr) argument
405 hw_atl_a0_hw_ring_tx_start(struct aq_hw_s *self, struct aq_ring_s *ring) argument
413 hw_atl_a0_hw_ring_rx_start(struct aq_hw_s *self, struct aq_ring_s *ring) argument
421 hw_atl_a0_hw_start(struct aq_hw_s *self) argument
429 hw_atl_a0_hw_tx_ring_tail_update(struct aq_hw_s *self, struct aq_ring_s *ring) argument
437 hw_atl_a0_hw_ring_tx_xmit(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int frags) 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) 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) argument
585 hw_atl_a0_hw_ring_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int sw_tail_old) argument
606 hw_atl_a0_hw_ring_tx_head_update(struct aq_hw_s *self, struct aq_ring_s *ring) argument
623 hw_atl_a0_hw_ring_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) argument
726 hw_atl_a0_hw_irq_enable(struct aq_hw_s *self, u64 mask) argument
734 hw_atl_a0_hw_irq_disable(struct aq_hw_s *self, u64 mask) argument
745 hw_atl_a0_hw_irq_read(struct aq_hw_s *self, u64 *mask) argument
754 hw_atl_a0_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) 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) argument
819 hw_atl_a0_hw_interrupt_moderation_set(struct aq_hw_s *self) argument
867 hw_atl_a0_hw_stop(struct aq_hw_s *self) argument
874 hw_atl_a0_hw_ring_tx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) argument
882 hw_atl_a0_hw_ring_rx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) argument
890 hw_atl_a0_hw_fl3l4_clear(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) argument
916 hw_atl_a0_hw_fl3l4_set(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) 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) argument
71 hw_atl_utils_hw_chip_features_init(self,
72 &self
95 hw_atl_utils_soft_reset_flb(struct aq_hw_s *self) argument
171 hw_atl_utils_soft_reset_rbl(struct aq_hw_s *self) argument
240 hw_atl_utils_soft_reset(struct aq_hw_s *self) argument
306 hw_atl_utils_fw_downld_dwords(struct aq_hw_s *self, u32 a, u32 *p, u32 cnt) argument
352 hw_atl_utils_write_b1_mbox(struct aq_hw_s *self, u32 addr, u32 *p, u32 cnt, enum mcp_area area) argument
391 hw_atl_utils_write_b0_mbox(struct aq_hw_s *self, u32 addr, u32 *p, u32 cnt) argument
416 hw_atl_utils_fw_upload_dwords(struct aq_hw_s *self, u32 addr, u32 *p, u32 cnt, enum mcp_area area) argument
444 hw_atl_write_fwcfg_dwords(struct aq_hw_s *self, u32 *p, u32 cnt) argument
450 hw_atl_write_fwsettings_dwords(struct aq_hw_s *self, u32 offset, u32 *p, u32 cnt) argument
473 hw_atl_utils_init_ucp(struct aq_hw_s *self, const struct aq_hw_caps_s *aq_hw_caps) argument
515 hw_atl_utils_fw_rpc_call(struct aq_hw_s *self, unsigned int rpc_size) argument
538 hw_atl_utils_fw_rpc_wait(struct aq_hw_s *self, struct hw_atl_utils_fw_rpc **rpc) argument
599 hw_atl_utils_mpi_create(struct aq_hw_s *self) argument
615 hw_atl_utils_mpi_read_mbox(struct aq_hw_s *self, struct hw_atl_utils_mbox_header *pmbox) argument
624 hw_atl_utils_mpi_read_stats(struct aq_hw_s *self, struct hw_atl_utils_mbox *pmbox) argument
649 hw_atl_utils_mpi_set_speed(struct aq_hw_s *self, u32 speed) argument
660 hw_atl_utils_mpi_set_state(struct aq_hw_s *self, enum hal_atl_utils_fw_state_e state) argument
699 hw_atl_utils_mpi_get_link_status(struct aq_hw_s *self) argument
742 hw_atl_utils_get_mac_permanent(struct aq_hw_s *self, u8 *mac) argument
830 hw_atl_utils_hw_chip_features_init(struct aq_hw_s *self, u32 *p) argument
859 hw_atl_fw1x_deinit(struct aq_hw_s *self) argument
867 hw_atl_utils_update_stats(struct aq_hw_s *self) argument
919 hw_atl_utils_get_hw_stats(struct aq_hw_s *self) argument
949 hw_atl_utils_hw_get_regs(struct aq_hw_s *self, const struct aq_hw_caps_s *aq_hw_caps, u32 *regs_buff) argument
962 hw_atl_utils_get_fw_version(struct aq_hw_s *self) argument
967 aq_fw1x_set_wake_magic(struct aq_hw_s *self, bool wol_enabled, const u8 *mac) argument
1010 aq_fw1x_set_power(struct aq_hw_s *self, unsigned int power_state, const u8 *mac) argument
1047 hw_atl_utils_get_mpi_mbox_tid(struct aq_hw_s *self) argument
1056 hw_atl_utils_mpi_get_state(struct aq_hw_s *self) argument
1061 hw_atl_utils_mif_cmd_get(struct aq_hw_s *self) argument
1066 hw_atl_utils_mif_addr_get(struct aq_hw_s *self) argument
1071 hw_atl_utils_rpc_state_get(struct aq_hw_s *self) argument
1076 aq_fw1x_rpc_get(struct aq_hw_s *self) argument
[all...]
H A Dhw_atl_b0.c115 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) argument
119 err = hw_atl_utils_soft_reset(self);
123 self->aq_fw_ops->set_state(self, MPI_RESET);
125 err = aq_hw_err_from_flags(self);
130 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) argument
132 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc);
137 static int hw_atl_b0_tc_ptp_set(struct aq_hw_s *self) argument
140 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_TXBUF_SIZE,
144 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_RXBUF_SIZ
152 hw_atl_b0_hw_qos_set(struct aq_hw_s *self) argument
209 hw_atl_b0_hw_rss_hash_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) argument
237 hw_atl_b0_hw_rss_set(struct aq_hw_s *self, struct aq_rss_parameters *rss_params) argument
273 hw_atl_b0_hw_offload_set(struct aq_hw_s *self, struct aq_nic_cfg_s *aq_nic_cfg) argument
332 hw_atl_b0_hw_init_tx_tc_rate_limit(struct aq_hw_s *self) argument
449 hw_atl_b0_hw_init_tx_path(struct aq_hw_s *self) argument
474 hw_atl_b0_hw_init_rx_rss_ctrl1(struct aq_hw_s *self) argument
487 hw_atl_b0_hw_init_rx_path(struct aq_hw_s *self) argument
536 hw_atl_b0_hw_mac_addr_set(struct aq_hw_s *self, const u8 *mac_addr) argument
561 hw_atl_b0_hw_init(struct aq_hw_s *self, const u8 *mac_addr) argument
631 hw_atl_b0_hw_ring_tx_start(struct aq_hw_s *self, struct aq_ring_s *ring) argument
638 hw_atl_b0_hw_ring_rx_start(struct aq_hw_s *self, struct aq_ring_s *ring) argument
645 hw_atl_b0_hw_start(struct aq_hw_s *self) argument
653 hw_atl_b0_hw_tx_ring_tail_update(struct aq_hw_s *self, struct aq_ring_s *ring) argument
661 hw_atl_b0_hw_ring_tx_xmit(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int frags) 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) 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) argument
820 hw_atl_b0_hw_ring_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring, unsigned int sw_tail_old) argument
840 hw_atl_b0_hw_ring_hwts_rx_fill(struct aq_hw_s *self, struct aq_ring_s *ring) argument
862 hw_atl_b0_hw_ring_hwts_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) argument
880 hw_atl_b0_hw_ring_tx_head_update(struct aq_hw_s *self, struct aq_ring_s *ring) argument
906 hw_atl_b0_hw_ring_rx_receive(struct aq_hw_s *self, struct aq_ring_s *ring) argument
1006 hw_atl_b0_hw_irq_enable(struct aq_hw_s *self, u64 mask) argument
1013 hw_atl_b0_hw_irq_disable(struct aq_hw_s *self, u64 mask) argument
1023 hw_atl_b0_hw_irq_read(struct aq_hw_s *self, u64 *mask) argument
1032 hw_atl_b0_hw_packet_filter_set(struct aq_hw_s *self, unsigned int packet_filter) 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) argument
1110 hw_atl_b0_hw_interrupt_moderation_set(struct aq_hw_s *self) argument
1199 hw_atl_b0_hw_stop(struct aq_hw_s *self) argument
1223 hw_atl_b0_hw_ring_tx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) argument
1230 hw_atl_b0_hw_ring_rx_stop(struct aq_hw_s *self, struct aq_ring_s *ring) argument
1240 hw_atl_b0_get_ptp_ts(struct aq_hw_s *self, u64 *stamp) argument
1299 hw_atl_b0_adj_sys_clock(struct aq_hw_s *self, s64 delta) argument
1308 hw_atl_b0_set_sys_clock(struct aq_hw_s *self, u64 time, u64 ts) argument
1315 hw_atl_b0_ts_to_sys_clock(struct aq_hw_s *self, u64 ts, u64 *time) argument
1321 hw_atl_b0_adj_clock_freq(struct aq_hw_s *self, s32 ppb) argument
1343 hw_atl_b0_gpio_pulse(struct aq_hw_s *self, u32 index, u64 start, u32 period) argument
1361 hw_atl_b0_extts_gpio_enable(struct aq_hw_s *self, u32 index, u32 enable) argument
1370 hw_atl_b0_get_sync_ts(struct aq_hw_s *self, u64 *ts) argument
1394 hw_atl_b0_rx_extract_ts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) argument
1427 hw_atl_b0_extract_hwts(struct aq_hw_s *self, u8 *p, unsigned int len, u64 *timestamp) argument
1448 hw_atl_b0_hw_fl3l4_clear(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) argument
1474 hw_atl_b0_hw_fl3l4_set(struct aq_hw_s *self, struct aq_rx_filter_l3l4 *data) argument
1511 hw_atl_b0_hw_fl2_set(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) argument
1536 hw_atl_b0_hw_fl2_clear(struct aq_hw_s *self, struct aq_rx_filter_l2 *data) argument
1556 hw_atl_b0_hw_vlan_set(struct aq_hw_s *self, struct aq_rx_filter_vlan *aq_vlans) argument
1582 hw_atl_b0_hw_vlan_ctrl(struct aq_hw_s *self, bool enable) argument
1590 hw_atl_b0_set_loopback(struct aq_hw_s *self, u32 mode, bool enable) argument
1615 hw_atl_b0_ts_ready_and_latch_high_get(struct aq_hw_s *self) argument
1623 hw_atl_b0_get_mac_temp(struct aq_hw_s *self, u32 *temp) argument
[all...]
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_vec.h35 int aq_vec_ring_alloc(struct aq_vec_s *self, struct aq_nic_s *aq_nic,
37 int aq_vec_init(struct aq_vec_s *self, const struct aq_hw_ops *aq_hw_ops,
39 void aq_vec_deinit(struct aq_vec_s *self);
40 void aq_vec_free(struct aq_vec_s *self);
41 void aq_vec_ring_free(struct aq_vec_s *self);
42 int aq_vec_start(struct aq_vec_s *self);
43 void aq_vec_stop(struct aq_vec_s *self);
44 cpumask_t *aq_vec_get_affinity_mask(struct aq_vec_s *self);
45 bool aq_vec_is_valid_tc(struct aq_vec_s *self, const unsigned int tc);
46 unsigned int aq_vec_get_sw_stats(struct aq_vec_s *self, cons
[all...]
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) argument
54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg;
69 static void aq_nic_cfg_update_num_vecs(struct aq_nic_s *self) argument
71 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg;
75 if (self->irqvecs > AQ_HW_SERVICE_IRQS)
76 cfg->vecs = min(cfg->vecs, self->irqvecs - AQ_HW_SERVICE_IRQS);
80 if (ATL_HW_IS_CHIP_FEATURE(self->aq_hw, ANTIGUA)) {
92 aq_nic_rss_init(self, cfg->num_rss_queues);
96 void aq_nic_cfg_start(struct aq_nic_s *self) argument
156 aq_nic_update_link_status(struct aq_nic_s *self) argument
215 struct aq_nic_s *self = private; local
230 struct aq_nic_s *self = container_of(work, struct aq_nic_s, local
257 struct aq_nic_s *self = from_timer(self, t, service_timer); local
267 struct aq_nic_s *self = from_timer(self, t, polling_timer); local
277 aq_nic_hw_prepare(struct aq_nic_s *self) argument
299 aq_nic_ndev_register(struct aq_nic_s *self) argument
369 aq_nic_ndev_init(struct aq_nic_s *self) argument
394 aq_nic_set_tx_ring(struct aq_nic_s *self, unsigned int idx, struct aq_ring_s *ring) argument
400 aq_nic_get_ndev(struct aq_nic_s *self) argument
405 aq_nic_init(struct aq_nic_s *self) argument
472 aq_nic_start(struct aq_nic_s *self) argument
575 aq_nic_map_xdp(struct aq_nic_s *self, struct xdp_frame *xdpf, struct aq_ring_s *ring) argument
672 aq_nic_map_skb(struct aq_nic_s *self, struct sk_buff *skb, struct aq_ring_s *ring) argument
867 aq_nic_xmit(struct aq_nic_s *self, struct sk_buff *skb) argument
912 aq_nic_update_interrupt_moderation_settings(struct aq_nic_s *self) argument
917 aq_nic_set_packet_filter(struct aq_nic_s *self, unsigned int flags) argument
931 aq_nic_set_multicast_list(struct aq_nic_s *self, struct net_device *ndev) argument
973 aq_nic_set_mtu(struct aq_nic_s *self, int new_mtu) argument
980 aq_nic_set_mac(struct aq_nic_s *self, struct net_device *ndev) argument
985 aq_nic_get_link_speed(struct aq_nic_s *self) argument
990 aq_nic_get_regs(struct aq_nic_s *self, struct ethtool_regs *regs, void *p) argument
1010 aq_nic_get_regs_count(struct aq_nic_s *self) argument
1018 aq_nic_get_stats(struct aq_nic_s *self, u64 *data) argument
1083 aq_nic_update_ndev_stats(struct aq_nic_s *self) argument
1098 aq_nic_get_link_ksettings(struct aq_nic_s *self, struct ethtool_link_ksettings *cmd) argument
1270 aq_nic_set_link_ksettings(struct aq_nic_s *self, const struct ethtool_link_ksettings *cmd) argument
1337 aq_nic_get_cfg(struct aq_nic_s *self) argument
1342 aq_nic_get_fw_version(struct aq_nic_s *self) argument
1347 aq_nic_set_loopback(struct aq_nic_s *self) argument
1385 aq_nic_stop(struct aq_nic_s *self) argument
1412 aq_nic_set_power(struct aq_nic_s *self) argument
1425 aq_nic_deinit(struct aq_nic_s *self, bool link_down) argument
1453 aq_nic_free_vectors(struct aq_nic_s *self) argument
1470 aq_nic_realloc_vectors(struct aq_nic_s *self) argument
1486 aq_nic_shutdown(struct aq_nic_s *self) argument
1509 aq_nic_reserve_filter(struct aq_nic_s *self, enum aq_rx_filter_type type) argument
1536 aq_nic_release_filter(struct aq_nic_s *self, enum aq_rx_filter_type type, u32 location) argument
1552 aq_nic_set_downshift(struct aq_nic_s *self, int val) argument
1573 aq_nic_set_media_detect(struct aq_nic_s *self, int val) argument
1598 aq_nic_setup_tc_mqprio(struct aq_nic_s *self, u32 tcs, u8 *prio_tc_map) argument
1648 aq_nic_setup_tc_max_rate(struct aq_nic_s *self, const unsigned int tc, const u32 max_rate) argument
1668 aq_nic_setup_tc_min_rate(struct aq_nic_s *self, const unsigned int tc, const u32 min_rate) argument
[all...]
H A Daq_ring.c84 static int aq_get_rxpages(struct aq_ring_s *self, struct aq_ring_buff_s *rxbuf) argument
86 unsigned int order = self->page_order;
87 u16 page_offset = self->page_offset;
88 u16 frame_max = self->frame_max;
89 u16 tail_size = self->tail_size;
100 u64_stats_update_begin(&self->stats.rx.syncp);
101 self->stats.rx.pg_flips++;
102 u64_stats_update_end(&self->stats.rx.syncp);
109 aq_nic_get_dev(self->aq_nic));
110 u64_stats_update_begin(&self
135 aq_ring_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic) argument
164 aq_ring_tx_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic, unsigned int idx, struct aq_nic_cfg_s *aq_nic_cfg) argument
177 aq_ring_rx_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic, unsigned int idx, struct aq_nic_cfg_s *aq_nic_cfg) argument
207 aq_ring_hwts_rx_alloc(struct aq_ring_s *self, struct aq_nic_s *aq_nic, unsigned int idx, unsigned int size, unsigned int dx_size) argument
230 aq_ring_init(struct aq_ring_s *self, const enum atl_ring_type ring_type) argument
285 aq_ring_tx_clean(struct aq_ring_s *self) argument
339 aq_rx_checksum(struct aq_ring_s *self, struct aq_ring_buff_s *buff, struct sk_buff *skb) argument
528 __aq_ring_rx_clean(struct aq_ring_s *self, struct napi_struct *napi, int *work_done, int budget) argument
836 aq_ring_rx_clean(struct aq_ring_s *self, struct napi_struct *napi, int *work_done, int budget) argument
847 aq_ring_hwts_rx_clean(struct aq_ring_s *self, struct aq_nic_s *aq_nic) argument
864 aq_ring_rx_fill(struct aq_ring_s *self) argument
893 aq_ring_rx_deinit(struct aq_ring_s *self) argument
906 aq_ring_free(struct aq_ring_s *self) argument
922 aq_ring_hwts_rx_free(struct aq_ring_s *self) argument
935 aq_ring_fill_stats_data(struct aq_ring_s *self, u64 *data) argument
[all...]
/linux-master/tools/testing/selftests/sgx/
H A Dmain.c234 maps_file = fopen("/proc/self/maps", "r");
259 encl_delete(&self->encl);
287 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata));
289 memset(&self->run, 0, sizeof(self->run));
290 self->run.tcs = self->encl.encl_base;
295 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, false), 0);
297 EXPECT_EEXIT(&self->run);
298 EXPECT_EQ(self
[all...]
/linux-master/tools/testing/kunit/
H A Dkunit_tool_test.py43 def test_is_subset_of(self):
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):
65 self.assertEqual(kconfig, expected_kconfig)
67 def test_write_to_file(self):
80 self.assertEqual(actual_kconfig, expected_kconfig)
83 def setUp(self)
[all...]
/linux-master/scripts/kconfig/tests/
H A Dconftest.py30 def __init__(self, request):
36 self._test_dir = os.path.dirname(str(request.fspath))
39 def _run_conf(self, mode, dot_config=None, out_file='.config',
54 extra_env['srctree'] = self._test_dir
66 shutil.copyfile(os.path.join(self._test_dir, dot_config),
86 self.retcode = ps.returncode
87 self.stdout = ps.stdout.read().decode()
88 self.stderr = ps.stderr.read().decode()
93 if self.retcode == 0 and out_file:
95 self
[all...]
/linux-master/scripts/
H A Dbpf_doc.py24 def __init__(self, line='<line not provided>', reader=None):
26 BaseException.__init__(self,
30 BaseException.__init__(self, 'Error parsing line: %s' % line)
40 def __init__(self, proto='', desc='', ret=''):
41 self.proto = proto
42 self.desc = desc
43 self.ret = ret
53 def __init__(self, *args, **kwargs):
55 self.enum_val = None
57 def proto_break_down(self)
[all...]
/linux-master/tools/perf/tests/
H A Dattr.py36 def __init__(self, test, msg):
37 self.msg = msg
38 self.test = test
39 def getMsg(self):
40 return '\'%s\' - %s' % (self.test.path, self.msg)
43 def __init__(self, test, arch):
44 self.arch = arch
45 self.test = test
46 def getMsg(self)
[all...]
/linux-master/tools/testing/selftests/tpm2/
H A Dtpm2_tests.py14 def setUp(self):
15 self.client = tpm2.Client()
16 self.root_key = self.client.create_root_key()
18 def tearDown(self):
19 self.client.flush_context(self.root_key)
20 self.client.close()
22 def test_seal_with_auth(self):
26 blob = self
[all...]
/linux-master/tools/testing/selftests/hid/tests/
H A Dtest_gamepad.py23 def send_initial_state(self):
25 uhdev = self.uhdev
29 self.debug_reports(r, uhdev, events)
31 def assert_button(self, button):
32 uhdev = self.uhdev
34 syn_event = self.syn_event
43 self.debug_reports(r, uhdev, events)
44 self.assertInputEventsIn((syn_event, expected_event), events)
51 self.debug_reports(r, uhdev, events)
52 self
[all...]
/linux-master/scripts/gdb/linux/
H A Dclk.py26 def __init__(self):
27 super(LxClkSummary, self).__init__("lx-clk-summary", gdb.COMMAND_DATA)
29 def show_subtree(self, clk, level):
41 self.show_subtree(child, level + 1)
43 def invoke(self, arg, from_tty):
50 self.show_subtree(clk, 0)
52 self.show_subtree(clk, 0)
61 def __init__(self):
62 super(LxClkCoreLookup, self).__init__("lx_clk_core_lookup")
64 def lookup_hlist(self, hlist_hea
[all...]
H A Dpgtable.py66 def __init__(self, cr3, page_levels):
67 self.cr3 = cr3
68 self.page_levels = page_levels
69 self.page_level_write_through = is_bit_defined_tupled(cr3, 3)
70 self.page_level_cache_disabled = is_bit_defined_tupled(cr3, 4)
71 self.next_entry_physical_address = cr3 & PHYSICAL_ADDRESS_MASK & page_mask()
73 def next_entry(self, va):
74 next_level = self.page_levels
75 return PageHierarchyEntry(entry_va(next_level, self.next_entry_physical_address, va), next_level)
77 def mk_string(self)
[all...]
H A Dvfs.py33 def __init__(self):
34 super(DentryName, self).__init__("lx_dentry_name")
36 def invoke(self, dentry_ptr):
50 def __init__(self):
51 super(InodeDentry, self).__init__("lx_i_dentry")
53 def invoke(self, inode_ptr):
/linux-master/tools/cgroup/
H A Diocost_monitor.py64 def __init__(self, root_blkcg, q_id, include_dying=False):
65 self.include_dying = include_dying
66 self.blkgs = []
67 self.walk(root_blkcg, q_id, '')
72 def walk(self, blkcg, q_id, parent_path):
73 if not self.include_dying and \
84 self.blkgs.append((path if path else '/', blkg))
88 self.walk(c, q_id, path)
90 def __iter__(self):
91 return iter(self
[all...]
/linux-master/Documentation/sphinx/
H A Dkernel_include.py61 def run(self):
62 env = self.state.document.settings.env
64 os.path.expandvars(self.arguments[0]))
68 raise self.severe(
70 % (self.name, path))
72 self.arguments[0] = path
76 #return super(KernelInclude, self).run() # won't work, see HINTs in _run()
77 return self._run()
79 def _run(self):
87 if not self
[all...]
/linux-master/tools/testing/selftests/iommu/
H A Diommufd_fail_nth.c94 snprintf(buf, sizeof(buf), "/proc/self/task/%u/fail-nth", getpid());
175 FIXTURE_DATA(fixture_name) *self, \
188 ASSERT_EQ(0, test_nth_##name(_metadata, self, variant, \
191 fixture_name##_teardown(_metadata, self, variant); \
192 fixture_name##_setup(_metadata, self, variant); \
193 test_result = test_nth_##name(_metadata, self, \
200 FIXTURE_DATA(fixture_name) __attribute__((unused)) *self, \
213 self->fd = -1;
214 self->access_id = 0;
221 if (self
[all...]
/linux-master/drivers/net/wireless/st/cw1200/
H A Dcw1200_sdio.c60 static int cw1200_sdio_memcpy_fromio(struct hwbus_priv *self, argument
64 return sdio_memcpy_fromio(self->func, dst, addr, count);
67 static int cw1200_sdio_memcpy_toio(struct hwbus_priv *self, argument
71 return sdio_memcpy_toio(self->func, addr, (void *)src, count);
74 static void cw1200_sdio_lock(struct hwbus_priv *self) argument
76 sdio_claim_host(self->func);
79 static void cw1200_sdio_unlock(struct hwbus_priv *self) argument
81 sdio_release_host(self->func);
86 struct hwbus_priv *self = sdio_get_drvdata(func); local
89 if (self
100 struct hwbus_priv *self = dev_id; local
112 cw1200_request_irq(struct hwbus_priv *self) argument
149 cw1200_sdio_irq_subscribe(struct hwbus_priv *self) argument
164 cw1200_sdio_irq_unsubscribe(struct hwbus_priv *self) argument
249 cw1200_sdio_align_size(struct hwbus_priv *self, size_t size) argument
259 cw1200_sdio_pm(struct hwbus_priv *self, bool suspend) argument
281 struct hwbus_priv *self; local
330 struct hwbus_priv *self = sdio_get_drvdata(func); local
351 struct hwbus_priv *self = sdio_get_drvdata(func); local
[all...]
/linux-master/tools/net/ynl/lib/
H A Dynl.py81 def __init__(self, nl_msg):
82 self.nl_msg = nl_msg
84 def __str__(self):
85 return f"Netlink error: {os.strerror(-self.nl_msg.error)}\n{self.nl_msg}"
105 def __init__(self, raw, offset):
106 self._len, self._type = struct.unpack("HH", raw[offset : offset + 4])
107 self.type = self
[all...]
/linux-master/tools/perf/pmu-events/
H A Dmetric_test.py13 def test_Operators(self):
16 self.assertEqual((a | b).ToPerfJson(), 'a | b')
17 self.assertEqual((a ^ b).ToPerfJson(), 'a ^ b')
18 self.assertEqual((a & b).ToPerfJson(), 'a & b')
19 self.assertEqual((a < b).ToPerfJson(), 'a < b')
20 self.assertEqual((a > b).ToPerfJson(), 'a > b')
21 self.assertEqual((a + b).ToPerfJson(), 'a + b')
22 self.assertEqual((a - b).ToPerfJson(), 'a - b')
23 self.assertEqual((a * b).ToPerfJson(), 'a * b')
24 self
[all...]

Completed in 234 milliseconds

1234567891011>>