Lines Matching refs:head

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()
58 head[0].end = end; 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()
85 tmp[j].end = head[i].end; in tcp_sack_insert()
88 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
89 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
91 begin = head[i].begin; in tcp_sack_insert()
92 end = head[i].end; in tcp_sack_insert()
93 } else if (SEQ_LEQ(end, head[i].end) && in tcp_sack_insert()
94 SEQ_GEQ(end, head[i].begin)) { in tcp_sack_insert()
99 end = head[i].end; 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()
115 head[0].end = end; in tcp_sack_insert()
117 head[i+1].begin = tmp[i].begin; in tcp_sack_insert()
118 head[i+1].end = tmp[i].end; in tcp_sack_insert()
133 tcp_sack_remove(sack_blk_t *head, tcp_seq end, int32_t *num) in tcp_sack_remove() argument
146 if (SEQ_GT(end, head[i].begin)) { in tcp_sack_remove()
154 if (SEQ_GEQ(end, head[i].end)) { in tcp_sack_remove()
159 tmp[j].end = head[i].end; in tcp_sack_remove()
162 tmp[j].begin = head[i].begin; in tcp_sack_remove()
163 tmp[j].end = head[i].end; in tcp_sack_remove()
169 head[i].begin = tmp[i].begin; in tcp_sack_remove()
170 head[i].end = tmp[i].end; in tcp_sack_remove()
192 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_insert() argument
198 if (*head == NULL) { in tcp_notsack_insert()
202 tmp = *head; in tcp_notsack_insert()
237 *head = tmp->next; in tcp_notsack_insert()
304 *head = tmp->next; in tcp_notsack_insert()
307 tmp = *head; in tcp_notsack_insert()
337 tcp_notsack_remove(notsack_blk_t **head, tcp_seq end, int32_t *num, in tcp_notsack_remove() argument
343 if (*head == NULL) in tcp_notsack_remove()
347 tmp = *head; in tcp_notsack_remove()
359 *head = tmp->next; in tcp_notsack_remove()
361 tmp = *head; in tcp_notsack_remove()
391 void tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_update() argument
396 tmp = *head; in tcp_notsack_update()
407 *head = tmp; in tcp_notsack_update()