Lines Matching defs:port
182 static dma_addr_t mvpp2_txdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_get()
192 static void mvpp2_txdesc_dma_addr_set(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_set()
213 static size_t mvpp2_txdesc_size_get(struct mvpp2_port *port, in mvpp2_txdesc_size_get()
222 static void mvpp2_txdesc_size_set(struct mvpp2_port *port, in mvpp2_txdesc_size_set()
232 static void mvpp2_txdesc_txq_set(struct mvpp2_port *port, in mvpp2_txdesc_txq_set()
242 static void mvpp2_txdesc_cmd_set(struct mvpp2_port *port, in mvpp2_txdesc_cmd_set()
252 static unsigned int mvpp2_txdesc_offset_get(struct mvpp2_port *port, in mvpp2_txdesc_offset_get()
261 static dma_addr_t mvpp2_rxdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_rxdesc_dma_addr_get()
271 static unsigned long mvpp2_rxdesc_cookie_get(struct mvpp2_port *port, in mvpp2_rxdesc_cookie_get()
281 static size_t mvpp2_rxdesc_size_get(struct mvpp2_port *port, in mvpp2_rxdesc_size_get()
290 static u32 mvpp2_rxdesc_status_get(struct mvpp2_port *port, in mvpp2_rxdesc_status_get()
306 static void mvpp2_txq_inc_put(struct mvpp2_port *port, in mvpp2_txq_inc_put()
348 static inline int mvpp2_egress_port(struct mvpp2_port *port) in mvpp2_egress_port()
354 static inline int mvpp2_txq_phys(int port, int txq) in mvpp2_txq_phys()
621 struct mvpp2_port *port; in mvpp2_bm_init() local
695 static void mvpp2_rxq_long_pool_set(struct mvpp2_port *port, in mvpp2_rxq_long_pool_set()
716 static void mvpp2_rxq_short_pool_set(struct mvpp2_port *port, in mvpp2_rxq_short_pool_set()
736 static void *mvpp2_buf_alloc(struct mvpp2_port *port, in mvpp2_buf_alloc()
771 static void mvpp2_rxq_enable_fc(struct mvpp2_port *port) in mvpp2_rxq_enable_fc()
832 static void mvpp2_rxq_disable_fc(struct mvpp2_port *port) in mvpp2_rxq_disable_fc()
875 static void mvpp2_bm_pool_update_fc(struct mvpp2_port *port, in mvpp2_bm_pool_update_fc()
930 struct mvpp2_port *port; in mvpp2_bm_pool_update_priv_fc() local
975 static inline void mvpp2_bm_pool_put(struct mvpp2_port *port, int pool, in mvpp2_bm_pool_put()
1018 static int mvpp2_bm_bufs_add(struct mvpp2_port *port, in mvpp2_bm_bufs_add()
1074 mvpp2_bm_pool_use(struct mvpp2_port *port, unsigned pool, int pkt_size) in mvpp2_bm_pool_use()
1130 mvpp2_bm_pool_use_percpu(struct mvpp2_port *port, int type, in mvpp2_bm_pool_use_percpu()
1178 static int mvpp2_swf_bm_pool_init_shared(struct mvpp2_port *port) in mvpp2_swf_bm_pool_init_shared()
1226 static int mvpp2_swf_bm_pool_init_percpu(struct mvpp2_port *port) in mvpp2_swf_bm_pool_init_percpu()
1257 static int mvpp2_swf_bm_pool_init(struct mvpp2_port *port) in mvpp2_swf_bm_pool_init()
1265 static void mvpp2_set_hw_csum(struct mvpp2_port *port, in mvpp2_set_hw_csum()
1287 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_bm_update_mtu() local
1360 static inline void mvpp2_interrupts_enable(struct mvpp2_port *port) in mvpp2_interrupts_enable()
1371 static inline void mvpp2_interrupts_disable(struct mvpp2_port *port) in mvpp2_interrupts_disable()
1384 struct mvpp2_port *port = qvec->port; in mvpp2_qvec_interrupt_enable() local
1392 struct mvpp2_port *port = qvec->port; in mvpp2_qvec_interrupt_disable() local
1404 struct mvpp2_port *port = arg; in mvpp2_interrupts_mask() local
1426 struct mvpp2_port *port = arg; in mvpp2_interrupts_unmask() local
1449 mvpp2_shared_interrupt_mask_unmask(struct mvpp2_port *port, bool mask) in mvpp2_shared_interrupt_mask_unmask()
1477 static bool mvpp2_port_supports_xlg(struct mvpp2_port *port) in mvpp2_port_supports_xlg()
1482 static bool mvpp2_port_supports_rgmii(struct mvpp2_port *port) in mvpp2_port_supports_rgmii()
1505 static void mvpp22_gop_init_rgmii(struct mvpp2_port *port) in mvpp22_gop_init_rgmii()
1522 static void mvpp22_gop_init_sgmii(struct mvpp2_port *port) in mvpp22_gop_init_sgmii()
1542 static void mvpp22_gop_init_10gkr(struct mvpp2_port *port) in mvpp22_gop_init_10gkr()
1565 static void mvpp22_gop_fca_enable_periodic(struct mvpp2_port *port, bool en) in mvpp22_gop_fca_enable_periodic()
1578 static void mvpp22_gop_fca_set_timer(struct mvpp2_port *port, u32 timer) in mvpp22_gop_fca_set_timer()
1594 static void mvpp22_gop_fca_set_periodic_timer(struct mvpp2_port *port) in mvpp22_gop_fca_set_periodic_timer()
1608 static int mvpp22_gop_init(struct mvpp2_port *port, phy_interface_t interface) in mvpp22_gop_init()
1662 static void mvpp22_gop_unmask_irq(struct mvpp2_port *port) in mvpp22_gop_unmask_irq()
1686 static void mvpp22_gop_mask_irq(struct mvpp2_port *port) in mvpp22_gop_mask_irq()
1706 static void mvpp22_gop_setup_irq(struct mvpp2_port *port) in mvpp22_gop_setup_irq()
1746 static int mvpp22_comphy_init(struct mvpp2_port *port, in mvpp22_comphy_init()
1761 static void mvpp2_port_enable(struct mvpp2_port *port) in mvpp2_port_enable()
1779 static void mvpp2_port_disable(struct mvpp2_port *port) in mvpp2_port_disable()
1796 static void mvpp2_port_periodic_xon_disable(struct mvpp2_port *port) in mvpp2_port_periodic_xon_disable()
1806 static void mvpp2_port_loopback_set(struct mvpp2_port *port, in mvpp2_port_loopback_set()
1843 static u64 mvpp2_read_count(struct mvpp2_port *port, in mvpp2_read_count()
1948 struct mvpp2_port *port = netdev_priv(netdev); in mvpp2_ethtool_get_strings() local
1991 mvpp2_get_xdp_stats(struct mvpp2_port *port, struct mvpp2_pcpu_stats *xdp_stats) in mvpp2_get_xdp_stats()
2029 static void mvpp2_read_stats(struct mvpp2_port *port) in mvpp2_read_stats()
2096 struct mvpp2_port *port = container_of(del_work, struct mvpp2_port, in mvpp2_gather_hw_statistics() local
2116 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_stats() local
2131 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_sset_count() local
2139 static void mvpp2_mac_reset_assert(struct mvpp2_port *port) in mvpp2_mac_reset_assert()
2154 static void mvpp22_pcs_reset_assert(struct mvpp2_port *port) in mvpp22_pcs_reset_assert()
2175 static void mvpp22_pcs_reset_deassert(struct mvpp2_port *port, in mvpp22_pcs_reset_deassert()
2207 static inline void mvpp2_gmac_max_rx_size_set(struct mvpp2_port *port) in mvpp2_gmac_max_rx_size_set()
2219 static inline void mvpp2_xlg_max_rx_size_set(struct mvpp2_port *port) in mvpp2_xlg_max_rx_size_set()
2231 static void mvpp2_defaults_set(struct mvpp2_port *port) in mvpp2_defaults_set()
2290 static void mvpp2_ingress_enable(struct mvpp2_port *port) in mvpp2_ingress_enable()
2303 static void mvpp2_ingress_disable(struct mvpp2_port *port) in mvpp2_ingress_disable()
2319 static void mvpp2_egress_enable(struct mvpp2_port *port) in mvpp2_egress_enable()
2341 static void mvpp2_egress_disable(struct mvpp2_port *port) in mvpp2_egress_disable()
2378 mvpp2_rxq_received(struct mvpp2_port *port, int rxq_id) in mvpp2_rxq_received()
2389 mvpp2_rxq_status_update(struct mvpp2_port *port, int rxq_id, in mvpp2_rxq_status_update()
2412 static void mvpp2_rxq_offset_set(struct mvpp2_port *port, in mvpp2_rxq_offset_set()
2447 static void mvpp2_aggr_txq_pend_desc_add(struct mvpp2_port *port, int pending) in mvpp2_aggr_txq_pend_desc_add()
2461 static int mvpp2_aggr_desc_num_check(struct mvpp2_port *port, in mvpp2_aggr_desc_num_check()
2485 static int mvpp2_txq_alloc_reserved_desc(struct mvpp2_port *port, in mvpp2_txq_alloc_reserved_desc()
2503 static int mvpp2_txq_reserved_desc_num_proc(struct mvpp2_port *port, in mvpp2_txq_reserved_desc_num_proc()
2595 static inline int mvpp2_txq_sent_desc_proc(struct mvpp2_port *port, in mvpp2_txq_sent_desc_proc()
2614 struct mvpp2_port *port = arg; in mvpp2_txq_sent_counter_clear() local
2631 static void mvpp2_txp_max_tx_size_set(struct mvpp2_port *port) in mvpp2_txp_max_tx_size_set()
2680 static void mvpp2_set_rxq_free_tresh(struct mvpp2_port *port, in mvpp2_set_rxq_free_tresh()
2696 static void mvpp2_rx_pkts_coal_set(struct mvpp2_port *port, in mvpp2_rx_pkts_coal_set()
2712 static void mvpp2_tx_pkts_coal_set(struct mvpp2_port *port, in mvpp2_tx_pkts_coal_set()
2748 static void mvpp2_rx_time_coal_set(struct mvpp2_port *port, in mvpp2_rx_time_coal_set()
2765 static void mvpp2_tx_time_coal_set(struct mvpp2_port *port) in mvpp2_tx_time_coal_set()
2782 static void mvpp2_txq_bufs_free(struct mvpp2_port *port, in mvpp2_txq_bufs_free()
2814 static inline struct mvpp2_rx_queue *mvpp2_get_rx_queue(struct mvpp2_port *port, in mvpp2_get_rx_queue()
2822 static inline struct mvpp2_tx_queue *mvpp2_get_tx_queue(struct mvpp2_port *port, in mvpp2_get_tx_queue()
2831 static void mvpp2_txq_done(struct mvpp2_port *port, struct mvpp2_tx_queue *txq, in mvpp2_txq_done()
2852 static unsigned int mvpp2_tx_done(struct mvpp2_port *port, u32 cause, in mvpp2_tx_done()
2915 static int mvpp2_rxq_init(struct mvpp2_port *port, in mvpp2_rxq_init()
3002 static void mvpp2_rxq_drop_pkts(struct mvpp2_port *port, in mvpp2_rxq_drop_pkts()
3027 static void mvpp2_rxq_deinit(struct mvpp2_port *port, in mvpp2_rxq_deinit()
3063 static int mvpp2_txq_init(struct mvpp2_port *port, in mvpp2_txq_init()
3155 static void mvpp2_txq_deinit(struct mvpp2_port *port, in mvpp2_txq_deinit()
3196 static void mvpp2_txq_clean(struct mvpp2_port *port, struct mvpp2_tx_queue *txq) in mvpp2_txq_clean()
3245 static void mvpp2_cleanup_txqs(struct mvpp2_port *port) in mvpp2_cleanup_txqs()
3270 static void mvpp2_cleanup_rxqs(struct mvpp2_port *port) in mvpp2_cleanup_rxqs()
3282 static int mvpp2_setup_rxqs(struct mvpp2_port *port) in mvpp2_setup_rxqs()
3303 static int mvpp2_setup_txqs(struct mvpp2_port *port) in mvpp2_setup_txqs()
3347 static void mvpp2_isr_handle_ptp_queue(struct mvpp2_port *port, int nq) in mvpp2_isr_handle_ptp_queue()
3384 static void mvpp2_isr_handle_ptp(struct mvpp2_port *port) in mvpp2_isr_handle_ptp()
3397 static void mvpp2_isr_handle_link(struct mvpp2_port *port, bool link) in mvpp2_isr_handle_link()
3426 static void mvpp2_isr_handle_xlg(struct mvpp2_port *port) in mvpp2_isr_handle_xlg()
3439 static void mvpp2_isr_handle_gmac_internal(struct mvpp2_port *port) in mvpp2_isr_handle_gmac_internal()
3459 struct mvpp2_port *port = (struct mvpp2_port *)dev_id; in mvpp2_port_isr() local
3490 struct mvpp2_port *port; in mvpp2_hr_timer_cb() local
3522 static void mvpp2_rx_error(struct mvpp2_port *port, in mvpp2_rx_error()
3547 static int mvpp2_rx_csum(struct mvpp2_port *port, u32 status) in mvpp2_rx_csum()
3561 static int mvpp2_rx_refill(struct mvpp2_port *port, in mvpp2_rx_refill()
3580 static u32 mvpp2_skb_tx_csum(struct mvpp2_port *port, struct sk_buff *skb) in mvpp2_skb_tx_csum()
3611 static void mvpp2_xdp_finish_tx(struct mvpp2_port *port, u16 txq_id, int nxmit, int nxmit_byte) in mvpp2_xdp_finish_tx()
3641 mvpp2_xdp_submit_frame(struct mvpp2_port *port, u16 txq_id, in mvpp2_xdp_submit_frame()
3705 mvpp2_xdp_xmit_back(struct mvpp2_port *port, struct xdp_buff *xdp) in mvpp2_xdp_xmit_back()
3743 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_xdp_xmit() local
3784 mvpp2_run_xdp(struct mvpp2_port *port, struct bpf_prog *prog, in mvpp2_run_xdp()
3839 static void mvpp2_buff_hdr_pool_put(struct mvpp2_port *port, struct mvpp2_rx_desc *rx_desc, in mvpp2_buff_hdr_pool_put()
3869 static int mvpp2_rx(struct mvpp2_port *port, struct napi_struct *napi, in mvpp2_rx()
4050 tx_desc_unmap_put(struct mvpp2_port *port, struct mvpp2_tx_queue *txq, in tx_desc_unmap_put()
4066 static void mvpp2_txdesc_clear_ptp(struct mvpp2_port *port, in mvpp2_txdesc_clear_ptp()
4075 static bool mvpp2_tx_hw_tstamp(struct mvpp2_port *port, in mvpp2_tx_hw_tstamp()
4155 static int mvpp2_tx_frag_process(struct mvpp2_port *port, struct sk_buff *skb, in mvpp2_tx_frag_process()
4216 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tso_put_hdr() local
4241 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tso_put_data() local
4277 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tx_tso() local
4326 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tx() local
4460 struct mvpp2_port *port = netdev_priv(napi->dev); in mvpp2_poll() local
4533 static void mvpp22_mode_reconfigure(struct mvpp2_port *port, in mvpp22_mode_reconfigure()
4571 static void mvpp2_start_dev(struct mvpp2_port *port) in mvpp2_start_dev()
4598 static void mvpp2_stop_dev(struct mvpp2_port *port) in mvpp2_stop_dev()
4657 static void mvpp21_get_mac_address(struct mvpp2_port *port, unsigned char *addr) in mvpp21_get_mac_address()
4672 static int mvpp2_irqs_init(struct mvpp2_port *port) in mvpp2_irqs_init()
4720 static void mvpp2_irqs_deinit(struct mvpp2_port *port) in mvpp2_irqs_deinit()
4735 static bool mvpp22_rss_is_supported(struct mvpp2_port *port) in mvpp22_rss_is_supported()
4743 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_open() local
4851 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_stop() local
4886 static int mvpp2_prs_mac_da_accept_list(struct mvpp2_port *port, in mvpp2_prs_mac_da_accept_list()
4901 static void mvpp2_set_rx_promisc(struct mvpp2_port *port, bool enable) in mvpp2_set_rx_promisc()
4917 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_set_rx_mode() local
4970 struct mvpp2_port *port = NULL; in mvpp2_bm_switch_buffers() local
5009 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_change_mtu() local
5072 static int mvpp2_check_pagepool_dma(struct mvpp2_port *port) in mvpp2_check_pagepool_dma()
5102 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_get_stats64() local
5133 static int mvpp2_set_ts_config(struct mvpp2_port *port, struct ifreq *ifr) in mvpp2_set_ts_config()
5196 static int mvpp2_get_ts_config(struct mvpp2_port *port, struct ifreq *ifr) in mvpp2_get_ts_config()
5215 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_ts_info() local
5237 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ioctl() local
5259 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_vlan_rx_add_vid() local
5271 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_vlan_rx_kill_vid() local
5281 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_set_features() local
5306 static int mvpp2_xdp_setup(struct mvpp2_port *port, struct netdev_bpf *bpf) in mvpp2_xdp_setup()
5351 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_xdp() local
5365 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_nway_reset() local
5380 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_coalesce() local
5416 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_coalesce() local
5439 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_ringparam() local
5450 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_ringparam() local
5510 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_pause_param() local
5521 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_pause_param() local
5532 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_link_ksettings() local
5543 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_link_ksettings() local
5554 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxnfc() local
5589 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxnfc() local
5613 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxfh_indir_size() local
5621 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxfh() local
5639 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxfh() local
5660 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxfh_context() local
5682 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxfh_context() local
5753 static int mvpp2_simple_queue_vectors_init(struct mvpp2_port *port, in mvpp2_simple_queue_vectors_init()
5775 static int mvpp2_multi_queue_vectors_init(struct mvpp2_port *port, in mvpp2_multi_queue_vectors_init()
5840 static int mvpp2_queue_vectors_init(struct mvpp2_port *port, in mvpp2_queue_vectors_init()
5849 static void mvpp2_queue_vectors_deinit(struct mvpp2_port *port) in mvpp2_queue_vectors_deinit()
5858 static void mvpp2_rx_irqs_setup(struct mvpp2_port *port) in mvpp2_rx_irqs_setup()
5888 static int mvpp2_port_init(struct mvpp2_port *port) in mvpp2_port_init()
6084 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_port_copy_mac_addr() local
6120 struct mvpp2_port *port = mvpp2_pcs_to_port(pcs); in mvpp2_xlg_pcs_get_state() local
6155 struct mvpp2_port *port = mvpp2_pcs_to_port(pcs); in mvpp2_gmac_pcs_get_state() local
6192 struct mvpp2_port *port = mvpp2_pcs_to_port(pcs); in mvpp2_gmac_pcs_config() local
6246 struct mvpp2_port *port = mvpp2_pcs_to_port(pcs); in mvpp2_gmac_pcs_an_restart() local
6265 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_phylink_validate() local
6328 static void mvpp2_xlg_config(struct mvpp2_port *port, unsigned int mode, in mvpp2_xlg_config()
6348 static void mvpp2_gmac_config(struct mvpp2_port *port, unsigned int mode, in mvpp2_gmac_config()
6410 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2__mac_prepare() local
6472 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_prepare() local
6485 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_config() local
6502 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_finish() local
6547 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_link_up() local
6627 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_link_down() local
6661 static void mvpp2_acpi_start(struct mvpp2_port *port) in mvpp2_acpi_start()
6702 struct mvpp2_port *port; in mvpp2_port_probe() local
7005 static void mvpp2_port_remove(struct mvpp2_port *port) in mvpp2_port_remove()
7058 int port; in mvpp2_rx_fifo_init() local
7072 static void mvpp22_rx_fifo_set_hw(struct mvpp2 *priv, int port, int data_size) in mvpp22_rx_fifo_set_hw()
7091 int port, size; in mvpp22_rx_fifo_init() local
7132 int port, val; in mvpp23_rx_fifo_fc_set_tresh() local
7164 void mvpp23_rx_fifo_fc_en(struct mvpp2 *priv, int port, bool en) in mvpp23_rx_fifo_fc_en()
7178 static void mvpp22_tx_fifo_set_hw(struct mvpp2 *priv, int port, int size) in mvpp22_tx_fifo_set_hw()
7197 int port, size; in mvpp22_tx_fifo_init() local