Lines Matching refs:to_copy
310 unsigned long to_copy; in rds_iw_inc_copy_to_user() local
326 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_iw_inc_copy_to_user()
328 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_iw_inc_copy_to_user()
331 rds_stats_add(s_copy_to_user, to_copy); in rds_iw_inc_copy_to_user()
334 to_copy, in rds_iw_inc_copy_to_user()
336 if (ret != to_copy) in rds_iw_inc_copy_to_user()
339 frag_off += to_copy; in rds_iw_inc_copy_to_user()
340 copied += to_copy; in rds_iw_inc_copy_to_user()
561 unsigned long to_copy; in rds_iw_cong_recv() local
583 to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); in rds_iw_cong_recv()
584 BUG_ON(to_copy & 7); /* Must be 64bit aligned. */ in rds_iw_cong_recv()
590 for (k = 0; k < to_copy; k += 8) { in rds_iw_cong_recv()
598 copied += to_copy; in rds_iw_cong_recv()
600 map_off += to_copy; in rds_iw_cong_recv()
606 frag_off += to_copy; in rds_iw_cong_recv()