Home
last modified time | relevance | path

Searched refs:xgbe_prv_data (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/amd/xgbe/
Dxgbe.h349 struct xgbe_prv_data;
500 struct xgbe_prv_data *pdata;
759 int (*set_mac_address)(struct xgbe_prv_data *, const u8 *addr);
760 int (*config_rx_mode)(struct xgbe_prv_data *);
762 int (*enable_rx_csum)(struct xgbe_prv_data *);
763 int (*disable_rx_csum)(struct xgbe_prv_data *);
765 int (*enable_rx_vlan_stripping)(struct xgbe_prv_data *);
766 int (*disable_rx_vlan_stripping)(struct xgbe_prv_data *);
767 int (*enable_rx_vlan_filtering)(struct xgbe_prv_data *);
768 int (*disable_rx_vlan_filtering)(struct xgbe_prv_data *);
[all …]
Dxgbe-mdio.c129 static int xgbe_phy_module_eeprom(struct xgbe_prv_data *pdata, in xgbe_phy_module_eeprom()
138 static int xgbe_phy_module_info(struct xgbe_prv_data *pdata, in xgbe_phy_module_info()
147 static void xgbe_an37_clear_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_clear_interrupts()
156 static void xgbe_an37_disable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_disable_interrupts()
169 static void xgbe_an37_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an37_enable_interrupts()
182 static void xgbe_an73_clear_interrupts(struct xgbe_prv_data *pdata) in xgbe_an73_clear_interrupts()
187 static void xgbe_an73_disable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an73_disable_interrupts()
192 static void xgbe_an73_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an73_enable_interrupts()
197 static void xgbe_an_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_an_enable_interrupts()
213 static void xgbe_an_clear_interrupts_all(struct xgbe_prv_data *pdata) in xgbe_an_clear_interrupts_all()
[all …]
Dxgbe-i2c.c144 static int xgbe_i2c_abort(struct xgbe_prv_data *pdata) in xgbe_i2c_abort()
164 static int xgbe_i2c_set_enable(struct xgbe_prv_data *pdata, bool enable) in xgbe_i2c_set_enable()
180 static int xgbe_i2c_disable(struct xgbe_prv_data *pdata) in xgbe_i2c_disable()
198 static int xgbe_i2c_enable(struct xgbe_prv_data *pdata) in xgbe_i2c_enable()
203 static void xgbe_i2c_clear_all_interrupts(struct xgbe_prv_data *pdata) in xgbe_i2c_clear_all_interrupts()
208 static void xgbe_i2c_disable_interrupts(struct xgbe_prv_data *pdata) in xgbe_i2c_disable_interrupts()
213 static void xgbe_i2c_enable_interrupts(struct xgbe_prv_data *pdata) in xgbe_i2c_enable_interrupts()
218 static void xgbe_i2c_write(struct xgbe_prv_data *pdata) in xgbe_i2c_write()
246 static void xgbe_i2c_read(struct xgbe_prv_data *pdata) in xgbe_i2c_read()
263 static void xgbe_i2c_clear_isr_interrupts(struct xgbe_prv_data *pdata, in xgbe_i2c_clear_isr_interrupts()
[all …]
Dxgbe-ptp.c127 struct xgbe_prv_data *pdata = container_of(cc, in xgbe_cc_read()
128 struct xgbe_prv_data, in xgbe_cc_read()
139 struct xgbe_prv_data *pdata = container_of(info, in xgbe_adjfreq()
140 struct xgbe_prv_data, in xgbe_adjfreq()
170 struct xgbe_prv_data *pdata = container_of(info, in xgbe_adjtime()
171 struct xgbe_prv_data, in xgbe_adjtime()
184 struct xgbe_prv_data *pdata = container_of(info, in xgbe_gettime()
185 struct xgbe_prv_data, in xgbe_gettime()
204 struct xgbe_prv_data *pdata = container_of(info, in xgbe_settime()
205 struct xgbe_prv_data, in xgbe_settime()
[all …]
Dxgbe-debugfs.c177 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_read()
186 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_addr_write()
195 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_read()
207 struct xgbe_prv_data *pdata = filp->private_data; in xgmac_reg_value_write()
237 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_read()
245 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_mmd_write()
254 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_addr_read()
262 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_addr_write()
271 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_value_read()
284 struct xgbe_prv_data *pdata = filp->private_data; in xpcs_reg_value_write()
[all …]
Dxgbe-dev.c127 static inline unsigned int xgbe_get_max_frame(struct xgbe_prv_data *pdata) in xgbe_get_max_frame()
132 static unsigned int xgbe_usec_to_riwt(struct xgbe_prv_data *pdata, in xgbe_usec_to_riwt()
155 static unsigned int xgbe_riwt_to_usec(struct xgbe_prv_data *pdata, in xgbe_riwt_to_usec()
178 static int xgbe_config_pbl_val(struct xgbe_prv_data *pdata) in xgbe_config_pbl_val()
207 static int xgbe_config_osp_mode(struct xgbe_prv_data *pdata) in xgbe_config_osp_mode()
222 static int xgbe_config_rsf_mode(struct xgbe_prv_data *pdata, unsigned int val) in xgbe_config_rsf_mode()
232 static int xgbe_config_tsf_mode(struct xgbe_prv_data *pdata, unsigned int val) in xgbe_config_tsf_mode()
242 static int xgbe_config_rx_threshold(struct xgbe_prv_data *pdata, in xgbe_config_rx_threshold()
253 static int xgbe_config_tx_threshold(struct xgbe_prv_data *pdata, in xgbe_config_tx_threshold()
264 static int xgbe_config_rx_coalesce(struct xgbe_prv_data *pdata) in xgbe_config_rx_coalesce()
[all …]
Dxgbe-phy-v1.c222 static void xgbe_phy_kr_training_pre(struct xgbe_prv_data *pdata) in xgbe_phy_kr_training_pre()
227 static void xgbe_phy_kr_training_post(struct xgbe_prv_data *pdata) in xgbe_phy_kr_training_post()
232 static enum xgbe_mode xgbe_phy_an_outcome(struct xgbe_prv_data *pdata) in xgbe_phy_an_outcome()
299 static void xgbe_phy_an_advertising(struct xgbe_prv_data *pdata, in xgbe_phy_an_advertising()
307 static int xgbe_phy_an_config(struct xgbe_prv_data *pdata) in xgbe_phy_an_config()
313 static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata) in xgbe_phy_an_mode()
318 static void xgbe_phy_pcs_power_cycle(struct xgbe_prv_data *pdata) in xgbe_phy_pcs_power_cycle()
333 static void xgbe_phy_start_ratechange(struct xgbe_prv_data *pdata) in xgbe_phy_start_ratechange()
339 static void xgbe_phy_complete_ratechange(struct xgbe_prv_data *pdata) in xgbe_phy_complete_ratechange()
367 static void xgbe_phy_kr_mode(struct xgbe_prv_data *pdata) in xgbe_phy_kr_mode()
[all …]
Dxgbe-phy-v2.c389 static enum xgbe_an_mode xgbe_phy_an_mode(struct xgbe_prv_data *pdata);
391 static int xgbe_phy_i2c_xfer(struct xgbe_prv_data *pdata, in xgbe_phy_i2c_xfer()
397 static int xgbe_phy_redrv_write(struct xgbe_prv_data *pdata, unsigned int reg, in xgbe_phy_redrv_write()
459 static int xgbe_phy_i2c_write(struct xgbe_prv_data *pdata, unsigned int target, in xgbe_phy_i2c_write()
479 static int xgbe_phy_i2c_read(struct xgbe_prv_data *pdata, unsigned int target, in xgbe_phy_i2c_read()
515 static int xgbe_phy_sfp_put_mux(struct xgbe_prv_data *pdata) in xgbe_phy_sfp_put_mux()
534 static int xgbe_phy_sfp_get_mux(struct xgbe_prv_data *pdata) in xgbe_phy_sfp_get_mux()
553 static void xgbe_phy_put_comm_ownership(struct xgbe_prv_data *pdata) in xgbe_phy_put_comm_ownership()
558 static int xgbe_phy_get_comm_ownership(struct xgbe_prv_data *pdata) in xgbe_phy_get_comm_ownership()
602 static int xgbe_phy_mdio_mii_write(struct xgbe_prv_data *pdata, int addr, in xgbe_phy_mdio_mii_write()
[all …]
Dxgbe-platform.c140 static struct xgbe_version_data *xgbe_acpi_vdata(struct xgbe_prv_data *pdata) in xgbe_acpi_vdata()
149 static int xgbe_acpi_support(struct xgbe_prv_data *pdata) in xgbe_acpi_support()
176 static struct xgbe_version_data *xgbe_acpi_vdata(struct xgbe_prv_data *pdata) in xgbe_acpi_vdata()
181 static int xgbe_acpi_support(struct xgbe_prv_data *pdata) in xgbe_acpi_support()
190 static struct xgbe_version_data *xgbe_of_vdata(struct xgbe_prv_data *pdata) in xgbe_of_vdata()
199 static int xgbe_of_support(struct xgbe_prv_data *pdata) in xgbe_of_support()
222 static struct platform_device *xgbe_of_get_phy_pdev(struct xgbe_prv_data *pdata) in xgbe_of_get_phy_pdev()
247 static struct xgbe_version_data *xgbe_of_vdata(struct xgbe_prv_data *pdata) in xgbe_of_vdata()
252 static int xgbe_of_support(struct xgbe_prv_data *pdata) in xgbe_of_support()
257 static struct platform_device *xgbe_of_get_phy_pdev(struct xgbe_prv_data *pdata) in xgbe_of_get_phy_pdev()
[all …]
Dxgbe-drv.c159 static void xgbe_stop(struct xgbe_prv_data *);
172 static void xgbe_free_channels(struct xgbe_prv_data *pdata) in xgbe_free_channels()
190 static int xgbe_alloc_channels(struct xgbe_prv_data *pdata) in xgbe_alloc_channels()
276 struct xgbe_prv_data *pdata = channel->pdata; in xgbe_maybe_stop_tx_queue()
309 static void xgbe_enable_rx_tx_int(struct xgbe_prv_data *pdata, in xgbe_enable_rx_tx_int()
327 static void xgbe_enable_rx_tx_ints(struct xgbe_prv_data *pdata) in xgbe_enable_rx_tx_ints()
335 static void xgbe_disable_rx_tx_int(struct xgbe_prv_data *pdata, in xgbe_disable_rx_tx_int()
353 static void xgbe_disable_rx_tx_ints(struct xgbe_prv_data *pdata) in xgbe_disable_rx_tx_ints()
361 static bool xgbe_ecc_sec(struct xgbe_prv_data *pdata, unsigned long *period, in xgbe_ecc_sec()
386 static bool xgbe_ecc_ded(struct xgbe_prv_data *pdata, unsigned long *period, in xgbe_ecc_ded()
[all …]
Dxgbe-ethtool.c133 offsetof(struct xgbe_prv_data, mmc_stats._var), \
139 offsetof(struct xgbe_prv_data, ext_stats._var), \
193 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_strings()
222 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ethtool_stats()
243 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_sset_count()
263 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_pauseparam()
273 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_pauseparam()
312 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_link_ksettings()
333 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_link_ksettings()
402 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_drvinfo()
[all …]
Dxgbe-main.c139 static void xgbe_default_config(struct xgbe_prv_data *pdata) in xgbe_default_config()
162 static void xgbe_init_all_fptrs(struct xgbe_prv_data *pdata) in xgbe_init_all_fptrs()
172 struct xgbe_prv_data *xgbe_alloc_pdata(struct device *dev) in xgbe_alloc_pdata()
174 struct xgbe_prv_data *pdata; in xgbe_alloc_pdata()
177 netdev = alloc_etherdev_mq(sizeof(struct xgbe_prv_data), in xgbe_alloc_pdata()
204 void xgbe_free_pdata(struct xgbe_prv_data *pdata) in xgbe_free_pdata()
211 void xgbe_set_counts(struct xgbe_prv_data *pdata) in xgbe_set_counts()
262 int xgbe_config_netdev(struct xgbe_prv_data *pdata) in xgbe_config_netdev()
415 void xgbe_deconfig_netdev(struct xgbe_prv_data *pdata) in xgbe_deconfig_netdev()
433 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_netdev_event()
Dxgbe-dcb.c126 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getets()
147 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setets()
213 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_getpfc()
230 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_ieee_setpfc()
264 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_dcb_setdcbx()
Dxgbe-desc.c120 static void xgbe_unmap_rdata(struct xgbe_prv_data *, struct xgbe_ring_data *);
122 static void xgbe_free_ring(struct xgbe_prv_data *pdata, in xgbe_free_ring()
172 static void xgbe_free_ring_resources(struct xgbe_prv_data *pdata) in xgbe_free_ring_resources()
215 static int xgbe_init_ring(struct xgbe_prv_data *pdata, in xgbe_init_ring()
246 static int xgbe_alloc_ring_resources(struct xgbe_prv_data *pdata) in xgbe_alloc_ring_resources()
285 static int xgbe_alloc_pages(struct xgbe_prv_data *pdata, in xgbe_alloc_pages()
356 static int xgbe_map_rx_buffer(struct xgbe_prv_data *pdata, in xgbe_map_rx_buffer()
386 static void xgbe_wrapper_tx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_tx_descriptor_init()
427 static void xgbe_wrapper_rx_descriptor_init(struct xgbe_prv_data *pdata) in xgbe_wrapper_rx_descriptor_init()
470 static void xgbe_unmap_rdata(struct xgbe_prv_data *pdata, in xgbe_unmap_rdata()
[all …]
Dxgbe-pci.c125 static int xgbe_config_multi_msi(struct xgbe_prv_data *pdata) in xgbe_config_multi_msi()
164 static int xgbe_config_irqs(struct xgbe_prv_data *pdata) in xgbe_config_irqs()
210 struct xgbe_prv_data *pdata; in xgbe_pci_probe()
425 struct xgbe_prv_data *pdata = pci_get_drvdata(pdev); in xgbe_pci_remove()
439 struct xgbe_prv_data *pdata = dev_get_drvdata(dev); in xgbe_pci_suspend()
455 struct xgbe_prv_data *pdata = dev_get_drvdata(dev); in xgbe_pci_resume()