| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe.h | 270 struct xgbe_prv_data; 421 struct xgbe_prv_data *pdata; 689 int (*set_mac_address)(struct xgbe_prv_data *, const u8 *addr); 690 int (*config_rx_mode)(struct xgbe_prv_data *); 692 int (*enable_rx_csum)(struct xgbe_prv_data *); 693 int (*disable_rx_csum)(struct xgbe_prv_data *); 695 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *); 696 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *); 697 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *); 698 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *); [all …]
|
| H A D | xgbe-mdio.c | 20 static int xgbe_phy_module_eeprom(struct xgbe_prv_data *pdata, in xgbe_phy_module_eeprom() 29 static int xgbe_phy_module_info(struct xgbe_prv_data *pdata, in xgbe_phy_module_info() 38 static void xgbe_an37_clear_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_clear_interrupts() 47 static void xgbe_an37_disable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_disable_interrupts() 60 static void xgbe_an37_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_enable_interrupts() 73 static void xgbe_an73_clear_interrupts(struct xgbe_prv_data *pdata) in xgbe_an73_clear_interrupts() 78 static void xgbe_an73_disable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an73_disable_interrupts() 83 static void xgbe_an73_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an73_enable_interrupts() 88 static void xgbe_an_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an_enable_interrupts() 104 static void xgbe_an_clear_interrupts_all(struct xgbe_prv_data *pdata) in xgbe_an_clear_interrupts_all() [all …]
|
| H A D | xgbe-i2c.c | 35 static int xgbe_i2c_abort(struct xgbe_prv_data *pdata) in xgbe_i2c_abort() 55 static int xgbe_i2c_set_enable(struct xgbe_prv_data *pdata, bool enable) in xgbe_i2c_set_enable() 71 static int xgbe_i2c_disable(struct xgbe_prv_data *pdata) in xgbe_i2c_disable() 89 static int xgbe_i2c_enable(struct xgbe_prv_data *pdata) in xgbe_i2c_enable() 94 static void xgbe_i2c_clear_all_interrupts(struct xgbe_prv_data *pdata) in xgbe_i2c_clear_all_interrupts() 99 static void xgbe_i2c_disable_interrupts(struct xgbe_prv_data *pdata) in xgbe_i2c_disable_interrupts() 104 static void xgbe_i2c_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_i2c_enable_interrupts() 109 static void xgbe_i2c_write(struct xgbe_prv_data *pdata) in xgbe_i2c_write() 137 static void xgbe_i2c_read(struct xgbe_prv_data *pdata) in xgbe_i2c_read() 154 static void xgbe_i2c_clear_isr_interrupts(struct xgbe_prv_data *pdata, in xgbe_i2c_clear_isr_interrupts() [all …]
|
| H A D | xgbe-debugfs.c | 68 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_read() 77 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_write() 86 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_read() 98 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_write() 128 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_read() 136 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_write() 145 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_addr_read() 153 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_addr_write() 162 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_value_read() 175 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_value_write() [all …]
|
| H A D | xgbe-dev.c | 20 static inline unsigned int xgbe_get_max_frame(struct xgbe_prv_data *pdata) in xgbe_get_max_frame() 25 static unsigned int xgbe_usec_to_riwt(struct xgbe_prv_data *pdata, in xgbe_usec_to_riwt() 48 static unsigned int xgbe_riwt_to_usec(struct xgbe_prv_data *pdata, in xgbe_riwt_to_usec() 71 static int xgbe_config_pbl_val(struct xgbe_prv_data *pdata) in xgbe_config_pbl_val() 100 static int xgbe_config_osp_mode(struct xgbe_prv_data *pdata) in xgbe_config_osp_mode() 115 static int xgbe_config_rsf_mode(struct xgbe_prv_data *pdata, unsigned int val) in xgbe_config_rsf_mode() 125 static int xgbe_config_tsf_mode(struct xgbe_prv_data *pdata, unsigned int val) in xgbe_config_tsf_mode() 135 static int xgbe_config_rx_threshold(struct xgbe_prv_data *pdata, in xgbe_config_rx_threshold() 146 static int xgbe_config_tx_threshold(struct xgbe_prv_data *pdata, in xgbe_config_tx_threshold() 157 static int xgbe_config_rx_coalesce(struct xgbe_prv_data *pdata) in xgbe_config_rx_coalesce() [all …]
|
| H A D | xgbe-ptp.c | 18 struct xgbe_prv_data *pdata = container_of(info, in xgbe_adjfine() 19 struct xgbe_prv_data, in xgbe_adjfine() 37 struct xgbe_prv_data *pdata = container_of(info, in xgbe_adjtime() 38 struct xgbe_prv_data, in xgbe_adjtime() 74 struct xgbe_prv_data *pdata = container_of(info, in xgbe_gettimex() 75 struct xgbe_prv_data, in xgbe_gettimex() 94 struct xgbe_prv_data *pdata = container_of(info, in xgbe_settime() 95 struct xgbe_prv_data, in xgbe_settime() 109 struct xgbe_prv_data *pdata = container_of(info, struct xgbe_prv_data, in xgbe_enable() 134 void xgbe_ptp_register(struct xgbe_prv_data *pdata) in xgbe_ptp_register() [all …]
|
| H A D | xgbe-phy-v2.c | 281 static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata); 282 static void xgbe_phy_rrc(struct xgbe_prv_data *pdata); 283 static void xgbe_phy_perform_ratechange(struct xgbe_prv_data *pdata, 287 static int xgbe_phy_i2c_xfer(struct xgbe_prv_data *pdata, in xgbe_phy_i2c_xfer() 293 static int xgbe_phy_redrv_write(struct xgbe_prv_data *pdata, unsigned int reg, in xgbe_phy_redrv_write() 355 static int xgbe_phy_i2c_write(struct xgbe_prv_data *pdata, unsigned int target, in xgbe_phy_i2c_write() 375 static int xgbe_phy_i2c_read(struct xgbe_prv_data *pdata, unsigned int target, in xgbe_phy_i2c_read() 411 static int xgbe_phy_sfp_put_mux(struct xgbe_prv_data *pdata) in xgbe_phy_sfp_put_mux() 430 static int xgbe_phy_sfp_get_mux(struct xgbe_prv_data *pdata) in xgbe_phy_sfp_get_mux() 449 static void xgbe_phy_put_comm_ownership(struct xgbe_prv_data *pdata) in xgbe_phy_put_comm_ownership() [all …]
|
| H A D | xgbe-phy-v1.c | 113 static void xgbe_phy_kr_training_pre(struct xgbe_prv_data *pdata) in xgbe_phy_kr_training_pre() 118 static void xgbe_phy_kr_training_post(struct xgbe_prv_data *pdata) in xgbe_phy_kr_training_post() 123 static enum xgbe_mode xgbe_phy_an_outcome(struct xgbe_prv_data *pdata) in xgbe_phy_an_outcome() 190 static void xgbe_phy_an_advertising(struct xgbe_prv_data *pdata, in xgbe_phy_an_advertising() 198 static int xgbe_phy_an_config(struct xgbe_prv_data *pdata) in xgbe_phy_an_config() 204 static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata) in xgbe_phy_an_mode() 209 static void xgbe_phy_pcs_power_cycle(struct xgbe_prv_data *pdata) in xgbe_phy_pcs_power_cycle() 224 static void xgbe_phy_start_ratechange(struct xgbe_prv_data *pdata) in xgbe_phy_start_ratechange() 230 static void xgbe_phy_complete_ratechange(struct xgbe_prv_data *pdata) in xgbe_phy_complete_ratechange() 258 static void xgbe_phy_kr_mode(struct xgbe_prv_data *pdata) in xgbe_phy_kr_mode() [all …]
|
| H A D | xgbe-ethtool.c | 24 offsetof(struct xgbe_prv_data, mmc_stats._var), \ 30 offsetof(struct xgbe_prv_data, ext_stats._var), \ 84 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_strings() 112 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ethtool_stats() 133 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_sset_count() 156 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_pauseparam() 166 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_pauseparam() 205 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_link_ksettings() 231 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_link_ksettings() 300 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_drvinfo() [all …]
|
| H A D | xgbe-drv.c | 50 static void xgbe_stop(struct xgbe_prv_data *); 63 static void xgbe_free_channels(struct xgbe_prv_data *pdata) in xgbe_free_channels() 81 static int xgbe_alloc_channels(struct xgbe_prv_data *pdata) in xgbe_alloc_channels() 167 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_maybe_stop_tx_queue() 200 static void xgbe_enable_rx_tx_int(struct xgbe_prv_data *pdata, in xgbe_enable_rx_tx_int() 218 static void xgbe_enable_rx_tx_ints(struct xgbe_prv_data *pdata) in xgbe_enable_rx_tx_ints() 226 static void xgbe_disable_rx_tx_int(struct xgbe_prv_data *pdata, in xgbe_disable_rx_tx_int() 244 static void xgbe_disable_rx_tx_ints(struct xgbe_prv_data *pdata) in xgbe_disable_rx_tx_ints() 252 static bool xgbe_ecc_sec(struct xgbe_prv_data *pdata, unsigned long *period, in xgbe_ecc_sec() 277 static bool xgbe_ecc_ded(struct xgbe_prv_data *pdata, unsigned long *period, in xgbe_ecc_ded() [all …]
|
| H A D | xgbe-hwtstamp.c | 13 void xgbe_update_tstamp_time(struct xgbe_prv_data *pdata, in xgbe_update_tstamp_time() 37 void xgbe_update_tstamp_addend(struct xgbe_prv_data *pdata, in xgbe_update_tstamp_addend() 55 void xgbe_set_tstamp_time(struct xgbe_prv_data *pdata, unsigned int sec, in xgbe_set_tstamp_time() 73 u64 xgbe_get_tstamp_time(struct xgbe_prv_data *pdata) in xgbe_get_tstamp_time() 84 u64 xgbe_get_tx_tstamp(struct xgbe_prv_data *pdata) in xgbe_get_tx_tstamp() 125 void xgbe_config_tstamp(struct xgbe_prv_data *pdata, unsigned int mac_tscr) in xgbe_config_tstamp() 136 struct xgbe_prv_data *pdata = container_of(work, in xgbe_tx_tstamp() 137 struct xgbe_prv_data, in xgbe_tx_tstamp() 163 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_hwtstamp_settings() 174 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_hwtstamp_settings() [all …]
|
| H A D | xgbe-platform.c | 27 static int xgbe_acpi_support(struct xgbe_prv_data *pdata) in xgbe_acpi_support() 54 static int xgbe_acpi_support(struct xgbe_prv_data *pdata) in xgbe_acpi_support() 61 static int xgbe_of_support(struct xgbe_prv_data *pdata) in xgbe_of_support() 84 static struct platform_device *xgbe_of_get_phy_pdev(struct xgbe_prv_data *pdata) in xgbe_of_get_phy_pdev() 109 static int xgbe_of_support(struct xgbe_prv_data *pdata) in xgbe_of_support() 114 static struct platform_device *xgbe_of_get_phy_pdev(struct xgbe_prv_data *pdata) in xgbe_of_get_phy_pdev() 136 static struct platform_device *xgbe_get_phy_pdev(struct xgbe_prv_data *pdata) in xgbe_get_phy_pdev() 152 struct xgbe_prv_data *pdata; in xgbe_platform_probe() 368 struct xgbe_prv_data *pdata = platform_get_drvdata(pdev); in xgbe_platform_remove() 380 struct xgbe_prv_data *pdata = dev_get_drvdata(dev); in xgbe_platform_suspend() [all …]
|
| H A D | xgbe-main.c | 30 static void xgbe_default_config(struct xgbe_prv_data *pdata) in xgbe_default_config() 53 static void xgbe_init_all_fptrs(struct xgbe_prv_data *pdata) in xgbe_init_all_fptrs() 63 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *dev) in xgbe_alloc_pdata() 65 struct xgbe_prv_data *pdata; in xgbe_alloc_pdata() 68 netdev = alloc_etherdev_mq(sizeof(struct xgbe_prv_data), in xgbe_alloc_pdata() 94 void xgbe_free_pdata(struct xgbe_prv_data *pdata) in xgbe_free_pdata() 101 void xgbe_set_counts(struct xgbe_prv_data *pdata) in xgbe_set_counts() 152 int xgbe_config_netdev(struct xgbe_prv_data *pdata) in xgbe_config_netdev() 305 void xgbe_deconfig_netdev(struct xgbe_prv_data *pdata) in xgbe_deconfig_netdev() 323 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_netdev_event()
|
| H A D | xgbe-selftest.c | 27 int (*fn)(struct xgbe_prv_data *pdata); 108 static int __xgbe_test_loopback(struct xgbe_prv_data *pdata, in __xgbe_test_loopback() 155 static int xgbe_test_mac_loopback(struct xgbe_prv_data *pdata) in xgbe_test_mac_loopback() 163 static int xgbe_test_phy_loopback(struct xgbe_prv_data *pdata) in xgbe_test_phy_loopback() 184 static int xgbe_test_sph(struct xgbe_prv_data *pdata) in xgbe_test_sph() 226 static int xgbe_test_jumbo(struct xgbe_prv_data *pdata) in xgbe_test_jumbo() 260 struct xgbe_prv_data *pdata = netdev_priv(dev); in xgbe_selftest_run() 334 void xgbe_selftest_get_strings(struct xgbe_prv_data *pdata, u8 *data) in xgbe_selftest_get_strings() 343 int xgbe_selftest_get_count(struct xgbe_prv_data *pdata) in xgbe_selftest_get_count()
|
| H A D | xgbe-dcb.c | 17 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getets() 38 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setets() 104 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getpfc() 121 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setpfc() 155 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_setdcbx()
|
| H A D | xgbe-desc.c | 11 static void xgbe_unmap_rdata(struct xgbe_prv_data *, struct xgbe_ring_data *); 13 static void xgbe_free_ring(struct xgbe_prv_data *pdata, in xgbe_free_ring() 63 static void xgbe_free_ring_resources(struct xgbe_prv_data *pdata) in xgbe_free_ring_resources() 106 static int xgbe_init_ring(struct xgbe_prv_data *pdata, in xgbe_init_ring() 137 static int xgbe_alloc_ring_resources(struct xgbe_prv_data *pdata) in xgbe_alloc_ring_resources() 176 static int xgbe_alloc_pages(struct xgbe_prv_data *pdata, in xgbe_alloc_pages() 247 static int xgbe_map_rx_buffer(struct xgbe_prv_data *pdata, in xgbe_map_rx_buffer() 282 static void xgbe_wrapper_tx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_tx_descriptor_init() 323 static void xgbe_wrapper_rx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_rx_descriptor_init() 366 static void xgbe_unmap_rdata(struct xgbe_prv_data *pdata, in xgbe_unmap_rdata() [all …]
|
| H A D | xgbe-pci.c | 17 static int xgbe_config_multi_msi(struct xgbe_prv_data *pdata) in xgbe_config_multi_msi() 56 static int xgbe_config_irqs(struct xgbe_prv_data *pdata) in xgbe_config_irqs() 105 struct xgbe_prv_data *pdata; in xgbe_pci_probe() 343 struct xgbe_prv_data *pdata = pci_get_drvdata(pdev); in xgbe_pci_remove() 357 struct xgbe_prv_data *pdata = dev_get_drvdata(dev); in xgbe_pci_suspend() 373 struct xgbe_prv_data *pdata = dev_get_drvdata(dev); in xgbe_pci_resume()
|
| H A D | xgbe-pps.c | 28 int xgbe_pps_config(struct xgbe_prv_data *pdata, in xgbe_pps_config()
|