/openbmc/linux/drivers/net/ethernet/wangxun/libwx/ |
H A D | wx_hw.c | 15 static void wx_intr_disable(struct wx *wx, u64 qmask) in wx_intr_disable() argument 21 wr32(wx, WX_PX_IMS(0), mask); in wx_intr_disable() 23 if (wx->mac.type == wx_mac_sp) { in wx_intr_disable() 26 wr32(wx, WX_PX_IMS(1), mask); in wx_intr_disable() 30 void wx_intr_enable(struct wx *wx, u64 qmask) in wx_intr_enable() argument 36 wr32(wx, WX_PX_IMC(0), mask); in wx_intr_enable() 37 if (wx->mac.type == wx_mac_sp) { in wx_intr_enable() 40 wr32(wx, WX_PX_IMC(1), mask); in wx_intr_enable() 49 void wx_irq_disable(struct wx *wx) in wx_irq_disable() argument 51 struct pci_dev *pdev = wx->pdev; in wx_irq_disable() [all …]
|
H A D | wx_hw.h | 7 void wx_intr_enable(struct wx *wx, u64 qmask); 8 void wx_irq_disable(struct wx *wx); 9 int wx_check_flash_load(struct wx *wx, u32 check_bit); 10 void wx_control_hw(struct wx *wx, bool drv); 11 int wx_mng_present(struct wx *wx); 12 int wx_host_interface_command(struct wx *wx, u32 *buffer, 14 int wx_read_ee_hostif(struct wx *wx, u16 offset, u16 *data); 15 int wx_read_ee_hostif_buffer(struct wx *wx, 17 void wx_init_eeprom_params(struct wx *wx); 18 void wx_get_mac_addr(struct wx *wx, u8 *mac_addr); [all …]
|
H A D | wx_lib.h | 14 void wx_napi_enable_all(struct wx *wx); 15 void wx_napi_disable_all(struct wx *wx); 16 void wx_reset_interrupt_capability(struct wx *wx); 17 void wx_clear_interrupt_scheme(struct wx *wx); 18 int wx_init_interrupt_scheme(struct wx *wx); 20 void wx_free_irq(struct wx *wx); 21 int wx_setup_isb_resources(struct wx *wx); 22 void wx_free_isb_resources(struct wx *wx); 23 u32 wx_misc_isb(struct wx *wx, enum wx_isb_idx idx); 24 void wx_configure_vectors(struct wx *wx); [all …]
|
H A D | wx_lib.c | 581 ethertype = ring->q_vector->wx->tpid[idx]; in wx_rx_vlan() 706 unsigned int budget = q_vector->wx->tx_work_limit; in wx_clean_tx_irq() 831 struct wx *wx = q_vector->wx; in wx_poll() local 866 if (netif_running(wx->netdev)) in wx_poll() 867 wx_intr_enable(wx, WX_INTR_Q(q_vector->v_idx)); in wx_poll() 1508 struct wx *wx = netdev_priv(netdev); in wx_xmit_frame() local 1522 if (r_idx >= wx->num_tx_queues) in wx_xmit_frame() 1523 r_idx = r_idx % wx->num_tx_queues; in wx_xmit_frame() 1524 tx_ring = wx->tx_ring[r_idx]; in wx_xmit_frame() 1530 void wx_napi_enable_all(struct wx *wx) in wx_napi_enable_all() argument [all …]
|
H A D | wx_ethtool.c | 12 struct wx *wx = netdev_priv(netdev); in wx_get_drvinfo() local 14 strscpy(info->driver, wx->driver_name, sizeof(info->driver)); in wx_get_drvinfo() 15 strscpy(info->fw_version, wx->eeprom_id, sizeof(info->fw_version)); in wx_get_drvinfo() 16 strscpy(info->bus_info, pci_name(wx->pdev), sizeof(info->bus_info)); in wx_get_drvinfo()
|
H A D | wx_type.h | 820 struct wx *wx; member 846 struct wx { struct 935 rd32m(struct wx *wx, u32 reg, u32 mask) in rd32m() argument 939 val = rd32(wx, reg); in rd32m() 944 wr32m(struct wx *wx, u32 reg, u32 mask, u32 field) in wr32m() argument 948 val = rd32(wx, reg); in wr32m() 951 wr32(wx, reg, val); in wr32m() 959 #define wx_err(wx, fmt, arg...) \ argument 960 dev_err(&(wx)->pdev->dev, fmt, ##arg) 962 #define wx_dbg(wx, fmt, arg...) \ argument [all …]
|
/openbmc/linux/drivers/net/ethernet/wangxun/ngbe/ |
H A D | ngbe_main.c | 50 static void ngbe_init_type_code(struct wx *wx) in ngbe_init_type_code() argument 55 wx->mac.type = wx_mac_em; in ngbe_init_type_code() 56 type_mask = (u16)(wx->subsystem_device_id & NGBE_OEM_MASK); in ngbe_init_type_code() 57 ncsi_mask = wx->subsystem_device_id & NGBE_NCSI_MASK; in ngbe_init_type_code() 58 wol_mask = wx->subsystem_device_id & NGBE_WOL_MASK; in ngbe_init_type_code() 60 val = rd32(wx, WX_CFG_PORT_ST); in ngbe_init_type_code() 61 wx->mac_type = (val & BIT(7)) >> 7 ? in ngbe_init_type_code() 65 wx->wol_hw_supported = (wol_mask == NGBE_WOL_SUP) ? 1 : 0; in ngbe_init_type_code() 66 wx->ncsi_enabled = (ncsi_mask == NGBE_NCSI_MASK || in ngbe_init_type_code() 74 wx->gpio_ctrl = 1; in ngbe_init_type_code() [all …]
|
H A D | ngbe_mdio.c | 16 struct wx *wx = bus->priv; in ngbe_phy_read_reg_internal() local 20 return (u16)rd32(wx, NGBE_PHY_CONFIG(regnum)); in ngbe_phy_read_reg_internal() 25 struct wx *wx = bus->priv; in ngbe_phy_write_reg_internal() local 28 wr32(wx, NGBE_PHY_CONFIG(regnum), value); in ngbe_phy_write_reg_internal() 35 struct wx *wx = bus->priv; in ngbe_phy_read_reg_mdi_c22() local 38 wr32(wx, NGBE_MDIO_CLAUSE_SELECT, 0xF); in ngbe_phy_read_reg_mdi_c22() 43 wr32(wx, WX_MSCA, command); in ngbe_phy_read_reg_mdi_c22() 47 wr32(wx, WX_MSCC, command); in ngbe_phy_read_reg_mdi_c22() 51 100000, false, wx, WX_MSCC); in ngbe_phy_read_reg_mdi_c22() 53 wx_err(wx, "Mdio read c22 command did not complete.\n"); in ngbe_phy_read_reg_mdi_c22() [all …]
|
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_ethtool.c | 15 struct wx *wx = netdev_priv(netdev); in ngbe_get_wol() local 17 if (!wx->wol_hw_supported) in ngbe_get_wol() 21 if (wx->wol & WX_PSR_WKUP_CTL_MAG) in ngbe_get_wol() 28 struct wx *wx = netdev_priv(netdev); in ngbe_set_wol() local 29 struct pci_dev *pdev = wx->pdev; in ngbe_set_wol() 31 if (!wx->wol_hw_supported) in ngbe_set_wol() 34 wx->wol = 0; in ngbe_set_wol() 36 wx->wol = WX_PSR_WKUP_CTL_MAG; in ngbe_set_wol() 37 netdev->wol_enabled = !!(wx->wol); in ngbe_set_wol() 38 wr32(wx, WX_PSR_WKUP_CTL, wx->wol); in ngbe_set_wol()
|
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_phy_connect(struct wx *wx); 11 int ngbe_mdio_init(struct wx *wx);
|
/openbmc/linux/drivers/net/ethernet/wangxun/txgbe/ |
H A D | txgbe_main.c | 41 static void txgbe_check_minimum_link(struct wx *wx) in txgbe_check_minimum_link() argument 45 pdev = wx->pdev; in txgbe_check_minimum_link() 58 static int txgbe_enumerate_functions(struct wx *wx) in txgbe_enumerate_functions() argument 60 struct pci_dev *entry, *pdev = wx->pdev; in txgbe_enumerate_functions() 84 static void txgbe_irq_enable(struct wx *wx, bool queues) in txgbe_irq_enable() argument 86 wr32(wx, WX_PX_MISC_IEN, TXGBE_PX_MISC_IEN_MASK); in txgbe_irq_enable() 89 wx_intr_enable(wx, TXGBE_INTR_MISC(wx)); in txgbe_irq_enable() 91 wx_intr_enable(wx, TXGBE_INTR_QALL(wx)); in txgbe_irq_enable() 102 struct wx *wx = data; in txgbe_intr() local 106 q_vector = wx->q_vector[0]; in txgbe_intr() [all …]
|
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_phy.c | 26 struct pci_dev *pdev = txgbe->wx->pdev; in txgbe_swnodes_register() 86 struct wx *wx = bus->priv; in txgbe_pcs_read() local 95 wr32(wx, TXGBE_XPCS_IDA_ADDR, offset); in txgbe_pcs_read() 98 val = rd32(wx, TXGBE_XPCS_IDA_DATA); in txgbe_pcs_read() 105 struct wx *wx = bus->priv; in txgbe_pcs_write() local 114 wr32(wx, TXGBE_XPCS_IDA_ADDR, offset); in txgbe_pcs_write() 117 wr32(wx, TXGBE_XPCS_IDA_DATA, val); in txgbe_pcs_write() 127 struct wx *wx; in txgbe_mdio_pcs_init() local 130 wx = txgbe->wx; in txgbe_mdio_pcs_init() 131 pdev = wx->pdev; in txgbe_mdio_pcs_init() [all …]
|
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_read_pba_string(struct wx *wx, u8 *pba_num, u32 pba_num_size); 10 int txgbe_validate_eeprom_checksum(struct wx *wx, u16 *checksum_val); 11 int txgbe_reset_hw(struct wx *wx);
|
H A D | txgbe_type.h | 140 struct wx *wx = netdev_priv(netdev); in netdev_to_txgbe() local 142 return wx->priv; in netdev_to_txgbe() 181 struct wx *wx; member
|
/openbmc/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 …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/wxwidgets/wxwidgets/ |
H A D | 0002-fix-libdir-for-multilib.patch | 30 # Initialize variables for quick access to wx root dir in sub dirs 36 # parse the version number from wx/version.h and include in wxMAJOR_VERSION and wxMINOR_VERSION 37 file(READ "${wxSOURCE_DIR}/include/wx/version.h" WX_VERSION_H_CONTENTS) 46 - "${wxBINARY_DIR}/lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" 47 + "${wxBINARY_DIR}/lib${LIB_SUFFIX}/wx/config/inplace-${TOOLCHAIN_FULLNAME}" 48 "${wxBINARY_DIR}/wx-config" 74 - DESTINATION "lib/wx/include") 75 + DESTINATION "lib${LIB_SUFFIX}/wx/include") 78 FILES "${wxOUTPUT_DIR}/wx/config/${wxBUILD_FILE_ID}" 79 - DESTINATION "lib/wx/config" [all …]
|
H A D | 0006-Fix-locale-on-musl.patch | 12 include/wx/xlocale.h | 20 ++++++++++++++++++++ 15 diff --git a/include/wx/xlocale.h b/include/wx/xlocale.h 17 --- a/include/wx/xlocale.h 18 +++ b/include/wx/xlocale.h 20 #include "wx/crt.h" // Includes wx/chartype.h, wx/wxcrt.h(wx/string.h) 21 #include "wx/intl.h" // wxLanguage
|
H A D | 0005-wx-config-fix-libdir-for-multilib.patch | 4 Subject: [PATCH] wx-config: fix libdir for multilib 7 for multilib. Add an option '--baselib' for wx-config to support 20 wx-config.in | 6 ++++-- 36 diff --git a/wx-config.in b/wx-config.in 38 --- a/wx-config.in 39 +++ b/wx-config.in 44 - wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full] 45 + wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]][--baselib=DIR] 64 wxconfdir="@libdir@/wx/config"
|
H A D | 0001-wx-config.in-Disable-cross-magic-it-does-not-work-fo.patch | 4 Subject: [PATCH] wx-config.in: Disable cross magic - it does not work for us 9 E.g 'wx-config --libs' appends a '-Linux' to all libraries (e.g 17 wx-config.in | 2 +- 20 diff --git a/wx-config.in b/wx-config.in 22 --- a/wx-config.in 23 +++ b/wx-config.in
|
H A D | 0003-create-links-with-relative-path.patch | 11 /x86_64-linux/wxwidgets-native/3.2.1-r0/recipe-sysroot-native/usr/bin/wx-config 13 /recipe-sysroot-native/usr/lib/wx/config/gtk3-unicode-3.2. 40 - \"${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/wx/config/${wxBUILD_FILE_ID}\" \ 41 + \"../lib${LIB_SUFFIX}/wx/config/${wxBUILD_FILE_ID}\" \ 42 \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/wx-config\" \
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/wxwidgets/ |
H A D | wxwidgets_3.2.6.bb | 22 file://0001-wx-config.in-Disable-cross-magic-it-does-not-work-fo.patch \ 26 file://0005-wx-config-fix-libdir-for-multilib.patch \ 86 if [ -L ${B}/wx-config ]; then 87 # ${B}/wx-config is a symlink for build and not needed after compile 89 # 1. make a file out of wx-config so that binconfig.bbclass detects it 91 cp --remove-destination `readlink ${B}/wx-config | sed 's:inplace-::'` ${B}/wx-config 99 ${B}/wx-config 109 ${D}${libdir}/wx/config/*-unicode-3.2 \ 114 ${libdir}/wx/ \ 118 ${libdir}/wx/include/ \ [all …]
|
/openbmc/linux/drivers/input/rmi4/ |
H A D | rmi_2d_sensor.c | 87 swap(obj->wx, obj->wy); in rmi_2d_sensor_abs_report() 89 wide = (obj->wx > obj->wy); in rmi_2d_sensor_abs_report() 90 major = max(obj->wx, obj->wy); in rmi_2d_sensor_abs_report() 91 minor = min(obj->wx, obj->wy); in rmi_2d_sensor_abs_report() 108 obj->wx, obj->wy); in rmi_2d_sensor_abs_report()
|