Home
last modified time | relevance | path

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

/linux-6.12.1/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-6.12.1/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-6.12.1/drivers/scsi/libfc/
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-6.12.1/include/scsi/
Dlibfc.h249 struct fc_stats { struct
729 struct fc_stats __percpu *stats;
846 lport->stats = alloc_percpu(struct fc_stats); in fc_lport_init_stats()
/linux-6.12.1/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-6.12.1/drivers/scsi/bfa/
Dbfa_defs_svc.h371 struct bfa_fw_fc_uport_stats_s fc_stats; member
/linux-6.12.1/include/linux/mlx5/
Ddriver.h633 struct mlx5_fc_stats fc_stats; member