Lines Matching refs:rbuf

61 extern void dvb_ringbuffer_init(struct dvb_ringbuffer *rbuf, void *data,
69 extern int dvb_ringbuffer_empty(struct dvb_ringbuffer *rbuf);
78 extern ssize_t dvb_ringbuffer_free(struct dvb_ringbuffer *rbuf);
87 extern ssize_t dvb_ringbuffer_avail(struct dvb_ringbuffer *rbuf);
98 extern void dvb_ringbuffer_reset(struct dvb_ringbuffer *rbuf);
109 extern void dvb_ringbuffer_flush(struct dvb_ringbuffer *rbuf);
117 extern void dvb_ringbuffer_flush_spinlock_wakeup(struct dvb_ringbuffer *rbuf);
125 #define DVB_RINGBUFFER_PEEK(rbuf, offs) \ argument
126 ((rbuf)->data[((rbuf)->pread + (offs)) % (rbuf)->size])
134 #define DVB_RINGBUFFER_SKIP(rbuf, num) {\ argument
135 (rbuf)->pread = ((rbuf)->pread + (num)) % (rbuf)->size;\
150 extern ssize_t dvb_ringbuffer_read_user(struct dvb_ringbuffer *rbuf,
164 extern void dvb_ringbuffer_read(struct dvb_ringbuffer *rbuf,
177 #define DVB_RINGBUFFER_WRITE_BYTE(rbuf, byte) \ argument
178 { (rbuf)->data[(rbuf)->pwrite] = (byte); \
179 (rbuf)->pwrite = ((rbuf)->pwrite + 1) % (rbuf)->size; }
192 extern ssize_t dvb_ringbuffer_write(struct dvb_ringbuffer *rbuf, const u8 *buf,
207 extern ssize_t dvb_ringbuffer_write_user(struct dvb_ringbuffer *rbuf,
219 extern ssize_t dvb_ringbuffer_pkt_write(struct dvb_ringbuffer *rbuf, u8 *buf,
239 extern ssize_t dvb_ringbuffer_pkt_read_user(struct dvb_ringbuffer *rbuf,
257 extern ssize_t dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx,
266 extern void dvb_ringbuffer_pkt_dispose(struct dvb_ringbuffer *rbuf, size_t idx);
277 extern ssize_t dvb_ringbuffer_pkt_next(struct dvb_ringbuffer *rbuf,