Searched refs:pread (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()116 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user()118 if (copy_to_user(buf, rbuf->data+rbuf->pread, split)) in dvb_ringbuffer_read_user()122 rbuf->pread = 0; in dvb_ringbuffer_read_user()124 if (copy_to_user(buf, rbuf->data+rbuf->pread, todo)) in dvb_ringbuffer_read_user()[all …]
36 ssize_t pread; member106 (rbuf)->data[((rbuf)->pread+(offs))%(rbuf)->size]110 (rbuf)->pread=((rbuf)->pread+(num))%(rbuf)->size
277 (unsigned long) buf->pread, (unsigned long) buf->pwrite); in av7110_pes_play()