Lines Matching refs:txq_stats

79 	struct hinic_txq_stats *txq_stats = &txq->txq_stats;  in hinic_txq_clean_stats()  local
81 u64_stats_update_begin(&txq_stats->syncp); in hinic_txq_clean_stats()
82 txq_stats->pkts = 0; in hinic_txq_clean_stats()
83 txq_stats->bytes = 0; in hinic_txq_clean_stats()
84 txq_stats->tx_busy = 0; in hinic_txq_clean_stats()
85 txq_stats->tx_wake = 0; in hinic_txq_clean_stats()
86 txq_stats->tx_dropped = 0; in hinic_txq_clean_stats()
87 txq_stats->big_frags_pkts = 0; in hinic_txq_clean_stats()
88 u64_stats_update_end(&txq_stats->syncp); in hinic_txq_clean_stats()
98 struct hinic_txq_stats *txq_stats = &txq->txq_stats; in hinic_txq_get_stats() local
102 start = u64_stats_fetch_begin(&txq_stats->syncp); in hinic_txq_get_stats()
103 stats->pkts = txq_stats->pkts; in hinic_txq_get_stats()
104 stats->bytes = txq_stats->bytes; in hinic_txq_get_stats()
105 stats->tx_busy = txq_stats->tx_busy; in hinic_txq_get_stats()
106 stats->tx_wake = txq_stats->tx_wake; in hinic_txq_get_stats()
107 stats->tx_dropped = txq_stats->tx_dropped; in hinic_txq_get_stats()
108 stats->big_frags_pkts = txq_stats->big_frags_pkts; in hinic_txq_get_stats()
109 } while (u64_stats_fetch_retry(&txq_stats->syncp, start)); in hinic_txq_get_stats()
118 struct hinic_txq_stats *txq_stats = &txq->txq_stats; in txq_stats_init() local
120 u64_stats_init(&txq_stats->syncp); in txq_stats_init()
524 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
525 txq->txq_stats.tx_busy++; in hinic_lb_xmit_frame()
526 u64_stats_update_end(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
545 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
546 txq->txq_stats.tx_dropped++; in hinic_lb_xmit_frame()
547 u64_stats_update_end(&txq->txq_stats.syncp); in hinic_lb_xmit_frame()
577 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_xmit_frame()
578 txq->txq_stats.big_frags_pkts++; in hinic_xmit_frame()
579 u64_stats_update_end(&txq->txq_stats.syncp); in hinic_xmit_frame()
608 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_xmit_frame()
609 txq->txq_stats.tx_busy++; in hinic_xmit_frame()
610 u64_stats_update_end(&txq->txq_stats.syncp); in hinic_xmit_frame()
640 u64_stats_update_begin(&txq->txq_stats.syncp); in hinic_xmit_frame()
641 txq->txq_stats.tx_dropped++; in hinic_xmit_frame()
642 u64_stats_update_end(&txq->txq_stats.syncp); in hinic_xmit_frame()
754 u64_stats_update_begin(&txq->txq_stats.syncp); in free_tx_poll()
755 txq->txq_stats.tx_wake++; in free_tx_poll()
756 u64_stats_update_end(&txq->txq_stats.syncp); in free_tx_poll()
759 u64_stats_update_begin(&txq->txq_stats.syncp); in free_tx_poll()
760 txq->txq_stats.bytes += tx_bytes; in free_tx_poll()
761 txq->txq_stats.pkts += pkts; in free_tx_poll()
762 u64_stats_update_end(&txq->txq_stats.syncp); in free_tx_poll()