Lines Matching refs:window
38 static int window __read_mostly = 8;
46 module_param(window, int, 0444);
47 MODULE_PARM_DESC(window, "gradient window size (power of two <= 256)");
201 ca->tail = (ca->tail + 1) & (window - 1); in tcp_cdg_grad()
216 if (!ca->gradients && window > 1) in tcp_cdg_grad()
217 grad *= window; /* Memory allocation failed. */ in tcp_cdg_grad()
221 grad = (grad * window) / (int)ca->tail; in tcp_cdg_grad()
355 memset(gradients, 0, window * sizeof(gradients[0])); in tcp_cdg_cwnd_event()
380 if (window > 1) in tcp_cdg_init()
381 ca->gradients = kcalloc(window, sizeof(ca->gradients[0]), in tcp_cdg_init()
409 if (backoff_beta > 1024 || window < 1 || window > 256) in tcp_cdg_register()
411 if (!is_power_of_2(window)) in tcp_cdg_register()