Lines Matching defs: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() local
312 struct mtk_eth *eth = bus->priv; in mtk_mdio_read() local
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() local
403 struct mtk_eth *eth = mac->hw; in mtk_mac_config() local
551 struct mtk_eth *eth = mac->hw; in mtk_mac_finish() local
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() local
789 struct mtk_eth *eth = mac->hw; in mtk_stats_update_mac() local
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() local
1126 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc_v2() local
1166 struct mtk_eth *eth = mac->hw; in mtk_tx_set_dma_desc() local
1188 struct mtk_eth *eth = mac->hw; in mtk_tx_map() local
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() local
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() local
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() local
2166 struct mtk_eth *eth = container_of(napi, struct mtk_eth, rx_napi); in mtk_napi_rx() local
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() local
2632 struct mtk_eth *eth = mac->hw; in mtk_hwlro_del_ipaddr() local
2651 struct mtk_eth *eth = mac->hw; in mtk_hwlro_netdev_disable() local
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() local
2857 struct mtk_eth *eth = _eth; in mtk_handle_irq_rx() local
2870 struct mtk_eth *eth = _eth; in mtk_handle_irq_tx() local
2883 struct mtk_eth *eth = _eth; in mtk_handle_irq() local
2904 struct mtk_eth *eth = mac->hw; in mtk_poll_controller() local
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() local
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() local
3092 struct mtk_eth *eth = mac->hw; in mtk_xdp_setup() local
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() local
3204 struct mtk_eth *eth = container_of(dim, struct mtk_eth, tx_dim); in mtk_dim_tx() local
3234 struct mtk_eth *eth = mac->hw; in mtk_set_mcr_max_rx() local
3256 static int mtk_hw_init(struct mtk_eth *eth) in mtk_hw_init()
3414 static int mtk_hw_deinit(struct mtk_eth *eth) in mtk_hw_deinit()
3430 struct mtk_eth *eth = mac->hw; in mtk_init() local
3447 struct mtk_eth *eth = mac->hw; in mtk_uninit() local
3458 struct mtk_eth *eth = mac->hw; in mtk_change_mtu() local
3490 struct mtk_eth *eth = container_of(work, struct mtk_eth, pending_work); in mtk_pending_work() local
3540 static int mtk_free_dev(struct mtk_eth *eth) in mtk_free_dev()
3553 static int mtk_unreg_dev(struct mtk_eth *eth) in mtk_unreg_dev()
3566 static int mtk_cleanup(struct mtk_eth *eth) in mtk_cleanup()
3671 static void mtk_ethtool_pp_stats(struct mtk_eth *eth, u64 *data) in mtk_ethtool_pp_stats()
3812 static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np) in mtk_add_mac()
3940 void mtk_eth_set_dma_device(struct mtk_eth *eth, struct device *dma_dev) in mtk_eth_set_dma_device()
3973 struct mtk_eth *eth; in mtk_probe() local
4218 struct mtk_eth *eth = platform_get_drvdata(pdev); in mtk_remove() local