Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c112 struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats; in mlx5_fc_counters_lookup_next() local
119 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() local
144 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() local
183 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 …]
/Linux-v6.6/drivers/s390/scsi/
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(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() 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 …]
Dzfcp_def.h192 struct fc_host_statistics *fc_stats; member
Dzfcp_aux.c483 kfree(adapter->fc_stats); in zfcp_adapter_release()
/Linux-v6.6/drivers/scsi/libfc/
Dfc_lport.c295 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 += 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 …]
/Linux-v6.6/include/scsi/
Dlibfc.h244 struct fc_stats { struct
723 struct fc_stats __percpu *stats;
836 lport->stats = alloc_percpu(struct fc_stats); in fc_lport_init_stats()
/Linux-v6.6/drivers/scsi/fcoe/
Dfcoe_transport.c175 struct fc_stats *stats; in __fcoe_get_lesb()
Dfcoe.c1680 struct fc_stats *stats; in fcoe_recv_frame()
/Linux-v6.6/drivers/scsi/bfa/
Dbfa_defs_svc.h371 struct bfa_fw_fc_uport_stats_s fc_stats; member
/Linux-v6.6/include/linux/mlx5/
Ddriver.h626 struct mlx5_fc_stats fc_stats; member