Lines Matching refs:mvneta_port

484 	struct mvneta_port	*pp;
497 struct mvneta_port { struct
762 static void mvreg_write(struct mvneta_port *pp, u32 offset, u32 data) in mvreg_write()
768 static u32 mvreg_read(struct mvneta_port *pp, u32 offset) in mvreg_read()
791 static void mvneta_mib_counters_clear(struct mvneta_port *pp) in mvneta_mib_counters_clear()
807 struct mvneta_port *pp = netdev_priv(dev); in mvneta_get_stats64()
856 static void mvneta_rxq_non_occup_desc_add(struct mvneta_port *pp, in mvneta_rxq_non_occup_desc_add()
875 static int mvneta_rxq_busy_desc_num_get(struct mvneta_port *pp, in mvneta_rxq_busy_desc_num_get()
887 static void mvneta_rxq_desc_num_update(struct mvneta_port *pp, in mvneta_rxq_desc_num_update()
932 static void mvneta_max_rx_size_set(struct mvneta_port *pp, int max_rx_size) in mvneta_max_rx_size_set()
945 static void mvneta_rxq_offset_set(struct mvneta_port *pp, in mvneta_rxq_offset_set()
963 static void mvneta_txq_pend_desc_add(struct mvneta_port *pp, in mvneta_txq_pend_desc_add()
1002 static void mvneta_rxq_buf_size_set(struct mvneta_port *pp, in mvneta_rxq_buf_size_set()
1017 static void mvneta_rxq_bm_disable(struct mvneta_port *pp, in mvneta_rxq_bm_disable()
1028 static void mvneta_rxq_bm_enable(struct mvneta_port *pp, in mvneta_rxq_bm_enable()
1039 static void mvneta_rxq_long_pool_set(struct mvneta_port *pp, in mvneta_rxq_long_pool_set()
1052 static void mvneta_rxq_short_pool_set(struct mvneta_port *pp, in mvneta_rxq_short_pool_set()
1065 static inline void mvneta_bm_pool_bufsize_set(struct mvneta_port *pp, in mvneta_bm_pool_bufsize_set()
1084 static int mvneta_mbus_io_win_set(struct mvneta_port *pp, u32 base, u32 wsize, in mvneta_mbus_io_win_set()
1127 static int mvneta_bm_port_mbus_init(struct mvneta_port *pp) in mvneta_bm_port_mbus_init()
1155 struct mvneta_port *pp) in mvneta_bm_port_init()
1211 static void mvneta_bm_update_mtu(struct mvneta_port *pp, int mtu) in mvneta_bm_update_mtu()
1252 static void mvneta_port_up(struct mvneta_port *pp) in mvneta_port_up()
1278 static void mvneta_port_down(struct mvneta_port *pp) in mvneta_port_down()
1349 static void mvneta_port_enable(struct mvneta_port *pp) in mvneta_port_enable()
1360 static void mvneta_port_disable(struct mvneta_port *pp) in mvneta_port_disable()
1375 static void mvneta_set_ucast_table(struct mvneta_port *pp, int queue) in mvneta_set_ucast_table()
1392 static void mvneta_set_special_mcast_table(struct mvneta_port *pp, int queue) in mvneta_set_special_mcast_table()
1410 static void mvneta_set_other_mcast_table(struct mvneta_port *pp, int queue) in mvneta_set_other_mcast_table()
1430 struct mvneta_port *pp = arg; in mvneta_percpu_unmask_interrupt()
1443 struct mvneta_port *pp = arg; in mvneta_percpu_mask_interrupt()
1455 struct mvneta_port *pp = arg; in mvneta_percpu_clear_intr_cause()
1474 static void mvneta_defaults_set(struct mvneta_port *pp) in mvneta_defaults_set()
1593 static void mvneta_txq_max_tx_size_set(struct mvneta_port *pp, int max_tx_size) in mvneta_txq_max_tx_size_set()
1633 static void mvneta_set_ucast_addr(struct mvneta_port *pp, u8 last_nibble, in mvneta_set_ucast_addr()
1663 static void mvneta_mac_addr_set(struct mvneta_port *pp, in mvneta_mac_addr_set()
1685 static void mvneta_rx_pkts_coal_set(struct mvneta_port *pp, in mvneta_rx_pkts_coal_set()
1695 static void mvneta_rx_time_coal_set(struct mvneta_port *pp, in mvneta_rx_time_coal_set()
1708 static void mvneta_tx_done_pkts_coal_set(struct mvneta_port *pp, in mvneta_tx_done_pkts_coal_set()
1734 static void mvneta_txq_sent_desc_dec(struct mvneta_port *pp, in mvneta_txq_sent_desc_dec()
1752 static int mvneta_txq_sent_desc_num_get(struct mvneta_port *pp, in mvneta_txq_sent_desc_num_get()
1768 static int mvneta_txq_sent_desc_proc(struct mvneta_port *pp, in mvneta_txq_sent_desc_proc()
1813 static void mvneta_rx_error(struct mvneta_port *pp, in mvneta_rx_error()
1845 static int mvneta_rx_csum(struct mvneta_port *pp, u32 status) in mvneta_rx_csum()
1859 static struct mvneta_tx_queue *mvneta_tx_done_policy(struct mvneta_port *pp, in mvneta_tx_done_policy()
1868 static void mvneta_txq_bufs_free(struct mvneta_port *pp, in mvneta_txq_bufs_free()
1913 static void mvneta_txq_done(struct mvneta_port *pp, in mvneta_txq_done()
1935 static int mvneta_rx_refill(struct mvneta_port *pp, in mvneta_rx_refill()
1986 static void mvneta_rxq_drop_pkts(struct mvneta_port *pp, in mvneta_rxq_drop_pkts()
2025 mvneta_update_stats(struct mvneta_port *pp, in mvneta_update_stats()
2041 int mvneta_rx_refill_queue(struct mvneta_port *pp, struct mvneta_rx_queue *rxq) in mvneta_rx_refill_queue()
2072 mvneta_xdp_put_buff(struct mvneta_port *pp, struct mvneta_rx_queue *rxq, in mvneta_xdp_put_buff()
2091 mvneta_xdp_submit_frame(struct mvneta_port *pp, struct mvneta_tx_queue *txq, in mvneta_xdp_submit_frame()
2174 mvneta_xdp_xmit_back(struct mvneta_port *pp, struct xdp_buff *xdp) in mvneta_xdp_xmit_back()
2215 struct mvneta_port *pp = netdev_priv(dev); in mvneta_xdp_xmit()
2257 mvneta_run_xdp(struct mvneta_port *pp, struct mvneta_rx_queue *rxq, in mvneta_run_xdp()
2314 mvneta_swbm_rx_frame(struct mvneta_port *pp, in mvneta_swbm_rx_frame()
2349 mvneta_swbm_add_rx_fragment(struct mvneta_port *pp, in mvneta_swbm_add_rx_fragment()
2395 mvneta_swbm_build_skb(struct mvneta_port *pp, struct page_pool *pool, in mvneta_swbm_build_skb()
2426 struct mvneta_port *pp, int budget, in mvneta_rx_swbm()
2539 struct mvneta_port *pp, int rx_todo, in mvneta_rx_hwbm()
2670 static void mvneta_free_tso_hdrs(struct mvneta_port *pp, in mvneta_free_tso_hdrs()
2686 static int mvneta_alloc_tso_hdrs(struct mvneta_port *pp, in mvneta_alloc_tso_hdrs()
2775 static void mvneta_release_descs(struct mvneta_port *pp, in mvneta_release_descs()
2808 struct mvneta_port *pp = netdev_priv(dev); in mvneta_tx_tso()
2862 static int mvneta_tx_frag_process(struct mvneta_port *pp, struct sk_buff *skb, in mvneta_tx_frag_process()
2913 struct mvneta_port *pp = netdev_priv(dev); in mvneta_tx()
3005 static void mvneta_txq_done_force(struct mvneta_port *pp, in mvneta_txq_done_force()
3023 static void mvneta_tx_done_gbe(struct mvneta_port *pp, u32 cause_tx_done) in mvneta_tx_done_gbe()
3071 static void mvneta_set_special_mcast_addr(struct mvneta_port *pp, in mvneta_set_special_mcast_addr()
3106 static void mvneta_set_other_mcast_addr(struct mvneta_port *pp, in mvneta_set_other_mcast_addr()
3139 static int mvneta_mcast_addr_set(struct mvneta_port *pp, unsigned char *p_addr, in mvneta_mcast_addr_set()
3173 static void mvneta_rx_unicast_promisc_set(struct mvneta_port *pp, in mvneta_rx_unicast_promisc_set()
3202 struct mvneta_port *pp = netdev_priv(dev); in mvneta_set_rx_mode()
3239 struct mvneta_port *pp = (struct mvneta_port *)dev_id; in mvneta_isr()
3258 static void mvneta_link_change(struct mvneta_port *pp) in mvneta_link_change()
3278 struct mvneta_port *pp = netdev_priv(napi->dev); in mvneta_poll()
3347 static int mvneta_create_page_pool(struct mvneta_port *pp, in mvneta_create_page_pool()
3391 static int mvneta_rxq_fill(struct mvneta_port *pp, struct mvneta_rx_queue *rxq, in mvneta_rxq_fill()
3420 static void mvneta_tx_reset(struct mvneta_port *pp) in mvneta_tx_reset()
3432 static void mvneta_rx_reset(struct mvneta_port *pp) in mvneta_rx_reset()
3440 static int mvneta_rxq_sw_init(struct mvneta_port *pp, in mvneta_rxq_sw_init()
3457 static void mvneta_rxq_hw_init(struct mvneta_port *pp, in mvneta_rxq_hw_init()
3490 static int mvneta_rxq_init(struct mvneta_port *pp, in mvneta_rxq_init()
3506 static void mvneta_rxq_deinit(struct mvneta_port *pp, in mvneta_rxq_deinit()
3525 static int mvneta_txq_sw_init(struct mvneta_port *pp, in mvneta_txq_sw_init()
3570 static void mvneta_txq_hw_init(struct mvneta_port *pp, in mvneta_txq_hw_init()
3585 static int mvneta_txq_init(struct mvneta_port *pp, in mvneta_txq_init()
3600 static void mvneta_txq_sw_deinit(struct mvneta_port *pp, in mvneta_txq_sw_deinit()
3622 static void mvneta_txq_hw_deinit(struct mvneta_port *pp, in mvneta_txq_hw_deinit()
3634 static void mvneta_txq_deinit(struct mvneta_port *pp, in mvneta_txq_deinit()
3642 static void mvneta_cleanup_txqs(struct mvneta_port *pp) in mvneta_cleanup_txqs()
3651 static void mvneta_cleanup_rxqs(struct mvneta_port *pp) in mvneta_cleanup_rxqs()
3661 static int mvneta_setup_rxqs(struct mvneta_port *pp) in mvneta_setup_rxqs()
3680 static int mvneta_setup_txqs(struct mvneta_port *pp) in mvneta_setup_txqs()
3697 static int mvneta_comphy_init(struct mvneta_port *pp, phy_interface_t interface) in mvneta_comphy_init()
3708 static int mvneta_config_interface(struct mvneta_port *pp, in mvneta_config_interface()
3746 static void mvneta_start_dev(struct mvneta_port *pp) in mvneta_start_dev()
3787 static void mvneta_stop_dev(struct mvneta_port *pp) in mvneta_stop_dev()
3831 struct mvneta_port *pp = arg; in mvneta_percpu_enable()
3838 struct mvneta_port *pp = arg; in mvneta_percpu_disable()
3846 struct mvneta_port *pp = netdev_priv(dev); in mvneta_change_mtu()
3911 struct mvneta_port *pp = netdev_priv(dev); in mvneta_fix_features()
3924 static void mvneta_get_mac_addr(struct mvneta_port *pp, unsigned char *addr) in mvneta_get_mac_addr()
3941 struct mvneta_port *pp = netdev_priv(dev); in mvneta_set_mac_addr()
3958 static struct mvneta_port *mvneta_pcs_to_port(struct phylink_pcs *pcs) in mvneta_pcs_to_port()
3960 return container_of(pcs, struct mvneta_port, phylink_pcs); in mvneta_pcs_to_port()
3982 struct mvneta_port *pp = mvneta_pcs_to_port(pcs); in mvneta_pcs_get_state()
4011 struct mvneta_port *pp = mvneta_pcs_to_port(pcs); in mvneta_pcs_config()
4064 struct mvneta_port *pp = mvneta_pcs_to_port(pcs); in mvneta_pcs_an_restart()
4084 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_mac_select_pcs()
4093 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_mac_prepare()
4127 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_mac_config()
4183 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_mac_finish()
4209 static void mvneta_set_eee(struct mvneta_port *pp, bool enable) in mvneta_set_eee()
4225 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_mac_link_down()
4248 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_mac_link_up()
4303 static int mvneta_mdio_probe(struct mvneta_port *pp) in mvneta_mdio_probe()
4321 static void mvneta_mdio_remove(struct mvneta_port *pp) in mvneta_mdio_remove()
4330 static void mvneta_percpu_elect(struct mvneta_port *pp) in mvneta_percpu_elect()
4378 struct mvneta_port *pp = hlist_entry_safe(node, struct mvneta_port, in mvneta_cpu_online()
4440 struct mvneta_port *pp = hlist_entry_safe(node, struct mvneta_port, in mvneta_cpu_down_prepare()
4462 struct mvneta_port *pp = hlist_entry_safe(node, struct mvneta_port, in mvneta_cpu_dead()
4480 struct mvneta_port *pp = netdev_priv(dev); in mvneta_open()
4561 struct mvneta_port *pp = netdev_priv(dev); in mvneta_stop()
4596 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ioctl()
4605 struct mvneta_port *pp = netdev_priv(dev); in mvneta_xdp_setup()
4651 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_ethtool_set_link_ksettings()
4661 struct mvneta_port *pp = netdev_priv(ndev); in mvneta_ethtool_get_link_ksettings()
4668 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_nway_reset()
4680 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_set_coalesce()
4707 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_get_coalesce()
4735 struct mvneta_port *pp = netdev_priv(netdev); in mvneta_ethtool_get_ringparam()
4749 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_set_ringparam()
4777 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_get_pauseparam()
4785 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_set_pauseparam()
4794 struct mvneta_port *pp = netdev_priv(netdev); in mvneta_ethtool_get_strings()
4809 mvneta_ethtool_update_pcpu_stats(struct mvneta_port *pp, in mvneta_ethtool_update_pcpu_stats()
4853 static void mvneta_ethtool_update_stats(struct mvneta_port *pp) in mvneta_ethtool_update_stats()
4917 static void mvneta_ethtool_pp_stats(struct mvneta_port *pp, u64 *data) in mvneta_ethtool_pp_stats()
4933 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_get_stats()
4949 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_get_sset_count()
4980 static int mvneta_config_rss(struct mvneta_port *pp) in mvneta_config_rss()
5038 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_set_rxfh()
5063 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_get_rxfh()
5082 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_get_wol()
5090 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_set_wol()
5103 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_get_eee()
5119 struct mvneta_port *pp = netdev_priv(dev); in mvneta_ethtool_set_eee()
5141 static void mvneta_clear_rx_prio_map(struct mvneta_port *pp) in mvneta_clear_rx_prio_map()
5146 static void mvneta_map_vlan_prio_to_rxq(struct mvneta_port *pp, u8 pri, u8 rxq) in mvneta_map_vlan_prio_to_rxq()
5156 static int mvneta_enable_per_queue_rate_limit(struct mvneta_port *pp) in mvneta_enable_per_queue_rate_limit()
5183 static void mvneta_disable_per_queue_rate_limit(struct mvneta_port *pp) in mvneta_disable_per_queue_rate_limit()
5191 static int mvneta_setup_queue_rates(struct mvneta_port *pp, int queue, in mvneta_setup_queue_rates()
5222 struct mvneta_port *pp = netdev_priv(dev); in mvneta_setup_mqprio()
5342 static int mvneta_init(struct device *dev, struct mvneta_port *pp) in mvneta_init()
5388 static void mvneta_conf_mbus_windows(struct mvneta_port *pp, in mvneta_conf_mbus_windows()
5440 static int mvneta_port_power_up(struct mvneta_port *pp, int phy_mode) in mvneta_port_power_up()
5459 struct mvneta_port *pp; in mvneta_probe()
5470 dev = devm_alloc_etherdev_mqs(&pdev->dev, sizeof(struct mvneta_port), in mvneta_probe()
5745 struct mvneta_port *pp = netdev_priv(dev); in mvneta_remove()
5768 struct mvneta_port *pp = netdev_priv(dev); in mvneta_suspend()
5812 struct mvneta_port *pp = netdev_priv(dev); in mvneta_resume()