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

/darwin-on-arm/xnu/bsd/net/pktsched/
H A Dpktsched_rmclass.h167 #define RM_FILTER_GAIN 5 /* log2 of gain, e.g., 5 => 31/32 */ macro
168 #define RM_POWER (1 << RM_FILTER_GAIN)
H A Dpktsched_rmclass.c211 * averaging filter is g (= 1 - 2^(-RM_FILTER_GAIN)), then:
225 * an estimate scaled upward by 2^RM_FILTER_GAIN so the passed value of
229 * maxidle = maxidle * 2^RM_FILTER_GAIN * 8 / (1000 * nsecPerByte)
332 cl->offtime_ = ((offtime * nsecPerByte) / 8) >> RM_FILTER_GAIN;
464 cl->offtime_ = ((offtime * nsecPerByte) / 8) >> RM_FILTER_GAIN;
1406 avgidle += idle - (avgidle >> RM_FILTER_GAIN);
1422 (((1 - RM_POWER) * avgidle) >> RM_FILTER_GAIN);

Completed in 24 milliseconds