Lines Matching refs:from
364 static int rds_message_zcopy_from_user(struct rds_message *rm, struct iov_iter *from) in rds_message_zcopy_from_user() argument
368 int length = iov_iter_count(from); in rds_message_zcopy_from_user()
372 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_zcopy_from_user()
389 while (iov_iter_count(from)) { in rds_message_zcopy_from_user()
394 copied = iov_iter_get_pages(from, &pages, PAGE_SIZE, in rds_message_zcopy_from_user()
408 iov_iter_advance(from, copied); in rds_message_zcopy_from_user()
422 int rds_message_copy_from_user(struct rds_message *rm, struct iov_iter *from, in rds_message_copy_from_user() argument
430 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_copy_from_user()
437 return rds_message_zcopy_from_user(rm, from); in rds_message_copy_from_user()
439 while (iov_iter_count(from)) { in rds_message_copy_from_user()
441 ret = rds_page_remainder_alloc(sg, iov_iter_count(from), in rds_message_copy_from_user()
449 to_copy = min_t(unsigned long, iov_iter_count(from), in rds_message_copy_from_user()
454 to_copy, from); in rds_message_copy_from_user()