| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_ptp.c | 34 static u64 wx_ptp_timecounter_cyc2time(struct wx *wx, u64 timestamp) in wx_ptp_timecounter_cyc2time() argument 40 seq = read_seqbegin(&wx->hw_tc_lock); in wx_ptp_timecounter_cyc2time() 41 ns = timecounter_cyc2time(&wx->hw_tc, timestamp); in wx_ptp_timecounter_cyc2time() 42 } while (read_seqretry(&wx->hw_tc_lock, seq)); in wx_ptp_timecounter_cyc2time() 47 static u64 wx_ptp_readtime(struct wx *wx, struct ptp_system_timestamp *sts) in wx_ptp_readtime() argument 51 timeh1 = rd32ptp(wx, WX_TSC_1588_SYSTIMH); in wx_ptp_readtime() 53 timel = rd32ptp(wx, WX_TSC_1588_SYSTIML); in wx_ptp_readtime() 55 timeh2 = rd32ptp(wx, WX_TSC_1588_SYSTIMH); in wx_ptp_readtime() 59 timel = rd32ptp(wx, WX_TSC_1588_SYSTIML); in wx_ptp_readtime() 67 struct wx *wx = container_of(ptp, struct wx, ptp_caps); in wx_ptp_adjfine() local [all …]
|
| H A D | wx_hw.c | 19 struct wx *wx = bus->priv; in wx_phy_read_reg_mdi() local 27 wr32(wx, WX_MSCA, command); in wx_phy_read_reg_mdi() 30 if (wx->mac.type == wx_mac_em) in wx_phy_read_reg_mdi() 32 wr32(wx, WX_MSCC, command); in wx_phy_read_reg_mdi() 36 100000, false, wx, WX_MSCC); in wx_phy_read_reg_mdi() 38 wx_err(wx, "Mdio read c22 command did not complete.\n"); in wx_phy_read_reg_mdi() 42 return (u16)rd32(wx, WX_MSCC); in wx_phy_read_reg_mdi() 48 struct wx *wx = bus->priv; in wx_phy_write_reg_mdi() local 56 wr32(wx, WX_MSCA, command); in wx_phy_write_reg_mdi() 59 if (wx->mac.type == wx_mac_em) in wx_phy_write_reg_mdi() [all …]
|
| H A D | wx_vf_common.c | 17 struct wx *wx = pci_get_drvdata(pdev); in wxvf_suspend() local 19 netif_device_detach(wx->netdev); in wxvf_suspend() 20 wx_clear_interrupt_scheme(wx); in wxvf_suspend() 36 struct wx *wx = pci_get_drvdata(pdev); in wxvf_resume() local 39 wx_init_interrupt_scheme(wx); in wxvf_resume() 40 netif_device_attach(wx->netdev); in wxvf_resume() 48 struct wx *wx = pci_get_drvdata(pdev); in wxvf_remove() local 51 netdev = wx->netdev; in wxvf_remove() 53 timer_shutdown_sync(&wx->service_timer); in wxvf_remove() 54 cancel_work_sync(&wx->service_task); in wxvf_remove() [all …]
|
| H A D | wx_sriov.c | 15 struct wx *wx = pci_get_drvdata(pdev); in wx_vf_configuration() local 19 eth_zero_addr(wx->vfinfo[vfn].vf_mac_addr); in wx_vf_configuration() 22 static int wx_alloc_vf_macvlans(struct wx *wx, u8 num_vfs) in wx_alloc_vf_macvlans() argument 28 INIT_LIST_HEAD(&wx->vf_mvs.mvlist); in wx_alloc_vf_macvlans() 30 num_vf_macvlans = wx->mac.num_rar_entries - in wx_alloc_vf_macvlans() 42 list_add(&mv_list[i].mvlist, &wx->vf_mvs.mvlist); in wx_alloc_vf_macvlans() 44 wx->mv_list = mv_list; in wx_alloc_vf_macvlans() 49 static void wx_sriov_clear_data(struct wx *wx) in wx_sriov_clear_data() argument 52 wx->num_vfs = 0; in wx_sriov_clear_data() 55 kfree(wx->vfinfo); in wx_sriov_clear_data() [all …]
|
| H A D | wx_mbx.c | 15 static int wx_obtain_mbx_lock_pf(struct wx *wx, u16 vf) in wx_obtain_mbx_lock_pf() argument 22 wr32(wx, WX_PXMAILBOX(vf), WX_PXMAILBOX_PFU); in wx_obtain_mbx_lock_pf() 25 mailbox = rd32(wx, WX_PXMAILBOX(vf)); in wx_obtain_mbx_lock_pf() 31 wx_err(wx, "Failed to obtain mailbox lock for PF%d", vf); in wx_obtain_mbx_lock_pf() 36 static int wx_check_for_bit_pf(struct wx *wx, u32 mask, int index) in wx_check_for_bit_pf() argument 38 u32 mbvficr = rd32(wx, WX_MBVFICR(index)); in wx_check_for_bit_pf() 42 wr32(wx, WX_MBVFICR(index), mask); in wx_check_for_bit_pf() 54 int wx_check_for_ack_pf(struct wx *wx, u16 vf) in wx_check_for_ack_pf() argument 58 return wx_check_for_bit_pf(wx, in wx_check_for_ack_pf() 71 int wx_check_for_msg_pf(struct wx *wx, u16 vf) in wx_check_for_msg_pf() argument [all …]
|
| H A D | wx_vf.c | 12 static void wx_virt_clr_reg(struct wx *wx) in wx_virt_clr_reg() argument 22 wr32m(wx, WX_VXRXDCTL(i), in wx_virt_clr_reg() 26 rd32(wx, WX_VXSTATUS); in wx_virt_clr_reg() 35 void wx_init_hw_vf(struct wx *wx) in wx_init_hw_vf() argument 37 wx_get_mac_addr_vf(wx, wx->mac.addr); in wx_init_hw_vf() 41 static int wx_mbx_write_and_read_reply(struct wx *wx, u32 *req_buf, in wx_mbx_write_and_read_reply() argument 46 ret = wx_write_posted_mbx(wx, req_buf, size); in wx_mbx_write_and_read_reply() 50 return wx_read_posted_mbx(wx, resp_buf, size); in wx_mbx_write_and_read_reply() 62 int wx_reset_hw_vf(struct wx *wx) in wx_reset_hw_vf() argument 64 struct wx_mbx_info *mbx = &wx->mbx; in wx_reset_hw_vf() [all …]
|
| H A D | wx_lib.c | 399 struct wx *wx = rx_ring->q_vector->wx; in wx_is_non_eop() local 409 if (test_bit(WX_FLAG_RSC_ENABLED, wx->flags)) { in wx_is_non_eop() 590 ethertype = ring->q_vector->wx->tpid[idx]; in wx_rx_vlan() 637 struct wx *wx = netdev_priv(rx_ring->netdev); in wx_process_skb_fields() local 639 if (test_bit(WX_FLAG_RSC_CAPABLE, wx->flags)) in wx_process_skb_fields() 645 if (unlikely(test_bit(WX_FLAG_RX_HWTSTAMP_ENABLED, wx->flags)) && in wx_process_skb_fields() 647 wx_ptp_rx_hwtstamp(rx_ring->q_vector->wx, skb); in wx_process_skb_fields() 754 unsigned int budget = q_vector->wx->tx_work_limit; in wx_clean_tx_irq() 756 struct wx *wx = netdev_priv(tx_ring->netdev); in wx_clean_tx_irq() local 803 if (unlikely(test_bit(WX_STATE_PTP_TX_IN_PROGRESS, wx->state)) && in wx_clean_tx_irq() [all …]
|
| H A D | wx_mbx.h | 85 int wx_write_mbx_pf(struct wx *wx, u32 *msg, u16 size, u16 vf); 86 int wx_read_mbx_pf(struct wx *wx, u32 *msg, u16 size, u16 vf); 87 int wx_check_for_rst_pf(struct wx *wx, u16 mbx_id); 88 int wx_check_for_msg_pf(struct wx *wx, u16 mbx_id); 89 int wx_check_for_ack_pf(struct wx *wx, u16 mbx_id); 91 int wx_read_posted_mbx(struct wx *wx, u32 *msg, u16 size); 92 int wx_write_posted_mbx(struct wx *wx, u32 *msg, u16 size); 93 int wx_check_for_rst_vf(struct wx *wx); 94 int wx_check_for_msg_vf(struct wx *wx); 95 int wx_read_mbx_vf(struct wx *wx, u32 *msg, u16 size); [all …]
|
| H A D | wx_ptp.h | 7 void wx_ptp_check_pps_event(struct wx *wx); 8 void wx_ptp_reset_cyclecounter(struct wx *wx); 9 void wx_ptp_reset(struct wx *wx); 10 void wx_ptp_init(struct wx *wx); 11 void wx_ptp_suspend(struct wx *wx); 12 void wx_ptp_stop(struct wx *wx); 13 void wx_ptp_rx_hwtstamp(struct wx *wx, struct sk_buff *skb);
|
| H A D | wx_vf_common.h | 11 int wx_request_msix_irqs_vf(struct wx *wx); 12 void wx_negotiate_api_vf(struct wx *wx); 13 void wx_reset_vf(struct wx *wx); 15 void wx_configure_vf(struct wx *wx); 17 void wxvf_watchdog_update_link(struct wx *wx); 20 void wxvf_init_service(struct wx *wx);
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_hw.c | 23 int txgbe_disable_sec_tx_path(struct wx *wx) in txgbe_disable_sec_tx_path() argument 27 wr32m(wx, WX_TSC_CTL, WX_TSC_CTL_TX_DIS, WX_TSC_CTL_TX_DIS); in txgbe_disable_sec_tx_path() 29 1000, 20000, false, wx, WX_TSC_ST); in txgbe_disable_sec_tx_path() 38 void txgbe_enable_sec_tx_path(struct wx *wx) in txgbe_enable_sec_tx_path() argument 40 wr32m(wx, WX_TSC_CTL, WX_TSC_CTL_TX_DIS, 0); in txgbe_enable_sec_tx_path() 41 WX_WRITE_FLUSH(wx); in txgbe_enable_sec_tx_path() 51 static void txgbe_init_thermal_sensor_thresh(struct wx *wx) in txgbe_init_thermal_sensor_thresh() argument 53 struct wx_thermal_sensor_data *data = &wx->mac.sensor; in txgbe_init_thermal_sensor_thresh() 58 if (wx->bus.func) in txgbe_init_thermal_sensor_thresh() 61 wr32(wx, TXGBE_TS_CTL, TXGBE_TS_CTL_EVAL_MD); in txgbe_init_thermal_sensor_thresh() [all …]
|
| H A D | txgbe_aml.c | 18 void txgbe_gpio_init_aml(struct wx *wx) in txgbe_gpio_init_aml() argument 22 if (wx->mac.type == wx_mac_aml40) in txgbe_gpio_init_aml() 27 wr32(wx, WX_GPIO_INTTYPE_LEVEL, mod_rst); in txgbe_gpio_init_aml() 28 wr32(wx, WX_GPIO_INTEN, mod_rst); in txgbe_gpio_init_aml() 30 status = rd32(wx, WX_GPIO_INTSTATUS); in txgbe_gpio_init_aml() 33 wr32(wx, WX_GPIO_EOI, BIT(i)); in txgbe_gpio_init_aml() 40 struct wx *wx = txgbe->wx; in txgbe_gpio_irq_handler_aml() local 43 if (wx->mac.type == wx_mac_aml40) in txgbe_gpio_irq_handler_aml() 48 wr32(wx, WX_GPIO_INTMASK, 0xFF); in txgbe_gpio_irq_handler_aml() 49 status = rd32(wx, WX_GPIO_INTSTATUS); in txgbe_gpio_irq_handler_aml() [all …]
|
| H A D | txgbe_fdir.h | 10 int txgbe_fdir_set_input_mask(struct wx *wx, union txgbe_atr_input *input_mask); 11 int txgbe_fdir_write_perfect_filter(struct wx *wx, 14 int txgbe_fdir_erase_perfect_filter(struct wx *wx, 17 void txgbe_configure_fdir(struct wx *wx); 18 void txgbe_fdir_filter_exit(struct wx *wx);
|
| H A D | txgbe_hw.h | 7 int txgbe_disable_sec_tx_path(struct wx *wx); 8 void txgbe_enable_sec_tx_path(struct wx *wx); 9 int txgbe_validate_eeprom_checksum(struct wx *wx, u16 *checksum_val); 10 int txgbe_reset_hw(struct wx *wx);
|
| H A D | txgbe_irq.h | 4 void txgbe_irq_enable(struct wx *wx, bool queues); 5 int txgbe_request_queue_irqs(struct wx *wx);
|
| H A D | txgbe_type.h | 313 void txgbe_down(struct wx *wx); 314 void txgbe_up(struct wx *wx); 457 struct wx *wx; member
|
| /linux/drivers/net/ethernet/wangxun/ngbe/ |
| H A D | ngbe_hw.c | 13 int ngbe_eeprom_chksum_hostif(struct wx *wx) in ngbe_eeprom_chksum_hostif() argument 28 status = wx_host_interface_command(wx, (u32 *)&buffer, sizeof(buffer), in ngbe_eeprom_chksum_hostif() 33 tmp = rd32a(wx, WX_MNG_MBOX, 1); in ngbe_eeprom_chksum_hostif() 39 static int ngbe_reset_misc(struct wx *wx) in ngbe_reset_misc() argument 41 wx_reset_misc(wx); in ngbe_reset_misc() 42 if (wx->gpio_ctrl) { in ngbe_reset_misc() 44 wr32(wx, NGBE_GPIO_DDR, 0x1); in ngbe_reset_misc() 45 ngbe_sfp_modules_txrx_powerctl(wx, false); in ngbe_reset_misc() 50 void ngbe_sfp_modules_txrx_powerctl(struct wx *wx, bool swi) in ngbe_sfp_modules_txrx_powerctl() argument 53 wr32(wx, NGBE_GPIO_DR, swi ? 0 : NGBE_GPIO_DR_0); in ngbe_sfp_modules_txrx_powerctl() [all …]
|
| H A D | ngbe_hw.h | 10 int ngbe_eeprom_chksum_hostif(struct wx *wx); 11 void ngbe_sfp_modules_txrx_powerctl(struct wx *wx, bool swi); 12 int ngbe_reset_hw(struct wx *wx);
|
| H A D | ngbe_mdio.h | 10 int ngbe_mdio_init(struct wx *wx);
|
| /linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| H A D | SchedGui.py | 12 import wx 17 class RootFrame(wx.Frame): 24 wx.Frame.__init__(self, parent, id, title) 26 (self.screen_width, self.screen_height) = wx.GetDisplaySize() 39 self.panel = wx.Panel(self, size=(self.screen_width, self.screen_height)) 42 self.scroll = wx.ScrolledWindow(self.panel) 48 self.scroll_panel = wx.Panel(self.scroll, size=(self.screen_width - 15, self.screen_height / 2)) 49 self.scroll_panel.Bind(wx.EVT_PAINT, self.on_paint) 50 self.scroll_panel.Bind(wx.EVT_KEY_DOWN, self.on_key_press) 51 self.scroll_panel.Bind(wx.EVT_LEFT_DOWN, self.on_mouse_down) [all …]
|
| /linux/drivers/net/pcs/ |
| H A D | Makefile | 5 pcs-xpcs-nxp.o pcs-xpcs-wx.o
|
| /linux/Documentation/security/ |
| H A D | sak.rst | 58 l-wx------ 1 root root 64 Mar 18 00:46 /proc/579/fd/0 -> /dev/console
|
| /linux/tools/perf/scripts/python/ |
| H A D | sched-migration.py | 367 app = wx.App(False)
|
| /linux/drivers/input/rmi4/ |
| H A D | rmi_f12.c | 202 obj->wx = data1[6]; in rmi_f12_process_objects()
|
| H A D | rmi_f11.c | 582 obj->wx = pos_data[3] & 0x0f; in rmi_f11_abs_pos_process()
|