Lines Matching defs:buffer
23 * enum buf_end_align_type - Page alignment of a buffer
24 * end with regard to the end of the previous buffer.
26 * In the pictures below, buf2 refers to the buffer we
27 * are aligning. buf1 refers to previous buffer by addr.
28 * Symbol [ means the start of a buffer, ] means the end
29 * of a buffer, and | means page boundaries.
33 * @SAME_PAGE_UNALIGNED: The end of this buffer is on
34 * the same page as the end of the previous buffer and
41 * @SAME_PAGE_ALIGNED: When the end of the previous buffer
42 * is not page aligned, the end of this buffer is on the
43 * same page as the end of the previous buffer and is page
44 * aligned. When the previous buffer is page aligned, the
45 * end of this buffer is aligned to the next page boundary.
52 * @NEXT_PAGE_UNALIGNED: The end of this buffer is on
53 * the page next to the end of the previous buffer and
60 * @NEXT_PAGE_ALIGNED: The end of this buffer is on
61 * the page next to the end of the previous buffer and
68 * @NEXT_NEXT_UNALIGNED: The end of this buffer is on
70 * previous buffer and is not page aligned. Examples:
93 struct binder_buffer *buffer,
100 end = (void __user *)PAGE_ALIGN((uintptr_t)buffer->user_data + size);
101 page_addr = buffer->user_data;
103 page_index = (page_addr - alloc->buffer) / PAGE_SIZE;
240 * Only BUFFER_NUM - 1 buffer sizes are adjustable since
241 * we need one giant buffer before getting to the last page.
275 * binder_selftest_alloc() - Test alloc and free of buffer pages.