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()
2374 struct swStat *swstats = &stats->sw_stat; in free_tx_buffers() local
2386 swstats->mem_freed += skb->truesize; in free_tx_buffers()
2465 struct swStat *swstats = &ring->nic->mac_control.stats_info->sw_stat; in fill_rx_buffers() local
2522 swstats->mem_alloc_fail_cnt++; in fill_rx_buffers()
2526 swstats->mem_allocated += skb->truesize; in fill_rx_buffers()
2652 swstats->pci_map_fail_cnt++; in fill_rx_buffers()
2653 swstats->mem_freed += skb->truesize; in fill_rx_buffers()
2668 struct swStat *swstats = &stats->sw_stat; in free_rxd_blk() local
2698 swstats->mem_freed += skb->truesize; in free_rxd_blk()
3004 struct swStat *swstats = &stats->sw_stat; in tx_intr_handler() local
3020 swstats->parity_err_cnt++; in tx_intr_handler()
3027 swstats->tx_buf_abort_cnt++; in tx_intr_handler()
3031 swstats->tx_desc_abort_cnt++; in tx_intr_handler()
3035 swstats->tx_parity_err_cnt++; in tx_intr_handler()
3039 swstats->tx_link_loss_cnt++; in tx_intr_handler()
3043 swstats->tx_list_proc_err_cnt++; in tx_intr_handler()
3058 swstats->mem_freed += skb->truesize; in tx_intr_handler()
3406 struct swStat *swstats; in s2io_reset() local
3462 swstats = &stats->sw_stat; in s2io_reset()
3465 up_cnt = swstats->link_up_cnt; in s2io_reset()
3466 down_cnt = swstats->link_down_cnt; in s2io_reset()
3467 up_time = swstats->link_up_time; in s2io_reset()
3468 down_time = swstats->link_down_time; in s2io_reset()
3469 reset_cnt = swstats->soft_reset_cnt; in s2io_reset()
3470 mem_alloc_cnt = swstats->mem_allocated; in s2io_reset()
3471 mem_free_cnt = swstats->mem_freed; in s2io_reset()
3472 watchdog_cnt = swstats->watchdog_timer_cnt; in s2io_reset()
3477 swstats->link_up_cnt = up_cnt; in s2io_reset()
3478 swstats->link_down_cnt = down_cnt; in s2io_reset()
3479 swstats->link_up_time = up_time; in s2io_reset()
3480 swstats->link_down_time = down_time; in s2io_reset()
3481 swstats->soft_reset_cnt = reset_cnt; in s2io_reset()
3482 swstats->mem_allocated = mem_alloc_cnt; in s2io_reset()
3483 swstats->mem_freed = mem_free_cnt; in s2io_reset()
3484 swstats->watchdog_timer_cnt = watchdog_cnt; in s2io_reset()
3729 struct swStat *swstats = &stats->sw_stat; in s2io_enable_msi_x() local
3736 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3739 swstats->mem_allocated += size; in s2io_enable_msi_x()
3746 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3748 swstats->mem_freed in s2io_enable_msi_x()
3752 swstats->mem_allocated += size; in s2io_enable_msi_x()
3784 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3787 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3908 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_open() local
3939 swstats->mem_freed += sp->num_entries * in s2io_open()
3944 swstats->mem_freed += sp->num_entries * in s2io_open()
4018 struct swStat *swstats = &stats->sw_stat; in s2io_xmit() local
4167 swstats->fifo_full_cnt++; in s2io_xmit()
4173 swstats->mem_allocated += skb->truesize; in s2io_xmit()
4182 swstats->pci_map_fail_cnt++; in s2io_xmit()
4184 swstats->mem_freed += skb->truesize; in s2io_xmit()
5675 struct swStat *swstats = &nic->mac_control.stats_info->sw_stat; in s2io_vpd_read() local
5688 swstats->mem_alloc_fail_cnt++; in s2io_vpd_read()
5691 swstats->mem_allocated += 256; in s2io_vpd_read()
5737 swstats->mem_freed += 256; in s2io_vpd_read()
6229 struct swStat *swstats = &stats->sw_stat; in s2io_get_ethtool_stats() local
6417 tmp_stats[i++] = swstats->single_ecc_errs; in s2io_get_ethtool_stats()
6418 tmp_stats[i++] = swstats->double_ecc_errs; in s2io_get_ethtool_stats()
6419 tmp_stats[i++] = swstats->parity_err_cnt; in s2io_get_ethtool_stats()
6420 tmp_stats[i++] = swstats->serious_err_cnt; in s2io_get_ethtool_stats()
6421 tmp_stats[i++] = swstats->soft_reset_cnt; in s2io_get_ethtool_stats()
6422 tmp_stats[i++] = swstats->fifo_full_cnt; in s2io_get_ethtool_stats()
6424 tmp_stats[i++] = swstats->ring_full_cnt[k]; in s2io_get_ethtool_stats()
6437 tmp_stats[i++] = swstats->clubbed_frms_cnt; in s2io_get_ethtool_stats()
6438 tmp_stats[i++] = swstats->sending_both; in s2io_get_ethtool_stats()
6439 tmp_stats[i++] = swstats->outof_sequence_pkts; in s2io_get_ethtool_stats()
6440 tmp_stats[i++] = swstats->flush_max_pkts; in s2io_get_ethtool_stats()
6441 if (swstats->num_aggregations) { in s2io_get_ethtool_stats()
6442 u64 tmp = swstats->sum_avg_pkts_aggregated; in s2io_get_ethtool_stats()
6448 while (tmp >= swstats->num_aggregations) { in s2io_get_ethtool_stats()
6449 tmp -= swstats->num_aggregations; in s2io_get_ethtool_stats()
6455 tmp_stats[i++] = swstats->mem_alloc_fail_cnt; in s2io_get_ethtool_stats()
6456 tmp_stats[i++] = swstats->pci_map_fail_cnt; in s2io_get_ethtool_stats()
6457 tmp_stats[i++] = swstats->watchdog_timer_cnt; in s2io_get_ethtool_stats()
6458 tmp_stats[i++] = swstats->mem_allocated; in s2io_get_ethtool_stats()
6459 tmp_stats[i++] = swstats->mem_freed; in s2io_get_ethtool_stats()
6460 tmp_stats[i++] = swstats->link_up_cnt; in s2io_get_ethtool_stats()
6461 tmp_stats[i++] = swstats->link_down_cnt; in s2io_get_ethtool_stats()
6462 tmp_stats[i++] = swstats->link_up_time; in s2io_get_ethtool_stats()
6463 tmp_stats[i++] = swstats->link_down_time; in s2io_get_ethtool_stats()
6465 tmp_stats[i++] = swstats->tx_buf_abort_cnt; in s2io_get_ethtool_stats()
6466 tmp_stats[i++] = swstats->tx_desc_abort_cnt; in s2io_get_ethtool_stats()
6467 tmp_stats[i++] = swstats->tx_parity_err_cnt; in s2io_get_ethtool_stats()
6468 tmp_stats[i++] = swstats->tx_link_loss_cnt; in s2io_get_ethtool_stats()
6469 tmp_stats[i++] = swstats->tx_list_proc_err_cnt; in s2io_get_ethtool_stats()
6471 tmp_stats[i++] = swstats->rx_parity_err_cnt; in s2io_get_ethtool_stats()
6472 tmp_stats[i++] = swstats->rx_abort_cnt; in s2io_get_ethtool_stats()
6473 tmp_stats[i++] = swstats->rx_parity_abort_cnt; in s2io_get_ethtool_stats()
6474 tmp_stats[i++] = swstats->rx_rda_fail_cnt; in s2io_get_ethtool_stats()
6475 tmp_stats[i++] = swstats->rx_unkn_prot_cnt; in s2io_get_ethtool_stats()
6476 tmp_stats[i++] = swstats->rx_fcs_err_cnt; in s2io_get_ethtool_stats()
6477 tmp_stats[i++] = swstats->rx_buf_size_err_cnt; in s2io_get_ethtool_stats()
6478 tmp_stats[i++] = swstats->rx_rxd_corrupt_cnt; in s2io_get_ethtool_stats()
6479 tmp_stats[i++] = swstats->rx_unkn_err_cnt; in s2io_get_ethtool_stats()
6480 tmp_stats[i++] = swstats->tda_err_cnt; in s2io_get_ethtool_stats()
6481 tmp_stats[i++] = swstats->pfc_err_cnt; in s2io_get_ethtool_stats()
6482 tmp_stats[i++] = swstats->pcc_err_cnt; in s2io_get_ethtool_stats()
6483 tmp_stats[i++] = swstats->tti_err_cnt; in s2io_get_ethtool_stats()
6484 tmp_stats[i++] = swstats->tpa_err_cnt; in s2io_get_ethtool_stats()
6485 tmp_stats[i++] = swstats->sm_err_cnt; in s2io_get_ethtool_stats()
6486 tmp_stats[i++] = swstats->lso_err_cnt; in s2io_get_ethtool_stats()
6487 tmp_stats[i++] = swstats->mac_tmac_err_cnt; in s2io_get_ethtool_stats()
6488 tmp_stats[i++] = swstats->mac_rmac_err_cnt; in s2io_get_ethtool_stats()
6489 tmp_stats[i++] = swstats->xgxs_txgxs_err_cnt; in s2io_get_ethtool_stats()
6490 tmp_stats[i++] = swstats->xgxs_rxgxs_err_cnt; in s2io_get_ethtool_stats()
6491 tmp_stats[i++] = swstats->rc_err_cnt; in s2io_get_ethtool_stats()
6492 tmp_stats[i++] = swstats->prc_pcix_err_cnt; in s2io_get_ethtool_stats()
6493 tmp_stats[i++] = swstats->rpa_err_cnt; in s2io_get_ethtool_stats()
6494 tmp_stats[i++] = swstats->rda_err_cnt; in s2io_get_ethtool_stats()
6495 tmp_stats[i++] = swstats->rti_err_cnt; in s2io_get_ethtool_stats()
6496 tmp_stats[i++] = swstats->mc_err_cnt; in s2io_get_ethtool_stats()
7248 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_tx_watchdog() local
7251 swstats->watchdog_timer_cnt++; in s2io_tx_watchdog()
7253 swstats->soft_reset_cnt++; in s2io_tx_watchdog()
7282 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in rx_osm_handler() local
7289 swstats->parity_err_cnt++; in rx_osm_handler()
7294 swstats->rx_parity_err_cnt++; in rx_osm_handler()
7298 swstats->rx_abort_cnt++; in rx_osm_handler()
7302 swstats->rx_parity_abort_cnt++; in rx_osm_handler()
7306 swstats->rx_rda_fail_cnt++; in rx_osm_handler()
7310 swstats->rx_unkn_prot_cnt++; in rx_osm_handler()
7314 swstats->rx_fcs_err_cnt++; in rx_osm_handler()
7318 swstats->rx_buf_size_err_cnt++; in rx_osm_handler()
7322 swstats->rx_rxd_corrupt_cnt++; in rx_osm_handler()
7326 swstats->rx_unkn_err_cnt++; in rx_osm_handler()
7340 swstats->mem_freed in rx_osm_handler()
7400 swstats->flush_max_pkts++; in rx_osm_handler()
7404 swstats->sending_both++; in rx_osm_handler()
7433 swstats->mem_freed += skb->truesize; in rx_osm_handler()
7458 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_link() local
7466 if (swstats->link_up_cnt) in s2io_link()
7467 swstats->link_up_time = in s2io_link()
7469 swstats->link_down_cnt++; in s2io_link()
7472 if (swstats->link_down_cnt) in s2io_link()
7473 swstats->link_down_time = in s2io_link()
7475 swstats->link_up_cnt++; in s2io_link()
8256 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in update_L3L4_header() local
8277 swstats->sum_avg_pkts_aggregated += lro->sg_num; in update_L3L4_header()
8278 swstats->num_aggregations++; in update_L3L4_header()
8369 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_club_tcp_session() local
8396 swstats->outof_sequence_pkts++; in s2io_club_tcp_session()
8484 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in lro_append_pkt() local
8495 swstats->clubbed_frms_cnt++; in lro_append_pkt()