Lines Matching refs:mvpp2_port
149 static dma_addr_t mvpp2_txdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_get()
159 static void mvpp2_txdesc_dma_addr_set(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_set()
180 static size_t mvpp2_txdesc_size_get(struct mvpp2_port *port, in mvpp2_txdesc_size_get()
189 static void mvpp2_txdesc_size_set(struct mvpp2_port *port, in mvpp2_txdesc_size_set()
199 static void mvpp2_txdesc_txq_set(struct mvpp2_port *port, in mvpp2_txdesc_txq_set()
209 static void mvpp2_txdesc_cmd_set(struct mvpp2_port *port, in mvpp2_txdesc_cmd_set()
219 static unsigned int mvpp2_txdesc_offset_get(struct mvpp2_port *port, in mvpp2_txdesc_offset_get()
228 static dma_addr_t mvpp2_rxdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_rxdesc_dma_addr_get()
238 static unsigned long mvpp2_rxdesc_cookie_get(struct mvpp2_port *port, in mvpp2_rxdesc_cookie_get()
248 static size_t mvpp2_rxdesc_size_get(struct mvpp2_port *port, in mvpp2_rxdesc_size_get()
257 static u32 mvpp2_rxdesc_status_get(struct mvpp2_port *port, in mvpp2_rxdesc_status_get()
273 static void mvpp2_txq_inc_put(struct mvpp2_port *port, in mvpp2_txq_inc_put()
290 static inline int mvpp2_egress_port(struct mvpp2_port *port) in mvpp2_egress_port()
557 static void mvpp2_rxq_long_pool_set(struct mvpp2_port *port, in mvpp2_rxq_long_pool_set()
578 static void mvpp2_rxq_short_pool_set(struct mvpp2_port *port, in mvpp2_rxq_short_pool_set()
598 static void *mvpp2_buf_alloc(struct mvpp2_port *port, in mvpp2_buf_alloc()
625 static inline void mvpp2_bm_pool_put(struct mvpp2_port *port, int pool, in mvpp2_bm_pool_put()
661 static int mvpp2_bm_bufs_add(struct mvpp2_port *port, in mvpp2_bm_bufs_add()
707 mvpp2_bm_pool_use(struct mvpp2_port *port, unsigned pool, int pkt_size) in mvpp2_bm_pool_use()
754 static int mvpp2_swf_bm_pool_init(struct mvpp2_port *port) in mvpp2_swf_bm_pool_init()
803 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_bm_update_mtu()
851 static inline void mvpp2_interrupts_enable(struct mvpp2_port *port) in mvpp2_interrupts_enable()
862 static inline void mvpp2_interrupts_disable(struct mvpp2_port *port) in mvpp2_interrupts_disable()
875 struct mvpp2_port *port = qvec->port; in mvpp2_qvec_interrupt_enable()
883 struct mvpp2_port *port = qvec->port; in mvpp2_qvec_interrupt_disable()
895 struct mvpp2_port *port = arg; in mvpp2_interrupts_mask()
907 struct mvpp2_port *port = arg; in mvpp2_interrupts_unmask()
920 mvpp2_shared_interrupt_mask_unmask(struct mvpp2_port *port, bool mask) in mvpp2_shared_interrupt_mask_unmask()
946 static void mvpp22_gop_init_rgmii(struct mvpp2_port *port) in mvpp22_gop_init_rgmii()
963 static void mvpp22_gop_init_sgmii(struct mvpp2_port *port) in mvpp22_gop_init_sgmii()
983 static void mvpp22_gop_init_10gkr(struct mvpp2_port *port) in mvpp22_gop_init_10gkr()
1013 static int mvpp22_gop_init(struct mvpp2_port *port) in mvpp22_gop_init()
1065 static void mvpp22_gop_unmask_irq(struct mvpp2_port *port) in mvpp22_gop_unmask_irq()
1090 static void mvpp22_gop_mask_irq(struct mvpp2_port *port) in mvpp22_gop_mask_irq()
1111 static void mvpp22_gop_setup_irq(struct mvpp2_port *port) in mvpp22_gop_setup_irq()
1143 static int mvpp22_comphy_init(struct mvpp2_port *port) in mvpp22_comphy_init()
1173 static void mvpp2_port_enable(struct mvpp2_port *port) in mvpp2_port_enable()
1194 static void mvpp2_port_disable(struct mvpp2_port *port) in mvpp2_port_disable()
1217 static void mvpp2_port_periodic_xon_disable(struct mvpp2_port *port) in mvpp2_port_periodic_xon_disable()
1227 static void mvpp2_port_loopback_set(struct mvpp2_port *port, in mvpp2_port_loopback_set()
1255 static u64 mvpp2_read_count(struct mvpp2_port *port, in mvpp2_read_count()
1321 struct mvpp2_port *port = container_of(del_work, struct mvpp2_port, in mvpp2_gather_hw_statistics()
1345 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_stats()
1366 static void mvpp2_port_reset(struct mvpp2_port *port) in mvpp2_port_reset()
1385 static inline void mvpp2_gmac_max_rx_size_set(struct mvpp2_port *port) in mvpp2_gmac_max_rx_size_set()
1397 static inline void mvpp2_xlg_max_rx_size_set(struct mvpp2_port *port) in mvpp2_xlg_max_rx_size_set()
1409 static void mvpp2_defaults_set(struct mvpp2_port *port) in mvpp2_defaults_set()
1467 static void mvpp2_ingress_enable(struct mvpp2_port *port) in mvpp2_ingress_enable()
1480 static void mvpp2_ingress_disable(struct mvpp2_port *port) in mvpp2_ingress_disable()
1496 static void mvpp2_egress_enable(struct mvpp2_port *port) in mvpp2_egress_enable()
1518 static void mvpp2_egress_disable(struct mvpp2_port *port) in mvpp2_egress_disable()
1555 mvpp2_rxq_received(struct mvpp2_port *port, int rxq_id) in mvpp2_rxq_received()
1566 mvpp2_rxq_status_update(struct mvpp2_port *port, int rxq_id, in mvpp2_rxq_status_update()
1589 static void mvpp2_rxq_offset_set(struct mvpp2_port *port, in mvpp2_rxq_offset_set()
1624 static void mvpp2_aggr_txq_pend_desc_add(struct mvpp2_port *port, int pending) in mvpp2_aggr_txq_pend_desc_add()
1768 static inline int mvpp2_txq_sent_desc_proc(struct mvpp2_port *port, in mvpp2_txq_sent_desc_proc()
1786 struct mvpp2_port *port = arg; in mvpp2_txq_sent_counter_clear()
1798 static void mvpp2_txp_max_tx_size_set(struct mvpp2_port *port) in mvpp2_txp_max_tx_size_set()
1849 static void mvpp2_rx_pkts_coal_set(struct mvpp2_port *port, in mvpp2_rx_pkts_coal_set()
1865 static void mvpp2_tx_pkts_coal_set(struct mvpp2_port *port, in mvpp2_tx_pkts_coal_set()
1900 static void mvpp2_rx_time_coal_set(struct mvpp2_port *port, in mvpp2_rx_time_coal_set()
1917 static void mvpp2_tx_time_coal_set(struct mvpp2_port *port) in mvpp2_tx_time_coal_set()
1934 static void mvpp2_txq_bufs_free(struct mvpp2_port *port, in mvpp2_txq_bufs_free()
1954 static inline struct mvpp2_rx_queue *mvpp2_get_rx_queue(struct mvpp2_port *port, in mvpp2_get_rx_queue()
1962 static inline struct mvpp2_tx_queue *mvpp2_get_tx_queue(struct mvpp2_port *port, in mvpp2_get_tx_queue()
1971 static void mvpp2_txq_done(struct mvpp2_port *port, struct mvpp2_tx_queue *txq, in mvpp2_txq_done()
1992 static unsigned int mvpp2_tx_done(struct mvpp2_port *port, u32 cause, in mvpp2_tx_done()
2055 static int mvpp2_rxq_init(struct mvpp2_port *port, in mvpp2_rxq_init()
2102 static void mvpp2_rxq_drop_pkts(struct mvpp2_port *port, in mvpp2_rxq_drop_pkts()
2127 static void mvpp2_rxq_deinit(struct mvpp2_port *port, in mvpp2_rxq_deinit()
2157 static int mvpp2_txq_init(struct mvpp2_port *port, in mvpp2_txq_init()
2248 static void mvpp2_txq_deinit(struct mvpp2_port *port, in mvpp2_txq_deinit()
2289 static void mvpp2_txq_clean(struct mvpp2_port *port, struct mvpp2_tx_queue *txq) in mvpp2_txq_clean()
2338 static void mvpp2_cleanup_txqs(struct mvpp2_port *port) in mvpp2_cleanup_txqs()
2363 static void mvpp2_cleanup_rxqs(struct mvpp2_port *port) in mvpp2_cleanup_rxqs()
2372 static int mvpp2_setup_rxqs(struct mvpp2_port *port) in mvpp2_setup_rxqs()
2389 static int mvpp2_setup_txqs(struct mvpp2_port *port) in mvpp2_setup_txqs()
2432 struct mvpp2_port *port = (struct mvpp2_port *)dev_id; in mvpp2_link_status_isr()
2505 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tx_proc_cb()
2536 static void mvpp2_rx_error(struct mvpp2_port *port, in mvpp2_rx_error()
2561 static void mvpp2_rx_csum(struct mvpp2_port *port, u32 status, in mvpp2_rx_csum()
2579 static int mvpp2_rx_refill(struct mvpp2_port *port, in mvpp2_rx_refill()
2598 static u32 mvpp2_skb_tx_csum(struct mvpp2_port *port, struct sk_buff *skb) in mvpp2_skb_tx_csum()
2630 static int mvpp2_rx(struct mvpp2_port *port, struct napi_struct *napi, in mvpp2_rx()
2729 tx_desc_unmap_put(struct mvpp2_port *port, struct mvpp2_tx_queue *txq, in tx_desc_unmap_put()
2745 static int mvpp2_tx_frag_process(struct mvpp2_port *port, struct sk_buff *skb, in mvpp2_tx_frag_process()
2803 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tso_put_hdr()
2827 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tso_put_data()
2862 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tx_tso()
2912 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tx()
3029 struct mvpp2_port *port = netdev_priv(napi->dev); in mvpp2_poll()
3101 static void mvpp22_mode_reconfigure(struct mvpp2_port *port) in mvpp22_mode_reconfigure()
3134 static void mvpp2_start_dev(struct mvpp2_port *port) in mvpp2_start_dev()
3169 static void mvpp2_stop_dev(struct mvpp2_port *port) in mvpp2_stop_dev()
3224 static void mvpp21_get_mac_address(struct mvpp2_port *port, unsigned char *addr) in mvpp21_get_mac_address()
3239 static int mvpp2_irqs_init(struct mvpp2_port *port) in mvpp2_irqs_init()
3270 static void mvpp2_irqs_deinit(struct mvpp2_port *port) in mvpp2_irqs_deinit()
3290 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_open()
3397 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_stop()
3430 static int mvpp2_prs_mac_da_accept_list(struct mvpp2_port *port, in mvpp2_prs_mac_da_accept_list()
3445 static void mvpp2_set_rx_promisc(struct mvpp2_port *port, bool enable) in mvpp2_set_rx_promisc()
3461 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_set_rx_mode()
3509 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_change_mtu()
3558 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_get_stats64()
3591 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ioctl()
3601 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_vlan_rx_add_vid()
3613 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_vlan_rx_kill_vid()
3623 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_set_features()
3652 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_nway_reset()
3664 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_coalesce()
3697 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_coalesce()
3720 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_ringparam()
3731 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_ringparam()
3791 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_pause_param()
3802 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_pause_param()
3813 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_link_ksettings()
3824 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_link_ksettings()
3835 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxnfc()
3858 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxnfc()
3882 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxfh()
3900 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxfh()
3962 static int mvpp2_simple_queue_vectors_init(struct mvpp2_port *port, in mvpp2_simple_queue_vectors_init()
3984 static int mvpp2_multi_queue_vectors_init(struct mvpp2_port *port, in mvpp2_multi_queue_vectors_init()
4038 static int mvpp2_queue_vectors_init(struct mvpp2_port *port, in mvpp2_queue_vectors_init()
4047 static void mvpp2_queue_vectors_deinit(struct mvpp2_port *port) in mvpp2_queue_vectors_deinit()
4056 static void mvpp2_rx_irqs_setup(struct mvpp2_port *port) in mvpp2_rx_irqs_setup()
4086 static int mvpp2_port_init(struct mvpp2_port *port) in mvpp2_port_init()
4238 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_port_copy_mac_addr()
4300 static void mvpp22_xlg_link_state(struct mvpp2_port *port, in mvpp22_xlg_link_state()
4320 static void mvpp2_gmac_link_state(struct mvpp2_port *port, in mvpp2_gmac_link_state()
4357 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_phylink_mac_link_state()
4375 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_mac_an_restart()
4389 static void mvpp2_xlg_config(struct mvpp2_port *port, unsigned int mode, in mvpp2_xlg_config()
4410 static void mvpp2_gmac_config(struct mvpp2_port *port, unsigned int mode, in mvpp2_gmac_config()
4497 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_mac_config()
4535 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_mac_link_up()
4557 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_mac_link_down()
4597 struct mvpp2_port *port; in mvpp2_port_probe()
4847 static void mvpp2_port_remove(struct mvpp2_port *port) in mvpp2_port_remove()