Lines Matching refs:begin

56 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num)  in tcp_sack_insert()  argument
63 head[0].begin = begin; in tcp_sack_insert()
88 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
90 tmp[j].begin = head[i].begin; in tcp_sack_insert()
94 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
97 begin = head[i].begin; in tcp_sack_insert()
100 SEQ_GEQ(end, head[i].begin)) { in tcp_sack_insert()
106 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
107 SEQ_LEQ(begin, head[i].end)) { in tcp_sack_insert()
109 begin = head[i].begin; in tcp_sack_insert()
120 head[0].begin = begin; in tcp_sack_insert()
123 head[i+1].begin = tmp[i].begin; in tcp_sack_insert()
152 if (SEQ_GT(end, head[i].begin)) { in tcp_sack_remove()
164 tmp[j].begin = end; in tcp_sack_remove()
168 tmp[j].begin = head[i].begin; in tcp_sack_remove()
175 head[i].begin = tmp[i].begin; in tcp_sack_remove()
198 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_insert() argument
211 while ((tmp != NULL) && SEQ_LEQ(tmp->end, begin)) { in tcp_notsack_insert()
229 if (SEQ_LEQ(end, tmp->begin)) { in tcp_notsack_insert()
239 if (end == tmp->end && SEQ_LEQ(begin, tmp->begin)) { in tcp_notsack_insert()
246 *sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
251 if (SEQ_GEQ(begin, tmp->begin)) { in tcp_notsack_insert()
253 if (begin == tmp->begin) { in tcp_notsack_insert()
254 *sum -= end - tmp->begin; in tcp_notsack_insert()
255 tmp->begin = end; in tcp_notsack_insert()
257 *sum -= tmp->end - begin; in tcp_notsack_insert()
258 tmp->end = begin; in tcp_notsack_insert()
267 new->begin = end; in tcp_notsack_insert()
270 tmp->end = begin; in tcp_notsack_insert()
274 *sum -= end - begin; in tcp_notsack_insert()
277 *sum -= end - tmp->begin; in tcp_notsack_insert()
278 tmp->begin = end; in tcp_notsack_insert()
286 if (SEQ_LT(tmp->begin, begin)) { in tcp_notsack_insert()
287 tmp_sum -= tmp->end - begin; in tcp_notsack_insert()
288 tmp->end = begin; in tcp_notsack_insert()
296 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_insert()
302 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
319 tmp_sum -= end - tmp->begin; in tcp_notsack_insert()
320 tmp->begin = end; in tcp_notsack_insert()
355 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_remove()
362 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_remove()
375 tmp_sum -= end - tmp->begin; in tcp_notsack_remove()
376 tmp->begin = end; in tcp_notsack_remove()
398 void tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_update() argument
410 tmp->begin = begin; in tcp_notsack_update()
416 *sum = end - begin; in tcp_notsack_update()
430 if (SEQ_GEQ(tmp->end, begin)) { in tcp_notsack_update()
439 tmp->begin = begin; in tcp_notsack_update()
444 *sum += end - begin; in tcp_notsack_update()