| /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_SYSTIM in wx_ptp_readtime() 67 struct wx *wx = container_of(ptp, struct wx, ptp_caps); wx_ptp_adjfine() local 86 struct wx *wx = container_of(ptp, struct wx, ptp_caps); wx_ptp_adjtime() local 103 struct wx *wx = container_of(ptp, struct wx, ptp_caps); wx_ptp_gettimex64() local 116 struct wx *wx = container_of(ptp, struct wx, ptp_caps); wx_ptp_settime64() local 148 __wx_ptp_detach_tx_skb(struct wx * wx) __wx_ptp_detach_tx_skb() argument 168 wx_ptp_clear_tx_timestamp(struct wx * wx) wx_ptp_clear_tx_timestamp() argument 199 wx_ptp_convert_to_hwtstamp(struct wx * wx,struct skb_shared_hwtstamps * hwtstamp,u64 timestamp) wx_ptp_convert_to_hwtstamp() argument 220 wx_ptp_tx_hwtstamp_work(struct wx * wx) wx_ptp_tx_hwtstamp_work() argument 270 wx_ptp_overflow_check(struct wx * wx) wx_ptp_overflow_check() argument 295 wx_ptp_rx_hang(struct wx * wx) wx_ptp_rx_hang() argument 334 wx_ptp_tx_hang(struct wx * wx) wx_ptp_tx_hang() argument 363 struct wx *wx = container_of(ptp, struct wx, ptp_caps); wx_ptp_do_aux_work() local 380 wx_ptp_trigger_calc(struct wx * wx) wx_ptp_trigger_calc() argument 410 wx_ptp_setup_sdp(struct wx * wx) wx_ptp_setup_sdp() argument 459 struct wx *wx = container_of(ptp, struct wx, ptp_caps); wx_ptp_feature_enable() local 503 wx_ptp_check_pps_event(struct wx * wx) wx_ptp_check_pps_event() argument 534 wx_ptp_create_clock(struct wx * wx) wx_ptp_create_clock() argument 598 wx_ptp_set_timestamp_mode(struct wx * wx,struct kernel_hwtstamp_config * config) wx_ptp_set_timestamp_mode() argument 696 struct wx *wx = container_of(hw_cc, struct wx, hw_cc); wx_ptp_read() local 701 wx_ptp_link_speed_adjust(struct wx * wx,u32 * shift,u32 * incval) wx_ptp_link_speed_adjust() argument 748 wx_ptp_reset_cyclecounter(struct wx * wx) wx_ptp_reset_cyclecounter() argument 790 wx_ptp_reset(struct wx * wx) wx_ptp_reset() argument 818 wx_ptp_init(struct wx * wx) wx_ptp_init() argument 849 wx_ptp_suspend(struct wx * wx) wx_ptp_suspend() argument 870 wx_ptp_stop(struct wx * wx) wx_ptp_stop() argument 884 wx_ptp_quiesce(struct wx * wx) wx_ptp_quiesce() argument 923 wx_ptp_rx_hwtstamp(struct wx * wx,struct sk_buff * skb) wx_ptp_rx_hwtstamp() argument 944 struct wx *wx = netdev_priv(dev); wx_hwtstamp_get() local 959 struct wx *wx = netdev_priv(dev); wx_hwtstamp_set() 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 in wx_phy_write_reg_mdi() local 74 struct wx *wx = bus->priv; wx_phy_read_reg_mdi_c22() local 83 struct wx *wx = bus->priv; wx_phy_write_reg_mdi_c22() local 92 struct wx *wx = bus->priv; wx_phy_read_reg_mdi_c45() local 102 struct wx *wx = bus->priv; wx_phy_write_reg_mdi_c45() local 109 wx_intr_disable(struct wx * wx,u64 qmask) wx_intr_disable() argument 124 wx_intr_enable(struct wx * wx,u64 qmask) wx_intr_enable() argument 149 wx_irq_disable(struct wx * wx) wx_irq_disable() argument 173 wx_fmgr_cmd_op(struct wx * wx,u32 cmd,u32 cmd_addr) wx_fmgr_cmd_op() argument 186 wx_flash_read_dword(struct wx * wx,u32 addr,u32 * data) wx_flash_read_dword() argument 218 wx_control_hw(struct wx * wx,bool drv) wx_control_hw() argument 232 wx_mng_present(struct wx * wx) wx_mng_present() argument 255 wx_release_sw_sync(struct wx * wx,u32 mask) wx_release_sw_sync() argument 270 wx_acquire_sw_sync(struct wx * wx,u32 mask) wx_acquire_sw_sync() argument 289 wx_host_interface_command_s(struct wx * wx,u32 * buffer,u32 length,u32 timeout,bool return_data) wx_host_interface_command_s() argument 377 wx_poll_fw_reply(struct wx * wx,u32 * buffer,u8 send_cmd) wx_poll_fw_reply() argument 398 wx_host_interface_command_r(struct wx * wx,u32 * buffer,u32 length,u32 timeout,bool return_data) wx_host_interface_command_r() argument 495 wx_host_interface_command(struct wx * wx,u32 * buffer,u32 length,u32 timeout,bool return_data) wx_host_interface_command() argument 517 wx_set_pps(struct wx * wx,bool enable,u64 nsec,u64 cycles) wx_set_pps() argument 545 wx_read_ee_hostif_data(struct wx * wx,u16 offset,u16 * data) wx_read_ee_hostif_data() argument 582 wx_read_ee_hostif(struct wx * wx,u16 offset,u16 * data) wx_read_ee_hostif() argument 605 wx_read_ee_hostif_buffer(struct wx * wx,u16 offset,u16 words,u16 * data) wx_read_ee_hostif_buffer() argument 679 wx_init_eeprom_params(struct wx * wx) wx_init_eeprom_params() argument 728 wx_get_mac_addr(struct wx * wx,u8 * mac_addr) wx_get_mac_addr() argument 756 wx_set_rar(struct wx * wx,u32 index,u8 * addr,u64 pools,u32 enable_addr) wx_set_rar() argument 810 wx_clear_rar(struct wx * wx,u32 index) wx_clear_rar() argument 845 wx_clear_vmdq(struct wx * wx,u32 rar,u32 __maybe_unused vmdq) wx_clear_vmdq() argument 874 wx_init_uta_tables(struct wx * wx) wx_init_uta_tables() argument 892 wx_init_rx_addrs(struct wx * wx) wx_init_rx_addrs() argument 941 wx_sync_mac_table(struct wx * wx) wx_sync_mac_table() argument 960 wx_full_sync_mac_table(struct wx * wx) wx_full_sync_mac_table() argument 978 wx_mac_set_default_filter(struct wx * wx,u8 * addr) wx_mac_set_default_filter() argument 989 wx_flush_sw_mac_table(struct wx * wx) wx_flush_sw_mac_table() argument 1006 wx_add_mac_filter(struct wx * wx,u8 * addr,u16 pool) wx_add_mac_filter() argument 1037 wx_del_mac_filter(struct wx * wx,u8 * addr,u16 pool) wx_del_mac_filter() argument 1061 wx_available_rars(struct wx * wx) wx_available_rars() argument 1085 struct wx *wx = netdev_priv(netdev); wx_write_uc_addr_list() local 1116 wx_mta_vector(struct wx * wx,u8 * mc_addr) wx_mta_vector() argument 1150 wx_set_mta(struct wx * wx,u8 * mc_addr) wx_set_mta() argument 1182 wx_update_mc_addr_list(struct wx * wx,struct net_device * netdev) wx_update_mc_addr_list() argument 1219 wx_restore_vf_multicasts(struct wx * wx) wx_restore_vf_multicasts() argument 1258 struct wx *wx = netdev_priv(netdev); wx_write_mc_addr_list() local 1280 struct wx *wx = netdev_priv(netdev); wx_set_mac() local 1298 wx_disable_rx(struct wx * wx) wx_disable_rx() argument 1326 wx_enable_rx(struct wx * wx) wx_enable_rx() argument 1349 wx_set_rxpba(struct wx * wx) wx_set_rxpba() argument 1377 wx_hpbthresh(struct wx * wx) wx_hpbthresh() argument 1418 wx_lpbthresh(struct wx * wx) wx_lpbthresh() argument 1439 wx_pbthresh_setup(struct wx * wx) wx_pbthresh_setup() argument 1449 wx_set_ethertype_anti_spoofing(struct wx * wx,bool enable,int vf) wx_set_ethertype_anti_spoofing() argument 1467 struct wx *wx = netdev_priv(netdev); wx_set_vf_spoofchk() local 1484 wx_configure_virtualization(struct wx * wx) wx_configure_virtualization() argument 1528 wx_configure_port(struct wx * wx) wx_configure_port() argument 1572 wx_disable_sec_rx_path(struct wx * wx) wx_disable_sec_rx_path() argument 1590 wx_enable_sec_rx_path(struct wx * wx) wx_enable_sec_rx_path() argument 1597 wx_vlan_strip_control(struct wx * wx,bool enable) wx_vlan_strip_control() argument 1610 wx_vlan_promisc_enable(struct wx * wx) wx_vlan_promisc_enable() argument 1643 wx_scrub_vfta(struct wx * wx) wx_scrub_vfta() argument 1671 wx_vlan_promisc_disable(struct wx * wx) wx_vlan_promisc_disable() argument 1689 struct wx *wx = netdev_priv(netdev); wx_set_rx_mode() local 1779 wx_set_rx_buffer_len(struct wx * wx) wx_set_rx_buffer_len() argument 1818 struct wx *wx = netdev_priv(netdev); wx_change_mtu() local 1828 wx_disable_rx_queue(struct wx * wx,struct wx_ring * ring) wx_disable_rx_queue() argument 1851 wx_enable_rx_queue(struct wx * wx,struct wx_ring * ring) wx_enable_rx_queue() argument 1869 wx_configure_srrctl(struct wx * wx,struct wx_ring * rx_ring) wx_configure_srrctl() argument 1888 wx_configure_rscctl(struct wx * wx,struct wx_ring * ring) wx_configure_rscctl() argument 1904 wx_configure_tx_ring(struct wx * wx,struct wx_ring * ring) wx_configure_tx_ring() argument 1959 wx_configure_rx_ring(struct wx * wx,struct wx_ring * ring) wx_configure_rx_ring() argument 2015 wx_configure_tx(struct wx * wx) wx_configure_tx() argument 2037 wx_restore_vlan(struct wx * wx) wx_restore_vlan() argument 2047 wx_rss_indir_tbl_entries(struct wx * wx) wx_rss_indir_tbl_entries() argument 2055 wx_store_reta(struct wx * wx) wx_store_reta() argument 2078 wx_store_rsskey(struct wx * wx) wx_store_rsskey() argument 2094 wx_setup_reta(struct wx * wx) wx_setup_reta() argument 2125 wx_config_rss_field(struct wx * wx) wx_config_rss_field() argument 2150 wx_enable_rss(struct wx * wx,bool enable) wx_enable_rss() argument 2171 wx_setup_psrtype(struct wx * wx) wx_setup_psrtype() argument 2197 wx_setup_mrqc(struct wx * wx) wx_setup_mrqc() argument 2213 wx_configure_rx(struct wx * wx) wx_configure_rx() argument 2263 wx_configure_isb(struct wx * wx) wx_configure_isb() argument 2271 wx_configure(struct wx * wx) wx_configure() argument 2297 wx_disable_pcie_master(struct wx * wx) wx_disable_pcie_master() argument 2328 wx_stop_adapter(struct wx * wx) wx_stop_adapter() argument 2370 wx_reset_mac(struct wx * wx) wx_reset_mac() argument 2386 wx_reset_misc(struct wx * wx) wx_reset_misc() argument 2424 wx_get_pcie_msix_counts(struct wx * wx,u16 * msix_count,u16 max_msix_count) wx_get_pcie_msix_counts() argument 2456 wx_init_rss_key(struct wx * wx) wx_init_rss_key() argument 2472 wx_sw_init(struct wx * wx) wx_sw_init() argument 2540 wx_find_vlvf_slot(struct wx * wx,u32 vlan) wx_find_vlvf_slot() argument 2582 wx_set_vlvf(struct wx * wx,u32 vlan,u32 vind,bool vlan_on,bool * vfta_changed) wx_set_vlvf() argument 2650 wx_set_vfta(struct wx * wx,u32 vlan,u32 vind,bool vlan_on) wx_set_vfta() argument 2703 wx_clear_vfta(struct wx * wx) wx_clear_vfta() argument 2723 struct wx *wx = netdev_priv(netdev); wx_vlan_rx_add_vid() local 2735 struct wx *wx = netdev_priv(netdev); wx_vlan_rx_kill_vid() local 2746 wx_enable_rx_drop(struct wx * wx,struct wx_ring * ring) wx_enable_rx_drop() argument 2757 wx_disable_rx_drop(struct wx * wx,struct wx_ring * ring) wx_disable_rx_drop() argument 2768 wx_fc_enable(struct wx * wx,bool tx_pause,bool rx_pause) wx_fc_enable() argument 2853 wx_update_xoff_rx_lfc(struct wx * wx) wx_update_xoff_rx_lfc() argument 2882 wx_update_stats(struct wx * wx) wx_update_stats() argument 2982 wx_clear_hw_cntrs(struct wx * wx) wx_clear_hw_cntrs() argument 3029 wx_start_hw(struct wx * wx) wx_start_hw() argument [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_err.c | 26 struct wx *wx = pci_get_drvdata(pdev); in wx_io_error_detected() local 29 if (!wx) in wx_io_error_detected() 32 netdev = wx->netdev; in wx_io_error_detected() 38 set_bit(WX_FLAG_NEED_PCIE_RECOVERY, wx->flags); in wx_io_error_detected() 39 wx_soft_quiesce(wx); in wx_io_error_detected() 46 if (!test_and_set_bit(WX_STATE_DISABLED, wx->state)) in wx_io_error_detected() 64 struct wx *wx = pci_get_drvdata(pdev); in wx_io_slot_reset() local 67 wx_err(wx, "Cannot re-enable PCI device after reset.\n"); in wx_io_slot_reset() 73 clear_bit(WX_STATE_DISABLED, wx->state); in wx_io_slot_reset() 74 clear_bit(WX_FLAG_NEED_PCIE_RECOVERY, wx->flags); in wx_io_slot_reset() [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_ethtool.c | 23 .sizeof_stat = sizeof(((struct wx *)0)->m), \ 24 .stat_offset = offsetof(struct wx, m) } 79 struct wx *wx = netdev_priv(netdev); in wx_get_sset_count() local 84 if (test_bit(WX_FLAG_FDIR_CAPABLE, wx->flags)) in wx_get_sset_count() 86 if (test_bit(WX_FLAG_RSC_CAPABLE, wx->flags)) in wx_get_sset_count() 97 struct wx *wx = netdev_priv(netdev); in wx_get_strings() local 105 if (test_bit(WX_FLAG_FDIR_CAPABLE, wx->flags)) { in wx_get_strings() 109 if (test_bit(WX_FLAG_RSC_CAPABLE, wx->flags)) { in wx_get_strings() 129 struct wx *wx = netdev_priv(netdev); in wx_get_ethtool_stats() local 135 wx_update_stats(wx); in wx_get_ethtool_stats() [all …]
|
| H A D | wx_vf_lib.c | 15 struct wx *wx = q_vector->wx; in wx_write_eitr_vf() local 19 switch (wx->mac.type) { in wx_write_eitr_vf() 37 wr32(wx, WX_VXITR(v_idx), itr_reg); in wx_write_eitr_vf() 40 static void wx_set_ivar_vf(struct wx *wx, s8 direction, u8 queue, in wx_set_ivar_vf() argument 48 ivar = rd32(wx, WX_VXIVAR_MISC); in wx_set_ivar_vf() 51 wr32(wx, WX_VXIVAR_MISC, ivar); in wx_set_ivar_vf() 56 ivar = rd32(wx, WX_VXIVAR(queue >> 1)); in wx_set_ivar_vf() 59 wr32(wx, WX_VXIVAR(queue >> 1), ivar); in wx_set_ivar_vf() 63 void wx_configure_msix_vf(struct wx *wx) in wx_configure_msix_vf() argument 67 wx->eims_enable_mask = 0; in wx_configure_msix_vf() [all …]
|
| H A D | wx_lib.h | 15 void wx_napi_enable_all(struct wx *wx); 16 void wx_napi_disable_all(struct wx *wx); 17 void wx_reset_interrupt_capability(struct wx *wx); 18 void wx_clear_interrupt_scheme(struct wx *wx); 19 int wx_init_interrupt_scheme(struct wx *wx); 21 void wx_free_irq(struct wx *wx); 22 int wx_setup_isb_resources(struct wx *wx); 23 void wx_free_isb_resources(struct wx *wx); 24 u32 wx_misc_isb(struct wx *wx, enum wx_isb_idx idx); 26 void wx_configure_vectors(struct wx *wx); [all …]
|
| H A D | wx_lib.c | 400 struct wx *wx = rx_ring->q_vector->wx; in wx_is_non_eop() local 410 if (test_bit(WX_FLAG_RSC_ENABLED, wx->flags)) { in wx_is_non_eop() 591 ethertype = ring->q_vector->wx->tpid[idx]; in wx_rx_vlan() 638 struct wx *wx = netdev_priv(rx_ring->netdev); in wx_process_skb_fields() local 640 if (test_bit(WX_FLAG_RSC_CAPABLE, wx->flags)) in wx_process_skb_fields() 646 if (unlikely(test_bit(WX_FLAG_RX_HWTSTAMP_ENABLED, wx->flags)) && in wx_process_skb_fields() 648 wx_ptp_rx_hwtstamp(rx_ring->q_vector->wx, skb); in wx_process_skb_fields() 786 unsigned int budget = q_vector->wx->tx_work_limit; in wx_clean_tx_irq() 788 struct wx *wx = netdev_priv(tx_ring->netdev); in wx_clean_tx_irq() local 835 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_vf.h | 111 void wx_init_hw_vf(struct wx *wx); 112 int wx_reset_hw_vf(struct wx *wx); 113 void wx_get_mac_addr_vf(struct wx *wx, u8 *mac_addr); 114 void wx_stop_adapter_vf(struct wx *wx); 115 int wx_get_fw_version_vf(struct wx *wx); 116 int wx_set_rar_vf(struct wx *wx, u32 index, u8 *addr, u32 enable_addr); 117 int wx_update_mc_addr_list_vf(struct wx *wx, struct net_device *netdev); 118 int wx_set_uc_addr_vf(struct wx *wx, u32 index, u8 *addr); 119 int wx_rlpml_set_vf(struct wx *wx, u16 max_size); 120 int wx_negotiate_api_version(struct wx *wx, int api); [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_quiesce(struct wx *wx); 14 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); 18 void wxvf_up_complete(struct wx *wx); 20 void wxvf_down(struct wx *wx); 22 void wxvf_init_service(struct wx *wx);
|
| /linux/drivers/net/ethernet/wangxun/ngbe/ |
| H A D | ngbe_main.c | 50 static void ngbe_down_suspend(struct wx *wx) in ngbe_down_suspend() argument 52 if (test_and_set_bit(WX_STATE_RES_FREED, wx->state)) in ngbe_down_suspend() 55 phylink_stop(wx->phylink); in ngbe_down_suspend() 56 phylink_disconnect_phy(wx->phylink); in ngbe_down_suspend() 57 wx_clean_all_tx_rings(wx); in ngbe_down_suspend() 58 wx_clean_all_rx_rings(wx); in ngbe_down_suspend() 59 wx_free_irq(wx); in ngbe_down_suspend() 60 wx_free_isb_resources(wx); in ngbe_down_suspend() 61 wx_free_resources(wx); in ngbe_down_suspend() 68 ngbe_init_type_code(struct wx * wx) ngbe_init_type_code() argument 104 ngbe_sw_init(struct wx * wx) ngbe_sw_init() argument 164 struct wx *wx = container_of(work, struct wx, service_task); ngbe_service_task() local 173 ngbe_init_service(struct wx * wx) ngbe_init_service() argument 185 ngbe_irq_enable(struct wx * wx,bool queues) ngbe_irq_enable() argument 216 struct wx *wx = data; ngbe_intr() local 250 __ngbe_msix_misc(struct wx * wx,u32 eicr) __ngbe_msix_misc() argument 267 struct wx *wx = data; ngbe_msix_misc() local 278 struct wx *wx = data; ngbe_misc_and_queue() local 301 ngbe_request_msix_irqs(struct wx * wx) ngbe_request_msix_irqs() argument 361 ngbe_request_irq(struct wx * wx) ngbe_request_irq() argument 382 ngbe_disable_device(struct wx * wx) ngbe_disable_device() argument 431 ngbe_reset(struct wx * wx) ngbe_reset() argument 442 ngbe_down(struct wx * wx) ngbe_down() argument 451 ngbe_up_complete(struct wx * wx) ngbe_up_complete() argument 490 struct wx *wx = netdev_priv(netdev); ngbe_open() local 532 ngbe_up(struct wx * wx) ngbe_up() argument 551 struct wx *wx = netdev_priv(netdev); ngbe_close() local 570 struct wx *wx = pci_get_drvdata(pdev); ngbe_dev_shutdown() local 600 struct wx *wx = pci_get_drvdata(pdev); ngbe_shutdown() local 622 struct wx *wx = netdev_priv(dev); ngbe_setup_tc() local 648 ngbe_reinit_locked(struct wx * wx) ngbe_reinit_locked() argument 664 struct wx *wx = netdev_priv(netdev); ngbe_do_reset() local 707 struct wx *wx = NULL; ngbe_probe() local 919 struct wx *wx = pci_get_drvdata(pdev); ngbe_remove() local 956 struct wx *wx; ngbe_resume() local [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 | 20 struct wx *wx = netdev_priv(netdev); in ngbe_set_ringparam() local 31 if (new_tx_count == wx->tx_ring_count && in ngbe_set_ringparam() 32 new_rx_count == wx->rx_ring_count) in ngbe_set_ringparam() 35 mutex_lock(&wx->reset_lock); in ngbe_set_ringparam() 36 set_bit(WX_STATE_RESETTING, wx->state); in ngbe_set_ringparam() 38 if (!netif_running(wx->netdev)) { in ngbe_set_ringparam() 39 for (i = 0; i < wx->num_tx_queues; i++) in ngbe_set_ringparam() 40 wx->tx_ring[i]->count = new_tx_count; in ngbe_set_ringparam() 41 for (i = 0; i < wx->num_rx_queues; i++) in ngbe_set_ringparam() 42 wx->rx_ring[i]->count = new_rx_count; in ngbe_set_ringparam() [all …]
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| H A D | txgbe_main.c | 55 static void txgbe_check_minimum_link(struct wx *wx) in txgbe_check_minimum_link() argument 59 pdev = wx->pdev; in txgbe_check_minimum_link() 65 * @wx: wx structure 72 static int txgbe_enumerate_functions(struct wx *wx) in txgbe_enumerate_functions() argument 74 struct pci_dev *entry, *pdev = wx->pdev; in txgbe_enumerate_functions() 93 static void txgbe_module_detection_subtask(struct wx *wx) in txgbe_module_detection_subtask() argument 120 txgbe_link_config_subtask(struct wx * wx) txgbe_link_config_subtask() argument 138 struct wx *wx = container_of(work, struct wx, service_task); txgbe_service_task() local 149 txgbe_init_service(struct wx * wx) txgbe_init_service() argument 156 txgbe_up_complete(struct wx * wx) txgbe_up_complete() argument 204 txgbe_reset(struct wx * wx) txgbe_reset() argument 227 txgbe_disable_device(struct wx * wx) txgbe_disable_device() argument 287 txgbe_down(struct wx * wx) txgbe_down() argument 312 txgbe_up(struct wx * wx) txgbe_up() argument 319 txgbe_down_suspend(struct wx * wx) txgbe_down_suspend() argument 337 txgbe_init_type_code(struct wx * wx) txgbe_init_type_code() argument 390 txgbe_sw_init(struct wx * wx) txgbe_sw_init() argument 486 struct wx *wx = netdev_priv(netdev); txgbe_open() local 538 txgbe_close_suspend(struct wx * wx) txgbe_close_suspend() argument 558 struct wx *wx = netdev_priv(netdev); txgbe_close() local 577 struct wx *wx = pci_get_drvdata(pdev); txgbe_dev_shutdown() local 613 struct wx *wx = netdev_priv(dev); txgbe_setup_tc() local 639 txgbe_reinit_locked(struct wx * wx) txgbe_reinit_locked() argument 655 struct wx *wx = netdev_priv(netdev); txgbe_do_reset() local 665 struct wx *wx = netdev_priv(dev); txgbe_udp_tunnel_sync() local 731 struct wx *wx = NULL; txgbe_probe() local 993 struct wx *wx = pci_get_drvdata(pdev); txgbe_remove() local [all...] |
| H A D | txgbe_hw.c | 18 * @wx: pointer to hardware structure 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() 34 * @wx: pointer to hardware structure 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 txgbe_init_thermal_sensor_thresh(struct wx * wx) txgbe_init_thermal_sensor_thresh() argument 80 txgbe_calc_eeprom_checksum(struct wx * wx,u16 * checksum) txgbe_calc_eeprom_checksum() argument 127 txgbe_validate_eeprom_checksum(struct wx * wx,u16 * checksum_val) txgbe_validate_eeprom_checksum() argument 168 txgbe_reset_misc(struct wx * wx) txgbe_reset_misc() argument 182 txgbe_reset_hw(struct wx * wx) txgbe_reset_hw() argument [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.c | 158 static int txgbe_fdir_check_cmd_complete(struct wx *wx) in txgbe_fdir_check_cmd_complete() argument 165 wx, TXGBE_RDB_FDIR_CMD); in txgbe_fdir_check_cmd_complete() 177 static int txgbe_fdir_add_signature_filter(struct wx *wx, in txgbe_fdir_add_signature_filter() argument 200 wx_err(wx, "Error on flow type input\n"); in txgbe_fdir_add_signature_filter() 213 wr32(wx, TXGBE_RDB_FDIR_HASH, fdirhashcmd); in txgbe_fdir_add_signature_filter() 214 wr32(wx, TXGBE_RDB_FDIR_CMD, fdircmd); in txgbe_fdir_add_signature_filter() 216 wx_dbg(wx, "Tx Queue=%x hash=%x\n", queue, (u32)fdirhashcmd); in txgbe_fdir_add_signature_filter() 218 err = txgbe_fdir_check_cmd_complete(wx); in txgbe_fdir_add_signature_filter() 220 wx_err(wx, "Flow Director command did not complete!\n"); in txgbe_fdir_add_signature_filter() 303 txgbe_fdir_add_signature_filter(q_vector->wx, input, common, in txgbe_atr() [all …]
|
| H A D | txgbe_irq.c | 22 void txgbe_irq_enable(struct wx *wx, bool queues) in txgbe_irq_enable() argument 26 if (wx->mac.type != wx_mac_sp) { in txgbe_irq_enable() 28 txgbe_gpio_init_aml(wx); in txgbe_irq_enable() 31 wr32(wx, WX_PX_MISC_IEN, misc_ien); in txgbe_irq_enable() 34 wx_intr_enable(wx, TXGBE_INTR_MISC(wx)); in txgbe_irq_enable() 36 wx_intr_enable(wx, TXGBE_INTR_QALL(wx)); in txgbe_irq_enable() 45 int txgbe_request_queue_irqs(struct wx *wx) in txgbe_request_queue_irqs() argument 47 struct net_device *netdev = wx->netdev; in txgbe_request_queue_irqs() 50 if (!wx->pdev->msix_enabled) in txgbe_request_queue_irqs() 53 for (vector = 0; vector < wx->num_q_vectors; vector++) { in txgbe_request_queue_irqs() [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);
|
| /linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| H A D | SchedGui.py | |