Lines Matching refs:htcp_data

196 	struct htcp *htcp_data;  in htcp_ack_received()  local
198 htcp_data = ccv->cc_data; in htcp_ack_received()
217 if (htcp_data->alpha == 1 || in htcp_ack_received()
223 CCV(ccv, snd_cwnd) += htcp_data->alpha * in htcp_ack_received()
232 CCV(ccv, snd_cwnd) += (((htcp_data->alpha << in htcp_ack_received()
255 struct htcp *htcp_data; in htcp_cb_init() local
259 htcp_data = malloc(sizeof(struct htcp), M_CC_MEM, M_NOWAIT); in htcp_cb_init()
260 if (htcp_data == NULL) in htcp_cb_init()
263 htcp_data = ptr; in htcp_cb_init()
266 htcp_data->alpha = HTCP_INIT_ALPHA; in htcp_cb_init()
267 htcp_data->beta = HTCP_MINBETA; in htcp_cb_init()
268 htcp_data->maxrtt = TCPTV_SRTTBASE; in htcp_cb_init()
269 htcp_data->minrtt = TCPTV_SRTTBASE; in htcp_cb_init()
270 htcp_data->prev_cwnd = 0; in htcp_cb_init()
271 htcp_data->t_last_cong = ticks; in htcp_cb_init()
273 ccv->cc_data = htcp_data; in htcp_cb_init()
284 struct htcp *htcp_data; in htcp_cong_signal() local
287 htcp_data = ccv->cc_data; in htcp_cong_signal()
299 htcp_data->maxrtt = (htcp_data->minrtt + in htcp_cong_signal()
300 (htcp_data->maxrtt - htcp_data->minrtt) * in htcp_cong_signal()
303 htcp_data->t_last_cong = ticks; in htcp_cong_signal()
304 htcp_data->prev_cwnd = CCV(ccv, snd_cwnd); in htcp_cong_signal()
316 htcp_data->maxrtt = (htcp_data->minrtt + (htcp_data->maxrtt - in htcp_cong_signal()
317 htcp_data->minrtt) * 95) / 100; in htcp_cong_signal()
320 htcp_data->t_last_cong = ticks; in htcp_cong_signal()
321 htcp_data->prev_cwnd = CCV(ccv, snd_cwnd); in htcp_cong_signal()
339 htcp_data->t_last_cong = ticks; in htcp_cong_signal()
363 struct htcp *htcp_data; in htcp_post_recovery() local
366 htcp_data = ccv->cc_data; in htcp_post_recovery()
389 CCV(ccv, snd_cwnd) = max(1, ((htcp_data->beta * in htcp_post_recovery()
390 htcp_data->prev_cwnd / CCV(ccv, t_maxseg)) in htcp_post_recovery()
398 struct htcp *htcp_data; in htcp_recalc_alpha() local
401 htcp_data = ccv->cc_data; in htcp_recalc_alpha()
415 if (now < htcp_data->t_last_cong) in htcp_recalc_alpha()
416 htcp_data->t_last_cong = now - HTCP_DELTA_L; in htcp_recalc_alpha()
418 diff = now - htcp_data->t_last_cong - HTCP_DELTA_L; in htcp_recalc_alpha()
435 htcp_data->beta) * alpha) >> HTCP_SHIFT); in htcp_recalc_alpha()
452 htcp_data->alpha = alpha; in htcp_recalc_alpha()
459 struct htcp *htcp_data; in htcp_recalc_beta() local
461 htcp_data = ccv->cc_data; in htcp_recalc_beta()
469 if (V_htcp_adaptive_backoff && htcp_data->minrtt != TCPTV_SRTTBASE && in htcp_recalc_beta()
470 htcp_data->maxrtt != TCPTV_SRTTBASE) in htcp_recalc_beta()
471 htcp_data->beta = min(max(HTCP_MINBETA, in htcp_recalc_beta()
472 (htcp_data->minrtt << HTCP_SHIFT) / htcp_data->maxrtt), in htcp_recalc_beta()
475 htcp_data->beta = HTCP_MINBETA; in htcp_recalc_beta()
485 struct htcp *htcp_data; in htcp_record_rtt() local
487 htcp_data = ccv->cc_data; in htcp_record_rtt()
496 if ((tcp_get_srtt(ccv->ccvc.tcp, TCP_TMR_GRANULARITY_TICKS) < htcp_data->minrtt || in htcp_record_rtt()
497 htcp_data->minrtt == TCPTV_SRTTBASE) && in htcp_record_rtt()
499 htcp_data->minrtt = tcp_get_srtt(ccv->ccvc.tcp, TCP_TMR_GRANULARITY_TICKS); in htcp_record_rtt()
505 if (tcp_get_srtt(ccv->ccvc.tcp, TCP_TMR_GRANULARITY_TICKS) > htcp_data->maxrtt in htcp_record_rtt()
507 htcp_data->maxrtt = tcp_get_srtt(ccv->ccvc.tcp, TCP_TMR_GRANULARITY_TICKS); in htcp_record_rtt()
516 struct htcp *htcp_data; in htcp_ssthresh_update() local
518 htcp_data = ccv->cc_data; in htcp_ssthresh_update()
530 htcp_data->beta) >> HTCP_SHIFT; in htcp_ssthresh_update()