Lines Matching refs:tentry

108 #define TIMERENTRY_TO_TP(te) ((struct tcpcb *)((uintptr_t)te - offsetof(struct tcpcb, tentry.le.le_next))) 
583 tp->tentry.timer_start = tcp_now;
584 tp->tentry.index = TCPT_NONE;
1277 if (listp->next_te != NULL && listp->next_te == &tp->tentry)
1278 listp->next_te = LIST_NEXT(&tp->tentry, le);
1280 LIST_REMOVE(&tp->tentry, le);
1285 tp->tentry.le.le_next = NULL;
1286 tp->tentry.le.le_prev = NULL;
1398 if ((index = tp->tentry.index) == TCPT_NONE)
1403 diff = timer_diff(tp->tentry.runtime, 0, tcp_now, 0);
1405 if (tp->tentry.index != TCPT_NONE) {
1407 *(te_mode) = tp->tentry.mode;
1423 tp->tentry.mode = 0;
1426 diff = timer_diff(tp->tentry.timer_start,
1438 TCP_SET_TIMER_MODE(tp->tentry.mode, i);
1443 tp->tentry.timer_start = tcp_now;
1444 tp->tentry.index = lo_index;
1445 VERIFY(tp->tentry.index == TCPT_NONE || tp->tentry.mode > 0);
1447 if (tp->tentry.index != TCPT_NONE) {
1448 tp->tentry.runtime = tp->tentry.timer_start +
1449 tp->t_timer[tp->tentry.index];
1450 if (tp->tentry.runtime == 0)
1451 tp->tentry.runtime++;
1470 if (tp->tentry.index < TCPT_NONE) {
1471 offset = tp->t_timer[tp->tentry.index];
1472 *(te_mode) = tp->tentry.mode;
1476 if (tp != NULL && tp->tentry.index == TCPT_NONE) {
1531 LIST_REMOVE(&tp->tentry, le);
1534 tp->tentry.le.le_next = NULL;
1535 tp->tentry.le.le_prev = NULL;
1549 VERIFY_NEXT_LINK(&tp->tentry, le);
1550 VERIFY_PREV_LINK(&tp->tentry, le);
1631 struct tcptimerentry *te = &tp->tentry;
1760 tp->tentry.index = lo_index;
1761 tp->tentry.mode = mode;
1762 VERIFY(tp->tentry.index == TCPT_NONE || tp->tentry.mode > 0);
1764 if (tp->tentry.index != TCPT_NONE) {
1765 tp->tentry.runtime = tp->tentry.timer_start
1766 + tp->t_timer[tp->tentry.index];
1767 if (tp->tentry.runtime == 0)
1768 tp->tentry.runtime++;