Lines Matching refs:BUF_PAGE_SIZE
376 #define BUF_PAGE_SIZE (PAGE_SIZE - BUF_PAGE_HDR_SIZE) macro
379 #define BUF_MAX_DATA_SIZE (BUF_PAGE_SIZE - (sizeof(u32) * 2))
405 (unsigned int)BUF_PAGE_SIZE, in ring_buffer_print_page_header()
1822 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in __ring_buffer_alloc()
2163 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
2651 if (tail >= BUF_PAGE_SIZE) { in rb_reset_tail()
2657 if (tail == BUF_PAGE_SIZE) in rb_reset_tail()
2685 if (tail > (BUF_PAGE_SIZE - RB_EVNT_MIN_SIZE)) { in rb_reset_tail()
2700 event->array[0] = (BUF_PAGE_SIZE - tail) - RB_EVNT_HDR_SIZE; in rb_reset_tail()
2706 local_add(BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); in rb_reset_tail()
2712 length = (tail + length) - BUF_PAGE_SIZE; in rb_reset_tail()
3607 if (unlikely(write > BUF_PAGE_SIZE)) { in __rb_reserve_next()
4681 if (likely(!reader || rb_page_write(reader) <= BUF_PAGE_SIZE)) in rb_get_reader_page()
5249 return BUF_PAGE_SIZE * buffer->buffers[cpu]->nr_pages; in ring_buffer_size()
5855 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { in ring_buffer_read_page()
5867 if (commit < BUF_PAGE_SIZE) in ring_buffer_read_page()
5868 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); in ring_buffer_read_page()