Searched refs:RM_FILTER_GAIN (Results 1 - 3 of 3) sorted by relevance

/freebsd-13-stable/sys/net/altq/
H A Daltq_rmclass.h119 #define RM_FILTER_GAIN 5 /* log2 of gain, e.g., 5 => 31/32 */ macro
120 #define RM_POWER (1 << RM_FILTER_GAIN)
H A Daltq_rmclass.c155 * averaging filter is g (= 1 - 2^(-RM_FILTER_GAIN)), then:
169 * an estimate scaled upward by 2^RM_FILTER_GAIN so the passed value of
173 * maxidle = maxidle * 2^RM_FILTER_GAIN * 8 / (1000 * nsecPerByte)
258 cl->offtime_ = ((offtime * nsecPerByte) / 8) >> RM_FILTER_GAIN;
380 cl->offtime_ = ((offtime * nsecPerByte) / 8) >> RM_FILTER_GAIN;
1335 avgidle += idle - (avgidle >> RM_FILTER_GAIN);
1351 (((1 - RM_POWER) * avgidle) >> RM_FILTER_GAIN);
/freebsd-13-stable/sbin/pfctl/
H A Dpfctl_altq.c495 #define RM_FILTER_GAIN 5 /* log2 of gain, e.g., 5 => 31/32 */ macro
590 z = (double)(1 << RM_FILTER_GAIN);
605 pow(2.0, (double)RM_FILTER_GAIN);
607 pow(2.0, (double)RM_FILTER_GAIN);
609 pow(2.0, (double)RM_FILTER_GAIN);

Completed in 114 milliseconds