Lines Matching refs:size
450 struct ring_buffer *ring_buffer_alloc(unsigned long size, unsigned flags) in ring_buffer_alloc() argument
470 buffer->pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_alloc()
602 int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size) in ring_buffer_resize() argument
616 return size; in ring_buffer_resize()
618 size = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
619 size *= BUF_PAGE_SIZE; in ring_buffer_resize()
623 if (size < BUF_PAGE_SIZE * 2) in ring_buffer_resize()
624 size = BUF_PAGE_SIZE * 2; in ring_buffer_resize()
626 if (size == buffer_size) in ring_buffer_resize()
627 return size; in ring_buffer_resize()
631 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
633 if (size < buffer_size) { in ring_buffer_resize()
695 return size; in ring_buffer_resize()