Lines Matching refs:rchan_buf

36 	struct rchan_buf *buf = vmf->vma->vm_private_data;  in relay_buf_fault()
83 static int relay_mmap_buf(struct rchan_buf *buf, struct vm_area_struct *vma) in relay_mmap_buf()
108 static void *relay_alloc_buf(struct rchan_buf *buf, size_t *size) in relay_alloc_buf()
147 static struct rchan_buf *relay_create_buf(struct rchan *chan) in relay_create_buf()
149 struct rchan_buf *buf; in relay_create_buf()
154 buf = kzalloc(sizeof(struct rchan_buf), GFP_KERNEL); in relay_create_buf()
193 static void relay_destroy_buf(struct rchan_buf *buf) in relay_destroy_buf()
220 struct rchan_buf *buf = container_of(kref, struct rchan_buf, kref); in relay_remove_buf()
230 static int relay_buf_empty(struct rchan_buf *buf) in relay_buf_empty()
241 int relay_buf_full(struct rchan_buf *buf) in relay_buf_full()
252 static int relay_subbuf_start(struct rchan_buf *buf, void *subbuf, in relay_subbuf_start()
270 struct rchan_buf *buf; in wakeup_readers()
272 buf = container_of(work, struct rchan_buf, wakeup_work); in wakeup_readers()
283 static void __relay_reset(struct rchan_buf *buf, unsigned int init) in __relay_reset()
321 struct rchan_buf *buf; in relay_reset()
340 static inline void relay_set_buf_dentry(struct rchan_buf *buf, in relay_set_buf_dentry()
348 struct rchan_buf *buf, in relay_create_buf_file()
376 static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu) in relay_open_buf()
378 struct rchan_buf *buf; in relay_open_buf()
425 static void relay_close_buf(struct rchan_buf *buf) in relay_close_buf()
436 struct rchan_buf *buf; in relay_prepare_cpu()
483 struct rchan_buf *buf; in relay_open()
496 chan->buf = alloc_percpu(struct rchan_buf *); in relay_open()
540 struct rchan_buf *buf;
575 struct rchan_buf *buf; in relay_late_setup_files()
659 size_t relay_switch_subbuf(struct rchan_buf *buf, size_t length) in relay_switch_subbuf()
730 struct rchan_buf *buf; in relay_subbufs_consumed()
754 struct rchan_buf *buf; in relay_close()
787 struct rchan_buf *buf; in relay_flush()
815 struct rchan_buf *buf = inode->i_private; in relay_file_open()
831 struct rchan_buf *buf = filp->private_data; in relay_file_mmap()
845 struct rchan_buf *buf = filp->private_data; in relay_file_poll()
869 struct rchan_buf *buf = filp->private_data; in relay_file_release()
878 static void relay_file_read_consume(struct rchan_buf *buf, in relay_file_read_consume()
912 static int relay_file_read_avail(struct rchan_buf *buf) in relay_file_read_avail()
957 struct rchan_buf *buf) in relay_file_read_subbuf_avail()
986 static size_t relay_file_read_start_pos(struct rchan_buf *buf) in relay_file_read_start_pos()
1013 static size_t relay_file_read_end_pos(struct rchan_buf *buf, in relay_file_read_end_pos()
1038 struct rchan_buf *buf = filp->private_data; in relay_file_read()