Lines Matching refs:head

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()
64 head[0].end = end; 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()
91 tmp[j].end = head[i].end; in tcp_sack_insert()
94 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
95 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
97 begin = head[i].begin; in tcp_sack_insert()
98 end = head[i].end; in tcp_sack_insert()
99 } else if (SEQ_LEQ(end, head[i].end) && in tcp_sack_insert()
100 SEQ_GEQ(end, head[i].begin)) { in tcp_sack_insert()
105 end = head[i].end; 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()
121 head[0].end = end; in tcp_sack_insert()
123 head[i+1].begin = tmp[i].begin; in tcp_sack_insert()
124 head[i+1].end = tmp[i].end; in tcp_sack_insert()
139 tcp_sack_remove(sack_blk_t *head, tcp_seq end, int32_t *num) in tcp_sack_remove() argument
152 if (SEQ_GT(end, head[i].begin)) { in tcp_sack_remove()
160 if (SEQ_GEQ(end, head[i].end)) { in tcp_sack_remove()
165 tmp[j].end = head[i].end; in tcp_sack_remove()
168 tmp[j].begin = head[i].begin; in tcp_sack_remove()
169 tmp[j].end = head[i].end; in tcp_sack_remove()
175 head[i].begin = tmp[i].begin; in tcp_sack_remove()
176 head[i].end = tmp[i].end; in tcp_sack_remove()
198 tcp_notsack_insert(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_insert() argument
204 if (*head == NULL) { in tcp_notsack_insert()
208 tmp = *head; in tcp_notsack_insert()
243 *head = tmp->next; in tcp_notsack_insert()
309 *head = tmp->next; in tcp_notsack_insert()
312 tmp = *head; in tcp_notsack_insert()
342 tcp_notsack_remove(notsack_blk_t **head, tcp_seq end, int32_t *num, in tcp_notsack_remove() argument
348 if (*head == NULL) in tcp_notsack_remove()
352 tmp = *head; in tcp_notsack_remove()
364 *head = tmp->next; in tcp_notsack_remove()
367 tmp = *head; in tcp_notsack_remove()
398 void tcp_notsack_update(notsack_blk_t **head, tcp_seq begin, tcp_seq end, in tcp_notsack_update() argument
403 tmp = *head; in tcp_notsack_update()
414 *head = tmp; in tcp_notsack_update()