Lines Matching refs:BUF_PAGE_SIZE
410 #define BUF_PAGE_SIZE (PAGE_SIZE - BUF_PAGE_HDR_SIZE) macro
413 #define BUF_MAX_DATA_SIZE (BUF_PAGE_SIZE - (sizeof(u32) * 2))
439 (unsigned int)BUF_PAGE_SIZE, in ring_buffer_print_page_header()
1342 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in __ring_buffer_alloc()
1549 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); in rb_remove_pages()
1693 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
1699 size = nr_pages * BUF_PAGE_SIZE; in ring_buffer_resize()
2110 local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes); in rb_handle_head_page()
2250 if (tail >= BUF_PAGE_SIZE) { in rb_reset_tail()
2256 if (tail == BUF_PAGE_SIZE) in rb_reset_tail()
2267 local_add(BUF_PAGE_SIZE - tail, &cpu_buffer->entries_bytes); in rb_reset_tail()
2287 if (tail > (BUF_PAGE_SIZE - RB_EVNT_MIN_SIZE)) { in rb_reset_tail()
2299 event->array[0] = (BUF_PAGE_SIZE - tail) - RB_EVNT_HDR_SIZE; in rb_reset_tail()
2305 length = (tail + length) - BUF_PAGE_SIZE; in rb_reset_tail()
2450 if (unlikely(write > BUF_PAGE_SIZE)) in __rb_reserve_next()
4162 return BUF_PAGE_SIZE * buffer->buffers[cpu]->nr_pages; in ring_buffer_size()
4590 cpu_buffer->read_bytes += BUF_PAGE_SIZE; in ring_buffer_read_page()
4621 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) { in ring_buffer_read_page()
4633 if (commit < BUF_PAGE_SIZE) in ring_buffer_read_page()
4634 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit); in ring_buffer_read_page()