Lines Matching defs:te
333 uint64_t te; /* Number of bytes currently available in the excess (E) token bucket */
392 uint64_t te;
402 uint64_t time_diff, n_periods, tc, te;
409 /* Put the tokens overflowing from tc into te bucket */
411 te = m->te;
413 te += (tc - p->cbs);
414 if (te > p->ebs)
415 te = p->ebs;
422 m->te = te;
426 if (te >= pkt_len) {
428 m->te = te - pkt_len;
433 m->te = te;
444 uint64_t time_diff, n_periods, tc, te;
451 /* Put the tokens overflowing from tc into te bucket */
453 te = m->te;
455 te += (tc - p->cbs);
456 if (te > p->ebs)
457 te = p->ebs;
464 m->te = te;
468 if ((pkt_color != RTE_COLOR_RED) && (te >= pkt_len)) {
470 m->te = te - pkt_len;
475 m->te = te;
571 uint64_t time_diff_tc, time_diff_te, n_periods_tc, n_periods_te, tc, te;
585 te = m->te + n_periods_te * p->eir_bytes_per_period;
586 if (te > p->ebs)
587 te = p->ebs;
592 m->te = te;
595 if (te >= pkt_len) {
597 m->te = te - pkt_len;
603 m->te = te;
615 uint64_t time_diff_tc, time_diff_te, n_periods_tc, n_periods_te, tc, te;
629 te = m->te + n_periods_te * p->eir_bytes_per_period;
630 if (te > p->ebs)
631 te = p->ebs;
636 m->te = te;
640 if ((pkt_color != RTE_COLOR_RED) && (te >= pkt_len)) {
642 m->te = te - pkt_len;
648 m->te = te;