Lines Matching refs:num_cpus
134 static void copy_stats(struct dpaa_percpu_priv *percpu_priv, int num_cpus, in copy_stats() argument
137 int num_values = num_cpus + 1; in copy_stats()
142 data[crr++ * num_values + num_cpus] += percpu_priv->in_interrupt; in copy_stats()
145 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_packets; in copy_stats()
148 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_packets; in copy_stats()
151 data[crr++ * num_values + num_cpus] += percpu_priv->tx_confirm; in copy_stats()
154 data[crr++ * num_values + num_cpus] += percpu_priv->tx_frag_skbuffs; in copy_stats()
157 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_errors; in copy_stats()
160 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_errors; in copy_stats()
163 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_dropped; in copy_stats()
166 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_dropped; in copy_stats()
169 data[crr++ * num_values + num_cpus] += bp_count; in copy_stats()
177 unsigned int num_cpus, offset; in dpaa_get_ethtool_stats() local
187 num_cpus = num_online_cpus(); in dpaa_get_ethtool_stats()
214 copy_stats(percpu_priv, num_cpus, i, bp_count, data); in dpaa_get_ethtool_stats()
217 offset = (num_cpus + 1) * (DPAA_STATS_PERCPU_LEN + 1); in dpaa_get_ethtool_stats()
244 unsigned int i, j, num_cpus, size; in dpaa_get_strings() local
250 num_cpus = num_online_cpus(); in dpaa_get_strings()
254 for (j = 0; j < num_cpus; j++) { in dpaa_get_strings()
265 for (j = 0; j < num_cpus; j++) { in dpaa_get_strings()