Lines Matching refs:head_page
442 * head_page == tail_page && head == tail then buffer is empty.
452 struct buffer_page *head_page; /* read from head */
490 struct buffer_page *head_page;
633 * Because the reader may move the head_page pointer, we can
686 head = cpu_buffer->head_page;
784 if (RB_WARN_ON(cpu_buffer, !cpu_buffer->head_page))
792 page = head = cpu_buffer->head_page;
802 cpu_buffer->head_page = page;
1049 cpu_buffer->head_page
1051 cpu_buffer->tail_page = cpu_buffer->commit_page = cpu_buffer->head_page;
1419 return __rb_page_index(iter->head_page, iter->head);
1540 if (iter->head_page == cpu_buffer->reader_page)
1541 iter->head_page = rb_set_head_page(cpu_buffer);
1543 rb_inc_page(cpu_buffer, &iter->head_page);
1545 iter->read_stamp = iter->head_page->page->time_stamp;
2724 iter->head_page = rb_set_head_page(cpu_buffer);
2725 if (unlikely(!iter->head_page))
2727 iter->head = iter->head_page->read;
2729 iter->head_page = cpu_buffer->reader_page;
2735 iter->read_stamp = iter->head_page->page->time_stamp;
2773 return iter->head_page == cpu_buffer->commit_page &&
2941 rb_inc_page(cpu_buffer, &cpu_buffer->head_page);
2995 if (iter->head >= rb_page_size(iter->head_page)) {
2997 if (iter->head_page == cpu_buffer->commit_page)
3012 (iter->head_page == cpu_buffer->commit_page) &&
3021 if ((iter->head >= rb_page_size(iter->head_page)) &&
3022 (iter->head_page != cpu_buffer->commit_page))
3134 if (iter->head >= local_read(&iter->head_page->page->commit)) {
3460 cpu_buffer->head_page
3462 local_set(&cpu_buffer->head_page->write, 0);
3463 local_set(&cpu_buffer->head_page->entries, 0);
3464 local_set(&cpu_buffer->head_page->page->commit, 0);
3466 cpu_buffer->head_page->read = 0;
3468 cpu_buffer->tail_page = cpu_buffer->head_page;
3469 cpu_buffer->commit_page = cpu_buffer->head_page;