Lines Matching refs:to_copy
536 unsigned long to_copy; in rds_ib_inc_copy_to_user() local
552 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_ib_inc_copy_to_user()
554 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_ib_inc_copy_to_user()
557 rds_stats_add(s_copy_to_user, to_copy); in rds_ib_inc_copy_to_user()
560 to_copy, in rds_ib_inc_copy_to_user()
562 if (ret != to_copy) in rds_ib_inc_copy_to_user()
565 frag_off += to_copy; in rds_ib_inc_copy_to_user()
566 copied += to_copy; in rds_ib_inc_copy_to_user()
784 unsigned long to_copy; in rds_ib_cong_recv() local
806 to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); in rds_ib_cong_recv()
807 BUG_ON(to_copy & 7); /* Must be 64bit aligned. */ in rds_ib_cong_recv()
813 for (k = 0; k < to_copy; k += 8) { in rds_ib_cong_recv()
821 copied += to_copy; in rds_ib_cong_recv()
823 map_off += to_copy; in rds_ib_cong_recv()
829 frag_off += to_copy; in rds_ib_cong_recv()