Lines Matching defs:eth
60 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg) in mtk_w32()
65 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32()
70 static u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) in mtk_m32()
81 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait()
97 static u32 _mtk_mdio_write(struct mtk_eth *eth, u32 phy_addr, in _mtk_mdio_write()
116 static u32 _mtk_mdio_read(struct mtk_eth *eth, int phy_addr, int phy_reg) in _mtk_mdio_read()
139 struct mtk_eth *eth = bus->priv; in mtk_mdio_write() local
146 struct mtk_eth *eth = bus->priv; in mtk_mdio_read() local
151 static int mt7621_gmac0_rgmii_adjust(struct mtk_eth *eth, in mt7621_gmac0_rgmii_adjust()
176 static void mtk_gmac0_rgmii_adjust(struct mtk_eth *eth, in mtk_gmac0_rgmii_adjust()
218 struct mtk_eth *eth = mac->hw; in mtk_mac_config() local
561 static int mtk_mdio_init(struct mtk_eth *eth) in mtk_mdio_init()
597 static void mtk_mdio_cleanup(struct mtk_eth *eth) in mtk_mdio_cleanup()
605 static inline void mtk_tx_irq_disable(struct mtk_eth *eth, u32 mask) in mtk_tx_irq_disable()
616 static inline void mtk_tx_irq_enable(struct mtk_eth *eth, u32 mask) in mtk_tx_irq_enable()
627 static inline void mtk_rx_irq_disable(struct mtk_eth *eth, u32 mask) in mtk_rx_irq_disable()
638 static inline void mtk_rx_irq_enable(struct mtk_eth *eth, u32 mask) in mtk_rx_irq_enable()
653 struct mtk_eth *eth = mac->hw; in mtk_set_mac_address() local
684 struct mtk_eth *eth = mac->hw; in mtk_stats_update_mac() local
734 static void mtk_stats_update(struct mtk_eth *eth) in mtk_stats_update()
817 static int mtk_init_fq_dma(struct mtk_eth *eth) in mtk_init_fq_dma()
888 static void mtk_tx_unmap(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, in mtk_tx_unmap()
930 static void setup_tx_buf(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, in setup_tx_buf()
957 struct mtk_eth *eth = mac->hw; in mtk_tx_map() local
1136 static int mtk_queue_stopped(struct mtk_eth *eth) in mtk_queue_stopped()
1150 static void mtk_wake_queue(struct mtk_eth *eth) in mtk_wake_queue()
1164 struct mtk_eth *eth = mac->hw; in mtk_start_xmit() local
1220 static struct mtk_rx_ring *mtk_get_rx_ring(struct mtk_eth *eth) in mtk_get_rx_ring()
1241 static void mtk_update_rx_cpu_idx(struct mtk_eth *eth) in mtk_update_rx_cpu_idx()
1261 struct mtk_eth *eth) in mtk_poll_rx()
1391 static int mtk_poll_tx_qdma(struct mtk_eth *eth, int budget, in mtk_poll_tx_qdma()
1440 static int mtk_poll_tx_pdma(struct mtk_eth *eth, int budget, in mtk_poll_tx_pdma()
1478 static int mtk_poll_tx(struct mtk_eth *eth, int budget) in mtk_poll_tx()
1514 static void mtk_handle_status_irq(struct mtk_eth *eth) in mtk_handle_status_irq()
1527 struct mtk_eth *eth = container_of(napi, struct mtk_eth, tx_napi); in mtk_napi_tx() local
1556 struct mtk_eth *eth = container_of(napi, struct mtk_eth, rx_napi); in mtk_napi_rx() local
1586 static int mtk_tx_alloc(struct mtk_eth *eth) in mtk_tx_alloc()
1660 static void mtk_tx_clean(struct mtk_eth *eth) in mtk_tx_clean()
1689 static int mtk_rx_alloc(struct mtk_eth *eth, int ring_no, int rx_flag) in mtk_rx_alloc()
1763 static void mtk_rx_clean(struct mtk_eth *eth, struct mtk_rx_ring *ring) in mtk_rx_clean()
1792 static int mtk_hwlro_rx_init(struct mtk_eth *eth) in mtk_hwlro_rx_init()
1852 static void mtk_hwlro_rx_uninit(struct mtk_eth *eth) in mtk_hwlro_rx_uninit()
1878 static void mtk_hwlro_val_ipaddr(struct mtk_eth *eth, int idx, __be32 ip) in mtk_hwlro_val_ipaddr()
1893 static void mtk_hwlro_inval_ipaddr(struct mtk_eth *eth, int idx) in mtk_hwlro_inval_ipaddr()
1924 struct mtk_eth *eth = mac->hw; in mtk_hwlro_add_ipaddr() local
1948 struct mtk_eth *eth = mac->hw; in mtk_hwlro_del_ipaddr() local
1967 struct mtk_eth *eth = mac->hw; in mtk_hwlro_netdev_disable() local
2055 static int mtk_dma_busy_wait(struct mtk_eth *eth) in mtk_dma_busy_wait()
2075 static int mtk_dma_init(struct mtk_eth *eth) in mtk_dma_init()
2129 static void mtk_dma_free(struct mtk_eth *eth) in mtk_dma_free()
2160 struct mtk_eth *eth = mac->hw; in mtk_tx_timeout() local
2170 struct mtk_eth *eth = _eth; in mtk_handle_irq_rx() local
2183 struct mtk_eth *eth = _eth; in mtk_handle_irq_tx() local
2196 struct mtk_eth *eth = _eth; in mtk_handle_irq() local
2214 struct mtk_eth *eth = mac->hw; in mtk_poll_controller() local
2224 static int mtk_start_dma(struct mtk_eth *eth) in mtk_start_dma()
2256 static void mtk_gdm_config(struct mtk_eth *eth, u32 config) in mtk_gdm_config()
2287 struct mtk_eth *eth = mac->hw; in mtk_open() local
2325 static void mtk_stop_dma(struct mtk_eth *eth, u32 glo_cfg) in mtk_stop_dma()
2351 struct mtk_eth *eth = mac->hw; in mtk_stop() local
2385 static void ethsys_reset(struct mtk_eth *eth, u32 reset_bits) in ethsys_reset()
2398 static void mtk_clk_disable(struct mtk_eth *eth) in mtk_clk_disable()
2406 static int mtk_clk_enable(struct mtk_eth *eth) in mtk_clk_enable()
2428 struct mtk_eth *eth = container_of(dim, struct mtk_eth, rx_dim); in mtk_dim_rx() local
2458 struct mtk_eth *eth = container_of(dim, struct mtk_eth, tx_dim); in mtk_dim_tx() local
2485 static int mtk_hw_init(struct mtk_eth *eth) in mtk_hw_init()
2572 static int mtk_hw_deinit(struct mtk_eth *eth) in mtk_hw_deinit()
2588 struct mtk_eth *eth = mac->hw; in mtk_init() local
2605 struct mtk_eth *eth = mac->hw; in mtk_uninit() local
2616 struct mtk_eth *eth = mac->hw; in mtk_change_mtu() local
2659 struct mtk_eth *eth = container_of(work, struct mtk_eth, pending_work); in mtk_pending_work() local
2709 static int mtk_free_dev(struct mtk_eth *eth) in mtk_free_dev()
2722 static int mtk_unreg_dev(struct mtk_eth *eth) in mtk_unreg_dev()
2735 static int mtk_cleanup(struct mtk_eth *eth) in mtk_cleanup()
2948 static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) in mtk_add_mac()
3055 struct mtk_eth *eth; in mtk_probe() local
3259 struct mtk_eth *eth = platform_get_drvdata(pdev); in mtk_remove() local