Lines Matching refs:swstats

879 	struct swStat *swstats;  in free_shared_mem()  local
889 swstats = &stats->sw_stat; in free_shared_mem()
912 swstats->mem_freed += PAGE_SIZE; in free_shared_mem()
925 swstats->mem_freed += PAGE_SIZE; in free_shared_mem()
928 swstats->mem_freed += tx_cfg->fifo_len * in free_shared_mem()
944 swstats->mem_freed += size; in free_shared_mem()
946 swstats->mem_freed += sizeof(struct rxd_info) * in free_shared_mem()
966 swstats->mem_freed += in free_shared_mem()
969 swstats->mem_freed += in free_shared_mem()
974 swstats->mem_freed += sizeof(struct buffAdd) * in free_shared_mem()
978 swstats->mem_freed += sizeof(struct buffAdd *) * in free_shared_mem()
988 swstats->mem_freed += tx_cfg->fifo_len * in free_shared_mem()
995 swstats->mem_freed += mac_control->stats_mem_sz; in free_shared_mem()
2365 struct swStat *swstats = &stats->sw_stat; in free_tx_buffers() local
2377 swstats->mem_freed += skb->truesize; in free_tx_buffers()
2455 struct swStat *swstats = &ring->nic->mac_control.stats_info->sw_stat; in fill_rx_buffers() local
2512 swstats->mem_alloc_fail_cnt++; in fill_rx_buffers()
2516 swstats->mem_allocated += skb->truesize; in fill_rx_buffers()
2645 swstats->pci_map_fail_cnt++; in fill_rx_buffers()
2646 swstats->mem_freed += skb->truesize; in fill_rx_buffers()
2661 struct swStat *swstats = &stats->sw_stat; in free_rxd_blk() local
2694 swstats->mem_freed += skb->truesize; in free_rxd_blk()
3002 struct swStat *swstats = &stats->sw_stat; in tx_intr_handler() local
3018 swstats->parity_err_cnt++; in tx_intr_handler()
3025 swstats->tx_buf_abort_cnt++; in tx_intr_handler()
3029 swstats->tx_desc_abort_cnt++; in tx_intr_handler()
3033 swstats->tx_parity_err_cnt++; in tx_intr_handler()
3037 swstats->tx_link_loss_cnt++; in tx_intr_handler()
3041 swstats->tx_list_proc_err_cnt++; in tx_intr_handler()
3056 swstats->mem_freed += skb->truesize; in tx_intr_handler()
3401 struct swStat *swstats; in s2io_reset() local
3457 swstats = &stats->sw_stat; in s2io_reset()
3460 up_cnt = swstats->link_up_cnt; in s2io_reset()
3461 down_cnt = swstats->link_down_cnt; in s2io_reset()
3462 up_time = swstats->link_up_time; in s2io_reset()
3463 down_time = swstats->link_down_time; in s2io_reset()
3464 reset_cnt = swstats->soft_reset_cnt; in s2io_reset()
3465 mem_alloc_cnt = swstats->mem_allocated; in s2io_reset()
3466 mem_free_cnt = swstats->mem_freed; in s2io_reset()
3467 watchdog_cnt = swstats->watchdog_timer_cnt; in s2io_reset()
3472 swstats->link_up_cnt = up_cnt; in s2io_reset()
3473 swstats->link_down_cnt = down_cnt; in s2io_reset()
3474 swstats->link_up_time = up_time; in s2io_reset()
3475 swstats->link_down_time = down_time; in s2io_reset()
3476 swstats->soft_reset_cnt = reset_cnt; in s2io_reset()
3477 swstats->mem_allocated = mem_alloc_cnt; in s2io_reset()
3478 swstats->mem_freed = mem_free_cnt; in s2io_reset()
3479 swstats->watchdog_timer_cnt = watchdog_cnt; in s2io_reset()
3726 struct swStat *swstats = &stats->sw_stat; in s2io_enable_msi_x() local
3733 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3736 swstats->mem_allocated += size; in s2io_enable_msi_x()
3743 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3745 swstats->mem_freed in s2io_enable_msi_x()
3749 swstats->mem_allocated += size; in s2io_enable_msi_x()
3781 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3784 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3905 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_open() local
3936 swstats->mem_freed += sp->num_entries * in s2io_open()
3941 swstats->mem_freed += sp->num_entries * in s2io_open()
4015 struct swStat *swstats = &stats->sw_stat; in s2io_xmit() local
4166 swstats->fifo_full_cnt++; in s2io_xmit()
4172 swstats->mem_allocated += skb->truesize; in s2io_xmit()
4181 swstats->pci_map_fail_cnt++; in s2io_xmit()
4183 swstats->mem_freed += skb->truesize; in s2io_xmit()
5681 struct swStat *swstats = &nic->mac_control.stats_info->sw_stat; in s2io_vpd_read() local
5694 swstats->mem_alloc_fail_cnt++; in s2io_vpd_read()
5697 swstats->mem_allocated += 256; in s2io_vpd_read()
5743 swstats->mem_freed += 256; in s2io_vpd_read()
6238 struct swStat *swstats = &stats->sw_stat; in s2io_get_ethtool_stats() local
6426 tmp_stats[i++] = swstats->single_ecc_errs; in s2io_get_ethtool_stats()
6427 tmp_stats[i++] = swstats->double_ecc_errs; in s2io_get_ethtool_stats()
6428 tmp_stats[i++] = swstats->parity_err_cnt; in s2io_get_ethtool_stats()
6429 tmp_stats[i++] = swstats->serious_err_cnt; in s2io_get_ethtool_stats()
6430 tmp_stats[i++] = swstats->soft_reset_cnt; in s2io_get_ethtool_stats()
6431 tmp_stats[i++] = swstats->fifo_full_cnt; in s2io_get_ethtool_stats()
6433 tmp_stats[i++] = swstats->ring_full_cnt[k]; in s2io_get_ethtool_stats()
6446 tmp_stats[i++] = swstats->clubbed_frms_cnt; in s2io_get_ethtool_stats()
6447 tmp_stats[i++] = swstats->sending_both; in s2io_get_ethtool_stats()
6448 tmp_stats[i++] = swstats->outof_sequence_pkts; in s2io_get_ethtool_stats()
6449 tmp_stats[i++] = swstats->flush_max_pkts; in s2io_get_ethtool_stats()
6450 if (swstats->num_aggregations) { in s2io_get_ethtool_stats()
6451 u64 tmp = swstats->sum_avg_pkts_aggregated; in s2io_get_ethtool_stats()
6457 while (tmp >= swstats->num_aggregations) { in s2io_get_ethtool_stats()
6458 tmp -= swstats->num_aggregations; in s2io_get_ethtool_stats()
6464 tmp_stats[i++] = swstats->mem_alloc_fail_cnt; in s2io_get_ethtool_stats()
6465 tmp_stats[i++] = swstats->pci_map_fail_cnt; in s2io_get_ethtool_stats()
6466 tmp_stats[i++] = swstats->watchdog_timer_cnt; in s2io_get_ethtool_stats()
6467 tmp_stats[i++] = swstats->mem_allocated; in s2io_get_ethtool_stats()
6468 tmp_stats[i++] = swstats->mem_freed; in s2io_get_ethtool_stats()
6469 tmp_stats[i++] = swstats->link_up_cnt; in s2io_get_ethtool_stats()
6470 tmp_stats[i++] = swstats->link_down_cnt; in s2io_get_ethtool_stats()
6471 tmp_stats[i++] = swstats->link_up_time; in s2io_get_ethtool_stats()
6472 tmp_stats[i++] = swstats->link_down_time; in s2io_get_ethtool_stats()
6474 tmp_stats[i++] = swstats->tx_buf_abort_cnt; in s2io_get_ethtool_stats()
6475 tmp_stats[i++] = swstats->tx_desc_abort_cnt; in s2io_get_ethtool_stats()
6476 tmp_stats[i++] = swstats->tx_parity_err_cnt; in s2io_get_ethtool_stats()
6477 tmp_stats[i++] = swstats->tx_link_loss_cnt; in s2io_get_ethtool_stats()
6478 tmp_stats[i++] = swstats->tx_list_proc_err_cnt; in s2io_get_ethtool_stats()
6480 tmp_stats[i++] = swstats->rx_parity_err_cnt; in s2io_get_ethtool_stats()
6481 tmp_stats[i++] = swstats->rx_abort_cnt; in s2io_get_ethtool_stats()
6482 tmp_stats[i++] = swstats->rx_parity_abort_cnt; in s2io_get_ethtool_stats()
6483 tmp_stats[i++] = swstats->rx_rda_fail_cnt; in s2io_get_ethtool_stats()
6484 tmp_stats[i++] = swstats->rx_unkn_prot_cnt; in s2io_get_ethtool_stats()
6485 tmp_stats[i++] = swstats->rx_fcs_err_cnt; in s2io_get_ethtool_stats()
6486 tmp_stats[i++] = swstats->rx_buf_size_err_cnt; in s2io_get_ethtool_stats()
6487 tmp_stats[i++] = swstats->rx_rxd_corrupt_cnt; in s2io_get_ethtool_stats()
6488 tmp_stats[i++] = swstats->rx_unkn_err_cnt; in s2io_get_ethtool_stats()
6489 tmp_stats[i++] = swstats->tda_err_cnt; in s2io_get_ethtool_stats()
6490 tmp_stats[i++] = swstats->pfc_err_cnt; in s2io_get_ethtool_stats()
6491 tmp_stats[i++] = swstats->pcc_err_cnt; in s2io_get_ethtool_stats()
6492 tmp_stats[i++] = swstats->tti_err_cnt; in s2io_get_ethtool_stats()
6493 tmp_stats[i++] = swstats->tpa_err_cnt; in s2io_get_ethtool_stats()
6494 tmp_stats[i++] = swstats->sm_err_cnt; in s2io_get_ethtool_stats()
6495 tmp_stats[i++] = swstats->lso_err_cnt; in s2io_get_ethtool_stats()
6496 tmp_stats[i++] = swstats->mac_tmac_err_cnt; in s2io_get_ethtool_stats()
6497 tmp_stats[i++] = swstats->mac_rmac_err_cnt; in s2io_get_ethtool_stats()
6498 tmp_stats[i++] = swstats->xgxs_txgxs_err_cnt; in s2io_get_ethtool_stats()
6499 tmp_stats[i++] = swstats->xgxs_rxgxs_err_cnt; in s2io_get_ethtool_stats()
6500 tmp_stats[i++] = swstats->rc_err_cnt; in s2io_get_ethtool_stats()
6501 tmp_stats[i++] = swstats->prc_pcix_err_cnt; in s2io_get_ethtool_stats()
6502 tmp_stats[i++] = swstats->rpa_err_cnt; in s2io_get_ethtool_stats()
6503 tmp_stats[i++] = swstats->rda_err_cnt; in s2io_get_ethtool_stats()
6504 tmp_stats[i++] = swstats->rti_err_cnt; in s2io_get_ethtool_stats()
6505 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()
7285 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in rx_osm_handler() local
7292 swstats->parity_err_cnt++; in rx_osm_handler()
7297 swstats->rx_parity_err_cnt++; in rx_osm_handler()
7301 swstats->rx_abort_cnt++; in rx_osm_handler()
7305 swstats->rx_parity_abort_cnt++; in rx_osm_handler()
7309 swstats->rx_rda_fail_cnt++; in rx_osm_handler()
7313 swstats->rx_unkn_prot_cnt++; in rx_osm_handler()
7317 swstats->rx_fcs_err_cnt++; in rx_osm_handler()
7321 swstats->rx_buf_size_err_cnt++; in rx_osm_handler()
7325 swstats->rx_rxd_corrupt_cnt++; in rx_osm_handler()
7329 swstats->rx_unkn_err_cnt++; in rx_osm_handler()
7343 swstats->mem_freed in rx_osm_handler()
7403 swstats->flush_max_pkts++; in rx_osm_handler()
7407 swstats->sending_both++; in rx_osm_handler()
7436 swstats->mem_freed += skb->truesize; in rx_osm_handler()
7461 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_link() local
7469 if (swstats->link_up_cnt) in s2io_link()
7470 swstats->link_up_time = in s2io_link()
7472 swstats->link_down_cnt++; in s2io_link()
7475 if (swstats->link_down_cnt) in s2io_link()
7476 swstats->link_down_time = in s2io_link()
7478 swstats->link_up_cnt++; in s2io_link()
8259 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in update_L3L4_header() local
8280 swstats->sum_avg_pkts_aggregated += lro->sg_num; in update_L3L4_header()
8281 swstats->num_aggregations++; in update_L3L4_header()
8372 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_club_tcp_session() local
8399 swstats->outof_sequence_pkts++; in s2io_club_tcp_session()
8487 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in lro_append_pkt() local
8498 swstats->clubbed_frms_cnt++; in lro_append_pkt()