Lines Matching defs:cur
316 struct sackhole *cur, *temp;
417 cur = TAILQ_LAST(&tp->snd_holes, sackhole_head); /* Last SACK hole */
422 while (sblkp >= sack_blocks && cur != NULL) {
423 if (SEQ_GEQ(sblkp->start, cur->end)) {
431 if (SEQ_LEQ(sblkp->end, cur->start)) {
436 cur = TAILQ_PREV(cur, sackhole_head, scblink);
439 tp->sackhint.sack_bytes_rexmit -= (cur->rxmit - cur->start);
440 if (SEQ_LEQ(sblkp->start, cur->start)) {
442 if (SEQ_GEQ(sblkp->end, cur->end)) {
444 temp = cur;
445 cur = TAILQ_PREV(cur, sackhole_head, scblink);
454 cur->start = sblkp->end;
455 cur->rxmit = SEQ_MAX(cur->rxmit, cur->start);
459 if (SEQ_GEQ(sblkp->end, cur->end)) {
461 cur->end = sblkp->start;
462 cur->rxmit = SEQ_MIN(cur->rxmit, cur->end);
469 cur->end, cur);
471 if (SEQ_GT(cur->rxmit, temp->rxmit)) {
472 temp->rxmit = cur->rxmit;
477 cur->end = sblkp->start;
478 cur->rxmit = SEQ_MIN(cur->rxmit,
479 cur->end);
483 tp->sackhint.sack_bytes_rexmit += (cur->rxmit - cur->start);
485 * Testing sblkp->start against cur->start tells us whether
489 if (SEQ_LEQ(sblkp->start, cur->start))
490 cur = TAILQ_PREV(cur, sackhole_head, scblink);
620 struct sackhole *p, *cur = TAILQ_FIRST(&tp->snd_holes);
622 if (cur == NULL)
631 while ((p = TAILQ_NEXT(cur, scblink)) != NULL) {
632 if (SEQ_LT(tp->snd_nxt, cur->end))
635 cur = p;
641 if (SEQ_LT(tp->snd_nxt, cur->end))