Lines Matching refs:fc_stats

295 	struct fc_host_statistics *fc_stats;  in fc_get_host_stats()  local
301 fc_stats = &lport->host_stats; in fc_get_host_stats()
302 memset(fc_stats, 0, sizeof(struct fc_host_statistics)); in fc_get_host_stats()
304 fc_stats->seconds_since_last_reset = (jiffies - lport->boot_time) / HZ; in fc_get_host_stats()
307 struct fc_stats *stats; in fc_get_host_stats()
311 fc_stats->tx_frames += stats->TxFrames; in fc_get_host_stats()
312 fc_stats->tx_words += stats->TxWords; in fc_get_host_stats()
313 fc_stats->rx_frames += stats->RxFrames; in fc_get_host_stats()
314 fc_stats->rx_words += stats->RxWords; in fc_get_host_stats()
315 fc_stats->error_frames += stats->ErrorFrames; in fc_get_host_stats()
316 fc_stats->invalid_crc_count += stats->InvalidCRCCount; in fc_get_host_stats()
317 fc_stats->fcp_input_requests += stats->InputRequests; in fc_get_host_stats()
318 fc_stats->fcp_output_requests += stats->OutputRequests; in fc_get_host_stats()
319 fc_stats->fcp_control_requests += stats->ControlRequests; in fc_get_host_stats()
322 fc_stats->fcp_packet_alloc_failures += stats->FcpPktAllocFails; in fc_get_host_stats()
323 fc_stats->fcp_packet_aborts += stats->FcpPktAborts; in fc_get_host_stats()
324 fc_stats->fcp_frame_alloc_failures += stats->FcpFrameAllocFails; in fc_get_host_stats()
325 fc_stats->link_failure_count += stats->LinkFailureCount; in fc_get_host_stats()
327 fc_stats->fcp_input_megabytes = div_u64(fcp_in_bytes, 1000000); in fc_get_host_stats()
328 fc_stats->fcp_output_megabytes = div_u64(fcp_out_bytes, 1000000); in fc_get_host_stats()
329 fc_stats->lip_count = -1; in fc_get_host_stats()
330 fc_stats->nos_count = -1; in fc_get_host_stats()
331 fc_stats->loss_of_sync_count = -1; in fc_get_host_stats()
332 fc_stats->loss_of_signal_count = -1; in fc_get_host_stats()
333 fc_stats->prim_seq_protocol_err_count = -1; in fc_get_host_stats()
334 fc_stats->dumped_frames = -1; in fc_get_host_stats()
339 return fc_stats; in fc_get_host_stats()