Searched refs:pwrite (Results 1 – 3 of 3) sorted by relevance
44 rbuf->pread=rbuf->pwrite=0; in dvb_ringbuffer_init()58 return (rbuf->pread==rbuf->pwrite); in dvb_ringbuffer_empty()67 free = rbuf->pread - rbuf->pwrite; in dvb_ringbuffer_free()79 avail = rbuf->pwrite - rbuf->pread; in dvb_ringbuffer_avail()89 rbuf->pread = rbuf->pwrite; in dvb_ringbuffer_flush()96 rbuf->pread = rbuf->pwrite = 0; in dvb_ringbuffer_reset()155 split = (rbuf->pwrite + len > rbuf->size) ? rbuf->size - rbuf->pwrite : 0; in dvb_ringbuffer_write()158 memcpy(rbuf->data+rbuf->pwrite, buf, split); in dvb_ringbuffer_write()161 rbuf->pwrite = 0; in dvb_ringbuffer_write()163 memcpy(rbuf->data+rbuf->pwrite, buf, todo); in dvb_ringbuffer_write()[all …]
37 ssize_t pwrite; member127 { (rbuf)->data[(rbuf)->pwrite]=(byte); \128 (rbuf)->pwrite=((rbuf)->pwrite+1)%(rbuf)->size; }
277 (unsigned long) buf->pread, (unsigned long) buf->pwrite); in av7110_pes_play()