Lines Matching refs:stats
586 struct nstat_counts* stats = nstat_route_attach(rte);
587 if (stats)
589 OSIncrementAtomic(&stats->nstat_connectattempts);
603 struct nstat_counts* stats = nstat_route_attach(rte);
604 if (stats)
606 OSIncrementAtomic(&stats->nstat_connectsuccesses);
622 struct nstat_counts* stats = nstat_route_attach(rte);
623 if (stats)
627 OSAddAtomic(bytes, &stats->nstat_txretransmit);
631 OSAddAtomic64((SInt64)packets, (SInt64*)&stats->nstat_txpackets);
632 OSAddAtomic64((SInt64)bytes, (SInt64*)&stats->nstat_txbytes);
649 struct nstat_counts* stats = nstat_route_attach(rte);
650 if (stats)
654 OSAddAtomic64((SInt64)packets, (SInt64*)&stats->nstat_rxpackets);
655 OSAddAtomic64((SInt64)bytes, (SInt64*)&stats->nstat_rxbytes);
660 OSAddAtomic(bytes, &stats->nstat_rxoutoforderbytes);
662 OSAddAtomic(bytes, &stats->nstat_rxduplicatebytes);
680 struct nstat_counts* stats = nstat_route_attach(rte);
681 if (stats)
689 oldrtt = stats->nstat_avg_rtt;
699 } while (!OSCompareAndSwap(oldrtt, newrtt, &stats->nstat_avg_rtt));
704 oldrtt = stats->nstat_min_rtt;
709 } while (!OSCompareAndSwap(oldrtt, rtt, &stats->nstat_min_rtt));
714 oldrtt = stats->nstat_var_rtt;
724 } while (!OSCompareAndSwap(oldrtt, newrtt, &stats->nstat_var_rtt));