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 …]
190 queue->readp = queue->writep = 0; in queue_init()205 while((nextp = (queue->writep + 1) % queue->size) == queue->readp) in queue_put()208 queue->data[queue->writep] = data; in queue_put()209 queue->writep = nextp; in queue_put()220 while(queue->readp == queue->writep) in queue_get()237 queue->readp <= queue->writep ? queue->writep - queue->readp : in dump_queue()238 queue->size - queue->readp + queue->writep, in dump_queue()239 queue->readp == queue->writep ? " (EMPTY)" : in dump_queue()240 ((queue->writep + 1) % queue->size) == queue->readp ? in dump_queue()
160 int writep; member
134 int writep; member