Lines Matching refs:to_copy
479 unsigned long to_copy; in rds_ib_inc_copy_to_user() local
495 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_ib_inc_copy_to_user()
497 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_ib_inc_copy_to_user()
500 rds_stats_add(s_copy_to_user, to_copy); in rds_ib_inc_copy_to_user()
503 to_copy, in rds_ib_inc_copy_to_user()
505 if (ret != to_copy) in rds_ib_inc_copy_to_user()
508 frag_off += to_copy; in rds_ib_inc_copy_to_user()
509 copied += to_copy; in rds_ib_inc_copy_to_user()
730 unsigned long to_copy; in rds_ib_cong_recv() local
752 to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); in rds_ib_cong_recv()
753 BUG_ON(to_copy & 7); /* Must be 64bit aligned. */ in rds_ib_cong_recv()
759 for (k = 0; k < to_copy; k += 8) { in rds_ib_cong_recv()
767 copied += to_copy; in rds_ib_cong_recv()
769 map_off += to_copy; in rds_ib_cong_recv()
775 frag_off += to_copy; in rds_ib_cong_recv()