Lines Matching refs:avg
431 qp->avg = q->avg; in cp_queue_to_32_user()
453 qp->avg = q->avg; in cp_queue_to_64_user()
1396 int diff = SCALE(q_size) - q->avg; in red_drops()
1399 q->avg += (int) v; in red_drops()
1408 if (q->avg) { in red_drops()
1411 q->avg = (t < fs->lookup_depth) ? in red_drops()
1412 SCALE_MUL(q->avg, fs->w_q_lookup[t]) : 0; in red_drops()
1415 DPRINTF(("dummynet: avg: %u ", SCALE_VAL(q->avg))); in red_drops()
1419 if (q->avg < fs->min_th) { in red_drops()
1423 if (q->avg >= fs->max_th) { /* average queue >= max threshold */ in red_drops()
1431 p_b = SCALE_MUL((int64_t) fs->c_3, (int64_t) q->avg) - fs->c_4; in red_drops()
1437 } else if (q->avg > fs->min_th) { in red_drops()
1443 p_b = SCALE_MUL((int64_t) fs->c_1, (int64_t) q->avg) - fs->c_2; in red_drops()