Lines Matching refs:tmp

59 	sack_blk_t tmp[MAX_SACK_BLK - 1];  in tcp_sack_insert()  local
90 tmp[j].begin = head[i].begin; in tcp_sack_insert()
91 tmp[j].end = head[i].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()
141 sack_blk_t tmp[MAX_SACK_BLK]; in tcp_sack_remove() local
164 tmp[j].begin = 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()
201 notsack_blk_t *prev, *tmp, *new; in tcp_notsack_insert() local
208 tmp = *head; in tcp_notsack_insert()
211 while ((tmp != NULL) && SEQ_LEQ(tmp->end, begin)) { in tcp_notsack_insert()
212 prev = tmp; in tcp_notsack_insert()
213 (tmp->sack_cnt)++; in tcp_notsack_insert()
214 tmp = tmp->next; in tcp_notsack_insert()
221 if (tmp == NULL) { in tcp_notsack_insert()
229 if (SEQ_LEQ(end, tmp->begin)) { in tcp_notsack_insert()
234 if (SEQ_LEQ(end, tmp->end)) { in tcp_notsack_insert()
239 if (end == tmp->end && SEQ_LEQ(begin, tmp->begin)) { in tcp_notsack_insert()
241 prev->next = tmp->next; in tcp_notsack_insert()
243 *head = tmp->next; in tcp_notsack_insert()
246 *sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
247 bkmem_free(tmp, sizeof (notsack_blk_t)); 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()
256 } else if (end == tmp->end) { in tcp_notsack_insert()
257 *sum -= tmp->end - begin; in tcp_notsack_insert()
258 tmp->end = begin; in tcp_notsack_insert()
259 (tmp->sack_cnt)++; in tcp_notsack_insert()
266 new->end = tmp->end; in tcp_notsack_insert()
268 new->next = tmp->next; in tcp_notsack_insert()
270 tmp->end = begin; in tcp_notsack_insert()
271 tmp->next = new; in tcp_notsack_insert()
272 (tmp->sack_cnt)++; 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()
289 (tmp->sack_cnt)++; in tcp_notsack_insert()
290 prev = tmp; in tcp_notsack_insert()
291 tmp = tmp->next; in tcp_notsack_insert()
294 while (tmp != NULL) { in tcp_notsack_insert()
296 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_insert()
300 if (SEQ_LEQ(tmp->end, end)) { in tcp_notsack_insert()
302 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_insert()
304 prev->next = tmp->next; in tcp_notsack_insert()
305 bkmem_free((caddr_t)tmp, in tcp_notsack_insert()
307 tmp = prev->next; in tcp_notsack_insert()
309 *head = tmp->next; in tcp_notsack_insert()
310 bkmem_free((caddr_t)tmp, in tcp_notsack_insert()
312 tmp = *head; in tcp_notsack_insert()
319 tmp_sum -= end - tmp->begin; in tcp_notsack_insert()
320 tmp->begin = end; in tcp_notsack_insert()
345 notsack_blk_t *prev, *tmp; in tcp_notsack_remove() local
352 tmp = *head; in tcp_notsack_remove()
353 while (tmp != NULL) { in tcp_notsack_remove()
355 if (SEQ_GT(tmp->begin, end)) { in tcp_notsack_remove()
360 if (SEQ_GEQ(end, tmp->end)) { in tcp_notsack_remove()
362 tmp_sum -= tmp->end - tmp->begin; in tcp_notsack_remove()
364 *head = tmp->next; in tcp_notsack_remove()
365 bkmem_free((caddr_t)tmp, in tcp_notsack_remove()
367 tmp = *head; in tcp_notsack_remove()
369 prev->next = tmp->next; in tcp_notsack_remove()
370 bkmem_free((caddr_t)tmp, in tcp_notsack_remove()
372 tmp = tmp->next; in tcp_notsack_remove()
375 tmp_sum -= end - tmp->begin; in tcp_notsack_remove()
376 tmp->begin = end; in tcp_notsack_remove()
401 notsack_blk_t *tmp; in tcp_notsack_update() local
403 tmp = *head; in tcp_notsack_update()
405 if (tmp == NULL) { in tcp_notsack_update()
406 if ((tmp = (notsack_blk_t *)bkmem_alloc( in tcp_notsack_update()
410 tmp->begin = begin; in tcp_notsack_update()
411 tmp->end = end; in tcp_notsack_update()
412 tmp->next = NULL; in tcp_notsack_update()
413 tmp->sack_cnt = 0; in tcp_notsack_update()
414 *head = tmp; in tcp_notsack_update()
425 while (tmp->next != NULL) { in tcp_notsack_update()
426 tmp = tmp->next; in tcp_notsack_update()
430 if (SEQ_GEQ(tmp->end, begin)) { in tcp_notsack_update()
431 *sum += end - tmp->end; in tcp_notsack_update()
432 tmp->end = end; in tcp_notsack_update()
435 tmp->next = (notsack_blk_t *)bkmem_alloc( in tcp_notsack_update()
437 if (tmp->next != NULL) { in tcp_notsack_update()
438 tmp = tmp->next; in tcp_notsack_update()
439 tmp->begin = begin; in tcp_notsack_update()
440 tmp->end = end; in tcp_notsack_update()
441 tmp->next = NULL; in tcp_notsack_update()
442 tmp->sack_cnt = 0; in tcp_notsack_update()