Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c110 struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats; in mlx5_fc_counters_lookup_next() local
117 idr_for_each_entry_continue_ul(&fc_stats->counters_idr, in mlx5_fc_counters_lookup_next()
124 return counter ? &counter->list : &fc_stats->counters; in mlx5_fc_counters_lookup_next()
138 struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats; in mlx5_fc_stats_remove() local
142 spin_lock(&fc_stats->counters_idr_lock); in mlx5_fc_stats_remove()
143 WARN_ON(!idr_remove(&fc_stats->counters_idr, counter->id)); in mlx5_fc_stats_remove()
144 spin_unlock(&fc_stats->counters_idr_lock); in mlx5_fc_stats_remove()
173 struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats; in mlx5_fc_stats_query_counter_range() local
176 u32 *data = fc_stats->bulk_query_out; in mlx5_fc_stats_query_counter_range()
198 list_for_each_entry_from(counter, &fc_stats->counters, list) { in mlx5_fc_stats_query_counter_range()
[all …]
/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()
/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 += stats->TxFrames; in fc_get_host_stats()
318 fc_stats->tx_words += stats->TxWords; in fc_get_host_stats()
319 fc_stats->rx_frames += stats->RxFrames; in fc_get_host_stats()
320 fc_stats->rx_words += stats->RxWords; in fc_get_host_stats()
321 fc_stats->error_frames += stats->ErrorFrames; in fc_get_host_stats()
[all …]
Dfc_fcp.c483 struct fc_stats *stats; in fc_fcp_recv_data()
1874 struct fc_stats *stats; in fc_queuecommand()
/drivers/scsi/fcoe/
Dfcoe.c1476 struct fc_stats *stats; in fcoe_xmit()
1612 struct fc_stats *stats; in fcoe_filter_frames()
1659 struct fc_stats *stats; in fcoe_recv_frame()
1849 struct fc_stats *stats; in fcoe_device_notification()
Dfcoe_transport.c175 struct fc_stats *stats; in __fcoe_get_lesb()
Dfcoe_ctlr.c827 struct fc_stats *stats; in fcoe_ctlr_age_fcfs()
1145 struct fc_stats *stats; in fcoe_ctlr_recv_els()
/drivers/scsi/bfa/
Dbfa_defs_svc.h371 struct bfa_fw_fc_uport_stats_s fc_stats; member
/drivers/scsi/bnx2fc/
Dbnx2fc_fcoe.c276 struct fc_stats *stats; in bnx2fc_xmit()
512 struct fc_stats *stats; in bnx2fc_recv_frame()
Dbnx2fc_io.c2036 struct fc_stats *stats; in bnx2fc_post_io_req()
/drivers/scsi/qedf/
Dqedf_main.c1070 struct fc_stats *stats; in qedf_xmit()