Lines Matching refs:stats
192 struct fc_host_statistics *stats = &lp->host_stats; in fnic_get_stats() local
197 return stats; in fnic_get_stats()
201 ret = vnic_dev_stats_dump(fnic->vdev, &fnic->stats); in fnic_get_stats()
208 return stats; in fnic_get_stats()
210 vs = fnic->stats; in fnic_get_stats()
211 stats->tx_frames = vs->tx.tx_unicast_frames_ok; in fnic_get_stats()
212 stats->tx_words = vs->tx.tx_unicast_bytes_ok / 4; in fnic_get_stats()
213 stats->rx_frames = vs->rx.rx_unicast_frames_ok; in fnic_get_stats()
214 stats->rx_words = vs->rx.rx_unicast_bytes_ok / 4; in fnic_get_stats()
215 stats->error_frames = vs->tx.tx_errors + vs->rx.rx_errors; in fnic_get_stats()
216 stats->dumped_frames = vs->tx.tx_drops + vs->rx.rx_drop; in fnic_get_stats()
217 stats->invalid_crc_count = vs->rx.rx_crc_errors; in fnic_get_stats()
218 stats->seconds_since_last_reset = in fnic_get_stats()
220 stats->fcp_input_megabytes = div_u64(fnic->fcp_input_bytes, 1000000); in fnic_get_stats()
221 stats->fcp_output_megabytes = div_u64(fnic->fcp_output_bytes, 1000000); in fnic_get_stats()
223 return stats; in fnic_get_stats()
231 struct fc_host_statistics *stats) in fnic_dump_fchost_stats() argument
235 stats->seconds_since_last_reset); in fnic_dump_fchost_stats()
238 stats->tx_frames); in fnic_dump_fchost_stats()
241 stats->tx_words); in fnic_dump_fchost_stats()
244 stats->rx_frames); in fnic_dump_fchost_stats()
247 stats->rx_words); in fnic_dump_fchost_stats()
250 stats->lip_count); in fnic_dump_fchost_stats()
253 stats->nos_count); in fnic_dump_fchost_stats()
256 stats->error_frames); in fnic_dump_fchost_stats()
259 stats->dumped_frames); in fnic_dump_fchost_stats()
262 stats->link_failure_count); in fnic_dump_fchost_stats()
265 stats->loss_of_sync_count); in fnic_dump_fchost_stats()
268 stats->loss_of_signal_count); in fnic_dump_fchost_stats()
271 stats->prim_seq_protocol_err_count); in fnic_dump_fchost_stats()
274 stats->invalid_tx_word_count); in fnic_dump_fchost_stats()
277 stats->invalid_crc_count); in fnic_dump_fchost_stats()
280 stats->fcp_input_requests); in fnic_dump_fchost_stats()
283 stats->fcp_output_requests); in fnic_dump_fchost_stats()
286 stats->fcp_control_requests); in fnic_dump_fchost_stats()
289 stats->fcp_input_megabytes); in fnic_dump_fchost_stats()
292 stats->fcp_output_megabytes); in fnic_dump_fchost_stats()
305 struct fc_host_statistics *stats; in fnic_reset_host_stats() local
309 stats = fnic_get_stats(host); in fnic_reset_host_stats()
310 fnic_dump_fchost_stats(host, stats); in fnic_reset_host_stats()
323 memset(stats, 0, sizeof(*stats)); in fnic_reset_host_stats()