Searched refs:fc_stats (Results 1 – 10 of 10) sorted by relevance
112 struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats; in mlx5_fc_counters_lookup_next() local119 idr_for_each_entry_continue_ul(&fc_stats->counters_idr, in mlx5_fc_counters_lookup_next()126 return counter ? &counter->list : &fc_stats->counters; in mlx5_fc_counters_lookup_next()140 struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats; in mlx5_fc_stats_remove() local144 spin_lock(&fc_stats->counters_idr_lock); in mlx5_fc_stats_remove()145 WARN_ON(!idr_remove(&fc_stats->counters_idr, counter->id)); in mlx5_fc_stats_remove()146 spin_unlock(&fc_stats->counters_idr_lock); in mlx5_fc_stats_remove()181 struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats; in mlx5_fc_stats_query_counter_range() local183 int cur_bulk_len = fc_stats->bulk_query_len; in mlx5_fc_stats_query_counter_range()184 u32 *data = fc_stats->bulk_query_out; in mlx5_fc_stats_query_counter_range()[all …]
542 struct fc_host_statistics *fc_stats; in zfcp_scsi_init_fc_host_stats() local544 if (!adapter->fc_stats) { in zfcp_scsi_init_fc_host_stats()545 fc_stats = kmalloc(sizeof(*fc_stats), GFP_KERNEL); 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() argument558 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 …]
192 struct fc_host_statistics *fc_stats; member
483 kfree(adapter->fc_stats); in zfcp_adapter_release()
295 struct fc_host_statistics *fc_stats; in fc_get_host_stats() local301 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 += READ_ONCE(stats->TxFrames); in fc_get_host_stats()312 fc_stats->tx_words += READ_ONCE(stats->TxWords); in fc_get_host_stats()313 fc_stats->rx_frames += READ_ONCE(stats->RxFrames); in fc_get_host_stats()314 fc_stats->rx_words += READ_ONCE(stats->RxWords); in fc_get_host_stats()315 fc_stats->error_frames += READ_ONCE(stats->ErrorFrames); in fc_get_host_stats()[all …]
244 struct fc_stats { struct723 struct fc_stats __percpu *stats;836 lport->stats = alloc_percpu(struct fc_stats); in fc_lport_init_stats()
175 struct fc_stats *stats; in __fcoe_get_lesb()
1680 struct fc_stats *stats; in fcoe_recv_frame()
371 struct bfa_fw_fc_uport_stats_s fc_stats; member
626 struct mlx5_fc_stats fc_stats; member