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()
5682 struct swStat *swstats = &nic->mac_control.stats_info->sw_stat; in s2io_vpd_read() local
5695 swstats->mem_alloc_fail_cnt++; in s2io_vpd_read()
5698 swstats->mem_allocated += 256; in s2io_vpd_read()
5744 swstats->mem_freed += 256; in s2io_vpd_read()
6236 struct swStat *swstats = &stats->sw_stat; in s2io_get_ethtool_stats() local
6424 tmp_stats[i++] = swstats->single_ecc_errs; in s2io_get_ethtool_stats()
6425 tmp_stats[i++] = swstats->double_ecc_errs; in s2io_get_ethtool_stats()
6426 tmp_stats[i++] = swstats->parity_err_cnt; in s2io_get_ethtool_stats()
6427 tmp_stats[i++] = swstats->serious_err_cnt; in s2io_get_ethtool_stats()
6428 tmp_stats[i++] = swstats->soft_reset_cnt; in s2io_get_ethtool_stats()
6429 tmp_stats[i++] = swstats->fifo_full_cnt; in s2io_get_ethtool_stats()
6431 tmp_stats[i++] = swstats->ring_full_cnt[k]; in s2io_get_ethtool_stats()
6444 tmp_stats[i++] = swstats->clubbed_frms_cnt; in s2io_get_ethtool_stats()
6445 tmp_stats[i++] = swstats->sending_both; in s2io_get_ethtool_stats()
6446 tmp_stats[i++] = swstats->outof_sequence_pkts; in s2io_get_ethtool_stats()
6447 tmp_stats[i++] = swstats->flush_max_pkts; in s2io_get_ethtool_stats()
6448 if (swstats->num_aggregations) { in s2io_get_ethtool_stats()
6449 u64 tmp = swstats->sum_avg_pkts_aggregated; in s2io_get_ethtool_stats()
6455 while (tmp >= swstats->num_aggregations) { in s2io_get_ethtool_stats()
6456 tmp -= swstats->num_aggregations; in s2io_get_ethtool_stats()
6462 tmp_stats[i++] = swstats->mem_alloc_fail_cnt; in s2io_get_ethtool_stats()
6463 tmp_stats[i++] = swstats->pci_map_fail_cnt; in s2io_get_ethtool_stats()
6464 tmp_stats[i++] = swstats->watchdog_timer_cnt; in s2io_get_ethtool_stats()
6465 tmp_stats[i++] = swstats->mem_allocated; in s2io_get_ethtool_stats()
6466 tmp_stats[i++] = swstats->mem_freed; in s2io_get_ethtool_stats()
6467 tmp_stats[i++] = swstats->link_up_cnt; in s2io_get_ethtool_stats()
6468 tmp_stats[i++] = swstats->link_down_cnt; in s2io_get_ethtool_stats()
6469 tmp_stats[i++] = swstats->link_up_time; in s2io_get_ethtool_stats()
6470 tmp_stats[i++] = swstats->link_down_time; in s2io_get_ethtool_stats()
6472 tmp_stats[i++] = swstats->tx_buf_abort_cnt; in s2io_get_ethtool_stats()
6473 tmp_stats[i++] = swstats->tx_desc_abort_cnt; in s2io_get_ethtool_stats()
6474 tmp_stats[i++] = swstats->tx_parity_err_cnt; in s2io_get_ethtool_stats()
6475 tmp_stats[i++] = swstats->tx_link_loss_cnt; in s2io_get_ethtool_stats()
6476 tmp_stats[i++] = swstats->tx_list_proc_err_cnt; in s2io_get_ethtool_stats()
6478 tmp_stats[i++] = swstats->rx_parity_err_cnt; in s2io_get_ethtool_stats()
6479 tmp_stats[i++] = swstats->rx_abort_cnt; in s2io_get_ethtool_stats()
6480 tmp_stats[i++] = swstats->rx_parity_abort_cnt; in s2io_get_ethtool_stats()
6481 tmp_stats[i++] = swstats->rx_rda_fail_cnt; in s2io_get_ethtool_stats()
6482 tmp_stats[i++] = swstats->rx_unkn_prot_cnt; in s2io_get_ethtool_stats()
6483 tmp_stats[i++] = swstats->rx_fcs_err_cnt; in s2io_get_ethtool_stats()
6484 tmp_stats[i++] = swstats->rx_buf_size_err_cnt; in s2io_get_ethtool_stats()
6485 tmp_stats[i++] = swstats->rx_rxd_corrupt_cnt; in s2io_get_ethtool_stats()
6486 tmp_stats[i++] = swstats->rx_unkn_err_cnt; in s2io_get_ethtool_stats()
6487 tmp_stats[i++] = swstats->tda_err_cnt; in s2io_get_ethtool_stats()
6488 tmp_stats[i++] = swstats->pfc_err_cnt; in s2io_get_ethtool_stats()
6489 tmp_stats[i++] = swstats->pcc_err_cnt; in s2io_get_ethtool_stats()
6490 tmp_stats[i++] = swstats->tti_err_cnt; in s2io_get_ethtool_stats()
6491 tmp_stats[i++] = swstats->tpa_err_cnt; in s2io_get_ethtool_stats()
6492 tmp_stats[i++] = swstats->sm_err_cnt; in s2io_get_ethtool_stats()
6493 tmp_stats[i++] = swstats->lso_err_cnt; in s2io_get_ethtool_stats()
6494 tmp_stats[i++] = swstats->mac_tmac_err_cnt; in s2io_get_ethtool_stats()
6495 tmp_stats[i++] = swstats->mac_rmac_err_cnt; in s2io_get_ethtool_stats()
6496 tmp_stats[i++] = swstats->xgxs_txgxs_err_cnt; in s2io_get_ethtool_stats()
6497 tmp_stats[i++] = swstats->xgxs_rxgxs_err_cnt; in s2io_get_ethtool_stats()
6498 tmp_stats[i++] = swstats->rc_err_cnt; in s2io_get_ethtool_stats()
6499 tmp_stats[i++] = swstats->prc_pcix_err_cnt; in s2io_get_ethtool_stats()
6500 tmp_stats[i++] = swstats->rpa_err_cnt; in s2io_get_ethtool_stats()
6501 tmp_stats[i++] = swstats->rda_err_cnt; in s2io_get_ethtool_stats()
6502 tmp_stats[i++] = swstats->rti_err_cnt; in s2io_get_ethtool_stats()
6503 tmp_stats[i++] = swstats->mc_err_cnt; in s2io_get_ethtool_stats()
7255 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_tx_watchdog() local
7258 swstats->watchdog_timer_cnt++; in s2io_tx_watchdog()
7260 swstats->soft_reset_cnt++; in s2io_tx_watchdog()
7289 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in rx_osm_handler() local
7296 swstats->parity_err_cnt++; in rx_osm_handler()
7301 swstats->rx_parity_err_cnt++; in rx_osm_handler()
7305 swstats->rx_abort_cnt++; in rx_osm_handler()
7309 swstats->rx_parity_abort_cnt++; in rx_osm_handler()
7313 swstats->rx_rda_fail_cnt++; in rx_osm_handler()
7317 swstats->rx_unkn_prot_cnt++; in rx_osm_handler()
7321 swstats->rx_fcs_err_cnt++; in rx_osm_handler()
7325 swstats->rx_buf_size_err_cnt++; in rx_osm_handler()
7329 swstats->rx_rxd_corrupt_cnt++; in rx_osm_handler()
7333 swstats->rx_unkn_err_cnt++; in rx_osm_handler()
7347 swstats->mem_freed in rx_osm_handler()
7406 swstats->flush_max_pkts++; in rx_osm_handler()
7410 swstats->sending_both++; in rx_osm_handler()
7439 swstats->mem_freed += skb->truesize; in rx_osm_handler()
7464 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_link() local
7472 if (swstats->link_up_cnt) in s2io_link()
7473 swstats->link_up_time = in s2io_link()
7475 swstats->link_down_cnt++; in s2io_link()
7478 if (swstats->link_down_cnt) in s2io_link()
7479 swstats->link_down_time = in s2io_link()
7481 swstats->link_up_cnt++; in s2io_link()
8250 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in update_L3L4_header() local
8271 swstats->sum_avg_pkts_aggregated += lro->sg_num; in update_L3L4_header()
8272 swstats->num_aggregations++; in update_L3L4_header()
8363 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_club_tcp_session() local
8390 swstats->outof_sequence_pkts++; in s2io_club_tcp_session()
8478 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in lro_append_pkt() local
8489 swstats->clubbed_frms_cnt++; in lro_append_pkt()