Lines Matching refs:BUF_PAGE_SIZE
358 #define BUF_PAGE_SIZE (PAGE_SIZE - BUF_PAGE_HDR_SIZE) macro
361 #define BUF_MAX_DATA_SIZE (BUF_PAGE_SIZE - (sizeof(u32) * 2))
387 (unsigned int)BUF_PAGE_SIZE, in ring_buffer_print_page_header()
1318 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in __ring_buffer_alloc()
1525 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); in rb_remove_pages()
1669 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
1675 size = nr_pages * BUF_PAGE_SIZE; in ring_buffer_resize()
1955 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); in rb_handle_head_page()
2079 if (tail >= BUF_PAGE_SIZE) { in rb_reset_tail()
2085 if (tail == BUF_PAGE_SIZE) in rb_reset_tail()
2096 local_add(BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); in rb_reset_tail()
2116 if (tail > (BUF_PAGE_SIZE - RB_EVNT_MIN_SIZE)) { in rb_reset_tail()
2128 event->array[0] = (BUF_PAGE_SIZE - tail) - RB_EVNT_HDR_SIZE; in rb_reset_tail()
2134 length = (tail + length) - BUF_PAGE_SIZE; in rb_reset_tail()
2717 if (unlikely(write > BUF_PAGE_SIZE)) in __rb_reserve_next()
4170 return BUF_PAGE_SIZE * buffer->buffers[cpu]->nr_pages; in ring_buffer_size()
4587 cpu_buffer->read_bytes += BUF_PAGE_SIZE; in ring_buffer_read_page()
4618 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { in ring_buffer_read_page()
4630 if (commit < BUF_PAGE_SIZE) in ring_buffer_read_page()
4631 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); in ring_buffer_read_page()