Searched refs:npp (Results 1 – 2 of 2) sorted by relevance
| /xnu-11215/bsd/net/ |
| H A D | net_perf.c | 40 #pragma unused(npp) in net_perf_start_time() 66 bzero(&npp->np_hist_bars, sizeof(npp->np_hist_bars)); in update_bins() 70 npp->np_hist_bars[j] = i; in update_bins() 80 bzero(npp, sizeof(net_perf_t)); in net_perf_initialize() 82 update_bins(npp, bins); in net_perf_initialize() 88 if (num_pkts <= npp->np_hist_bars[0]) { in net_perf_histogram() 89 OSAddAtomic64(num_pkts, &npp->np_hist1); in net_perf_histogram() 90 } else if (npp->np_hist_bars[0] < num_pkts && num_pkts <= npp->np_hist_bars[1]) { in net_perf_histogram() 91 OSAddAtomic64(num_pkts, &npp->np_hist2); in net_perf_histogram() 92 } else if (npp->np_hist_bars[1] < num_pkts && num_pkts <= npp->np_hist_bars[2]) { in net_perf_histogram() [all …]
|
| H A D | net_perf.h | 53 void net_perf_initialize(net_perf_t *npp, uint64_t bins); 54 void net_perf_start_time(net_perf_t *npp, struct timeval *tv); 55 void net_perf_measure_time(net_perf_t *npp, struct timeval *start, uint64_t num_pkts); 56 void net_perf_histogram(net_perf_t *npp, uint64_t num_pkts);
|