Searched refs:rec_inv_sqrt (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/include/net/ |
H A D | codel_impl.h | 78 u32 invsqrt = ((u32)vars->rec_inv_sqrt) << REC_INV_SQRT_SHIFT; in codel_Newton_step() 85 vars->rec_inv_sqrt = val >> REC_INV_SQRT_SHIFT; in codel_Newton_step() 90 * We maintain in rec_inv_sqrt the reciprocal value of sqrt(count) to avoid 95 u32 rec_inv_sqrt) in codel_control_law() 97 return t + reciprocal_scale(interval, rec_inv_sqrt << REC_INV_SQRT_SHIFT); in codel_control_law() 187 vars->rec_inv_sqrt); in codel_dequeue() 206 vars->rec_inv_sqrt); in codel_dequeue() 235 /* we dont care if rec_inv_sqrt approximation in codel_dequeue() 242 vars->rec_inv_sqrt = ~0U >> REC_INV_SQRT_SHIFT; in codel_dequeue() 246 vars->rec_inv_sqrt); in codel_dequeue() 93 codel_control_law(codel_time_t t, codel_time_t interval, u32 rec_inv_sqrt) codel_control_law() argument [all...] |
H A D | codel.h | 120 * @rec_inv_sqrt: reciprocal value of sqrt(count) >> 1 130 u16 rec_inv_sqrt; member 136 #define REC_INV_SQRT_BITS (8 * sizeof(u16)) /* or sizeof_in_bits(rec_inv_sqrt) */ 137 /* needed shift to get a Q0.32 number from rec_inv_sqrt */
|
/kernel/linux/linux-6.6/include/net/ |
H A D | codel_impl.h | 82 u32 invsqrt = ((u32)vars->rec_inv_sqrt) << REC_INV_SQRT_SHIFT; in codel_Newton_step() 89 vars->rec_inv_sqrt = val >> REC_INV_SQRT_SHIFT; in codel_Newton_step() 94 * We maintain in rec_inv_sqrt the reciprocal value of sqrt(count) to avoid 99 u32 rec_inv_sqrt) in codel_control_law() 101 return t + reciprocal_scale(interval, rec_inv_sqrt << REC_INV_SQRT_SHIFT); in codel_control_law() 191 vars->rec_inv_sqrt); in codel_dequeue() 210 vars->rec_inv_sqrt); in codel_dequeue() 239 /* we dont care if rec_inv_sqrt approximation in codel_dequeue() 246 vars->rec_inv_sqrt = ~0U >> REC_INV_SQRT_SHIFT; in codel_dequeue() 250 vars->rec_inv_sqrt); in codel_dequeue() 97 codel_control_law(codel_time_t t, codel_time_t interval, u32 rec_inv_sqrt) codel_control_law() argument [all...] |
H A D | codel.h | 123 * @rec_inv_sqrt: reciprocal value of sqrt(count) >> 1 133 u16 rec_inv_sqrt; member 139 #define REC_INV_SQRT_BITS (8 * sizeof(u16)) /* or sizeof_in_bits(rec_inv_sqrt) */ 140 /* needed shift to get a Q0.32 number from rec_inv_sqrt */
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | sch_cake.c | 100 * @rec_inv_sqrt: reciprocal value of sqrt(count) >> 1 109 u32 rec_inv_sqrt; member 377 invsqrt = vars->rec_inv_sqrt; in cobalt_newton_step() 384 vars->rec_inv_sqrt = val; in cobalt_newton_step() 390 vars->rec_inv_sqrt = cobalt_rec_inv_sqrt_cache[vars->count]; in cobalt_invsqrt() 410 v.rec_inv_sqrt = ~0U; in cobalt_cache_init() 411 cobalt_rec_inv_sqrt_cache[0] = v.rec_inv_sqrt; in cobalt_cache_init() 419 cobalt_rec_inv_sqrt_cache[v.count] = v.rec_inv_sqrt; in cobalt_cache_init() 434 * We maintain in rec_inv_sqrt the reciprocal value of sqrt(count) to avoid 439 u32 rec_inv_sqrt) in cobalt_control() 437 cobalt_control(ktime_t t, u64 interval, u32 rec_inv_sqrt) cobalt_control() argument [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_cake.c | 101 * @rec_inv_sqrt: reciprocal value of sqrt(count) >> 1 110 u32 rec_inv_sqrt; member 378 invsqrt = vars->rec_inv_sqrt; in cobalt_newton_step() 385 vars->rec_inv_sqrt = val; in cobalt_newton_step() 391 vars->rec_inv_sqrt = cobalt_rec_inv_sqrt_cache[vars->count]; in cobalt_invsqrt() 411 v.rec_inv_sqrt = ~0U; in cobalt_cache_init() 412 cobalt_rec_inv_sqrt_cache[0] = v.rec_inv_sqrt; in cobalt_cache_init() 420 cobalt_rec_inv_sqrt_cache[v.count] = v.rec_inv_sqrt; in cobalt_cache_init() 435 * We maintain in rec_inv_sqrt the reciprocal value of sqrt(count) to avoid 440 u32 rec_inv_sqrt) in cobalt_control() 438 cobalt_control(ktime_t t, u64 interval, u32 rec_inv_sqrt) cobalt_control() argument [all...] |
Completed in 6 milliseconds