Lines Matching refs:swstats

880 	struct swStat *swstats;  in free_shared_mem()  local
890 swstats = &stats->sw_stat; in free_shared_mem()
913 swstats->mem_freed += PAGE_SIZE; in free_shared_mem()
926 swstats->mem_freed += PAGE_SIZE; in free_shared_mem()
929 swstats->mem_freed += tx_cfg->fifo_len * in free_shared_mem()
945 swstats->mem_freed += size; in free_shared_mem()
947 swstats->mem_freed += sizeof(struct rxd_info) * in free_shared_mem()
967 swstats->mem_freed += in free_shared_mem()
970 swstats->mem_freed += in free_shared_mem()
975 swstats->mem_freed += sizeof(struct buffAdd) * in free_shared_mem()
979 swstats->mem_freed += sizeof(struct buffAdd *) * in free_shared_mem()
989 swstats->mem_freed += tx_cfg->fifo_len * in free_shared_mem()
996 swstats->mem_freed += mac_control->stats_mem_sz; in free_shared_mem()
2376 struct swStat *swstats = &stats->sw_stat; in free_tx_buffers() local
2388 swstats->mem_freed += skb->truesize; in free_tx_buffers()
2467 struct swStat *swstats = &ring->nic->mac_control.stats_info->sw_stat; in fill_rx_buffers() local
2524 swstats->mem_alloc_fail_cnt++; in fill_rx_buffers()
2528 swstats->mem_allocated += skb->truesize; in fill_rx_buffers()
2654 swstats->pci_map_fail_cnt++; in fill_rx_buffers()
2655 swstats->mem_freed += skb->truesize; in fill_rx_buffers()
2670 struct swStat *swstats = &stats->sw_stat; in free_rxd_blk() local
2700 swstats->mem_freed += skb->truesize; in free_rxd_blk()
3006 struct swStat *swstats = &stats->sw_stat; in tx_intr_handler() local
3022 swstats->parity_err_cnt++; in tx_intr_handler()
3029 swstats->tx_buf_abort_cnt++; in tx_intr_handler()
3033 swstats->tx_desc_abort_cnt++; in tx_intr_handler()
3037 swstats->tx_parity_err_cnt++; in tx_intr_handler()
3041 swstats->tx_link_loss_cnt++; in tx_intr_handler()
3045 swstats->tx_list_proc_err_cnt++; in tx_intr_handler()
3060 swstats->mem_freed += skb->truesize; in tx_intr_handler()
3410 struct swStat *swstats; in s2io_reset() local
3466 swstats = &stats->sw_stat; in s2io_reset()
3469 up_cnt = swstats->link_up_cnt; in s2io_reset()
3470 down_cnt = swstats->link_down_cnt; in s2io_reset()
3471 up_time = swstats->link_up_time; in s2io_reset()
3472 down_time = swstats->link_down_time; in s2io_reset()
3473 reset_cnt = swstats->soft_reset_cnt; in s2io_reset()
3474 mem_alloc_cnt = swstats->mem_allocated; in s2io_reset()
3475 mem_free_cnt = swstats->mem_freed; in s2io_reset()
3476 watchdog_cnt = swstats->watchdog_timer_cnt; in s2io_reset()
3481 swstats->link_up_cnt = up_cnt; in s2io_reset()
3482 swstats->link_down_cnt = down_cnt; in s2io_reset()
3483 swstats->link_up_time = up_time; in s2io_reset()
3484 swstats->link_down_time = down_time; in s2io_reset()
3485 swstats->soft_reset_cnt = reset_cnt; in s2io_reset()
3486 swstats->mem_allocated = mem_alloc_cnt; in s2io_reset()
3487 swstats->mem_freed = mem_free_cnt; in s2io_reset()
3488 swstats->watchdog_timer_cnt = watchdog_cnt; in s2io_reset()
3733 struct swStat *swstats = &stats->sw_stat; in s2io_enable_msi_x() local
3740 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3743 swstats->mem_allocated += size; in s2io_enable_msi_x()
3750 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3752 swstats->mem_freed in s2io_enable_msi_x()
3756 swstats->mem_allocated += size; in s2io_enable_msi_x()
3788 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3791 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3912 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_open() local
3943 swstats->mem_freed += sp->num_entries * in s2io_open()
3948 swstats->mem_freed += sp->num_entries * in s2io_open()
4022 struct swStat *swstats = &stats->sw_stat; in s2io_xmit() local
4171 swstats->fifo_full_cnt++; in s2io_xmit()
4177 swstats->mem_allocated += skb->truesize; in s2io_xmit()
4186 swstats->pci_map_fail_cnt++; in s2io_xmit()
4188 swstats->mem_freed += skb->truesize; in s2io_xmit()
5689 struct swStat *swstats = &nic->mac_control.stats_info->sw_stat; in s2io_vpd_read() local
5702 swstats->mem_alloc_fail_cnt++; in s2io_vpd_read()
5705 swstats->mem_allocated += 256; in s2io_vpd_read()
5751 swstats->mem_freed += 256; in s2io_vpd_read()
6243 struct swStat *swstats = &stats->sw_stat; in s2io_get_ethtool_stats() local
6431 tmp_stats[i++] = swstats->single_ecc_errs; in s2io_get_ethtool_stats()
6432 tmp_stats[i++] = swstats->double_ecc_errs; in s2io_get_ethtool_stats()
6433 tmp_stats[i++] = swstats->parity_err_cnt; in s2io_get_ethtool_stats()
6434 tmp_stats[i++] = swstats->serious_err_cnt; in s2io_get_ethtool_stats()
6435 tmp_stats[i++] = swstats->soft_reset_cnt; in s2io_get_ethtool_stats()
6436 tmp_stats[i++] = swstats->fifo_full_cnt; in s2io_get_ethtool_stats()
6438 tmp_stats[i++] = swstats->ring_full_cnt[k]; in s2io_get_ethtool_stats()
6451 tmp_stats[i++] = swstats->clubbed_frms_cnt; in s2io_get_ethtool_stats()
6452 tmp_stats[i++] = swstats->sending_both; in s2io_get_ethtool_stats()
6453 tmp_stats[i++] = swstats->outof_sequence_pkts; in s2io_get_ethtool_stats()
6454 tmp_stats[i++] = swstats->flush_max_pkts; in s2io_get_ethtool_stats()
6455 if (swstats->num_aggregations) { in s2io_get_ethtool_stats()
6456 u64 tmp = swstats->sum_avg_pkts_aggregated; in s2io_get_ethtool_stats()
6462 while (tmp >= swstats->num_aggregations) { in s2io_get_ethtool_stats()
6463 tmp -= swstats->num_aggregations; in s2io_get_ethtool_stats()
6469 tmp_stats[i++] = swstats->mem_alloc_fail_cnt; in s2io_get_ethtool_stats()
6470 tmp_stats[i++] = swstats->pci_map_fail_cnt; in s2io_get_ethtool_stats()
6471 tmp_stats[i++] = swstats->watchdog_timer_cnt; in s2io_get_ethtool_stats()
6472 tmp_stats[i++] = swstats->mem_allocated; in s2io_get_ethtool_stats()
6473 tmp_stats[i++] = swstats->mem_freed; in s2io_get_ethtool_stats()
6474 tmp_stats[i++] = swstats->link_up_cnt; in s2io_get_ethtool_stats()
6475 tmp_stats[i++] = swstats->link_down_cnt; in s2io_get_ethtool_stats()
6476 tmp_stats[i++] = swstats->link_up_time; in s2io_get_ethtool_stats()
6477 tmp_stats[i++] = swstats->link_down_time; in s2io_get_ethtool_stats()
6479 tmp_stats[i++] = swstats->tx_buf_abort_cnt; in s2io_get_ethtool_stats()
6480 tmp_stats[i++] = swstats->tx_desc_abort_cnt; in s2io_get_ethtool_stats()
6481 tmp_stats[i++] = swstats->tx_parity_err_cnt; in s2io_get_ethtool_stats()
6482 tmp_stats[i++] = swstats->tx_link_loss_cnt; in s2io_get_ethtool_stats()
6483 tmp_stats[i++] = swstats->tx_list_proc_err_cnt; in s2io_get_ethtool_stats()
6485 tmp_stats[i++] = swstats->rx_parity_err_cnt; in s2io_get_ethtool_stats()
6486 tmp_stats[i++] = swstats->rx_abort_cnt; in s2io_get_ethtool_stats()
6487 tmp_stats[i++] = swstats->rx_parity_abort_cnt; in s2io_get_ethtool_stats()
6488 tmp_stats[i++] = swstats->rx_rda_fail_cnt; in s2io_get_ethtool_stats()
6489 tmp_stats[i++] = swstats->rx_unkn_prot_cnt; in s2io_get_ethtool_stats()
6490 tmp_stats[i++] = swstats->rx_fcs_err_cnt; in s2io_get_ethtool_stats()
6491 tmp_stats[i++] = swstats->rx_buf_size_err_cnt; in s2io_get_ethtool_stats()
6492 tmp_stats[i++] = swstats->rx_rxd_corrupt_cnt; in s2io_get_ethtool_stats()
6493 tmp_stats[i++] = swstats->rx_unkn_err_cnt; in s2io_get_ethtool_stats()
6494 tmp_stats[i++] = swstats->tda_err_cnt; in s2io_get_ethtool_stats()
6495 tmp_stats[i++] = swstats->pfc_err_cnt; in s2io_get_ethtool_stats()
6496 tmp_stats[i++] = swstats->pcc_err_cnt; in s2io_get_ethtool_stats()
6497 tmp_stats[i++] = swstats->tti_err_cnt; in s2io_get_ethtool_stats()
6498 tmp_stats[i++] = swstats->tpa_err_cnt; in s2io_get_ethtool_stats()
6499 tmp_stats[i++] = swstats->sm_err_cnt; in s2io_get_ethtool_stats()
6500 tmp_stats[i++] = swstats->lso_err_cnt; in s2io_get_ethtool_stats()
6501 tmp_stats[i++] = swstats->mac_tmac_err_cnt; in s2io_get_ethtool_stats()
6502 tmp_stats[i++] = swstats->mac_rmac_err_cnt; in s2io_get_ethtool_stats()
6503 tmp_stats[i++] = swstats->xgxs_txgxs_err_cnt; in s2io_get_ethtool_stats()
6504 tmp_stats[i++] = swstats->xgxs_rxgxs_err_cnt; in s2io_get_ethtool_stats()
6505 tmp_stats[i++] = swstats->rc_err_cnt; in s2io_get_ethtool_stats()
6506 tmp_stats[i++] = swstats->prc_pcix_err_cnt; in s2io_get_ethtool_stats()
6507 tmp_stats[i++] = swstats->rpa_err_cnt; in s2io_get_ethtool_stats()
6508 tmp_stats[i++] = swstats->rda_err_cnt; in s2io_get_ethtool_stats()
6509 tmp_stats[i++] = swstats->rti_err_cnt; in s2io_get_ethtool_stats()
6510 tmp_stats[i++] = swstats->mc_err_cnt; in s2io_get_ethtool_stats()
7262 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_tx_watchdog() local
7265 swstats->watchdog_timer_cnt++; in s2io_tx_watchdog()
7267 swstats->soft_reset_cnt++; in s2io_tx_watchdog()
7296 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in rx_osm_handler() local
7303 swstats->parity_err_cnt++; in rx_osm_handler()
7308 swstats->rx_parity_err_cnt++; in rx_osm_handler()
7312 swstats->rx_abort_cnt++; in rx_osm_handler()
7316 swstats->rx_parity_abort_cnt++; in rx_osm_handler()
7320 swstats->rx_rda_fail_cnt++; in rx_osm_handler()
7324 swstats->rx_unkn_prot_cnt++; in rx_osm_handler()
7328 swstats->rx_fcs_err_cnt++; in rx_osm_handler()
7332 swstats->rx_buf_size_err_cnt++; in rx_osm_handler()
7336 swstats->rx_rxd_corrupt_cnt++; in rx_osm_handler()
7340 swstats->rx_unkn_err_cnt++; in rx_osm_handler()
7354 swstats->mem_freed in rx_osm_handler()
7413 swstats->flush_max_pkts++; in rx_osm_handler()
7417 swstats->sending_both++; in rx_osm_handler()
7446 swstats->mem_freed += skb->truesize; in rx_osm_handler()
7471 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_link() local
7479 if (swstats->link_up_cnt) in s2io_link()
7480 swstats->link_up_time = in s2io_link()
7482 swstats->link_down_cnt++; in s2io_link()
7485 if (swstats->link_down_cnt) in s2io_link()
7486 swstats->link_down_time = in s2io_link()
7488 swstats->link_up_cnt++; in s2io_link()
8257 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in update_L3L4_header() local
8278 swstats->sum_avg_pkts_aggregated += lro->sg_num; in update_L3L4_header()
8279 swstats->num_aggregations++; in update_L3L4_header()
8370 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_club_tcp_session() local
8397 swstats->outof_sequence_pkts++; in s2io_club_tcp_session()
8485 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in lro_append_pkt() local
8496 swstats->clubbed_frms_cnt++; in lro_append_pkt()