Lines Matching refs:mtk_eth

176 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg)  in mtk_w32()
181 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32()
186 static u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) in mtk_m32()
197 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait()
213 static int _mtk_mdio_write(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg, in _mtk_mdio_write()
259 static int _mtk_mdio_read(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg) in _mtk_mdio_read()
305 struct mtk_eth *eth = bus->priv; in mtk_mdio_write()
312 struct mtk_eth *eth = bus->priv; in mtk_mdio_read()
317 static int mt7621_gmac0_rgmii_adjust(struct mtk_eth *eth, in mt7621_gmac0_rgmii_adjust()
342 static void mtk_gmac0_rgmii_adjust(struct mtk_eth *eth, in mtk_gmac0_rgmii_adjust()
384 struct mtk_eth *eth = mac->hw; in mtk_mac_select_pcs()
403 struct mtk_eth *eth = mac->hw; in mtk_mac_config()
551 struct mtk_eth *eth = mac->hw; in mtk_mac_finish()
665 static int mtk_mdio_init(struct mtk_eth *eth) in mtk_mdio_init()
702 static void mtk_mdio_cleanup(struct mtk_eth *eth) in mtk_mdio_cleanup()
710 static inline void mtk_tx_irq_disable(struct mtk_eth *eth, u32 mask) in mtk_tx_irq_disable()
721 static inline void mtk_tx_irq_enable(struct mtk_eth *eth, u32 mask) in mtk_tx_irq_enable()
732 static inline void mtk_rx_irq_disable(struct mtk_eth *eth, u32 mask) in mtk_rx_irq_disable()
743 static inline void mtk_rx_irq_enable(struct mtk_eth *eth, u32 mask) in mtk_rx_irq_enable()
758 struct mtk_eth *eth = mac->hw; in mtk_set_mac_address()
789 struct mtk_eth *eth = mac->hw; in mtk_stats_update_mac()
839 static void mtk_stats_update(struct mtk_eth *eth) in mtk_stats_update()
907 static bool mtk_rx_get_desc(struct mtk_eth *eth, struct mtk_rx_dma_v2 *rxd, in mtk_rx_get_desc()
937 static int mtk_init_fq_dma(struct mtk_eth *eth) in mtk_init_fq_dma()
1015 static void mtk_tx_unmap(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, in mtk_tx_unmap()
1069 static void setup_tx_buf(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, in setup_tx_buf()
1096 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc_v1()
1126 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc_v2()
1166 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc()
1188 struct mtk_eth *eth = mac->hw; in mtk_tx_map()
1326 static int mtk_cal_txd_req(struct mtk_eth *eth, struct sk_buff *skb) in mtk_cal_txd_req()
1344 static int mtk_queue_stopped(struct mtk_eth *eth) in mtk_queue_stopped()
1358 static void mtk_wake_queue(struct mtk_eth *eth) in mtk_wake_queue()
1372 struct mtk_eth *eth = mac->hw; in mtk_start_xmit()
1428 static struct mtk_rx_ring *mtk_get_rx_ring(struct mtk_eth *eth) in mtk_get_rx_ring()
1452 static void mtk_update_rx_cpu_idx(struct mtk_eth *eth) in mtk_update_rx_cpu_idx()
1471 static bool mtk_page_pool_enabled(struct mtk_eth *eth) in mtk_page_pool_enabled()
1476 static struct page_pool *mtk_create_page_pool(struct mtk_eth *eth, in mtk_create_page_pool()
1539 static int mtk_xdp_frame_map(struct mtk_eth *eth, struct net_device *dev, in mtk_xdp_frame_map()
1576 static int mtk_xdp_submit_frame(struct mtk_eth *eth, struct xdp_frame *xdpf, in mtk_xdp_submit_frame()
1698 struct mtk_eth *eth = mac->hw; in mtk_xdp_xmit()
1718 static u32 mtk_xdp_run(struct mtk_eth *eth, struct mtk_rx_ring *ring, in mtk_xdp_run()
1782 struct mtk_eth *eth) in mtk_poll_rx()
1989 static int mtk_poll_tx_qdma(struct mtk_eth *eth, int budget, in mtk_poll_tx_qdma()
2045 static int mtk_poll_tx_pdma(struct mtk_eth *eth, int budget, in mtk_poll_tx_pdma()
2087 static int mtk_poll_tx(struct mtk_eth *eth, int budget) in mtk_poll_tx()
2123 static void mtk_handle_status_irq(struct mtk_eth *eth) in mtk_handle_status_irq()
2136 struct mtk_eth *eth = container_of(napi, struct mtk_eth, tx_napi); in mtk_napi_tx()
2166 struct mtk_eth *eth = container_of(napi, struct mtk_eth, rx_napi); in mtk_napi_rx()
2199 static int mtk_tx_alloc(struct mtk_eth *eth) in mtk_tx_alloc()
2282 static void mtk_tx_clean(struct mtk_eth *eth) in mtk_tx_clean()
2310 static int mtk_rx_alloc(struct mtk_eth *eth, int ring_no, int rx_flag) in mtk_rx_alloc()
2438 static void mtk_rx_clean(struct mtk_eth *eth, struct mtk_rx_ring *ring) in mtk_rx_clean()
2476 static int mtk_hwlro_rx_init(struct mtk_eth *eth) in mtk_hwlro_rx_init()
2536 static void mtk_hwlro_rx_uninit(struct mtk_eth *eth) in mtk_hwlro_rx_uninit()
2562 static void mtk_hwlro_val_ipaddr(struct mtk_eth *eth, int idx, __be32 ip) in mtk_hwlro_val_ipaddr()
2577 static void mtk_hwlro_inval_ipaddr(struct mtk_eth *eth, int idx) in mtk_hwlro_inval_ipaddr()
2608 struct mtk_eth *eth = mac->hw; in mtk_hwlro_add_ipaddr()
2632 struct mtk_eth *eth = mac->hw; in mtk_hwlro_del_ipaddr()
2651 struct mtk_eth *eth = mac->hw; in mtk_hwlro_netdev_disable()
2742 static int mtk_dma_busy_wait(struct mtk_eth *eth) in mtk_dma_busy_wait()
2762 static int mtk_dma_init(struct mtk_eth *eth) in mtk_dma_init()
2816 static void mtk_dma_free(struct mtk_eth *eth) in mtk_dma_free()
2847 struct mtk_eth *eth = mac->hw; in mtk_tx_timeout()
2857 struct mtk_eth *eth = _eth; in mtk_handle_irq_rx()
2870 struct mtk_eth *eth = _eth; in mtk_handle_irq_tx()
2883 struct mtk_eth *eth = _eth; in mtk_handle_irq()
2904 struct mtk_eth *eth = mac->hw; in mtk_poll_controller()
2914 static int mtk_start_dma(struct mtk_eth *eth) in mtk_start_dma()
2953 static void mtk_gdm_config(struct mtk_eth *eth, u32 config) in mtk_gdm_config()
2984 struct mtk_eth *eth = mac->hw; in mtk_open()
3027 static void mtk_stop_dma(struct mtk_eth *eth, u32 glo_cfg) in mtk_stop_dma()
3053 struct mtk_eth *eth = mac->hw; in mtk_stop()
3092 struct mtk_eth *eth = mac->hw; in mtk_xdp_setup()
3130 static void ethsys_reset(struct mtk_eth *eth, u32 reset_bits) in ethsys_reset()
3143 static void mtk_clk_disable(struct mtk_eth *eth) in mtk_clk_disable()
3151 static int mtk_clk_enable(struct mtk_eth *eth) in mtk_clk_enable()
3173 struct mtk_eth *eth = container_of(dim, struct mtk_eth, rx_dim); in mtk_dim_rx()
3204 struct mtk_eth *eth = container_of(dim, struct mtk_eth, tx_dim); in mtk_dim_tx()
3232 static int mtk_hw_init(struct mtk_eth *eth) in mtk_hw_init()
3378 static int mtk_hw_deinit(struct mtk_eth *eth) in mtk_hw_deinit()
3394 struct mtk_eth *eth = mac->hw; in mtk_init()
3411 struct mtk_eth *eth = mac->hw; in mtk_uninit()
3422 struct mtk_eth *eth = mac->hw; in mtk_change_mtu()
3471 struct mtk_eth *eth = container_of(work, struct mtk_eth, pending_work); in mtk_pending_work()
3521 static int mtk_free_dev(struct mtk_eth *eth) in mtk_free_dev()
3534 static int mtk_unreg_dev(struct mtk_eth *eth) in mtk_unreg_dev()
3547 static int mtk_cleanup(struct mtk_eth *eth) in mtk_cleanup()
3652 static void mtk_ethtool_pp_stats(struct mtk_eth *eth, u64 *data) in mtk_ethtool_pp_stats()
3793 static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) in mtk_add_mac()
3921 void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev) in mtk_eth_set_dma_device()
3954 struct mtk_eth *eth; in mtk_probe()
4199 struct mtk_eth *eth = platform_get_drvdata(pdev); in mtk_remove()