/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac.h | 67 struct stmmac_priv *priv_data; 100 struct stmmac_priv *priv; 106 struct stmmac_priv *priv; 112 struct stmmac_priv *priv; 123 struct stmmac_priv *priv_data; 144 struct stmmac_priv *priv_data; 264 struct stmmac_priv { struct 285 int (*hwif_quirks)(struct stmmac_priv *priv); argument 407 int stmmac_init_tstamp_counter(struct stmmac_priv *priv, u32 systime_flags); argument 408 void stmmac_ptp_register(struct stmmac_priv *priv); [all …]
|
D | stmmac_ptp.c | 26 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 …]
|
D | hwif.h | 30 struct stmmac_priv; 182 void (*init_chan)(struct stmmac_priv *priv, void __iomem *ioaddr, 184 void (*init_rx_chan)(struct stmmac_priv *priv, void __iomem *ioaddr, 187 void (*init_tx_chan)(struct stmmac_priv *priv, void __iomem *ioaddr, 193 void (*dump_regs)(struct stmmac_priv *priv, void __iomem *ioaddr, 195 void (*dma_rx_mode)(struct stmmac_priv *priv, void __iomem *ioaddr, 198 void (*dma_tx_mode)(struct stmmac_priv *priv, void __iomem *ioaddr, 204 void (*enable_dma_irq)(struct stmmac_priv *priv, void __iomem *ioaddr, 206 void (*disable_dma_irq)(struct stmmac_priv *priv, void __iomem *ioaddr, 208 void (*start_tx)(struct stmmac_priv *priv, void __iomem *ioaddr, [all …]
|
D | dwmac4_dma.h | 237 void dwmac4_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, 239 void dwmac410_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, 241 void dwmac4_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, 243 void dwmac410_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, 245 void dwmac4_dma_start_tx(struct stmmac_priv *priv, void __iomem *ioaddr, 247 void dwmac4_dma_stop_tx(struct stmmac_priv *priv, void __iomem *ioaddr, 249 void dwmac4_dma_start_rx(struct stmmac_priv *priv, void __iomem *ioaddr, 251 void dwmac4_dma_stop_rx(struct stmmac_priv *priv, void __iomem *ioaddr, 253 int dwmac4_dma_interrupt(struct stmmac_priv *priv, void __iomem *ioaddr, 255 void dwmac4_set_rx_ring_len(struct stmmac_priv *priv, void __iomem *ioaddr, [all …]
|
D | dwmac4_lib.c | 29 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 …]
|
D | dwxgmac2_dma.c | 36 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 …]
|
D | stmmac_ethtool.c | 47 offsetof(struct stmmac_priv, xstats.m)} 188 offsetof(struct stmmac_priv, mmc.m)} 304 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_getdrvinfo() 323 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_get_link_ksettings() 410 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_set_link_ksettings() 431 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_getmsglevel() 437 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_setmsglevel() 444 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_get_regs_len() 456 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_ethtool_gregs() 477 struct stmmac_priv *priv = netdev_priv(dev); in stmmac_nway_reset() [all …]
|
D | stmmac_tc.c | 28 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() 332 static int tc_setup_cbs(struct stmmac_priv *priv, in tc_setup_cbs() 420 static int tc_parse_flow_actions(struct stmmac_priv *priv, in tc_parse_flow_actions() [all …]
|
D | stmmac_selftests.c | 59 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 …]
|
D | dwmac_dma.h | 181 void dwmac_enable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, 183 void dwmac_disable_dma_irq(struct stmmac_priv *priv, void __iomem *ioaddr, 185 void dwmac_dma_start_tx(struct stmmac_priv *priv, void __iomem *ioaddr, 187 void dwmac_dma_stop_tx(struct stmmac_priv *priv, void __iomem *ioaddr, 189 void dwmac_dma_start_rx(struct stmmac_priv *priv, void __iomem *ioaddr, 191 void dwmac_dma_stop_rx(struct stmmac_priv *priv, void __iomem *ioaddr, 193 int dwmac_dma_interrupt(struct stmmac_priv *priv, void __iomem *ioaddr,
|
D | stmmac_main.c | 134 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 …]
|
D | stmmac_mdio.c | 48 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 …]
|
D | hwif.c | 12 static u32 stmmac_get_id(struct stmmac_priv *priv, u32 id_reg) in stmmac_get_id() 27 static u32 stmmac_get_dev_id(struct stmmac_priv *priv, u32 id_reg) in stmmac_get_dev_id() 39 static void stmmac_dwmac_mode_quirk(struct stmmac_priv *priv) in stmmac_dwmac_mode_quirk() 54 static int stmmac_dwmac1_quirks(struct stmmac_priv *priv) in stmmac_dwmac1_quirks() 79 static int stmmac_dwmac4_quirks(struct stmmac_priv *priv) in stmmac_dwmac4_quirks() 85 static int stmmac_dwxlgmac_quirks(struct stmmac_priv *priv) in stmmac_dwxlgmac_quirks() 91 int stmmac_reset(struct stmmac_priv *priv, void __iomem *ioaddr) in stmmac_reset() 119 int (*setup)(struct stmmac_priv *priv); 120 int (*quirks)(struct stmmac_priv *priv); 284 int stmmac_hwif_init(struct stmmac_priv *priv) in stmmac_hwif_init()
|
D | dwmac-sun8i.c | 308 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 …]
|
D | dwmac_lib.c | 36 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()
|
D | dwmac1000_dma.c | 73 static void dwmac1000_dma_init_channel(struct stmmac_priv *priv, in dwmac1000_dma_init_channel() 115 static void dwmac1000_dma_init_rx(struct stmmac_priv *priv, in dwmac1000_dma_init_rx() 124 static void dwmac1000_dma_init_tx(struct stmmac_priv *priv, in dwmac1000_dma_init_tx() 154 static void dwmac1000_dma_operation_mode_rx(struct stmmac_priv *priv, in dwmac1000_dma_operation_mode_rx() 183 static void dwmac1000_dma_operation_mode_tx(struct stmmac_priv *priv, in dwmac1000_dma_operation_mode_tx() 217 static void dwmac1000_dump_dma_regs(struct stmmac_priv *priv, in dwmac1000_dump_dma_regs() 273 static void dwmac1000_rx_watchdog(struct stmmac_priv *priv, in dwmac1000_rx_watchdog()
|
D | dwmac100_dma.c | 32 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()
|
D | dwmac4_dma.c | 72 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() 244 static void dwmac4_dump_dma_regs(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_dump_dma_regs() 253 static void dwmac4_rx_watchdog(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_rx_watchdog() 261 static void dwmac4_dma_rx_chan_op_mode(struct stmmac_priv *priv, in dwmac4_dma_rx_chan_op_mode() 330 static void dwmac4_dma_tx_chan_op_mode(struct stmmac_priv *priv, in dwmac4_dma_tx_chan_op_mode() 480 static void dwmac4_enable_tso(struct stmmac_priv *priv, void __iomem *ioaddr, in dwmac4_enable_tso() [all …]
|
D | stmmac_xdp.c | 9 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()
|
D | dwmac-rzn1.c | 16 static int rzn1_dwmac_pcs_init(struct stmmac_priv *priv) in rzn1_dwmac_pcs_init() 36 static void rzn1_dwmac_pcs_exit(struct stmmac_priv *priv) in rzn1_dwmac_pcs_exit() 42 static struct phylink_pcs *rzn1_dwmac_select_pcs(struct stmmac_priv *priv, in rzn1_dwmac_select_pcs()
|
D | dwmac-socfpga.c | 237 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_get_plat_phymode() 382 static int socfpga_dwmac_pcs_init(struct stmmac_priv *priv) in socfpga_dwmac_pcs_init() 426 static void socfpga_dwmac_pcs_exit(struct stmmac_priv *priv) in socfpga_dwmac_pcs_exit() 432 static struct phylink_pcs *socfpga_dwmac_select_pcs(struct stmmac_priv *priv, in socfpga_dwmac_select_pcs() 446 struct stmmac_priv *stpriv; in socfpga_dwmac_probe() 518 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_dwmac_resume() 548 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_dwmac_runtime_suspend() 558 struct stmmac_priv *priv = netdev_priv(ndev); in socfpga_dwmac_runtime_resume()
|
D | stmmac_xdp.h | 10 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,
|
D | common.h | 620 int dwmac100_setup(struct stmmac_priv *priv); 621 int dwmac1000_setup(struct stmmac_priv *priv); 622 int dwmac4_setup(struct stmmac_priv *priv); 623 int dwxgmac2_setup(struct stmmac_priv *priv); 624 int dwxlgmac2_setup(struct stmmac_priv *priv);
|
D | ring_mode.c | 21 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()
|
/linux-6.12.1/include/linux/ |
D | stmmac.h | 79 struct stmmac_priv; 237 void (*ptp_clk_freq_config)(struct stmmac_priv *priv); 245 int (*pcs_init)(struct stmmac_priv *priv); 246 void (*pcs_exit)(struct stmmac_priv *priv); 247 struct phylink_pcs *(*select_pcs)(struct stmmac_priv *priv,
|