Lines Matching refs:htcp_data

195 	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()
341 htcp_data->t_last_cong = ticks; in htcp_cong_signal()
367 struct htcp *htcp_data; in htcp_post_recovery() local
371 htcp_data = ccv->cc_data; in htcp_post_recovery()
387 CCV(ccv, snd_cwnd) = max(1, ((htcp_data->beta * in htcp_post_recovery()
388 htcp_data->prev_cwnd / mss) in htcp_post_recovery()
396 struct htcp *htcp_data; in htcp_recalc_alpha() local
399 htcp_data = ccv->cc_data; in htcp_recalc_alpha()
413 if (now < htcp_data->t_last_cong) in htcp_recalc_alpha()
414 htcp_data->t_last_cong = now - HTCP_DELTA_L; in htcp_recalc_alpha()
416 diff = now - htcp_data->t_last_cong - HTCP_DELTA_L; in htcp_recalc_alpha()
433 htcp_data->beta) * alpha) >> HTCP_SHIFT); in htcp_recalc_alpha()
450 htcp_data->alpha = alpha; in htcp_recalc_alpha()
457 struct htcp *htcp_data; in htcp_recalc_beta() local
459 htcp_data = ccv->cc_data; in htcp_recalc_beta()
467 if (V_htcp_adaptive_backoff && htcp_data->minrtt != TCPTV_SRTTBASE && in htcp_recalc_beta()
468 htcp_data->maxrtt != TCPTV_SRTTBASE) in htcp_recalc_beta()
469 htcp_data->beta = min(max(HTCP_MINBETA, in htcp_recalc_beta()
470 (htcp_data->minrtt << HTCP_SHIFT) / htcp_data->maxrtt), in htcp_recalc_beta()
473 htcp_data->beta = HTCP_MINBETA; in htcp_recalc_beta()
483 struct htcp *htcp_data; in htcp_record_rtt() local
485 htcp_data = ccv->cc_data; in htcp_record_rtt()
494 if ((tcp_get_srtt(ccv->tp, TCP_TMR_GRANULARITY_TICKS) < htcp_data->minrtt || in htcp_record_rtt()
495 htcp_data->minrtt == TCPTV_SRTTBASE) && in htcp_record_rtt()
497 htcp_data->minrtt = tcp_get_srtt(ccv->tp, TCP_TMR_GRANULARITY_TICKS); in htcp_record_rtt()
503 if (tcp_get_srtt(ccv->tp, TCP_TMR_GRANULARITY_TICKS) > htcp_data->maxrtt in htcp_record_rtt()
505 htcp_data->maxrtt = tcp_get_srtt(ccv->tp, TCP_TMR_GRANULARITY_TICKS); in htcp_record_rtt()
514 struct htcp *htcp_data; in htcp_ssthresh_update() local
516 htcp_data = ccv->cc_data; in htcp_ssthresh_update()
528 htcp_data->beta) >> HTCP_SHIFT; in htcp_ssthresh_update()