Lines Matching defs:next_free
56 uint64_t next_free, next_used;
143 void *buffer = nc->buffers[nc->next_free];
152 nc->buffers[nc->next_free] = NULL;
153 nc->next_free = (nc->next_free + 1) % NO_OF_BUFFERS;
193 void *buffer = nc->buffers[nc->next_free];
232 nc->buffers[nc->next_free] = NULL;
233 nc->next_free = (nc->next_free + 1) % NO_OF_BUFFERS;
262 void *buffer = nc->buffers[nc->next_free];
270 nc->buffers[nc->next_free] = NULL;
271 nc->next_free = (nc->next_free + 1) % NO_OF_BUFFERS;
283 // void *buffer = nc->buffers[nc->next_free];
293 // nc->buffers[nc->next_free] = NULL;
294 // nc->next_free = (nc->next_free + 1) % NO_OF_BUFFERS;
371 void *buffer = nc->buffers[nc->next_free];
381 nc->buffers[nc->next_free] = NULL;
382 nc->next_free = (nc->next_free + 1) % NO_OF_BUFFERS;
614 // debug_printf("%s: %ld:%p %ld:%p\n", __func__, nc->next_free, nc->buffers[nc->next_free], nc->next_used, nc->buffers[nc->next_used]);
639 nc->next_free = 0;