Lines Matching defs:bytes
54 * @bytes: the number of bytes needed.
60 * If @bytes is at least a full page then this just returns a page from
63 * If @bytes is a partial page then this stores the unused region of the
70 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes,
80 if (bytes >= PAGE_SIZE) {
97 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) {
104 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) {
105 sg_set_page(scat, rem->r_page, bytes, rem->r_offset);
111 rem->r_offset += ALIGN(bytes, 8);
149 rdsdebug("bytes %lu ret %d %p %u %u\n", bytes, ret,