Lines Matching refs:reader

3998 	struct buffer_page *reader = cpu_buffer->reader_page;  in rb_per_cpu_empty()  local
4007 if (reader->read != rb_page_commit(reader)) in rb_per_cpu_empty()
4014 if (commit == reader) in rb_per_cpu_empty()
4441 struct buffer_page *reader; in ring_buffer_iter_empty() local
4450 reader = cpu_buffer->reader_page; in ring_buffer_iter_empty()
4476 (iter->head_page == reader && commit_page == head_page && in ring_buffer_iter_empty()
4545 struct buffer_page *reader = NULL; in rb_get_reader_page() local
4562 reader = NULL; in rb_get_reader_page()
4566 reader = cpu_buffer->reader_page; in rb_get_reader_page()
4569 if (cpu_buffer->reader_page->read < rb_page_size(reader)) in rb_get_reader_page()
4574 cpu_buffer->reader_page->read > rb_page_size(reader))) in rb_get_reader_page()
4578 reader = NULL; in rb_get_reader_page()
4598 reader = rb_set_head_page(cpu_buffer); in rb_get_reader_page()
4599 if (!reader) in rb_get_reader_page()
4601 cpu_buffer->reader_page->list.next = rb_list_head(reader->list.next); in rb_get_reader_page()
4602 cpu_buffer->reader_page->list.prev = reader->list.prev; in rb_get_reader_page()
4609 cpu_buffer->pages = reader->list.prev; in rb_get_reader_page()
4637 ret = rb_head_page_replace(reader, cpu_buffer->reader_page); in rb_get_reader_page()
4650 rb_list_head(reader->list.next)->prev = &cpu_buffer->reader_page->list; in rb_get_reader_page()
4656 cpu_buffer->reader_page = reader; in rb_get_reader_page()
4668 if (reader && reader->read == 0) in rb_get_reader_page()
4669 cpu_buffer->read_stamp = reader->page->time_stamp; in rb_get_reader_page()
4681 if (likely(!reader || rb_page_write(reader) <= BUF_PAGE_SIZE)) in rb_get_reader_page()
4692 reader = NULL; in rb_get_reader_page()
4706 return reader; in rb_get_reader_page()
4712 struct buffer_page *reader; in rb_advance_reader() local
4715 reader = rb_get_reader_page(cpu_buffer); in rb_advance_reader()
4718 if (RB_WARN_ON(cpu_buffer, !reader)) in rb_advance_reader()
4772 struct buffer_page *reader; in rb_buffer_peek() local
4787 reader = rb_get_reader_page(cpu_buffer); in rb_buffer_peek()
4788 if (!reader) in rb_buffer_peek()
4815 *ts = rb_fix_abs_ts(*ts, reader->page->time_stamp); in rb_buffer_peek()
5712 struct buffer_page *reader; in ring_buffer_read_page() local
5741 reader = rb_get_reader_page(cpu_buffer); in ring_buffer_read_page()
5742 if (!reader) in ring_buffer_read_page()
5747 read = reader->read; in ring_buffer_read_page()
5748 commit = rb_page_commit(reader); in ring_buffer_read_page()
5804 rpos = reader->read; in ring_buffer_read_page()
5823 cpu_buffer->read += rb_page_entries(reader); in ring_buffer_read_page()
5824 cpu_buffer->read_bytes += rb_page_commit(reader); in ring_buffer_read_page()
5828 bpage = reader->page; in ring_buffer_read_page()
5829 reader->page = *data_page; in ring_buffer_read_page()
5830 local_set(&reader->write, 0); in ring_buffer_read_page()
5831 local_set(&reader->entries, 0); in ring_buffer_read_page()
5832 reader->read = 0; in ring_buffer_read_page()
5840 if (reader->real_end) in ring_buffer_read_page()
5841 local_set(&bpage->commit, reader->real_end); in ring_buffer_read_page()