• Home
  • Raw
  • Download

Lines Matching refs:percpu_priv

231 	struct dpaa_percpu_priv *percpu_priv;  in dpaa_netdev_init()  local
239 percpu_priv = per_cpu_ptr(priv->percpu_priv, i); in dpaa_netdev_init()
240 percpu_priv->net_dev = net_dev; in dpaa_netdev_init()
338 struct dpaa_percpu_priv *percpu_priv; in dpaa_tx_timeout() local
342 percpu_priv = this_cpu_ptr(priv->percpu_priv); in dpaa_tx_timeout()
347 percpu_priv->stats.tx_errors++; in dpaa_tx_timeout()
358 struct dpaa_percpu_priv *percpu_priv; in dpaa_get_stats64() local
364 percpu_priv = per_cpu_ptr(priv->percpu_priv, i); in dpaa_get_stats64()
366 cpustats = (u64 *)&percpu_priv->stats; in dpaa_get_stats64()
1400 static void count_ern(struct dpaa_percpu_priv *percpu_priv, in count_ern() argument
1405 percpu_priv->ern_cnt.cg_tdrop++; in count_ern()
1408 percpu_priv->ern_cnt.wred++; in count_ern()
1411 percpu_priv->ern_cnt.err_cond++; in count_ern()
1414 percpu_priv->ern_cnt.early_window++; in count_ern()
1417 percpu_priv->ern_cnt.late_window++; in count_ern()
1420 percpu_priv->ern_cnt.fq_tdrop++; in count_ern()
1423 percpu_priv->ern_cnt.fq_retired++; in count_ern()
1426 percpu_priv->ern_cnt.orp_zero++; in count_ern()
2266 struct dpaa_percpu_priv *percpu_priv; in dpaa_start_xmit() local
2274 percpu_priv = this_cpu_ptr(priv->percpu_priv); in dpaa_start_xmit()
2275 percpu_stats = &percpu_priv->stats; in dpaa_start_xmit()
2317 percpu_priv->tx_frag_skbuffs++; in dpaa_start_xmit()
2348 struct dpaa_percpu_priv *percpu_priv, in dpaa_rx_error() argument
2356 percpu_priv->stats.rx_errors++; in dpaa_rx_error()
2359 percpu_priv->rx_errors.dme++; in dpaa_rx_error()
2361 percpu_priv->rx_errors.fpe++; in dpaa_rx_error()
2363 percpu_priv->rx_errors.fse++; in dpaa_rx_error()
2365 percpu_priv->rx_errors.phe++; in dpaa_rx_error()
2372 struct dpaa_percpu_priv *percpu_priv, in dpaa_tx_error() argument
2382 percpu_priv->stats.tx_errors++; in dpaa_tx_error()
2413 struct dpaa_percpu_priv *percpu_priv, in dpaa_tx_conf() argument
2425 percpu_priv->stats.tx_errors++; in dpaa_tx_conf()
2428 percpu_priv->tx_confirm++; in dpaa_tx_conf()
2435 static inline int dpaa_eth_napi_schedule(struct dpaa_percpu_priv *percpu_priv, in dpaa_eth_napi_schedule() argument
2442 percpu_priv->np.p = portal; in dpaa_eth_napi_schedule()
2443 napi_schedule(&percpu_priv->np.napi); in dpaa_eth_napi_schedule()
2444 percpu_priv->in_interrupt++; in dpaa_eth_napi_schedule()
2456 struct dpaa_percpu_priv *percpu_priv; in rx_error_dqrr() local
2467 percpu_priv = this_cpu_ptr(priv->percpu_priv); in rx_error_dqrr()
2469 if (dpaa_eth_napi_schedule(percpu_priv, portal, sched_napi)) in rx_error_dqrr()
2473 dpaa_rx_error(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); in rx_error_dqrr()
2483 struct dpaa_percpu_priv *percpu_priv; in dpaa_xdp_xmit_frame() local
2491 percpu_priv = this_cpu_ptr(priv->percpu_priv); in dpaa_xdp_xmit_frame()
2492 percpu_stats = &percpu_priv->stats; in dpaa_xdp_xmit_frame()
2649 struct dpaa_percpu_priv *percpu_priv; in rx_default_dqrr() local
2679 percpu_priv = this_cpu_ptr(priv->percpu_priv); in rx_default_dqrr()
2680 percpu_stats = &percpu_priv->stats; in rx_default_dqrr()
2681 np = &percpu_priv->np; in rx_default_dqrr()
2683 if (unlikely(dpaa_eth_napi_schedule(percpu_priv, portal, sched_napi))) in rx_default_dqrr()
2804 struct dpaa_percpu_priv *percpu_priv; in conf_error_dqrr() local
2811 percpu_priv = this_cpu_ptr(priv->percpu_priv); in conf_error_dqrr()
2813 if (dpaa_eth_napi_schedule(percpu_priv, portal, sched_napi)) in conf_error_dqrr()
2816 dpaa_tx_error(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); in conf_error_dqrr()
2826 struct dpaa_percpu_priv *percpu_priv; in conf_dflt_dqrr() local
2836 percpu_priv = this_cpu_ptr(priv->percpu_priv); in conf_dflt_dqrr()
2838 if (dpaa_eth_napi_schedule(percpu_priv, portal, sched_napi)) in conf_dflt_dqrr()
2841 dpaa_tx_conf(net_dev, priv, percpu_priv, &dq->fd, fq->fqid); in conf_dflt_dqrr()
2851 struct dpaa_percpu_priv *percpu_priv; in egress_ern() local
2858 percpu_priv = this_cpu_ptr(priv->percpu_priv); in egress_ern()
2860 percpu_priv->stats.tx_dropped++; in egress_ern()
2861 percpu_priv->stats.tx_fifo_errors++; in egress_ern()
2862 count_ern(percpu_priv, msg); in egress_ern()
2878 struct dpaa_percpu_priv *percpu_priv; in dpaa_eth_napi_enable() local
2882 percpu_priv = per_cpu_ptr(priv->percpu_priv, i); in dpaa_eth_napi_enable()
2884 percpu_priv->np.down = false; in dpaa_eth_napi_enable()
2885 napi_enable(&percpu_priv->np.napi); in dpaa_eth_napi_enable()
2891 struct dpaa_percpu_priv *percpu_priv; in dpaa_eth_napi_disable() local
2895 percpu_priv = per_cpu_ptr(priv->percpu_priv, i); in dpaa_eth_napi_disable()
2897 percpu_priv->np.down = true; in dpaa_eth_napi_disable()
2898 napi_disable(&percpu_priv->np.napi); in dpaa_eth_napi_disable()
3170 struct dpaa_percpu_priv *percpu_priv; in dpaa_napi_add() local
3174 percpu_priv = per_cpu_ptr(priv->percpu_priv, cpu); in dpaa_napi_add()
3176 netif_napi_add(net_dev, &percpu_priv->np.napi, in dpaa_napi_add()
3186 struct dpaa_percpu_priv *percpu_priv; in dpaa_napi_del() local
3190 percpu_priv = per_cpu_ptr(priv->percpu_priv, cpu); in dpaa_napi_del()
3192 netif_napi_del(&percpu_priv->np.napi); in dpaa_napi_del()
3485 priv->percpu_priv = devm_alloc_percpu(dev, *priv->percpu_priv); in dpaa_eth_probe()
3486 if (!priv->percpu_priv) { in dpaa_eth_probe()