Lines Matching refs:swstats
888 struct swStat *swstats; in free_shared_mem() local
898 swstats = &stats->sw_stat; in free_shared_mem()
921 swstats->mem_freed += PAGE_SIZE; in free_shared_mem()
934 swstats->mem_freed += PAGE_SIZE; in free_shared_mem()
937 swstats->mem_freed += tx_cfg->fifo_len * in free_shared_mem()
953 swstats->mem_freed += size; in free_shared_mem()
955 swstats->mem_freed += sizeof(struct rxd_info) * in free_shared_mem()
975 swstats->mem_freed += in free_shared_mem()
978 swstats->mem_freed += in free_shared_mem()
983 swstats->mem_freed += sizeof(struct buffAdd) * in free_shared_mem()
987 swstats->mem_freed += sizeof(struct buffAdd *) * in free_shared_mem()
997 swstats->mem_freed += tx_cfg->fifo_len * in free_shared_mem()
1004 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
2526 swstats->mem_alloc_fail_cnt++; in fill_rx_buffers()
2530 swstats->mem_allocated += skb->truesize; in fill_rx_buffers()
2659 swstats->pci_map_fail_cnt++; in fill_rx_buffers()
2660 swstats->mem_freed += skb->truesize; in fill_rx_buffers()
2675 struct swStat *swstats = &stats->sw_stat; in free_rxd_blk() local
2708 swstats->mem_freed += skb->truesize; in free_rxd_blk()
3016 struct swStat *swstats = &stats->sw_stat; in tx_intr_handler() local
3032 swstats->parity_err_cnt++; in tx_intr_handler()
3039 swstats->tx_buf_abort_cnt++; in tx_intr_handler()
3043 swstats->tx_desc_abort_cnt++; in tx_intr_handler()
3047 swstats->tx_parity_err_cnt++; in tx_intr_handler()
3051 swstats->tx_link_loss_cnt++; in tx_intr_handler()
3055 swstats->tx_list_proc_err_cnt++; in tx_intr_handler()
3070 swstats->mem_freed += skb->truesize; in tx_intr_handler()
3415 struct swStat *swstats; in s2io_reset() local
3471 swstats = &stats->sw_stat; in s2io_reset()
3474 up_cnt = swstats->link_up_cnt; in s2io_reset()
3475 down_cnt = swstats->link_down_cnt; in s2io_reset()
3476 up_time = swstats->link_up_time; in s2io_reset()
3477 down_time = swstats->link_down_time; in s2io_reset()
3478 reset_cnt = swstats->soft_reset_cnt; in s2io_reset()
3479 mem_alloc_cnt = swstats->mem_allocated; in s2io_reset()
3480 mem_free_cnt = swstats->mem_freed; in s2io_reset()
3481 watchdog_cnt = swstats->watchdog_timer_cnt; in s2io_reset()
3486 swstats->link_up_cnt = up_cnt; in s2io_reset()
3487 swstats->link_down_cnt = down_cnt; in s2io_reset()
3488 swstats->link_up_time = up_time; in s2io_reset()
3489 swstats->link_down_time = down_time; in s2io_reset()
3490 swstats->soft_reset_cnt = reset_cnt; in s2io_reset()
3491 swstats->mem_allocated = mem_alloc_cnt; in s2io_reset()
3492 swstats->mem_freed = mem_free_cnt; in s2io_reset()
3493 swstats->watchdog_timer_cnt = watchdog_cnt; in s2io_reset()
3740 struct swStat *swstats = &stats->sw_stat; in s2io_enable_msi_x() local
3747 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3750 swstats->mem_allocated += size; in s2io_enable_msi_x()
3757 swstats->mem_alloc_fail_cnt++; in s2io_enable_msi_x()
3759 swstats->mem_freed in s2io_enable_msi_x()
3763 swstats->mem_allocated += size; in s2io_enable_msi_x()
3795 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3798 swstats->mem_freed += nic->num_entries * in s2io_enable_msi_x()
3919 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_open() local
3950 swstats->mem_freed += sp->num_entries * in s2io_open()
3955 swstats->mem_freed += sp->num_entries * in s2io_open()
4030 struct swStat *swstats = &stats->sw_stat; in s2io_xmit() local
4220 swstats->fifo_full_cnt++; in s2io_xmit()
4226 swstats->mem_allocated += skb->truesize; in s2io_xmit()
4235 swstats->pci_map_fail_cnt++; in s2io_xmit()
4237 swstats->mem_freed += skb->truesize; in s2io_xmit()
5729 struct swStat *swstats = &nic->mac_control.stats_info->sw_stat; in s2io_vpd_read() local
5742 swstats->mem_alloc_fail_cnt++; in s2io_vpd_read()
5745 swstats->mem_allocated += 256; in s2io_vpd_read()
5791 swstats->mem_freed += 256; in s2io_vpd_read()
6285 struct swStat *swstats = &stats->sw_stat; in s2io_get_ethtool_stats() local
6473 tmp_stats[i++] = swstats->single_ecc_errs; in s2io_get_ethtool_stats()
6474 tmp_stats[i++] = swstats->double_ecc_errs; in s2io_get_ethtool_stats()
6475 tmp_stats[i++] = swstats->parity_err_cnt; in s2io_get_ethtool_stats()
6476 tmp_stats[i++] = swstats->serious_err_cnt; in s2io_get_ethtool_stats()
6477 tmp_stats[i++] = swstats->soft_reset_cnt; in s2io_get_ethtool_stats()
6478 tmp_stats[i++] = swstats->fifo_full_cnt; in s2io_get_ethtool_stats()
6480 tmp_stats[i++] = swstats->ring_full_cnt[k]; in s2io_get_ethtool_stats()
6493 tmp_stats[i++] = swstats->clubbed_frms_cnt; in s2io_get_ethtool_stats()
6494 tmp_stats[i++] = swstats->sending_both; in s2io_get_ethtool_stats()
6495 tmp_stats[i++] = swstats->outof_sequence_pkts; in s2io_get_ethtool_stats()
6496 tmp_stats[i++] = swstats->flush_max_pkts; in s2io_get_ethtool_stats()
6497 if (swstats->num_aggregations) { in s2io_get_ethtool_stats()
6498 u64 tmp = swstats->sum_avg_pkts_aggregated; in s2io_get_ethtool_stats()
6504 while (tmp >= swstats->num_aggregations) { in s2io_get_ethtool_stats()
6505 tmp -= swstats->num_aggregations; in s2io_get_ethtool_stats()
6511 tmp_stats[i++] = swstats->mem_alloc_fail_cnt; in s2io_get_ethtool_stats()
6512 tmp_stats[i++] = swstats->pci_map_fail_cnt; in s2io_get_ethtool_stats()
6513 tmp_stats[i++] = swstats->watchdog_timer_cnt; in s2io_get_ethtool_stats()
6514 tmp_stats[i++] = swstats->mem_allocated; in s2io_get_ethtool_stats()
6515 tmp_stats[i++] = swstats->mem_freed; in s2io_get_ethtool_stats()
6516 tmp_stats[i++] = swstats->link_up_cnt; in s2io_get_ethtool_stats()
6517 tmp_stats[i++] = swstats->link_down_cnt; in s2io_get_ethtool_stats()
6518 tmp_stats[i++] = swstats->link_up_time; in s2io_get_ethtool_stats()
6519 tmp_stats[i++] = swstats->link_down_time; in s2io_get_ethtool_stats()
6521 tmp_stats[i++] = swstats->tx_buf_abort_cnt; in s2io_get_ethtool_stats()
6522 tmp_stats[i++] = swstats->tx_desc_abort_cnt; in s2io_get_ethtool_stats()
6523 tmp_stats[i++] = swstats->tx_parity_err_cnt; in s2io_get_ethtool_stats()
6524 tmp_stats[i++] = swstats->tx_link_loss_cnt; in s2io_get_ethtool_stats()
6525 tmp_stats[i++] = swstats->tx_list_proc_err_cnt; in s2io_get_ethtool_stats()
6527 tmp_stats[i++] = swstats->rx_parity_err_cnt; in s2io_get_ethtool_stats()
6528 tmp_stats[i++] = swstats->rx_abort_cnt; in s2io_get_ethtool_stats()
6529 tmp_stats[i++] = swstats->rx_parity_abort_cnt; in s2io_get_ethtool_stats()
6530 tmp_stats[i++] = swstats->rx_rda_fail_cnt; in s2io_get_ethtool_stats()
6531 tmp_stats[i++] = swstats->rx_unkn_prot_cnt; in s2io_get_ethtool_stats()
6532 tmp_stats[i++] = swstats->rx_fcs_err_cnt; in s2io_get_ethtool_stats()
6533 tmp_stats[i++] = swstats->rx_buf_size_err_cnt; in s2io_get_ethtool_stats()
6534 tmp_stats[i++] = swstats->rx_rxd_corrupt_cnt; in s2io_get_ethtool_stats()
6535 tmp_stats[i++] = swstats->rx_unkn_err_cnt; in s2io_get_ethtool_stats()
6536 tmp_stats[i++] = swstats->tda_err_cnt; in s2io_get_ethtool_stats()
6537 tmp_stats[i++] = swstats->pfc_err_cnt; in s2io_get_ethtool_stats()
6538 tmp_stats[i++] = swstats->pcc_err_cnt; in s2io_get_ethtool_stats()
6539 tmp_stats[i++] = swstats->tti_err_cnt; in s2io_get_ethtool_stats()
6540 tmp_stats[i++] = swstats->tpa_err_cnt; in s2io_get_ethtool_stats()
6541 tmp_stats[i++] = swstats->sm_err_cnt; in s2io_get_ethtool_stats()
6542 tmp_stats[i++] = swstats->lso_err_cnt; in s2io_get_ethtool_stats()
6543 tmp_stats[i++] = swstats->mac_tmac_err_cnt; in s2io_get_ethtool_stats()
6544 tmp_stats[i++] = swstats->mac_rmac_err_cnt; in s2io_get_ethtool_stats()
6545 tmp_stats[i++] = swstats->xgxs_txgxs_err_cnt; in s2io_get_ethtool_stats()
6546 tmp_stats[i++] = swstats->xgxs_rxgxs_err_cnt; in s2io_get_ethtool_stats()
6547 tmp_stats[i++] = swstats->rc_err_cnt; in s2io_get_ethtool_stats()
6548 tmp_stats[i++] = swstats->prc_pcix_err_cnt; in s2io_get_ethtool_stats()
6549 tmp_stats[i++] = swstats->rpa_err_cnt; in s2io_get_ethtool_stats()
6550 tmp_stats[i++] = swstats->rda_err_cnt; in s2io_get_ethtool_stats()
6551 tmp_stats[i++] = swstats->rti_err_cnt; in s2io_get_ethtool_stats()
6552 tmp_stats[i++] = swstats->mc_err_cnt; in s2io_get_ethtool_stats()
7299 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_tx_watchdog() local
7302 swstats->watchdog_timer_cnt++; in s2io_tx_watchdog()
7304 swstats->soft_reset_cnt++; in s2io_tx_watchdog()
7336 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in rx_osm_handler() local
7343 swstats->parity_err_cnt++; in rx_osm_handler()
7348 swstats->rx_parity_err_cnt++; in rx_osm_handler()
7352 swstats->rx_abort_cnt++; in rx_osm_handler()
7356 swstats->rx_parity_abort_cnt++; in rx_osm_handler()
7360 swstats->rx_rda_fail_cnt++; in rx_osm_handler()
7364 swstats->rx_unkn_prot_cnt++; in rx_osm_handler()
7368 swstats->rx_fcs_err_cnt++; in rx_osm_handler()
7372 swstats->rx_buf_size_err_cnt++; in rx_osm_handler()
7376 swstats->rx_rxd_corrupt_cnt++; in rx_osm_handler()
7380 swstats->rx_unkn_err_cnt++; in rx_osm_handler()
7394 swstats->mem_freed in rx_osm_handler()
7454 swstats->flush_max_pkts++; in rx_osm_handler()
7458 swstats->sending_both++; in rx_osm_handler()
7487 swstats->mem_freed += skb->truesize; in rx_osm_handler()
7512 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_link() local
7520 if (swstats->link_up_cnt) in s2io_link()
7521 swstats->link_up_time = in s2io_link()
7523 swstats->link_down_cnt++; in s2io_link()
7526 if (swstats->link_down_cnt) in s2io_link()
7527 swstats->link_down_time = in s2io_link()
7529 swstats->link_up_cnt++; in s2io_link()
8339 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in update_L3L4_header() local
8360 swstats->sum_avg_pkts_aggregated += lro->sg_num; in update_L3L4_header()
8361 swstats->num_aggregations++; in update_L3L4_header()
8452 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in s2io_club_tcp_session() local
8479 swstats->outof_sequence_pkts++; in s2io_club_tcp_session()
8567 struct swStat *swstats = &sp->mac_control.stats_info->sw_stat; in lro_append_pkt() local
8578 swstats->clubbed_frms_cnt++; in lro_append_pkt()