Lines Matching refs:to_copy
523 unsigned long to_copy; in rds_ib_inc_copy_to_user() local
539 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_ib_inc_copy_to_user()
541 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_ib_inc_copy_to_user()
544 rds_stats_add(s_copy_to_user, to_copy); in rds_ib_inc_copy_to_user()
547 to_copy, in rds_ib_inc_copy_to_user()
549 if (ret != to_copy) in rds_ib_inc_copy_to_user()
552 frag_off += to_copy; in rds_ib_inc_copy_to_user()
553 copied += to_copy; in rds_ib_inc_copy_to_user()
772 unsigned long to_copy; in rds_ib_cong_recv() local
794 to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); in rds_ib_cong_recv()
795 BUG_ON(to_copy & 7); /* Must be 64bit aligned. */ in rds_ib_cong_recv()
801 for (k = 0; k < to_copy; k += 8) { in rds_ib_cong_recv()
809 copied += to_copy; in rds_ib_cong_recv()
811 map_off += to_copy; in rds_ib_cong_recv()
817 frag_off += to_copy; in rds_ib_cong_recv()