Lines Matching refs:stats
193 struct fc_host_statistics *stats = &lp->host_stats; in fnic_get_stats() local
198 return stats; in fnic_get_stats()
202 ret = vnic_dev_stats_dump(fnic->vdev, &fnic->stats); in fnic_get_stats()
209 return stats; in fnic_get_stats()
211 vs = fnic->stats; in fnic_get_stats()
212 stats->tx_frames = vs->tx.tx_unicast_frames_ok; in fnic_get_stats()
213 stats->tx_words = vs->tx.tx_unicast_bytes_ok / 4; in fnic_get_stats()
214 stats->rx_frames = vs->rx.rx_unicast_frames_ok; in fnic_get_stats()
215 stats->rx_words = vs->rx.rx_unicast_bytes_ok / 4; in fnic_get_stats()
216 stats->error_frames = vs->tx.tx_errors + vs->rx.rx_errors; in fnic_get_stats()
217 stats->dumped_frames = vs->tx.tx_drops + vs->rx.rx_drop; in fnic_get_stats()
218 stats->invalid_crc_count = vs->rx.rx_crc_errors; in fnic_get_stats()
219 stats->seconds_since_last_reset = in fnic_get_stats()
221 stats->fcp_input_megabytes = div_u64(fnic->fcp_input_bytes, 1000000); in fnic_get_stats()
222 stats->fcp_output_megabytes = div_u64(fnic->fcp_output_bytes, 1000000); in fnic_get_stats()
224 return stats; in fnic_get_stats()
232 struct fc_host_statistics *stats) in fnic_dump_fchost_stats() argument
236 stats->seconds_since_last_reset); in fnic_dump_fchost_stats()
239 stats->tx_frames); in fnic_dump_fchost_stats()
242 stats->tx_words); in fnic_dump_fchost_stats()
245 stats->rx_frames); in fnic_dump_fchost_stats()
248 stats->rx_words); in fnic_dump_fchost_stats()
251 stats->lip_count); in fnic_dump_fchost_stats()
254 stats->nos_count); in fnic_dump_fchost_stats()
257 stats->error_frames); in fnic_dump_fchost_stats()
260 stats->dumped_frames); in fnic_dump_fchost_stats()
263 stats->link_failure_count); in fnic_dump_fchost_stats()
266 stats->loss_of_sync_count); in fnic_dump_fchost_stats()
269 stats->loss_of_signal_count); in fnic_dump_fchost_stats()
272 stats->prim_seq_protocol_err_count); in fnic_dump_fchost_stats()
275 stats->invalid_tx_word_count); in fnic_dump_fchost_stats()
278 stats->invalid_crc_count); in fnic_dump_fchost_stats()
281 stats->fcp_input_requests); in fnic_dump_fchost_stats()
284 stats->fcp_output_requests); in fnic_dump_fchost_stats()
287 stats->fcp_control_requests); in fnic_dump_fchost_stats()
290 stats->fcp_input_megabytes); in fnic_dump_fchost_stats()
293 stats->fcp_output_megabytes); in fnic_dump_fchost_stats()
306 struct fc_host_statistics *stats; in fnic_reset_host_stats() local
310 stats = fnic_get_stats(host); in fnic_reset_host_stats()
311 fnic_dump_fchost_stats(host, stats); in fnic_reset_host_stats()
324 memset(stats, 0, sizeof(*stats)); in fnic_reset_host_stats()