Lines Matching refs:BUF_PAGE_SIZE
379 #define BUF_PAGE_SIZE (PAGE_SIZE - BUF_PAGE_HDR_SIZE) macro
382 #define BUF_MAX_DATA_SIZE (BUF_PAGE_SIZE - (sizeof(u32) * 2))
408 (unsigned int)BUF_PAGE_SIZE, in ring_buffer_print_page_header()
1712 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in __ring_buffer_alloc()
2049 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
2055 size = nr_pages * BUF_PAGE_SIZE; in ring_buffer_resize()
2286 if ((iter->head + length) > commit || length > BUF_PAGE_SIZE) in rb_iter_head_event()
2527 if (tail >= BUF_PAGE_SIZE) { in rb_reset_tail()
2533 if (tail == BUF_PAGE_SIZE) in rb_reset_tail()
2561 if (tail > (BUF_PAGE_SIZE - RB_EVNT_MIN_SIZE)) { in rb_reset_tail()
2576 event->array[0] = (BUF_PAGE_SIZE - tail) - RB_EVNT_HDR_SIZE; in rb_reset_tail()
2582 local_add(BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); in rb_reset_tail()
2588 length = (tail + length) - BUF_PAGE_SIZE; in rb_reset_tail()
3337 if (unlikely(write > BUF_PAGE_SIZE)) { in __rb_reserve_next()
4416 if (likely(!reader || rb_page_write(reader) <= BUF_PAGE_SIZE)) in rb_get_reader_page()
4859 iter->event = kmalloc(BUF_PAGE_SIZE, flags); in ring_buffer_read_prepare()
4984 return BUF_PAGE_SIZE * buffer->buffers[cpu]->nr_pages; in ring_buffer_size()
5589 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { in ring_buffer_read_page()
5601 if (commit < BUF_PAGE_SIZE) in ring_buffer_read_page()
5602 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); in ring_buffer_read_page()