Lines Matching refs:gradients
82 struct cdg_minmax *gradients; member
196 if (ca->gradients) { in tcp_cdg_grad()
197 ca->gsum.min += gmin - ca->gradients[ca->tail].min; in tcp_cdg_grad()
198 ca->gsum.max += gmax - ca->gradients[ca->tail].max; in tcp_cdg_grad()
199 ca->gradients[ca->tail].min = gmin; in tcp_cdg_grad()
200 ca->gradients[ca->tail].max = gmax; in tcp_cdg_grad()
216 if (!ca->gradients && window > 1) in tcp_cdg_grad()
349 struct cdg_minmax *gradients; in tcp_cdg_cwnd_event() local
353 gradients = ca->gradients; in tcp_cdg_cwnd_event()
354 if (gradients) in tcp_cdg_cwnd_event()
355 memset(gradients, 0, window * sizeof(gradients[0])); in tcp_cdg_cwnd_event()
358 ca->gradients = gradients; in tcp_cdg_cwnd_event()
378 ca->gradients = NULL; in tcp_cdg_init()
381 ca->gradients = kcalloc(window, sizeof(ca->gradients[0]), in tcp_cdg_init()
391 kfree(ca->gradients); in tcp_cdg_release()
392 ca->gradients = NULL; in tcp_cdg_release()