Lines Matching refs:num_cpus
220 static void copy_stats(struct dpaa_percpu_priv *percpu_priv, int num_cpus, in copy_stats() argument
223 int num_values = num_cpus + 1; in copy_stats()
228 data[crr++ * num_values + num_cpus] += percpu_priv->in_interrupt; in copy_stats()
231 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_packets; in copy_stats()
234 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_packets; in copy_stats()
237 data[crr++ * num_values + num_cpus] += percpu_priv->tx_confirm; in copy_stats()
240 data[crr++ * num_values + num_cpus] += percpu_priv->tx_frag_skbuffs; in copy_stats()
243 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_errors; in copy_stats()
246 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_errors; in copy_stats()
249 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_dropped; in copy_stats()
252 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_dropped; in copy_stats()
255 data[crr++ * num_values + num_cpus] += bp_count; in copy_stats()
263 unsigned int num_cpus, offset; in dpaa_get_ethtool_stats() local
273 num_cpus = num_online_cpus(); in dpaa_get_ethtool_stats()
300 copy_stats(percpu_priv, num_cpus, i, bp_count, data); in dpaa_get_ethtool_stats()
303 offset = (num_cpus + 1) * (DPAA_STATS_PERCPU_LEN + 1); in dpaa_get_ethtool_stats()
330 unsigned int i, j, num_cpus, size; in dpaa_get_strings() local
336 num_cpus = num_online_cpus(); in dpaa_get_strings()
340 for (j = 0; j < num_cpus; j++) { in dpaa_get_strings()
351 for (j = 0; j < num_cpus; j++) { in dpaa_get_strings()