Searched refs:ringbuf (Results 1 – 3 of 3) sorted by relevance
159 struct ringbuf { struct167 static inline struct ringbuf *alloc_ringbuf(unsigned int size) in alloc_ringbuf() argument169 struct ringbuf *pb; in alloc_ringbuf()191 static inline void free_ringbuf(struct ringbuf *pb) in free_ringbuf()200 static inline void clear_ringbuf(struct ringbuf *pb) in clear_ringbuf()207 static inline unsigned int ringbuf_avail_data(struct ringbuf *pb) in ringbuf_avail_data()215 static inline unsigned int ringbuf_avail_space(struct ringbuf *pb) in ringbuf_avail_space()223 static unsigned int put_ringbuf(struct ringbuf *pb, const char *buf, in put_ringbuf()254 static unsigned int get_ringbuf(struct ringbuf *pb, char *buf, in get_ringbuf()296 struct ringbuf *buf;
1520 kfree (self->ringbuf); in toshoboe_close()1521 self->ringbuf = NULL; in toshoboe_close()1602 self->ringbuf = kmalloc(OBOE_RING_LEN << 1, GFP_KERNEL); in toshoboe_open()1603 if (!self->ringbuf) in toshoboe_open()1618 addr = (__u32) self->ringbuf; in toshoboe_open()1685 kfree(self->ringbuf); in toshoboe_open()
336 void *ringbuf; /*The ring buffer */ member