Searched refs:writep (Results 1 – 4 of 4) sorted by relevance
55 queue->readp = queue->writep = 0; in queue_init()71 while((nextp = (queue->writep + 1) % queue->size) == queue->readp) in queue_put()74 queue->data[queue->writep] = data; in queue_put()75 queue->writep = nextp; in queue_put()88 while(queue->readp == queue->writep) in queue_get()107 empty = queue->readp == queue->writep; in queue_empty()120 queue->readp = queue->writep; in queue_flush()132 queue->readp <= queue->writep ? queue->writep - queue->readp : in dump_queue()133 queue->size - queue->readp + queue->writep, in dump_queue()134 queue->readp == queue->writep ? " (EMPTY)" : in dump_queue()[all …]
185 queue->readp = queue->writep = 0; in queue_init()200 while((nextp = (queue->writep + 1) % queue->size) == queue->readp) in queue_put()203 queue->data[queue->writep] = data; in queue_put()204 queue->writep = nextp; in queue_put()215 while(queue->readp == queue->writep) in queue_get()232 queue->readp <= queue->writep ? queue->writep - queue->readp : in dump_queue()233 queue->size - queue->readp + queue->writep, in dump_queue()234 queue->readp == queue->writep ? " (EMPTY)" : in dump_queue()235 ((queue->writep + 1) % queue->size) == queue->readp ? in dump_queue()
156 int writep; member
134 int writep; member