Home
last modified time | relevance | path

Searched refs:fc_stats (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_counters.c113 struct mlx5_fc_stats *fc_stats = dev->priv.fc_stats; in mlx5_fc_stats_query_all_counters() local
114 u32 bulk_len = fc_stats->bulk_query_len; in mlx5_fc_stats_query_all_counters()
115 XA_STATE(xas, &fc_stats->counters, 0); in mlx5_fc_stats_query_all_counters()
116 u32 *data = fc_stats->bulk_query_out; in mlx5_fc_stats_query_all_counters()
162 struct mlx5_fc_stats *fc_stats = dev->priv.fc_stats; in mlx5_fc_release() local
168 mlx5_fc_pool_release_counter(&fc_stats->fc_pool, counter); in mlx5_fc_release()
176 struct mlx5_fc_stats *fc_stats = dev->priv.fc_stats; in mlx5_fc_stats_bulk_query_buf_realloc() local
189 kvfree(fc_stats->bulk_query_out); in mlx5_fc_stats_bulk_query_buf_realloc()
190 fc_stats->bulk_query_out = bulk_query_out_tmp; in mlx5_fc_stats_bulk_query_buf_realloc()
191 fc_stats->bulk_query_len = bulk_query_len; in mlx5_fc_stats_bulk_query_buf_realloc()
[all …]
/linux/drivers/s390/scsi/
H A Dzfcp_scsi.c542 struct fc_host_statistics *fc_stats; in zfcp_scsi_init_fc_host_stats() local
544 if (!adapter->fc_stats) { in zfcp_scsi_init_fc_host_stats()
545 fc_stats = kmalloc_obj(*fc_stats); in zfcp_scsi_init_fc_host_stats()
546 if (!fc_stats) in zfcp_scsi_init_fc_host_stats()
548 adapter->fc_stats = fc_stats; /* freed in adapter_release */ in zfcp_scsi_init_fc_host_stats()
550 memset(adapter->fc_stats, 0, sizeof(*adapter->fc_stats)); in zfcp_scsi_init_fc_host_stats()
551 return adapter->fc_stats; in zfcp_scsi_init_fc_host_stats()
554 static void zfcp_scsi_adjust_fc_host_stats(struct fc_host_statistics *fc_stats, in zfcp_scsi_adjust_fc_host_stats() argument
558 fc_stats->seconds_since_last_reset = in zfcp_scsi_adjust_fc_host_stats()
560 fc_stats->tx_frames = data->tx_frames - old->tx_frames; in zfcp_scsi_adjust_fc_host_stats()
[all …]
H A Dzfcp_def.h192 struct fc_host_statistics *fc_stats; member
H A Dzfcp_aux.c480 kfree(adapter->fc_stats); in zfcp_adapter_release()
/linux/drivers/scsi/libfc/
H A Dfc_lport.c301 struct fc_host_statistics *fc_stats; in fc_get_host_stats() local
307 fc_stats = &lport->host_stats; in fc_get_host_stats()
308 memset(fc_stats, 0, sizeof(struct fc_host_statistics)); in fc_get_host_stats()
310 fc_stats->seconds_since_last_reset = (jiffies - lport->boot_time) / HZ; in fc_get_host_stats()
313 struct fc_stats *stats; in fc_get_host_stats()
317 fc_stats->tx_frames += READ_ONCE(stats->TxFrames); in fc_get_host_stats()
318 fc_stats->tx_words += READ_ONCE(stats->TxWords); in fc_get_host_stats()
319 fc_stats->rx_frames += READ_ONCE(stats->RxFrames); in fc_get_host_stats()
320 fc_stats->rx_words += READ_ONCE(stats->RxWords); in fc_get_host_stats()
321 fc_stats->error_frames += READ_ONCE(stats->ErrorFrames); in fc_get_host_stats()
[all …]
/linux/include/scsi/
H A Dlibfc.h226 * struct fc_stats - fc stats structure
249 struct fc_stats { struct
729 struct fc_stats __percpu *stats;
846 lport->stats = alloc_percpu(struct fc_stats); in fc_lport_init_stats()
250 SecondsSinceLastResetfc_stats global() argument
251 TxFramesfc_stats global() argument
252 TxWordsfc_stats global() argument
253 RxFramesfc_stats global() argument
254 RxWordsfc_stats global() argument
255 ErrorFramesfc_stats global() argument
256 DumpedFramesfc_stats global() argument
257 FcpPktAllocFailsfc_stats global() argument
258 FcpPktAbortsfc_stats global() argument
259 FcpFrameAllocFailsfc_stats global() argument
260 LinkFailureCountfc_stats global() argument
261 LossOfSignalCountfc_stats global() argument
262 InvalidTxWordCountfc_stats global() argument
263 InvalidCRCCountfc_stats global() argument
264 InputRequestsfc_stats global() argument
265 OutputRequestsfc_stats global() argument
266 ControlRequestsfc_stats global() argument
267 InputBytesfc_stats global() argument
268 OutputBytesfc_stats global() argument
269 VLinkFailureCountfc_stats global() argument
270 MissDiscAdvCountfc_stats global() argument
/linux/drivers/scsi/fcoe/
H A Dfcoe_transport.c175 struct fc_stats *stats; in __fcoe_get_lesb()
H A Dfcoe.c1660 struct fc_stats *stats; in fcoe_recv_frame()
/linux/drivers/scsi/bfa/
H A Dbfa_defs_svc.h371 struct bfa_fw_fc_uport_stats_s fc_stats; member
/linux/include/linux/mlx5/
H A Ddriver.h610 struct mlx5_fc_stats *fc_stats; member