Lines Matching refs:BUF_PAGE_SIZE
369 #define BUF_PAGE_SIZE (PAGE_SIZE - BUF_PAGE_HDR_SIZE) macro
372 #define BUF_MAX_DATA_SIZE (BUF_PAGE_SIZE - (sizeof(u32) * 2))
398 (unsigned int)BUF_PAGE_SIZE, in ring_buffer_print_page_header()
1632 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in __ring_buffer_alloc()
1826 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); in rb_remove_pages()
1970 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
1976 size = nr_pages * BUF_PAGE_SIZE; in ring_buffer_resize()
2316 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); in rb_handle_head_page()
2443 if (tail >= BUF_PAGE_SIZE) { in rb_reset_tail()
2449 if (tail == BUF_PAGE_SIZE) in rb_reset_tail()
2459 local_add(BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); in rb_reset_tail()
2479 if (tail > (BUF_PAGE_SIZE - RB_EVNT_MIN_SIZE)) { in rb_reset_tail()
2491 event->array[0] = (BUF_PAGE_SIZE - tail) - RB_EVNT_HDR_SIZE; in rb_reset_tail()
2497 length = (tail + length) - BUF_PAGE_SIZE; in rb_reset_tail()
3236 if (unlikely(write > BUF_PAGE_SIZE)) { in __rb_reserve_next()
4819 return BUF_PAGE_SIZE * buffer->buffers[cpu]->nr_pages; in ring_buffer_size()
5348 cpu_buffer->read_bytes += BUF_PAGE_SIZE; in ring_buffer_read_page()
5379 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { in ring_buffer_read_page()
5391 if (commit < BUF_PAGE_SIZE) in ring_buffer_read_page()
5392 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); in ring_buffer_read_page()