Lines Matching refs:stats
92 struct compstat stats;
113 static void z_comp_stats(void *state, struct compstat *stats);
210 bzero(&state->stats, sizeof(state->stats));
368 state->stats.comp_bytes += olen;
369 state->stats.comp_packets++;
375 state->stats.inc_bytes += orig_len;
376 state->stats.inc_packets++;
379 state->stats.unc_bytes += orig_len;
380 state->stats.unc_packets++;
386 z_comp_stats(arg, stats)
388 struct compstat *stats;
393 *stats = state->stats;
394 stats->ratio = stats->unc_bytes;
395 out = stats->comp_bytes + stats->inc_bytes;
396 if (stats->ratio <= 0x7ffffff)
397 stats->ratio <<= 8;
401 stats->ratio /= out;
439 bzero(&state->stats, sizeof(state->stats));
645 state->stats.unc_bytes += olen;
646 state->stats.unc_packets++;
647 state->stats.comp_bytes += rlen;
648 state->stats.comp_packets++;
709 * Update stats.
711 state->stats.inc_bytes += rlen;
712 state->stats.inc_packets++;
713 state->stats.unc_bytes += rlen;
714 state->stats.unc_packets++;