Lines Matching refs:next_page
1453 struct buffer_page *next_page) in rb_tail_page_update() argument
1467 old_write = local_add_return(RB_WRITE_INTCNT, &next_page->write); in rb_tail_page_update()
1468 old_entries = local_add_return(RB_WRITE_INTCNT, &next_page->entries); in rb_tail_page_update()
1497 (void)local_cmpxchg(&next_page->write, old_write, val); in rb_tail_page_update()
1498 (void)local_cmpxchg(&next_page->entries, old_entries, eval); in rb_tail_page_update()
1505 local_set(&next_page->page->commit, 0); in rb_tail_page_update()
1508 (void)cmpxchg(&cpu_buffer->tail_page, tail_page, next_page); in rb_tail_page_update()
1896 struct list_head *tail_page, *to_remove, *next_page; in rb_remove_pages() local
1935 next_page = rb_list_head(to_remove)->next; in rb_remove_pages()
1942 tail_page->next = (struct list_head *)((unsigned long)next_page | in rb_remove_pages()
1944 next_page = rb_list_head(next_page); in rb_remove_pages()
1945 next_page->prev = tail_page; in rb_remove_pages()
1948 cpu_buffer->pages = next_page; in rb_remove_pages()
1952 cpu_buffer->head_page = list_entry(next_page, in rb_remove_pages()
2443 struct buffer_page *next_page) in rb_handle_head_page() argument
2450 entries = rb_page_entries(next_page); in rb_handle_head_page()
2457 type = rb_head_page_set_update(cpu_buffer, next_page, tail_page, in rb_handle_head_page()
2479 local_sub(rb_page_commit(next_page), &cpu_buffer->entries_bytes); in rb_handle_head_page()
2529 new_head = next_page; in rb_handle_head_page()
2532 ret = rb_head_page_set_head(cpu_buffer, new_head, next_page, in rb_handle_head_page()
2572 buffer_tail_page != next_page) in rb_handle_head_page()
2574 next_page, in rb_handle_head_page()
2584 ret = rb_head_page_set_normal(cpu_buffer, next_page, in rb_handle_head_page()
2684 struct buffer_page *next_page; in rb_move_tail() local
2687 next_page = tail_page; in rb_move_tail()
2689 rb_inc_page(&next_page); in rb_move_tail()
2696 if (unlikely(next_page == commit_page)) { in rb_move_tail()
2715 if (rb_is_head_page(next_page, &tail_page->list)) { in rb_move_tail()
2733 next_page); in rb_move_tail()
2759 rb_tail_page_update(cpu_buffer, tail_page, next_page); in rb_move_tail()