Searched refs:writep (Results 1 – 5 of 5) 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
1287 struct write_req *writep = &ioreq->r_data.write; in format_rw() local1312 fd, (unsigned long)buffer, writep->r_nbytes); in format_rw()1316 fd, writep->r_file, writep->r_oflags); in format_rw()1320 writep->r_offset, pattern); in format_rw()