Lines Matching refs:to_copy
527 unsigned long to_copy; in rds_ib_inc_copy_to_user() local
543 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_ib_inc_copy_to_user()
545 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_ib_inc_copy_to_user()
548 rds_stats_add(s_copy_to_user, to_copy); in rds_ib_inc_copy_to_user()
551 to_copy, in rds_ib_inc_copy_to_user()
553 if (ret != to_copy) in rds_ib_inc_copy_to_user()
556 frag_off += to_copy; in rds_ib_inc_copy_to_user()
557 copied += to_copy; in rds_ib_inc_copy_to_user()
775 unsigned long to_copy; in rds_ib_cong_recv() local
797 to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); in rds_ib_cong_recv()
798 BUG_ON(to_copy & 7); /* Must be 64bit aligned. */ in rds_ib_cong_recv()
804 for (k = 0; k < to_copy; k += 8) { in rds_ib_cong_recv()
812 copied += to_copy; in rds_ib_cong_recv()
814 map_off += to_copy; in rds_ib_cong_recv()
820 frag_off += to_copy; in rds_ib_cong_recv()