fc_stats          110 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          117 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	idr_for_each_entry_continue_ul(&fc_stats->counters_idr,
fc_stats          124 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	return counter ? &counter->list : &fc_stats->counters;
fc_stats          138 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          142 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	spin_lock(&fc_stats->counters_idr_lock);
fc_stats          143 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	WARN_ON(!idr_remove(&fc_stats->counters_idr, counter->id));
fc_stats          144 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	spin_unlock(&fc_stats->counters_idr_lock);
fc_stats          173 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          176 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	u32 *data = fc_stats->bulk_query_out;
fc_stats          198 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		list_for_each_entry_from(counter, &fc_stats->counters, list) {
fc_stats          220 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          223 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mlx5_fc_pool_release_counter(&fc_stats->fc_pool, counter);
fc_stats          231 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 						 priv.fc_stats.work.work);
fc_stats          232 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          236 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct llist_node *dellist = llist_del_all(&fc_stats->dellist);
fc_stats          237 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct llist_node *addlist = llist_del_all(&fc_stats->addlist);
fc_stats          241 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (addlist || !list_empty(&fc_stats->counters))
fc_stats          242 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		queue_delayed_work(fc_stats->wq, &fc_stats->work,
fc_stats          243 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 				   fc_stats->sampling_interval);
fc_stats          254 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (time_before(now, fc_stats->next_query) ||
fc_stats          255 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	    list_empty(&fc_stats->counters))
fc_stats          257 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	last = list_last_entry(&fc_stats->counters, struct mlx5_fc, list);
fc_stats          259 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	counter = list_first_entry(&fc_stats->counters, struct mlx5_fc,
fc_stats          264 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	fc_stats->next_query = now + fc_stats->sampling_interval;
fc_stats          287 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          291 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		counter = mlx5_fc_pool_acquire_counter(&fc_stats->fc_pool);
fc_stats          302 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          319 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		spin_lock(&fc_stats->counters_idr_lock);
fc_stats          321 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		err = idr_alloc_u32(&fc_stats->counters_idr, counter, &id, id,
fc_stats          324 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		spin_unlock(&fc_stats->counters_idr_lock);
fc_stats          329 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		llist_add(&counter->addlist, &fc_stats->addlist);
fc_stats          331 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mod_delayed_work(fc_stats->wq, &fc_stats->work, 0);
fc_stats          350 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          356 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		llist_add(&counter->dellist, &fc_stats->dellist);
fc_stats          357 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 		mod_delayed_work(fc_stats->wq, &fc_stats->work, 0);
fc_stats          367 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          371 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	spin_lock_init(&fc_stats->counters_idr_lock);
fc_stats          372 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	idr_init(&fc_stats->counters_idr);
fc_stats          373 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	INIT_LIST_HEAD(&fc_stats->counters);
fc_stats          374 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	init_llist_head(&fc_stats->addlist);
fc_stats          375 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	init_llist_head(&fc_stats->dellist);
fc_stats          379 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	fc_stats->bulk_query_out = kzalloc(max_out_len, GFP_KERNEL);
fc_stats          380 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (!fc_stats->bulk_query_out)
fc_stats          383 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	fc_stats->wq = create_singlethread_workqueue("mlx5_fc");
fc_stats          384 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	if (!fc_stats->wq)
fc_stats          387 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	fc_stats->sampling_interval = MLX5_FC_STATS_PERIOD;
fc_stats          388 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	INIT_DELAYED_WORK(&fc_stats->work, mlx5_fc_stats_work);
fc_stats          390 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	mlx5_fc_pool_init(&fc_stats->fc_pool, dev);
fc_stats          394 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	kfree(fc_stats->bulk_query_out);
fc_stats          400 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          405 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	cancel_delayed_work_sync(&dev->priv.fc_stats.work);
fc_stats          406 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	destroy_workqueue(dev->priv.fc_stats.wq);
fc_stats          407 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	dev->priv.fc_stats.wq = NULL;
fc_stats          409 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	tmplist = llist_del_all(&fc_stats->addlist);
fc_stats          413 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	list_for_each_entry_safe(counter, tmp, &fc_stats->counters, list)
fc_stats          416 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	mlx5_fc_pool_cleanup(&fc_stats->fc_pool);
fc_stats          417 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	idr_destroy(&fc_stats->counters_idr);
fc_stats          418 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	kfree(fc_stats->bulk_query_out);
fc_stats          452 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          454 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	queue_delayed_work(fc_stats->wq, dwork, delay);
fc_stats          460 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	struct mlx5_fc_stats *fc_stats = &dev->priv.fc_stats;
fc_stats          462 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 	fc_stats->sampling_interval = min_t(unsigned long, interval,
fc_stats          463 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 					    fc_stats->sampling_interval);
fc_stats          453 drivers/s390/scsi/zfcp_aux.c 	kfree(adapter->fc_stats);
fc_stats          190 drivers/s390/scsi/zfcp_def.h 	struct fc_host_statistics *fc_stats;
fc_stats          520 drivers/s390/scsi/zfcp_scsi.c 	struct fc_host_statistics *fc_stats;
fc_stats          522 drivers/s390/scsi/zfcp_scsi.c 	if (!adapter->fc_stats) {
fc_stats          523 drivers/s390/scsi/zfcp_scsi.c 		fc_stats = kmalloc(sizeof(*fc_stats), GFP_KERNEL);
fc_stats          524 drivers/s390/scsi/zfcp_scsi.c 		if (!fc_stats)
fc_stats          526 drivers/s390/scsi/zfcp_scsi.c 		adapter->fc_stats = fc_stats; /* freed in adapter_release */
fc_stats          528 drivers/s390/scsi/zfcp_scsi.c 	memset(adapter->fc_stats, 0, sizeof(*adapter->fc_stats));
fc_stats          529 drivers/s390/scsi/zfcp_scsi.c 	return adapter->fc_stats;
fc_stats          532 drivers/s390/scsi/zfcp_scsi.c static void zfcp_scsi_adjust_fc_host_stats(struct fc_host_statistics *fc_stats,
fc_stats          536 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->seconds_since_last_reset =
fc_stats          538 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->tx_frames = data->tx_frames - old->tx_frames;
fc_stats          539 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->tx_words = data->tx_words - old->tx_words;
fc_stats          540 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->rx_frames = data->rx_frames - old->rx_frames;
fc_stats          541 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->rx_words = data->rx_words - old->rx_words;
fc_stats          542 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->lip_count = data->lip - old->lip;
fc_stats          543 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->nos_count = data->nos - old->nos;
fc_stats          544 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->error_frames = data->error_frames - old->error_frames;
fc_stats          545 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->dumped_frames = data->dumped_frames - old->dumped_frames;
fc_stats          546 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->link_failure_count = data->link_failure - old->link_failure;
fc_stats          547 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->loss_of_sync_count = data->loss_of_sync - old->loss_of_sync;
fc_stats          548 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->loss_of_signal_count =
fc_stats          550 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->prim_seq_protocol_err_count =
fc_stats          552 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->invalid_tx_word_count =
fc_stats          554 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->invalid_crc_count = data->invalid_crcs - old->invalid_crcs;
fc_stats          555 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_input_requests =
fc_stats          557 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_output_requests =
fc_stats          559 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_control_requests =
fc_stats          561 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_input_megabytes = data->input_mb - old->input_mb;
fc_stats          562 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_output_megabytes = data->output_mb - old->output_mb;
fc_stats          565 drivers/s390/scsi/zfcp_scsi.c static void zfcp_scsi_set_fc_host_stats(struct fc_host_statistics *fc_stats,
fc_stats          568 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->seconds_since_last_reset = data->seconds_since_last_reset;
fc_stats          569 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->tx_frames = data->tx_frames;
fc_stats          570 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->tx_words = data->tx_words;
fc_stats          571 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->rx_frames = data->rx_frames;
fc_stats          572 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->rx_words = data->rx_words;
fc_stats          573 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->lip_count = data->lip;
fc_stats          574 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->nos_count = data->nos;
fc_stats          575 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->error_frames = data->error_frames;
fc_stats          576 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->dumped_frames = data->dumped_frames;
fc_stats          577 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->link_failure_count = data->link_failure;
fc_stats          578 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->loss_of_sync_count = data->loss_of_sync;
fc_stats          579 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->loss_of_signal_count = data->loss_of_signal;
fc_stats          580 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->prim_seq_protocol_err_count = data->psp_error_counts;
fc_stats          581 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->invalid_tx_word_count = data->invalid_tx_words;
fc_stats          582 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->invalid_crc_count = data->invalid_crcs;
fc_stats          583 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_input_requests = data->input_requests;
fc_stats          584 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_output_requests = data->output_requests;
fc_stats          585 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_control_requests = data->control_requests;
fc_stats          586 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_input_megabytes = data->input_mb;
fc_stats          587 drivers/s390/scsi/zfcp_scsi.c 	fc_stats->fcp_output_megabytes = data->output_mb;
fc_stats          594 drivers/s390/scsi/zfcp_scsi.c 	struct fc_host_statistics *fc_stats;
fc_stats          599 drivers/s390/scsi/zfcp_scsi.c 	fc_stats = zfcp_scsi_init_fc_host_stats(adapter);
fc_stats          600 drivers/s390/scsi/zfcp_scsi.c 	if (!fc_stats)
fc_stats          616 drivers/s390/scsi/zfcp_scsi.c 		zfcp_scsi_adjust_fc_host_stats(fc_stats, data,
fc_stats          619 drivers/s390/scsi/zfcp_scsi.c 		zfcp_scsi_set_fc_host_stats(fc_stats, data);
fc_stats          622 drivers/s390/scsi/zfcp_scsi.c 	return fc_stats;
fc_stats          371 drivers/scsi/bfa/bfa_defs_svc.h 	struct bfa_fw_fc_uport_stats_s		fc_stats;
fc_stats          274 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_stats		*stats;
fc_stats          512 drivers/scsi/bnx2fc/bnx2fc_fcoe.c 	struct fc_stats *stats;
fc_stats         2042 drivers/scsi/bnx2fc/bnx2fc_io.c 	struct fc_stats *stats;
fc_stats         1478 drivers/scsi/fcoe/fcoe.c 	struct fc_stats *stats;
fc_stats         1614 drivers/scsi/fcoe/fcoe.c 	struct fc_stats *stats;
fc_stats         1661 drivers/scsi/fcoe/fcoe.c 	struct fc_stats *stats;
fc_stats         1851 drivers/scsi/fcoe/fcoe.c 	struct fc_stats *stats;
fc_stats          825 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_stats *stats;
fc_stats         1143 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fc_stats *stats;
fc_stats          174 drivers/scsi/fcoe/fcoe_transport.c 	struct fc_stats *stats;
fc_stats          477 drivers/scsi/libfc/fc_fcp.c 	struct fc_stats *stats;
fc_stats         1865 drivers/scsi/libfc/fc_fcp.c 	struct fc_stats *stats;
fc_stats          292 drivers/scsi/libfc/fc_lport.c 	struct fc_host_statistics *fc_stats;
fc_stats          298 drivers/scsi/libfc/fc_lport.c 	fc_stats = &lport->host_stats;
fc_stats          299 drivers/scsi/libfc/fc_lport.c 	memset(fc_stats, 0, sizeof(struct fc_host_statistics));
fc_stats          301 drivers/scsi/libfc/fc_lport.c 	fc_stats->seconds_since_last_reset = (jiffies - lport->boot_time) / HZ;
fc_stats          304 drivers/scsi/libfc/fc_lport.c 		struct fc_stats *stats;
fc_stats          308 drivers/scsi/libfc/fc_lport.c 		fc_stats->tx_frames += stats->TxFrames;
fc_stats          309 drivers/scsi/libfc/fc_lport.c 		fc_stats->tx_words += stats->TxWords;
fc_stats          310 drivers/scsi/libfc/fc_lport.c 		fc_stats->rx_frames += stats->RxFrames;
fc_stats          311 drivers/scsi/libfc/fc_lport.c 		fc_stats->rx_words += stats->RxWords;
fc_stats          312 drivers/scsi/libfc/fc_lport.c 		fc_stats->error_frames += stats->ErrorFrames;
fc_stats          313 drivers/scsi/libfc/fc_lport.c 		fc_stats->invalid_crc_count += stats->InvalidCRCCount;
fc_stats          314 drivers/scsi/libfc/fc_lport.c 		fc_stats->fcp_input_requests += stats->InputRequests;
fc_stats          315 drivers/scsi/libfc/fc_lport.c 		fc_stats->fcp_output_requests += stats->OutputRequests;
fc_stats          316 drivers/scsi/libfc/fc_lport.c 		fc_stats->fcp_control_requests += stats->ControlRequests;
fc_stats          319 drivers/scsi/libfc/fc_lport.c 		fc_stats->fcp_packet_alloc_failures += stats->FcpPktAllocFails;
fc_stats          320 drivers/scsi/libfc/fc_lport.c 		fc_stats->fcp_packet_aborts += stats->FcpPktAborts;
fc_stats          321 drivers/scsi/libfc/fc_lport.c 		fc_stats->fcp_frame_alloc_failures += stats->FcpFrameAllocFails;
fc_stats          322 drivers/scsi/libfc/fc_lport.c 		fc_stats->link_failure_count += stats->LinkFailureCount;
fc_stats          324 drivers/scsi/libfc/fc_lport.c 	fc_stats->fcp_input_megabytes = div_u64(fcp_in_bytes, 1000000);
fc_stats          325 drivers/scsi/libfc/fc_lport.c 	fc_stats->fcp_output_megabytes = div_u64(fcp_out_bytes, 1000000);
fc_stats          326 drivers/scsi/libfc/fc_lport.c 	fc_stats->lip_count = -1;
fc_stats          327 drivers/scsi/libfc/fc_lport.c 	fc_stats->nos_count = -1;
fc_stats          328 drivers/scsi/libfc/fc_lport.c 	fc_stats->loss_of_sync_count = -1;
fc_stats          329 drivers/scsi/libfc/fc_lport.c 	fc_stats->loss_of_signal_count = -1;
fc_stats          330 drivers/scsi/libfc/fc_lport.c 	fc_stats->prim_seq_protocol_err_count = -1;
fc_stats          331 drivers/scsi/libfc/fc_lport.c 	fc_stats->dumped_frames = -1;
fc_stats          336 drivers/scsi/libfc/fc_lport.c 	return fc_stats;
fc_stats         1002 drivers/scsi/qedf/qedf_main.c 	struct fc_stats		*stats;
fc_stats          587 include/linux/mlx5/driver.h 	struct mlx5_fc_stats		fc_stats;
fc_stats          714 include/scsi/libfc.h 	struct fc_stats	__percpu       *stats;
fc_stats          827 include/scsi/libfc.h 	lport->stats = alloc_percpu(struct fc_stats);