Lines Matching refs:bytes
57 void __user *ptr, unsigned long bytes, in rds_page_copy_user() argument
65 rds_stats_add(s_copy_to_user, bytes); in rds_page_copy_user()
66 ret = copy_to_user(ptr, addr + offset, bytes); in rds_page_copy_user()
68 rds_stats_add(s_copy_from_user, bytes); in rds_page_copy_user()
69 ret = copy_from_user(addr + offset, ptr, bytes); in rds_page_copy_user()
97 int rds_page_remainder_alloc(struct scatterlist *scat, unsigned long bytes, in rds_page_remainder_alloc() argument
108 if (bytes >= PAGE_SIZE) { in rds_page_remainder_alloc()
124 if (rem->r_page && bytes > (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
131 if (rem->r_page && bytes <= (PAGE_SIZE - rem->r_offset)) { in rds_page_remainder_alloc()
132 sg_set_page(scat, rem->r_page, bytes, rem->r_offset); in rds_page_remainder_alloc()
138 rem->r_offset += bytes; in rds_page_remainder_alloc()
175 rdsdebug("bytes %lu ret %d %p %u %u\n", bytes, ret, in rds_page_remainder_alloc()