Home
last modified time | relevance | path

Searched refs:stmmac_priv (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/
Dstmmac.h65 struct stmmac_priv *priv_data;
98 struct stmmac_priv *priv;
110 struct stmmac_priv *priv_data;
131 struct stmmac_priv *priv_data;
211 struct stmmac_priv { struct
232 int (*hwif_quirks)(struct stmmac_priv *priv); argument
349 int stmmac_init_tstamp_counter(struct stmmac_priv *priv, u32 systime_flags); argument
350 void stmmac_ptp_register(struct stmmac_priv *priv);
351 void stmmac_ptp_unregister(struct stmmac_priv *priv);
360 void stmmac_disable_eee_mode(struct stmmac_priv *priv);
[all …]
Dstmmac_ptp.c26 struct stmmac_priv *priv = in stmmac_adjust_freq()
27 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_freq()
50 struct stmmac_priv *priv = in stmmac_adjust_time()
51 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_adjust_time()
126 struct stmmac_priv *priv = in stmmac_get_time()
127 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_get_time()
152 struct stmmac_priv *priv = in stmmac_set_time()
153 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_set_time()
166 struct stmmac_priv *priv = in stmmac_enable()
167 container_of(ptp, struct stmmac_priv, ptp_clock_ops); in stmmac_enable()
[all …]
Ddwmac4_dma.h235 void dwmac4_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr,
237 void dwmac410_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr,
239 void dwmac4_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr,
241 void dwmac410_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr,
243 void dwmac4_dma_start_tx(struct stmmac_priv *priv, void __iomem *ioaddr,
245 void dwmac4_dma_stop_tx(struct stmmac_priv *priv, void __iomem *ioaddr,
247 void dwmac4_dma_start_rx(struct stmmac_priv *priv, void __iomem *ioaddr,
249 void dwmac4_dma_stop_rx(struct stmmac_priv *priv, void __iomem *ioaddr,
251 int dwmac4_dma_interrupt(struct stmmac_priv *priv, void __iomem *ioaddr,
253 void dwmac4_set_rx_ring_len(struct stmmac_priv *priv, void __iomem *ioaddr,
[all …]
Dhwif.h29 struct stmmac_priv;
172 void (*init_chan)(struct stmmac_priv *priv, void __iomem *ioaddr,
174 void (*init_rx_chan)(struct stmmac_priv *priv, void __iomem *ioaddr,
177 void (*init_tx_chan)(struct stmmac_priv *priv, void __iomem *ioaddr,
183 void (*dump_regs)(struct stmmac_priv *priv, void __iomem *ioaddr,
185 void (*dma_rx_mode)(struct stmmac_priv *priv, void __iomem *ioaddr,
188 void (*dma_tx_mode)(struct stmmac_priv *priv, void __iomem *ioaddr,
194 void (*enable_dma_irq)(struct stmmac_priv *priv, void __iomem *ioaddr,
196 void (*disable_dma_irq)(struct stmmac_priv *priv, void __iomem *ioaddr,
198 void (*start_tx)(struct stmmac_priv *priv, void __iomem *ioaddr,
[all …]
Ddwmac4_lib.c29 void dwmac4_set_rx_tail_ptr(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_set_rx_tail_ptr()
37 void dwmac4_set_tx_tail_ptr(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_set_tx_tail_ptr()
45 void dwmac4_dma_start_tx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_dma_start_tx()
59 void dwmac4_dma_stop_tx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_dma_stop_tx()
70 void dwmac4_dma_start_rx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_dma_start_rx()
86 void dwmac4_dma_stop_rx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_dma_stop_rx()
96 void dwmac4_set_tx_ring_len(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_set_tx_ring_len()
104 void dwmac4_set_rx_ring_len(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_set_rx_ring_len()
112 void dwmac4_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_enable_dma_irq()
126 void dwmac410_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac410_enable_dma_irq()
[all …]
Ddwxgmac2_dma.c36 static void dwxgmac2_dma_init_chan(struct stmmac_priv *priv, in dwxgmac2_dma_init_chan()
49 static void dwxgmac2_dma_init_rx_chan(struct stmmac_priv *priv, in dwxgmac2_dma_init_rx_chan()
66 static void dwxgmac2_dma_init_tx_chan(struct stmmac_priv *priv, in dwxgmac2_dma_init_tx_chan()
137 static void dwxgmac2_dma_dump_regs(struct stmmac_priv *priv, in dwxgmac2_dma_dump_regs()
146 static void dwxgmac2_dma_rx_mode(struct stmmac_priv *priv, void __iomem *ioaddr, in dwxgmac2_dma_rx_mode()
212 static void dwxgmac2_dma_tx_mode(struct stmmac_priv *priv, void __iomem *ioaddr, in dwxgmac2_dma_tx_mode()
255 static void dwxgmac2_enable_dma_irq(struct stmmac_priv *priv, in dwxgmac2_enable_dma_irq()
269 static void dwxgmac2_disable_dma_irq(struct stmmac_priv *priv, in dwxgmac2_disable_dma_irq()
283 static void dwxgmac2_dma_start_tx(struct stmmac_priv *priv, in dwxgmac2_dma_start_tx()
297 static void dwxgmac2_dma_stop_tx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwxgmac2_dma_stop_tx()
[all …]
Ddwmac_dma.h156 void dwmac_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr,
158 void dwmac_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr,
160 void dwmac_dma_start_tx(struct stmmac_priv *priv, void __iomem *ioaddr,
162 void dwmac_dma_stop_tx(struct stmmac_priv *priv, void __iomem *ioaddr,
164 void dwmac_dma_start_rx(struct stmmac_priv *priv, void __iomem *ioaddr,
166 void dwmac_dma_stop_rx(struct stmmac_priv *priv, void __iomem *ioaddr,
168 int dwmac_dma_interrupt(struct stmmac_priv *priv, void __iomem *ioaddr,
Dstmmac_ethtool.c46 offsetof(struct stmmac_priv, xstats.m)}
187 offsetof(struct stmmac_priv, mmc.m)}
293 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_getdrvinfo()
312 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_get_link_ksettings()
398 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_set_link_ksettings()
418 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_getmsglevel()
424 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_setmsglevel()
438 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_get_regs_len()
450 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_gregs()
471 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_nway_reset()
[all …]
Dstmmac_selftests.c59 static struct sk_buff *stmmac_test_get_udp_skb(struct stmmac_priv *priv, in stmmac_test_get_udp_skb()
219 static struct sk_buff *stmmac_test_get_arp_skb(struct stmmac_priv *priv, in stmmac_test_get_arp_skb()
320 static int __stmmac_test_loopback(struct stmmac_priv *priv, in __stmmac_test_loopback()
369 static int stmmac_test_mac_loopback(struct stmmac_priv *priv) in stmmac_test_mac_loopback()
377 static int stmmac_test_phy_loopback(struct stmmac_priv *priv) in stmmac_test_phy_loopback()
396 static int stmmac_test_mmc(struct stmmac_priv *priv) in stmmac_test_mmc()
428 static int stmmac_test_eee(struct stmmac_priv *priv) in stmmac_test_eee()
487 static int stmmac_filter_check(struct stmmac_priv *priv) in stmmac_filter_check()
496 static bool stmmac_hash_check(struct stmmac_priv *priv, unsigned char *addr) in stmmac_hash_check()
518 static bool stmmac_perfect_check(struct stmmac_priv *priv, unsigned char *addr) in stmmac_perfect_check()
[all …]
Dstmmac_mdio.c48 static void stmmac_xgmac2_c45_format(struct stmmac_priv *priv, int phyaddr, in stmmac_xgmac2_c45_format()
62 static void stmmac_xgmac2_c22_format(struct stmmac_priv *priv, int phyaddr, in stmmac_xgmac2_c22_format()
81 static int stmmac_xgmac2_mdio_read(struct stmmac_priv *priv, u32 addr, in stmmac_xgmac2_mdio_read()
135 struct stmmac_priv *priv; in stmmac_xgmac2_mdio_read_c22()
154 struct stmmac_priv *priv; in stmmac_xgmac2_mdio_read_c45()
164 static int stmmac_xgmac2_mdio_write(struct stmmac_priv *priv, u32 addr, in stmmac_xgmac2_mdio_write()
213 struct stmmac_priv *priv; in stmmac_xgmac2_mdio_write_c22()
233 struct stmmac_priv *priv; in stmmac_xgmac2_mdio_write_c45()
244 static int stmmac_mdio_read(struct stmmac_priv *priv, int data, u32 value) in stmmac_mdio_read()
278 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_mdio_read_c22()
[all …]
Dstmmac_main.c134 static void stmmac_reset_rx_queue(struct stmmac_priv *priv, u32 queue);
135 static void stmmac_reset_tx_queue(struct stmmac_priv *priv, u32 queue);
136 static void stmmac_reset_queues_param(struct stmmac_priv *priv);
137 static void stmmac_tx_timer_arm(struct stmmac_priv *priv, u32 queue);
138 static void stmmac_flush_tx_descriptors(struct stmmac_priv *priv, int queue);
139 static void stmmac_set_dma_operation_mode(struct stmmac_priv *priv, u32 txmode,
150 int stmmac_bus_clks_config(struct stmmac_priv *priv, bool enabled) in stmmac_bus_clks_config()
203 static void __stmmac_disable_all_queues(struct stmmac_priv *priv) in __stmmac_disable_all_queues()
230 static void stmmac_disable_all_queues(struct stmmac_priv *priv) in stmmac_disable_all_queues()
252 static void stmmac_enable_all_queues(struct stmmac_priv *priv) in stmmac_enable_all_queues()
[all …]
Dstmmac_tc.c28 static struct stmmac_tc_entry *tc_find_entry(struct stmmac_priv *priv, in tc_find_entry()
91 static int tc_fill_entry(struct stmmac_priv *priv, in tc_fill_entry()
171 static void tc_unfill_entry(struct stmmac_priv *priv, in tc_unfill_entry()
188 static int tc_config_knode(struct stmmac_priv *priv, in tc_config_knode()
209 static int tc_delete_knode(struct stmmac_priv *priv, in tc_delete_knode()
219 static int tc_setup_cls_u32(struct stmmac_priv *priv, in tc_setup_cls_u32()
235 static int tc_rfs_init(struct stmmac_priv *priv) in tc_rfs_init()
259 static int tc_init(struct stmmac_priv *priv) in tc_init()
342 static int tc_setup_cbs(struct stmmac_priv *priv, in tc_setup_cbs()
428 static int tc_parse_flow_actions(struct stmmac_priv *priv, in tc_parse_flow_actions()
[all …]
Dhwif.c11 static u32 stmmac_get_id(struct stmmac_priv *priv, u32 id_reg) in stmmac_get_id()
26 static u32 stmmac_get_dev_id(struct stmmac_priv *priv, u32 id_reg) in stmmac_get_dev_id()
38 static void stmmac_dwmac_mode_quirk(struct stmmac_priv *priv) in stmmac_dwmac_mode_quirk()
53 static int stmmac_dwmac1_quirks(struct stmmac_priv *priv) in stmmac_dwmac1_quirks()
78 static int stmmac_dwmac4_quirks(struct stmmac_priv *priv) in stmmac_dwmac4_quirks()
84 static int stmmac_dwxlgmac_quirks(struct stmmac_priv *priv) in stmmac_dwxlgmac_quirks()
90 int stmmac_reset(struct stmmac_priv *priv, void __iomem *ioaddr) in stmmac_reset()
117 int (*setup)(struct stmmac_priv *priv);
118 int (*quirks)(struct stmmac_priv *priv);
270 int stmmac_hwif_init(struct stmmac_priv *priv) in stmmac_hwif_init()
Ddwmac_lib.c36 void dwmac_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac_enable_dma_irq()
49 void dwmac_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac_disable_dma_irq()
62 void dwmac_dma_start_tx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac_dma_start_tx()
70 void dwmac_dma_stop_tx(struct stmmac_priv *priv, void __iomem *ioaddr, u32 chan) in dwmac_dma_stop_tx()
77 void dwmac_dma_start_rx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac_dma_start_rx()
85 void dwmac_dma_stop_rx(struct stmmac_priv *priv, void __iomem *ioaddr, u32 chan) in dwmac_dma_stop_rx()
162 int dwmac_dma_interrupt(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac_dma_interrupt()
Ddwmac-sun8i.c308 static void sun8i_dwmac_dma_init_rx(struct stmmac_priv *priv, in sun8i_dwmac_dma_init_rx()
317 static void sun8i_dwmac_dma_init_tx(struct stmmac_priv *priv, in sun8i_dwmac_dma_init_tx()
330 static void sun8i_dwmac_dump_regs(struct stmmac_priv *priv, in sun8i_dwmac_dump_regs()
359 static void sun8i_dwmac_enable_dma_irq(struct stmmac_priv *priv, in sun8i_dwmac_enable_dma_irq()
373 static void sun8i_dwmac_disable_dma_irq(struct stmmac_priv *priv, in sun8i_dwmac_disable_dma_irq()
387 static void sun8i_dwmac_dma_start_tx(struct stmmac_priv *priv, in sun8i_dwmac_dma_start_tx()
408 static void sun8i_dwmac_dma_stop_tx(struct stmmac_priv *priv, in sun8i_dwmac_dma_stop_tx()
418 static void sun8i_dwmac_dma_start_rx(struct stmmac_priv *priv, in sun8i_dwmac_dma_start_rx()
429 static void sun8i_dwmac_dma_stop_rx(struct stmmac_priv *priv, in sun8i_dwmac_dma_stop_rx()
439 static int sun8i_dwmac_dma_interrupt(struct stmmac_priv *priv, in sun8i_dwmac_dma_interrupt()
[all …]
Ddwmac100_dma.c32 static void dwmac100_dma_init_rx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac100_dma_init_rx()
40 static void dwmac100_dma_init_tx(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac100_dma_init_tx()
53 static void dwmac100_dma_operation_mode_tx(struct stmmac_priv *priv, in dwmac100_dma_operation_mode_tx()
69 static void dwmac100_dump_dma_regs(struct stmmac_priv *priv, in dwmac100_dump_dma_regs()
Ddwmac4_dma.c72 static void dwmac4_dma_init_rx_chan(struct stmmac_priv *priv, in dwmac4_dma_init_rx_chan()
93 static void dwmac4_dma_init_tx_chan(struct stmmac_priv *priv, in dwmac4_dma_init_tx_chan()
118 static void dwmac4_dma_init_channel(struct stmmac_priv *priv, in dwmac4_dma_init_channel()
136 static void dwmac410_dma_init_channel(struct stmmac_priv *priv, in dwmac410_dma_init_channel()
190 static void _dwmac4_dump_dma_regs(struct stmmac_priv *priv, in _dwmac4_dump_dma_regs()
236 static void dwmac4_dump_dma_regs(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_dump_dma_regs()
245 static void dwmac4_rx_watchdog(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_rx_watchdog()
253 static void dwmac4_dma_rx_chan_op_mode(struct stmmac_priv *priv, in dwmac4_dma_rx_chan_op_mode()
322 static void dwmac4_dma_tx_chan_op_mode(struct stmmac_priv *priv, in dwmac4_dma_tx_chan_op_mode()
472 static void dwmac4_enable_tso(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_enable_tso()
[all …]
Ddwmac1000_dma.c113 static void dwmac1000_dma_init_rx(struct stmmac_priv *priv, in dwmac1000_dma_init_rx()
122 static void dwmac1000_dma_init_tx(struct stmmac_priv *priv, in dwmac1000_dma_init_tx()
152 static void dwmac1000_dma_operation_mode_rx(struct stmmac_priv *priv, in dwmac1000_dma_operation_mode_rx()
181 static void dwmac1000_dma_operation_mode_tx(struct stmmac_priv *priv, in dwmac1000_dma_operation_mode_tx()
215 static void dwmac1000_dump_dma_regs(struct stmmac_priv *priv, in dwmac1000_dump_dma_regs()
271 static void dwmac1000_rx_watchdog(struct stmmac_priv *priv, in dwmac1000_rx_watchdog()
Dstmmac_xdp.c9 static int stmmac_xdp_enable_pool(struct stmmac_priv *priv, in stmmac_xdp_enable_pool()
58 static int stmmac_xdp_disable_pool(struct stmmac_priv *priv, u16 queue) in stmmac_xdp_disable_pool()
95 int stmmac_xdp_setup_pool(struct stmmac_priv *priv, struct xsk_buff_pool *pool, in stmmac_xdp_setup_pool()
102 int stmmac_xdp_set_prog(struct stmmac_priv *priv, struct bpf_prog *prog, in stmmac_xdp_set_prog()
Dstmmac_xdp.h10 int stmmac_xdp_setup_pool(struct stmmac_priv *priv, struct xsk_buff_pool *pool,
12 int stmmac_xdp_set_prog(struct stmmac_priv *priv, struct bpf_prog *prog,
Dcommon.h590 int dwmac100_setup(struct stmmac_priv *priv);
591 int dwmac1000_setup(struct stmmac_priv *priv);
592 int dwmac4_setup(struct stmmac_priv *priv);
593 int dwxgmac2_setup(struct stmmac_priv *priv);
594 int dwxlgmac2_setup(struct stmmac_priv *priv);
Dring_mode.c21 struct stmmac_priv *priv = tx_q->priv_data; in jumbo_frm()
106 struct stmmac_priv *priv = rx_q->priv_data; in refill_desc3()
121 struct stmmac_priv *priv = tx_q->priv_data; in clean_desc3()
Dchain_mode.c21 struct stmmac_priv *priv = tx_q->priv_data; in jumbo_frm()
130 struct stmmac_priv *priv = rx_q->priv_data; in refill_desc3()
145 struct stmmac_priv *priv = tx_q->priv_data; in clean_desc3()
Ddwmac-socfpga.c237 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_get_plat_phymode()
390 struct stmmac_priv *stpriv; in socfpga_dwmac_probe()
504 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_dwmac_remove()
516 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_dwmac_resume()
546 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_dwmac_runtime_suspend()
556 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_dwmac_runtime_resume()
Dstmmac_platform.c845 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_pltfr_remove_no_dt()
862 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_pltfr_remove()
881 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_pltfr_suspend()
900 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_pltfr_resume()
914 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_runtime_suspend()
924 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_runtime_resume()
932 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_pltfr_noirq_suspend()
953 struct stmmac_priv *priv = netdev_priv(ndev); in stmmac_pltfr_noirq_resume()

12