Home
last modified time | relevance | path

Searched refs:freeindex (Results 1 – 1 of 1) sorted by relevance

/external/openthread/third_party/tcplp/bsdtcp/
Dtcp_sack.c112 size_t freeindex = bmp_countset(tp->sackhole_bmp, SACKHOLE_BMP_SIZE, 0, SACKHOLE_BMP_SIZE); in sackhole_alloc() local
113 if (freeindex >= SACKHOLE_BMP_SIZE) { in sackhole_alloc()
116 bmp_setrange(tp->sackhole_bmp, freeindex, 1); in sackhole_alloc()
117 return &tp->sackhole_pool[freeindex]; in sackhole_alloc()
121 size_t freeindex = (size_t) (tofree - &tp->sackhole_pool[0]); in sackhole_free() local
122 KASSERT(tofree == &tp->sackhole_pool[freeindex], ("sackhole pool unaligned")); in sackhole_free()
123 bmp_clrrange(tp->sackhole_bmp, freeindex, 1); in sackhole_free()