Lines Matching refs:ndev_priv
768 struct am65_cpsw_ndev_priv *ndev_priv; in am65_cpsw_nuss_rx_packets() local
820 ndev_priv = netdev_priv(ndev); in am65_cpsw_nuss_rx_packets()
821 am65_cpsw_nuss_set_offload_fwd_mark(skb, ndev_priv->offload_fwd_mark); in am65_cpsw_nuss_rx_packets()
827 stats = this_cpu_ptr(ndev_priv->stats); in am65_cpsw_nuss_rx_packets()
943 struct am65_cpsw_ndev_priv *ndev_priv; in am65_cpsw_nuss_tx_compl_packet() local
960 ndev_priv = netdev_priv(ndev); in am65_cpsw_nuss_tx_compl_packet()
961 stats = this_cpu_ptr(ndev_priv->stats); in am65_cpsw_nuss_tx_compl_packet()
1443 struct am65_cpsw_ndev_priv *ndev_priv = netdev_priv(dev); in am65_cpsw_nuss_ndo_get_stats() local
1454 cpu_stats = per_cpu_ptr(ndev_priv->stats, cpu); in am65_cpsw_nuss_ndo_get_stats()
1958 struct am65_cpsw_ndev_priv *ndev_priv; in am65_cpsw_nuss_init_port_ndev() local
1979 ndev_priv = netdev_priv(port->ndev); in am65_cpsw_nuss_init_port_ndev()
1980 ndev_priv->port = port; in am65_cpsw_nuss_init_port_ndev()
1981 ndev_priv->msg_enable = AM65_CPSW_DEBUG; in am65_cpsw_nuss_init_port_ndev()
2002 ndev_priv->stats = netdev_alloc_pcpu_stats(struct am65_cpsw_ndev_stats); in am65_cpsw_nuss_init_port_ndev()
2003 if (!ndev_priv->stats) in am65_cpsw_nuss_init_port_ndev()
2007 ndev_priv->stats); in am65_cpsw_nuss_init_port_ndev()