Lines Matching refs:to_copy
537 unsigned long to_copy; in rds_ib_inc_copy_to_user() local
553 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_ib_inc_copy_to_user()
555 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_ib_inc_copy_to_user()
558 rds_stats_add(s_copy_to_user, to_copy); in rds_ib_inc_copy_to_user()
561 to_copy, in rds_ib_inc_copy_to_user()
563 if (ret != to_copy) in rds_ib_inc_copy_to_user()
566 frag_off += to_copy; in rds_ib_inc_copy_to_user()
567 copied += to_copy; in rds_ib_inc_copy_to_user()
791 unsigned long to_copy; in rds_ib_cong_recv() local
813 to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); in rds_ib_cong_recv()
814 BUG_ON(to_copy & 7); /* Must be 64bit aligned. */ in rds_ib_cong_recv()
820 for (k = 0; k < to_copy; k += 8) { in rds_ib_cong_recv()
828 copied += to_copy; in rds_ib_cong_recv()
830 map_off += to_copy; in rds_ib_cong_recv()
836 frag_off += to_copy; in rds_ib_cong_recv()