Lines Matching defs:eth

153 void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg)  in mtk_w32()
158 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32()
163 static u32 mtk_m32(struct mtk_eth *eth, u32 mask, u32 set, unsigned reg) in mtk_m32()
174 static int mtk_mdio_busy_wait(struct mtk_eth *eth) in mtk_mdio_busy_wait()
190 static int _mtk_mdio_write(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg, in _mtk_mdio_write()
236 static int _mtk_mdio_read(struct mtk_eth *eth, u32 phy_addr, u32 phy_reg) in _mtk_mdio_read()
282 struct mtk_eth *eth = bus->priv; in mtk_mdio_write() local
289 struct mtk_eth *eth = bus->priv; in mtk_mdio_read() local
294 static int mt7621_gmac0_rgmii_adjust(struct mtk_eth *eth, in mt7621_gmac0_rgmii_adjust()
319 static void mtk_gmac0_rgmii_adjust(struct mtk_eth *eth, in mtk_gmac0_rgmii_adjust()
361 struct mtk_eth *eth = mac->hw; in mtk_mac_select_pcs() local
380 struct mtk_eth *eth = mac->hw; in mtk_mac_config() local
528 struct mtk_eth *eth = mac->hw; in mtk_mac_finish() local
642 static int mtk_mdio_init(struct mtk_eth *eth) in mtk_mdio_init()
679 static void mtk_mdio_cleanup(struct mtk_eth *eth) in mtk_mdio_cleanup()
687 static inline void mtk_tx_irq_disable(struct mtk_eth *eth, u32 mask) in mtk_tx_irq_disable()
698 static inline void mtk_tx_irq_enable(struct mtk_eth *eth, u32 mask) in mtk_tx_irq_enable()
709 static inline void mtk_rx_irq_disable(struct mtk_eth *eth, u32 mask) in mtk_rx_irq_disable()
720 static inline void mtk_rx_irq_enable(struct mtk_eth *eth, u32 mask) in mtk_rx_irq_enable()
735 struct mtk_eth *eth = mac->hw; in mtk_set_mac_address() local
766 struct mtk_eth *eth = mac->hw; in mtk_stats_update_mac() local
816 static void mtk_stats_update(struct mtk_eth *eth) in mtk_stats_update()
884 static bool mtk_rx_get_desc(struct mtk_eth *eth, struct mtk_rx_dma_v2 *rxd, in mtk_rx_get_desc()
914 static int mtk_init_fq_dma(struct mtk_eth *eth) in mtk_init_fq_dma()
992 static void mtk_tx_unmap(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, in mtk_tx_unmap()
1034 static void setup_tx_buf(struct mtk_eth *eth, struct mtk_tx_buf *tx_buf, in setup_tx_buf()
1061 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc_v1() local
1091 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc_v2() local
1131 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc() local
1153 struct mtk_eth *eth = mac->hw; in mtk_tx_map() local
1290 static int mtk_cal_txd_req(struct mtk_eth *eth, struct sk_buff *skb) in mtk_cal_txd_req()
1308 static int mtk_queue_stopped(struct mtk_eth *eth) in mtk_queue_stopped()
1322 static void mtk_wake_queue(struct mtk_eth *eth) in mtk_wake_queue()
1336 struct mtk_eth *eth = mac->hw; in mtk_start_xmit() local
1392 static struct mtk_rx_ring *mtk_get_rx_ring(struct mtk_eth *eth) in mtk_get_rx_ring()
1416 static void mtk_update_rx_cpu_idx(struct mtk_eth *eth) in mtk_update_rx_cpu_idx()
1436 struct mtk_eth *eth) in mtk_poll_rx()
1596 static int mtk_poll_tx_qdma(struct mtk_eth *eth, int budget, in mtk_poll_tx_qdma()
1647 static int mtk_poll_tx_pdma(struct mtk_eth *eth, int budget, in mtk_poll_tx_pdma()
1685 static int mtk_poll_tx(struct mtk_eth *eth, int budget) in mtk_poll_tx()
1721 static void mtk_handle_status_irq(struct mtk_eth *eth) in mtk_handle_status_irq()
1734 struct mtk_eth *eth = container_of(napi, struct mtk_eth, tx_napi); in mtk_napi_tx() local
1764 struct mtk_eth *eth = container_of(napi, struct mtk_eth, rx_napi); in mtk_napi_rx() local
1797 static int mtk_tx_alloc(struct mtk_eth *eth) in mtk_tx_alloc()
1880 static void mtk_tx_clean(struct mtk_eth *eth) in mtk_tx_clean()
1908 static int mtk_rx_alloc(struct mtk_eth *eth, int ring_no, int rx_flag) in mtk_rx_alloc()
2014 static void mtk_rx_clean(struct mtk_eth *eth, struct mtk_rx_ring *ring) in mtk_rx_clean()
2045 static int mtk_hwlro_rx_init(struct mtk_eth *eth) in mtk_hwlro_rx_init()
2105 static void mtk_hwlro_rx_uninit(struct mtk_eth *eth) in mtk_hwlro_rx_uninit()
2131 static void mtk_hwlro_val_ipaddr(struct mtk_eth *eth, int idx, __be32 ip) in mtk_hwlro_val_ipaddr()
2146 static void mtk_hwlro_inval_ipaddr(struct mtk_eth *eth, int idx) in mtk_hwlro_inval_ipaddr()
2177 struct mtk_eth *eth = mac->hw; in mtk_hwlro_add_ipaddr() local
2201 struct mtk_eth *eth = mac->hw; in mtk_hwlro_del_ipaddr() local
2220 struct mtk_eth *eth = mac->hw; in mtk_hwlro_netdev_disable() local
2311 static int mtk_dma_busy_wait(struct mtk_eth *eth) in mtk_dma_busy_wait()
2331 static int mtk_dma_init(struct mtk_eth *eth) in mtk_dma_init()
2385 static void mtk_dma_free(struct mtk_eth *eth) in mtk_dma_free()
2416 struct mtk_eth *eth = mac->hw; in mtk_tx_timeout() local
2426 struct mtk_eth *eth = _eth; in mtk_handle_irq_rx() local
2439 struct mtk_eth *eth = _eth; in mtk_handle_irq_tx() local
2452 struct mtk_eth *eth = _eth; in mtk_handle_irq() local
2473 struct mtk_eth *eth = mac->hw; in mtk_poll_controller() local
2483 static int mtk_start_dma(struct mtk_eth *eth) in mtk_start_dma()
2522 static void mtk_gdm_config(struct mtk_eth *eth, u32 config) in mtk_gdm_config()
2553 struct mtk_eth *eth = mac->hw; in mtk_open() local
2590 static void mtk_stop_dma(struct mtk_eth *eth, u32 glo_cfg) in mtk_stop_dma()
2616 struct mtk_eth *eth = mac->hw; in mtk_stop() local
2650 static void ethsys_reset(struct mtk_eth *eth, u32 reset_bits) in ethsys_reset()
2663 static void mtk_clk_disable(struct mtk_eth *eth) in mtk_clk_disable()
2671 static int mtk_clk_enable(struct mtk_eth *eth) in mtk_clk_enable()
2693 struct mtk_eth *eth = container_of(dim, struct mtk_eth, rx_dim); in mtk_dim_rx() local
2724 struct mtk_eth *eth = container_of(dim, struct mtk_eth, tx_dim); in mtk_dim_tx() local
2752 static int mtk_hw_init(struct mtk_eth *eth) in mtk_hw_init()
2898 static int mtk_hw_deinit(struct mtk_eth *eth) in mtk_hw_deinit()
2914 struct mtk_eth *eth = mac->hw; in mtk_init() local
2931 struct mtk_eth *eth = mac->hw; in mtk_uninit() local
2942 struct mtk_eth *eth = mac->hw; in mtk_change_mtu() local
2985 struct mtk_eth *eth = container_of(work, struct mtk_eth, pending_work); in mtk_pending_work() local
3035 static int mtk_free_dev(struct mtk_eth *eth) in mtk_free_dev()
3048 static int mtk_unreg_dev(struct mtk_eth *eth) in mtk_unreg_dev()
3061 static int mtk_cleanup(struct mtk_eth *eth) in mtk_cleanup()
3274 static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) in mtk_add_mac()
3402 void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev) in mtk_eth_set_dma_device()
3434 struct mtk_eth *eth; in mtk_probe() local
3654 struct mtk_eth *eth = platform_get_drvdata(pdev); in mtk_remove() local