Lines Matching refs:iterator
358 struct bpool_iterator *iterator) in bpool_foreach_iterator_init() argument
360 iterator->pool_idx = 0; in bpool_foreach_iterator_init()
361 iterator->next_buf = BFH(ctx->pool[0].buf); in bpool_foreach_iterator_init()
364 static bool bpool_foreach_pool(struct bpool_iterator *iterator, void **buf, in bpool_foreach_pool() argument
367 struct bfhead *b = iterator->next_buf; in bpool_foreach_pool()
390 iterator->next_buf = BFH((uint8_t *)b + bs); in bpool_foreach_pool()
395 struct bpool_iterator *iterator, void **buf) in bpool_foreach() argument
401 if (bpool_foreach_pool(iterator, buf, &len, &isfree)) { in bpool_foreach()
407 if ((iterator->pool_idx + 1) >= ctx->pool_len) in bpool_foreach()
410 iterator->pool_idx++; in bpool_foreach()
411 iterator->next_buf = BFH(ctx->pool[iterator->pool_idx].buf); in bpool_foreach()
416 #define BPOOL_FOREACH(ctx, iterator, bp) \ argument
417 for (bpool_foreach_iterator_init((ctx),(iterator)); \
418 bpool_foreach((ctx),(iterator), (bp));)