/linux-master/tools/net/ynl/lib/ |
H A D | ynl.py | 101 def __init__(self, nl_msg): 102 self.nl_msg = nl_msg 103 self.error = -nl_msg.error 105 def __str__(self): 106 return f"Netlink error: {os.strerror(self.error)}\n{self.nl_msg}" 126 def __init__(self, raw, offset): 127 self._len, self._type = struct.unpack("HH", raw[offset : offset + 4]) 128 self [all...] |
/linux-master/scripts/gdb/linux/ |
H A D | vfs.py | 33 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/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_ring.c | 84 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...] |
H A D | aq_pci_func.h | 23 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);
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
H A D | hw_atl_utils.c | 58 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 D | hw_atl_b0.c | 115 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/Documentation/sphinx/ |
H A D | kernel_include.py | 61 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 D | iommufd_fail_nth.c | 94 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 D | cw1200_sdio.c | 60 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...] |
H A D | cw1200_spi.c | 59 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/perf/pmu-events/ |
H A D | metric_test.py | 13 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...] |
/linux-master/tools/perf/scripts/python/ |
H A D | sched-migration.py | 41 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 D | compaction-times.py | 29 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 D | run_unprivileged_remount.sh | 7 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 D | scapyPlugin.py | 21 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 D | valgrindPlugin.py | 22 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 D | rootPlugin.py | 9 def __init__(self): 10 self.sub_class = 'root/SubPlugin' 13 def pre_suite(self, testcount, testlist):
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_bpftool_synctypes.py | 28 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/tools/testing/selftests/hid/tests/ |
H A D | test_wacom_generic.py | 62 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 D | test_usb_crash.py | 53 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/hw_atl2/ |
H A D | hw_atl2.c | 19 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/drivers/net/lib/py/ |
H A D | load.py | 8 def __init__(self, env): 11 self.env = env 14 self._iperf_server = cmd(f"iperf3 -s -p {port}", background=True) 17 self._iperf_client = cmd(f"iperf3 -c {env.addr} -P 16 -p {port} -t 86400", 28 self.stop(verbose=True) 31 def stop(self, verbose=None): 32 self._iperf_client.process(terminate=True) 35 ksft_pr(self._iperf_client.stdout) 36 ksft_pr(self._iperf_client.stderr) 37 self [all...] |
/linux-master/tools/kvm/kvm_stat/ |
H A D | kvm_stat | 336 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 D | kunit_config.py | 21 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 D | bind_timewait.c | 32 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...] |