Lines Matching defs:bytes
52 * @bytes: the number of bytes needed.
58 * If @bytes is at least a full page then this just returns a page from
61 * If @bytes is a partial page then this stores the unused region of the
68 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes,
79 if (bytes >= PAGE_SIZE) {
95 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) {
102 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) {
103 sg_set_page(scat, rem->r_page, bytes, rem->r_offset);
109 rem->r_offset += ALIGN(bytes, 8);
146 rdsdebug("bytes %lu ret %d %p %u %u\n", bytes, ret,