Lines Matching refs:begin

50 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num)  in tcp_sack_insert()  argument
57 head[0].begin = begin; in tcp_sack_insert()
82 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
84 tmp[j].begin = head[i].begin; in tcp_sack_insert()
88 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
91 begin = head[i].begin; in tcp_sack_insert()
94 SEQ_GEQ(end, head[i].begin)) { in tcp_sack_insert()
100 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
101 SEQ_LEQ(begin, head[i].end)) { in tcp_sack_insert()
103 begin = head[i].begin; in tcp_sack_insert()
114 head[0].begin = begin; in tcp_sack_insert()
117 head[i+1].begin = tmp[i].begin; in tcp_sack_insert()
146 if (SEQ_GT(end, head[i].begin)) { in tcp_sack_remove()
158 tmp[j].begin = end; in tcp_sack_remove()
162 tmp[j].begin = head[i].begin; in tcp_sack_remove()
169 head[i].begin = tmp[i].begin; in tcp_sack_remove()
192 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_insert() argument
205 while ((tmp != NULL) && SEQ_LEQ(tmp->end, begin)) { in tcp_notsack_insert()
223 if (SEQ_LEQ(end, tmp->begin)) { in tcp_notsack_insert()
233 if (end == tmp->end && SEQ_LEQ(begin, tmp->begin)) { in tcp_notsack_insert()
240 *sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
245 if (SEQ_GEQ(begin, tmp->begin)) { in tcp_notsack_insert()
247 if (begin == tmp->begin) { in tcp_notsack_insert()
248 *sum -= end - tmp->begin; in tcp_notsack_insert()
249 tmp->begin = end; in tcp_notsack_insert()
251 *sum -= tmp->end - begin; in tcp_notsack_insert()
252 tmp->end = begin; in tcp_notsack_insert()
262 new->begin = end; in tcp_notsack_insert()
265 tmp->end = begin; in tcp_notsack_insert()
269 *sum -= end - begin; in tcp_notsack_insert()
272 *sum -= end - tmp->begin; in tcp_notsack_insert()
273 tmp->begin = end; in tcp_notsack_insert()
281 if (SEQ_LT(tmp->begin, begin)) { in tcp_notsack_insert()
282 tmp_sum -= tmp->end - begin; in tcp_notsack_insert()
283 tmp->end = begin; in tcp_notsack_insert()
291 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_insert()
297 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
314 tmp_sum -= end - tmp->begin; in tcp_notsack_insert()
315 tmp->begin = end; in tcp_notsack_insert()
350 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_remove()
357 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_remove()
368 tmp_sum -= end - tmp->begin; in tcp_notsack_remove()
369 tmp->begin = end; in tcp_notsack_remove()
391 void tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_update() argument
403 tmp->begin = begin; in tcp_notsack_update()
409 *sum = end - begin; in tcp_notsack_update()
423 if (SEQ_GEQ(tmp->end, begin)) { in tcp_notsack_update()
431 tmp->begin = begin; in tcp_notsack_update()
436 *sum += end - begin; in tcp_notsack_update()