Lines Matching refs:BUF_PAGE_SIZE
402 #define BUF_PAGE_SIZE (PAGE_SIZE - BUF_PAGE_HDR_SIZE)
404 /* Max payload is BUF_PAGE_SIZE - header (8bytes) */
405 #define BUF_MAX_DATA_SIZE (BUF_PAGE_SIZE - (sizeof(u32) * 2))
408 #define RB_TIMESTAMPS_PER_PAGE (BUF_PAGE_SIZE / RB_LEN_TIME_EXTEND)
435 (unsigned int)BUF_PAGE_SIZE,
1117 buffer->pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE);
1274 * Minimum size is 2 * BUF_PAGE_SIZE.
1294 size = DIV_ROUND_UP(size, BUF_PAGE_SIZE);
1295 size *= BUF_PAGE_SIZE;
1296 buffer_size = buffer->pages * BUF_PAGE_SIZE;
1299 if (size < BUF_PAGE_SIZE * 2)
1300 size = BUF_PAGE_SIZE * 2;
1313 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE);
1770 if (tail >= BUF_PAGE_SIZE) {
1776 if (tail == BUF_PAGE_SIZE)
1804 if (tail > (BUF_PAGE_SIZE - RB_EVNT_MIN_SIZE)) {
1816 event->array[0] = (BUF_PAGE_SIZE - tail) - RB_EVNT_HDR_SIZE;
1822 length = (tail + length) - BUF_PAGE_SIZE;
1946 if (write > BUF_PAGE_SIZE)
3451 return BUF_PAGE_SIZE * buffer->pages;
3889 if (BUF_PAGE_SIZE - commit >= sizeof(missed_events)) {
3901 if (commit < BUF_PAGE_SIZE)
3902 memset(&bpage->data[commit], 0, BUF_PAGE_SIZE - commit);