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()
1506 static void mvpp22_gop_init_rgmii(struct mvpp2_port *port) in mvpp22_gop_init_rgmii()
1523 static void mvpp22_gop_init_sgmii(struct mvpp2_port *port) in mvpp22_gop_init_sgmii()
1543 static void mvpp22_gop_init_10gkr(struct mvpp2_port *port) in mvpp22_gop_init_10gkr()
1566 static void mvpp22_gop_fca_enable_periodic(struct mvpp2_port *port, bool en) in mvpp22_gop_fca_enable_periodic()
1579 static void mvpp22_gop_fca_set_timer(struct mvpp2_port *port, u32 timer) in mvpp22_gop_fca_set_timer()
1595 static void mvpp22_gop_fca_set_periodic_timer(struct mvpp2_port *port) in mvpp22_gop_fca_set_periodic_timer()
1609 static int mvpp22_gop_init(struct mvpp2_port *port, phy_interface_t interface) in mvpp22_gop_init()
1664 static void mvpp22_gop_unmask_irq(struct mvpp2_port *port) in mvpp22_gop_unmask_irq()
1688 static void mvpp22_gop_mask_irq(struct mvpp2_port *port) in mvpp22_gop_mask_irq()
1708 static void mvpp22_gop_setup_irq(struct mvpp2_port *port) in mvpp22_gop_setup_irq()
1748 static int mvpp22_comphy_init(struct mvpp2_port *port, in mvpp22_comphy_init()
1763 static void mvpp2_port_enable(struct mvpp2_port *port) in mvpp2_port_enable()
1781 static void mvpp2_port_disable(struct mvpp2_port *port) in mvpp2_port_disable()
1798 static void mvpp2_port_periodic_xon_disable(struct mvpp2_port *port) in mvpp2_port_periodic_xon_disable()
1808 static void mvpp2_port_loopback_set(struct mvpp2_port *port, in mvpp2_port_loopback_set()
1845 static u64 mvpp2_read_count(struct mvpp2_port *port, in mvpp2_read_count()
1950 struct mvpp2_port *port = netdev_priv(netdev); in mvpp2_ethtool_get_strings() local
1993 mvpp2_get_xdp_stats(struct mvpp2_port *port, struct mvpp2_pcpu_stats *xdp_stats) in mvpp2_get_xdp_stats()
2031 static void mvpp2_read_stats(struct mvpp2_port *port) in mvpp2_read_stats()
2098 struct mvpp2_port *port = container_of(del_work, struct mvpp2_port, in mvpp2_gather_hw_statistics() local
2118 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_stats() local
2133 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_sset_count() local
2141 static void mvpp2_mac_reset_assert(struct mvpp2_port *port) in mvpp2_mac_reset_assert()
2156 static void mvpp22_pcs_reset_assert(struct mvpp2_port *port) in mvpp22_pcs_reset_assert()
2177 static void mvpp22_pcs_reset_deassert(struct mvpp2_port *port, in mvpp22_pcs_reset_deassert()
2210 static inline void mvpp2_gmac_max_rx_size_set(struct mvpp2_port *port) in mvpp2_gmac_max_rx_size_set()
2222 static inline void mvpp2_xlg_max_rx_size_set(struct mvpp2_port *port) in mvpp2_xlg_max_rx_size_set()
2234 static void mvpp2_defaults_set(struct mvpp2_port *port) in mvpp2_defaults_set()
2293 static void mvpp2_ingress_enable(struct mvpp2_port *port) in mvpp2_ingress_enable()
2306 static void mvpp2_ingress_disable(struct mvpp2_port *port) in mvpp2_ingress_disable()
2322 static void mvpp2_egress_enable(struct mvpp2_port *port) in mvpp2_egress_enable()
2344 static void mvpp2_egress_disable(struct mvpp2_port *port) in mvpp2_egress_disable()
2381 mvpp2_rxq_received(struct mvpp2_port *port, int rxq_id) in mvpp2_rxq_received()
2392 mvpp2_rxq_status_update(struct mvpp2_port *port, int rxq_id, in mvpp2_rxq_status_update()
2415 static void mvpp2_rxq_offset_set(struct mvpp2_port *port, in mvpp2_rxq_offset_set()
2450 static void mvpp2_aggr_txq_pend_desc_add(struct mvpp2_port *port, int pending) in mvpp2_aggr_txq_pend_desc_add()
2464 static int mvpp2_aggr_desc_num_check(struct mvpp2_port *port, in mvpp2_aggr_desc_num_check()
2488 static int mvpp2_txq_alloc_reserved_desc(struct mvpp2_port *port, in mvpp2_txq_alloc_reserved_desc()
2506 static int mvpp2_txq_reserved_desc_num_proc(struct mvpp2_port *port, in mvpp2_txq_reserved_desc_num_proc()
2598 static inline int mvpp2_txq_sent_desc_proc(struct mvpp2_port *port, in mvpp2_txq_sent_desc_proc()
2617 struct mvpp2_port *port = arg; in mvpp2_txq_sent_counter_clear() local
2634 static void mvpp2_txp_max_tx_size_set(struct mvpp2_port *port) in mvpp2_txp_max_tx_size_set()
2683 static void mvpp2_set_rxq_free_tresh(struct mvpp2_port *port, in mvpp2_set_rxq_free_tresh()
2699 static void mvpp2_rx_pkts_coal_set(struct mvpp2_port *port, in mvpp2_rx_pkts_coal_set()
2715 static void mvpp2_tx_pkts_coal_set(struct mvpp2_port *port, in mvpp2_tx_pkts_coal_set()
2751 static void mvpp2_rx_time_coal_set(struct mvpp2_port *port, in mvpp2_rx_time_coal_set()
2768 static void mvpp2_tx_time_coal_set(struct mvpp2_port *port) in mvpp2_tx_time_coal_set()
2785 static void mvpp2_txq_bufs_free(struct mvpp2_port *port, in mvpp2_txq_bufs_free()
2817 static inline struct mvpp2_rx_queue *mvpp2_get_rx_queue(struct mvpp2_port *port, in mvpp2_get_rx_queue()
2825 static inline struct mvpp2_tx_queue *mvpp2_get_tx_queue(struct mvpp2_port *port, in mvpp2_get_tx_queue()
2834 static void mvpp2_txq_done(struct mvpp2_port *port, struct mvpp2_tx_queue *txq, in mvpp2_txq_done()
2855 static unsigned int mvpp2_tx_done(struct mvpp2_port *port, u32 cause, in mvpp2_tx_done()
2918 static int mvpp2_rxq_init(struct mvpp2_port *port, in mvpp2_rxq_init()
3005 static void mvpp2_rxq_drop_pkts(struct mvpp2_port *port, in mvpp2_rxq_drop_pkts()
3030 static void mvpp2_rxq_deinit(struct mvpp2_port *port, in mvpp2_rxq_deinit()
3066 static int mvpp2_txq_init(struct mvpp2_port *port, in mvpp2_txq_init()
3158 static void mvpp2_txq_deinit(struct mvpp2_port *port, in mvpp2_txq_deinit()
3199 static void mvpp2_txq_clean(struct mvpp2_port *port, struct mvpp2_tx_queue *txq) in mvpp2_txq_clean()
3248 static void mvpp2_cleanup_txqs(struct mvpp2_port *port) in mvpp2_cleanup_txqs()
3273 static void mvpp2_cleanup_rxqs(struct mvpp2_port *port) in mvpp2_cleanup_rxqs()
3285 static int mvpp2_setup_rxqs(struct mvpp2_port *port) in mvpp2_setup_rxqs()
3306 static int mvpp2_setup_txqs(struct mvpp2_port *port) in mvpp2_setup_txqs()
3350 static void mvpp2_isr_handle_ptp_queue(struct mvpp2_port *port, int nq) in mvpp2_isr_handle_ptp_queue()
3387 static void mvpp2_isr_handle_ptp(struct mvpp2_port *port) in mvpp2_isr_handle_ptp()
3400 static void mvpp2_isr_handle_link(struct mvpp2_port *port, bool link) in mvpp2_isr_handle_link()
3429 static void mvpp2_isr_handle_xlg(struct mvpp2_port *port) in mvpp2_isr_handle_xlg()
3442 static void mvpp2_isr_handle_gmac_internal(struct mvpp2_port *port) in mvpp2_isr_handle_gmac_internal()
3462 struct mvpp2_port *port = (struct mvpp2_port *)dev_id; in mvpp2_port_isr() local
3493 struct mvpp2_port *port; in mvpp2_hr_timer_cb() local
3525 static void mvpp2_rx_error(struct mvpp2_port *port, in mvpp2_rx_error()
3550 static int mvpp2_rx_csum(struct mvpp2_port *port, u32 status) in mvpp2_rx_csum()
3564 static int mvpp2_rx_refill(struct mvpp2_port *port, in mvpp2_rx_refill()
3583 static u32 mvpp2_skb_tx_csum(struct mvpp2_port *port, struct sk_buff *skb) in mvpp2_skb_tx_csum()
3614 static void mvpp2_xdp_finish_tx(struct mvpp2_port *port, u16 txq_id, int nxmit, int nxmit_byte) in mvpp2_xdp_finish_tx()
3644 mvpp2_xdp_submit_frame(struct mvpp2_port *port, u16 txq_id, in mvpp2_xdp_submit_frame()
3708 mvpp2_xdp_xmit_back(struct mvpp2_port *port, struct xdp_buff *xdp) in mvpp2_xdp_xmit_back()
3746 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_xdp_xmit() local
3787 mvpp2_run_xdp(struct mvpp2_port *port, struct bpf_prog *prog, in mvpp2_run_xdp()
3842 static void mvpp2_buff_hdr_pool_put(struct mvpp2_port *port, struct mvpp2_rx_desc *rx_desc, in mvpp2_buff_hdr_pool_put()
3872 static int mvpp2_rx(struct mvpp2_port *port, struct napi_struct *napi, in mvpp2_rx()
4053 tx_desc_unmap_put(struct mvpp2_port *port, struct mvpp2_tx_queue *txq, in tx_desc_unmap_put()
4069 static void mvpp2_txdesc_clear_ptp(struct mvpp2_port *port, in mvpp2_txdesc_clear_ptp()
4078 static bool mvpp2_tx_hw_tstamp(struct mvpp2_port *port, in mvpp2_tx_hw_tstamp()
4158 static int mvpp2_tx_frag_process(struct mvpp2_port *port, struct sk_buff *skb, in mvpp2_tx_frag_process()
4219 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tso_put_hdr() local
4244 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tso_put_data() local
4280 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tx_tso() local
4329 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_tx() local
4463 struct mvpp2_port *port = netdev_priv(napi->dev); in mvpp2_poll() local
4536 static void mvpp22_mode_reconfigure(struct mvpp2_port *port, in mvpp22_mode_reconfigure()
4574 static void mvpp2_start_dev(struct mvpp2_port *port) in mvpp2_start_dev()
4601 static void mvpp2_stop_dev(struct mvpp2_port *port) in mvpp2_stop_dev()
4660 static void mvpp21_get_mac_address(struct mvpp2_port *port, unsigned char *addr) in mvpp21_get_mac_address()
4675 static int mvpp2_irqs_init(struct mvpp2_port *port) in mvpp2_irqs_init()
4723 static void mvpp2_irqs_deinit(struct mvpp2_port *port) in mvpp2_irqs_deinit()
4738 static bool mvpp22_rss_is_supported(struct mvpp2_port *port) in mvpp22_rss_is_supported()
4746 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_open() local
4854 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_stop() local
4889 static int mvpp2_prs_mac_da_accept_list(struct mvpp2_port *port, in mvpp2_prs_mac_da_accept_list()
4904 static void mvpp2_set_rx_promisc(struct mvpp2_port *port, bool enable) in mvpp2_set_rx_promisc()
4920 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_set_rx_mode() local
4973 struct mvpp2_port *port = NULL; in mvpp2_bm_switch_buffers() local
5020 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_change_mtu() local
5083 static int mvpp2_check_pagepool_dma(struct mvpp2_port *port) in mvpp2_check_pagepool_dma()
5113 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_get_stats64() local
5144 static int mvpp2_set_ts_config(struct mvpp2_port *port, struct ifreq *ifr) in mvpp2_set_ts_config()
5204 static int mvpp2_get_ts_config(struct mvpp2_port *port, struct ifreq *ifr) in mvpp2_get_ts_config()
5223 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_ts_info() local
5245 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ioctl() local
5267 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_vlan_rx_add_vid() local
5279 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_vlan_rx_kill_vid() local
5289 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_set_features() local
5314 static int mvpp2_xdp_setup(struct mvpp2_port *port, struct netdev_bpf *bpf) in mvpp2_xdp_setup()
5359 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_xdp() local
5373 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_nway_reset() local
5388 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_coalesce() local
5424 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_coalesce() local
5450 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_ringparam() local
5464 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_ringparam() local
5524 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_pause_param() local
5535 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_pause_param() local
5546 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_link_ksettings() local
5557 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_link_ksettings() local
5568 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxnfc() local
5608 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxnfc() local
5632 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxfh_indir_size() local
5640 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxfh() local
5658 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxfh() local
5679 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_get_rxfh_context() local
5701 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_ethtool_set_rxfh_context() local
5772 static int mvpp2_simple_queue_vectors_init(struct mvpp2_port *port, in mvpp2_simple_queue_vectors_init()
5793 static int mvpp2_multi_queue_vectors_init(struct mvpp2_port *port, in mvpp2_multi_queue_vectors_init()
5857 static int mvpp2_queue_vectors_init(struct mvpp2_port *port, in mvpp2_queue_vectors_init()
5866 static void mvpp2_queue_vectors_deinit(struct mvpp2_port *port) in mvpp2_queue_vectors_deinit()
5875 static void mvpp2_rx_irqs_setup(struct mvpp2_port *port) in mvpp2_rx_irqs_setup()
5905 static int mvpp2_port_init(struct mvpp2_port *port) in mvpp2_port_init()
6101 struct mvpp2_port *port = netdev_priv(dev); in mvpp2_port_copy_mac_addr() local
6155 struct mvpp2_port *port = mvpp2_pcs_xlg_to_port(pcs); in mvpp2_xlg_pcs_get_state() local
6207 struct mvpp2_port *port = mvpp2_pcs_gmac_to_port(pcs); in mvpp2_gmac_pcs_get_state() local
6244 struct mvpp2_port *port = mvpp2_pcs_gmac_to_port(pcs); in mvpp2_gmac_pcs_config() local
6298 struct mvpp2_port *port = mvpp2_pcs_gmac_to_port(pcs); in mvpp2_gmac_pcs_an_restart() local
6314 static void mvpp2_xlg_config(struct mvpp2_port *port, unsigned int mode, in mvpp2_xlg_config()
6334 static void mvpp2_gmac_config(struct mvpp2_port *port, unsigned int mode, in mvpp2_gmac_config()
6396 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_select_pcs() local
6411 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_prepare() local
6464 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_config() local
6481 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_finish() local
6526 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_link_up() local
6606 struct mvpp2_port *port = mvpp2_phylink_to_port(config); in mvpp2_mac_link_down() local
6640 static void mvpp2_acpi_start(struct mvpp2_port *port) in mvpp2_acpi_start()
6685 struct mvpp2_port *port; in mvpp2_port_probe() local
7032 static void mvpp2_port_remove(struct mvpp2_port *port) in mvpp2_port_remove()
7085 int port; in mvpp2_rx_fifo_init() local
7099 static void mvpp22_rx_fifo_set_hw(struct mvpp2 *priv, int port, int data_size) in mvpp22_rx_fifo_set_hw()
7118 int port, size; in mvpp22_rx_fifo_init() local
7159 int port, val; in mvpp23_rx_fifo_fc_set_tresh() local
7191 void mvpp23_rx_fifo_fc_en(struct mvpp2 *priv, int port, bool en) in mvpp23_rx_fifo_fc_en()
7205 static void mvpp22_tx_fifo_set_hw(struct mvpp2 *priv, int port, int size) in mvpp22_tx_fifo_set_hw()
7224 int port, size; in mvpp22_tx_fifo_init() local