to_copy 454 drivers/crypto/amcc/crypto4xx_core.c unsigned int to_copy; to_copy 473 drivers/crypto/amcc/crypto4xx_core.c to_copy = min(nbytes, PPC4XX_SD_BUFFER_SIZE * to_copy 475 drivers/crypto/amcc/crypto4xx_core.c scatterwalk_map_and_copy(buf, dst, dst_start, to_copy, 1); to_copy 476 drivers/crypto/amcc/crypto4xx_core.c nbytes -= to_copy; to_copy 481 drivers/crypto/amcc/crypto4xx_core.c dst_start += to_copy; to_copy 984 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c size_t to_copy = log_ctx.pos - *pos; to_copy 986 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c to_copy = min(to_copy, size); to_copy 988 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c if (!copy_to_user(buf, log_ctx.buf + *pos, to_copy)) { to_copy 989 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c *pos += to_copy; to_copy 990 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c result = to_copy; to_copy 121 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c size_t to_copy = size & ~(sizeof(_type) - 1); \ to_copy 124 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c ((_type *) dst, (_type *) src, to_copy); \ to_copy 194 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c size_t to_copy = round_down(size, sizeof(_type)); \ to_copy 197 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c ((_type *) dst, (_type *) src, to_copy); \ to_copy 198 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c location = size - to_copy + diff_offs - sizeof(_type); \ to_copy 202 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c dst -= to_copy - diff_offs; \ to_copy 203 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c src -= to_copy - diff_offs; \ to_copy 204 drivers/gpu/drm/vmwgfx/vmwgfx_blit.c size -= to_copy - diff_offs; \ to_copy 1422 drivers/hwtracing/coresight/coresight-tmc-etr.c unsigned long to_copy) to_copy 1435 drivers/hwtracing/coresight/coresight-tmc-etr.c while (to_copy > 0) { to_copy 1446 drivers/hwtracing/coresight/coresight-tmc-etr.c bytes = tmc_etr_buf_get_data(etr_buf, src_offset, to_copy, to_copy 1454 drivers/hwtracing/coresight/coresight-tmc-etr.c to_copy -= bytes; to_copy 304 drivers/infiniband/hw/hfi1/eprom.c u32 bytes_available, ncopied, to_copy; to_copy 408 drivers/infiniband/hw/hfi1/eprom.c to_copy = entry->size - ncopied; to_copy 411 drivers/infiniband/hw/hfi1/eprom.c if (to_copy > bytes_available) to_copy 412 drivers/infiniband/hw/hfi1/eprom.c to_copy = bytes_available; to_copy 424 drivers/infiniband/hw/hfi1/eprom.c ret = read_length(dd, seg_base + seg_offset, to_copy, to_copy 429 drivers/infiniband/hw/hfi1/eprom.c ncopied += to_copy; to_copy 883 drivers/infiniband/sw/siw/siw_qp_rx.c u16 to_copy = sizeof(struct iwarp_ctrl); to_copy 912 drivers/infiniband/sw/siw/siw_qp_rx.c skb_copy_bits(skb, srx->skb_offset, infop, to_copy); to_copy 918 drivers/infiniband/sw/siw/siw_qp_rx.c infop += to_copy; to_copy 919 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_offset += to_copy; to_copy 920 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_new -= to_copy; to_copy 921 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_copied += to_copy; to_copy 922 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rcvd += to_copy; to_copy 923 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rem -= to_copy; to_copy 925 drivers/infiniband/sw/siw/siw_qp_rx.c to_copy = iwarp_pktinfo[op].hdr_len - to_copy; to_copy 928 drivers/infiniband/sw/siw/siw_qp_rx.c if (to_copy + MPA_CRC_SIZE > srx->skb_new) to_copy 931 drivers/infiniband/sw/siw/siw_qp_rx.c skb_copy_bits(skb, srx->skb_offset, infop, to_copy); to_copy 943 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_new -= to_copy; to_copy 944 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_offset += to_copy; to_copy 945 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_copied += to_copy; to_copy 946 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rcvd += to_copy; to_copy 947 drivers/infiniband/sw/siw/siw_qp_rx.c srx->fpdu_part_rem -= to_copy; to_copy 1300 drivers/md/dm-integrity.c unsigned to_copy; to_copy 1311 drivers/md/dm-integrity.c to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size); to_copy 1314 drivers/md/dm-integrity.c memcpy(tag, dp, to_copy); to_copy 1316 drivers/md/dm-integrity.c memcpy(dp, tag, to_copy); to_copy 1317 drivers/md/dm-integrity.c dm_bufio_mark_partial_buffer_dirty(b, *metadata_offset, *metadata_offset + to_copy); to_copy 1320 drivers/md/dm-integrity.c if (unlikely(memcmp(dp, tag, to_copy))) { to_copy 1323 drivers/md/dm-integrity.c for (i = 0; i < to_copy; i++) { to_copy 1334 drivers/md/dm-integrity.c tag += to_copy; to_copy 1335 drivers/md/dm-integrity.c *metadata_offset += to_copy; to_copy 1340 drivers/md/dm-integrity.c total_size -= to_copy; to_copy 153 drivers/media/usb/dvb-usb/cxusb-analog.c unsigned int to_copy; to_copy 155 drivers/media/usb/dvb-usb/cxusb-analog.c to_copy = urb->iso_frame_desc[i].actual_length; to_copy 158 drivers/media/usb/dvb-usb/cxusb-analog.c urb->iso_frame_desc[i].offset, to_copy); to_copy 160 drivers/media/usb/dvb-usb/cxusb-analog.c auxbuf->paylen += to_copy; to_copy 343 drivers/misc/vmw_vmci/vmci_queue_pair.c size_t to_copy; to_copy 353 drivers/misc/vmw_vmci/vmci_queue_pair.c to_copy = PAGE_SIZE - page_offset; to_copy 355 drivers/misc/vmw_vmci/vmci_queue_pair.c to_copy = size - bytes_copied; to_copy 357 drivers/misc/vmw_vmci/vmci_queue_pair.c if (!copy_from_iter_full((u8 *)va + page_offset, to_copy, to_copy 363 drivers/misc/vmw_vmci/vmci_queue_pair.c bytes_copied += to_copy; to_copy 390 drivers/misc/vmw_vmci/vmci_queue_pair.c size_t to_copy; to_copy 401 drivers/misc/vmw_vmci/vmci_queue_pair.c to_copy = PAGE_SIZE - page_offset; to_copy 403 drivers/misc/vmw_vmci/vmci_queue_pair.c to_copy = size - bytes_copied; to_copy 405 drivers/misc/vmw_vmci/vmci_queue_pair.c err = copy_to_iter((u8 *)va + page_offset, to_copy, to); to_copy 406 drivers/misc/vmw_vmci/vmci_queue_pair.c if (err != to_copy) { to_copy 411 drivers/misc/vmw_vmci/vmci_queue_pair.c bytes_copied += to_copy; to_copy 3398 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c int to_copy = 0, hlen = 0; to_copy 3435 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c to_copy = 1; to_copy 3449 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c to_copy = 1; to_copy 3458 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c to_copy = 1; to_copy 3463 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (unlikely(to_copy)) to_copy 3469 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c return to_copy; to_copy 206 drivers/net/ethernet/brocade/bna/bfa_msgq.c size_t to_copy; to_copy 214 drivers/net/ethernet/brocade/bna/bfa_msgq.c to_copy = (len < BFI_MSGQ_CMD_ENTRY_SIZE) ? to_copy 216 drivers/net/ethernet/brocade/bna/bfa_msgq.c memcpy(dst, src, to_copy); to_copy 217 drivers/net/ethernet/brocade/bna/bfa_msgq.c len -= to_copy; to_copy 641 drivers/net/ethernet/brocade/bna/bfa_msgq.c size_t to_copy; to_copy 651 drivers/net/ethernet/brocade/bna/bfa_msgq.c to_copy = (len < BFI_MSGQ_RSP_ENTRY_SIZE) ? to_copy 653 drivers/net/ethernet/brocade/bna/bfa_msgq.c memcpy(dst, src, to_copy); to_copy 654 drivers/net/ethernet/brocade/bna/bfa_msgq.c len -= to_copy; to_copy 934 drivers/net/ethernet/sfc/mcdi_port.c unsigned int to_copy; to_copy 940 drivers/net/ethernet/sfc/mcdi_port.c to_copy = min(space, SFP_PAGE_SIZE - offset); to_copy 960 drivers/net/ethernet/sfc/mcdi_port.c to_copy); to_copy 962 drivers/net/ethernet/sfc/mcdi_port.c return to_copy; to_copy 249 drivers/staging/fbtft/fb_ra8875.c size_t to_copy; to_copy 267 drivers/staging/fbtft/fb_ra8875.c to_copy = min(tx_array_size, remain); to_copy 269 drivers/staging/fbtft/fb_ra8875.c to_copy, remain - to_copy); to_copy 271 drivers/staging/fbtft/fb_ra8875.c for (i = 0; i < to_copy; i++) to_copy 274 drivers/staging/fbtft/fb_ra8875.c vmem16 = vmem16 + to_copy; to_copy 276 drivers/staging/fbtft/fb_ra8875.c startbyte_size + to_copy * 2); to_copy 279 drivers/staging/fbtft/fb_ra8875.c remain -= to_copy; to_copy 126 drivers/staging/fbtft/fbtft-bus.c size_t to_copy; to_copy 156 drivers/staging/fbtft/fbtft-bus.c to_copy = min(tx_array_size, remain); to_copy 158 drivers/staging/fbtft/fbtft-bus.c to_copy, remain - to_copy); to_copy 160 drivers/staging/fbtft/fbtft-bus.c for (i = 0; i < to_copy; i++) to_copy 163 drivers/staging/fbtft/fbtft-bus.c vmem16 = vmem16 + to_copy; to_copy 165 drivers/staging/fbtft/fbtft-bus.c startbyte_size + to_copy * 2); to_copy 168 drivers/staging/fbtft/fbtft-bus.c remain -= to_copy; to_copy 181 drivers/staging/fbtft/fbtft-bus.c size_t to_copy; to_copy 200 drivers/staging/fbtft/fbtft-bus.c to_copy = min(tx_array_size, remain); to_copy 202 drivers/staging/fbtft/fbtft-bus.c to_copy, remain - to_copy); to_copy 205 drivers/staging/fbtft/fbtft-bus.c for (i = 0; i < to_copy; i += 2) { to_copy 210 drivers/staging/fbtft/fbtft-bus.c for (i = 0; i < to_copy; i++) to_copy 213 drivers/staging/fbtft/fbtft-bus.c vmem8 = vmem8 + to_copy; to_copy 214 drivers/staging/fbtft/fbtft-bus.c ret = par->fbtftops.write(par, par->txbuf.buf, to_copy * 2); to_copy 217 drivers/staging/fbtft/fbtft-bus.c remain -= to_copy; to_copy 193 drivers/staging/most/cdev/cdev.c size_t to_copy, left; to_copy 213 drivers/staging/most/cdev/cdev.c to_copy = min(count, c->cfg->buffer_size - c->mbo_offs); to_copy 214 drivers/staging/most/cdev/cdev.c left = copy_from_user(mbo->virt_address + c->mbo_offs, buf, to_copy); to_copy 215 drivers/staging/most/cdev/cdev.c if (left == to_copy) { to_copy 220 drivers/staging/most/cdev/cdev.c c->mbo_offs += to_copy - left; to_copy 230 drivers/staging/most/cdev/cdev.c ret = to_copy - left; to_copy 246 drivers/staging/most/cdev/cdev.c size_t to_copy, not_copied, copied; to_copy 268 drivers/staging/most/cdev/cdev.c to_copy = min_t(size_t, to_copy 274 drivers/staging/most/cdev/cdev.c to_copy); to_copy 276 drivers/staging/most/cdev/cdev.c copied = to_copy - not_copied; to_copy 285 drivers/xen/xen-front-pgdir-shbuf.c int to_copy = XEN_NUM_GREFS_PER_PAGE; to_copy 287 drivers/xen/xen-front-pgdir-shbuf.c if (to_copy > grefs_left) to_copy 288 drivers/xen/xen-front-pgdir-shbuf.c to_copy = grefs_left; to_copy 290 drivers/xen/xen-front-pgdir-shbuf.c for (cur_gref = 0; cur_gref < to_copy; cur_gref++) { to_copy 301 drivers/xen/xen-front-pgdir-shbuf.c grefs_left -= to_copy; to_copy 364 drivers/xen/xen-front-pgdir-shbuf.c int cur_gref, grefs_left, to_copy, i, num_pages_dir; to_copy 380 drivers/xen/xen-front-pgdir-shbuf.c to_copy = grefs_left; to_copy 383 drivers/xen/xen-front-pgdir-shbuf.c to_copy = XEN_NUM_GREFS_PER_PAGE; to_copy 387 drivers/xen/xen-front-pgdir-shbuf.c to_copy * sizeof(grant_ref_t)); to_copy 389 drivers/xen/xen-front-pgdir-shbuf.c grefs_left -= to_copy; to_copy 390 drivers/xen/xen-front-pgdir-shbuf.c cur_gref += to_copy; to_copy 1853 fs/cifs/smbdirect.c int to_copy, to_read, data_read, offset; to_copy 1909 fs/cifs/smbdirect.c to_copy = min_t(int, data_length - offset, to_read); to_copy 1913 fs/cifs/smbdirect.c to_copy); to_copy 1916 fs/cifs/smbdirect.c if (to_copy == data_length - offset) { to_copy 1938 fs/cifs/smbdirect.c offset += to_copy; to_copy 1940 fs/cifs/smbdirect.c to_read -= to_copy; to_copy 1941 fs/cifs/smbdirect.c data_read += to_copy; to_copy 1946 fs/cifs/smbdirect.c to_copy, data_length - offset, to_copy 3539 include/linux/skbuff.h struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy, to_copy 535 net/batman-adv/tp_meter.c size_t to_copy; to_copy 547 net/batman-adv/tp_meter.c to_copy = min(nbytes, bytes_inbuf); to_copy 549 net/batman-adv/tp_meter.c memcpy(&buf[pos], &batadv_tp_prerandom[local_offset], to_copy); to_copy 550 net/batman-adv/tp_meter.c pos += to_copy; to_copy 551 net/batman-adv/tp_meter.c nbytes -= to_copy; to_copy 1003 net/ceph/osdmap.c u32 to_copy; to_copy 1020 net/ceph/osdmap.c to_copy = min(map->max_osd, max); to_copy 1022 net/ceph/osdmap.c memcpy(state, map->osd_state, to_copy * sizeof(*state)); to_copy 1023 net/ceph/osdmap.c memcpy(weight, map->osd_weight, to_copy * sizeof(*weight)); to_copy 1024 net/ceph/osdmap.c memcpy(addr, map->osd_addr, to_copy * sizeof(*addr)); to_copy 1048 net/ceph/osdmap.c to_copy * sizeof(*affinity)); to_copy 5925 net/core/skbuff.c int to_copy, gfp_t gfp) to_copy 5933 net/core/skbuff.c pskb_trim(clone, to_copy)) { to_copy 536 net/rds/ib_recv.c unsigned long to_copy; to_copy 552 net/rds/ib_recv.c to_copy = min_t(unsigned long, iov_iter_count(to), to_copy 554 net/rds/ib_recv.c to_copy = min_t(unsigned long, to_copy, len - copied); to_copy 557 net/rds/ib_recv.c rds_stats_add(s_copy_to_user, to_copy); to_copy 560 net/rds/ib_recv.c to_copy, to_copy 562 net/rds/ib_recv.c if (ret != to_copy) to_copy 565 net/rds/ib_recv.c frag_off += to_copy; to_copy 566 net/rds/ib_recv.c copied += to_copy; to_copy 784 net/rds/ib_recv.c unsigned long to_copy; to_copy 806 net/rds/ib_recv.c to_copy = min(RDS_FRAG_SIZE - frag_off, PAGE_SIZE - map_off); to_copy 807 net/rds/ib_recv.c BUG_ON(to_copy & 7); /* Must be 64bit aligned. */ to_copy 813 net/rds/ib_recv.c for (k = 0; k < to_copy; k += 8) { to_copy 821 net/rds/ib_recv.c copied += to_copy; to_copy 823 net/rds/ib_recv.c map_off += to_copy; to_copy 829 net/rds/ib_recv.c frag_off += to_copy; to_copy 424 net/rds/message.c unsigned long to_copy, nbytes; to_copy 448 net/rds/message.c to_copy = min_t(unsigned long, iov_iter_count(from), to_copy 451 net/rds/message.c rds_stats_add(s_copy_from_user, to_copy); to_copy 453 net/rds/message.c to_copy, from); to_copy 454 net/rds/message.c if (nbytes != to_copy) to_copy 457 net/rds/message.c sg_off += to_copy; to_copy 470 net/rds/message.c unsigned long to_copy; to_copy 484 net/rds/message.c to_copy = min_t(unsigned long, iov_iter_count(to), to_copy 486 net/rds/message.c to_copy = min_t(unsigned long, to_copy, len - copied); to_copy 488 net/rds/message.c rds_stats_add(s_copy_to_user, to_copy); to_copy 490 net/rds/message.c to_copy, to); to_copy 491 net/rds/message.c if (ret != to_copy) to_copy 494 net/rds/message.c vec_off += to_copy; to_copy 495 net/rds/message.c copied += to_copy; to_copy 74 net/rds/tcp_recv.c unsigned long to_copy, skb_off; to_copy 75 net/rds/tcp_recv.c for (skb_off = 0; skb_off < skb->len; skb_off += to_copy) { to_copy 76 net/rds/tcp_recv.c to_copy = iov_iter_count(to); to_copy 77 net/rds/tcp_recv.c to_copy = min(to_copy, skb->len - skb_off); to_copy 79 net/rds/tcp_recv.c if (skb_copy_datagram_iter(skb, skb_off, to, to_copy)) to_copy 82 net/rds/tcp_recv.c rds_stats_add(s_copy_to_user, to_copy); to_copy 83 net/rds/tcp_recv.c ret += to_copy; to_copy 109 net/rds/tcp_recv.c unsigned int to_copy, skb_off; to_copy 126 net/rds/tcp_recv.c to_copy = min_t(unsigned int, PAGE_SIZE - map_off, to_copy 134 net/rds/tcp_recv.c to_copy); to_copy 137 net/rds/tcp_recv.c skb_off += to_copy; to_copy 138 net/rds/tcp_recv.c map_off += to_copy; to_copy 162 net/rds/tcp_recv.c size_t left = len, to_copy; to_copy 194 net/rds/tcp_recv.c to_copy = min(tc->t_tinc_hdr_rem, left); to_copy 195 net/rds/tcp_recv.c rdsdebug("copying %zu header from skb %p\n", to_copy, to_copy 201 net/rds/tcp_recv.c to_copy); to_copy 202 net/rds/tcp_recv.c tc->t_tinc_hdr_rem -= to_copy; to_copy 203 net/rds/tcp_recv.c left -= to_copy; to_copy 204 net/rds/tcp_recv.c offset += to_copy; to_copy 216 net/rds/tcp_recv.c to_copy = min(tc->t_tinc_data_rem, left); to_copy 218 net/rds/tcp_recv.c clone = pskb_extract(skb, offset, to_copy, arg->gfp); to_copy 228 net/rds/tcp_recv.c skb, skb->data, skb->len, offset, to_copy, to_copy 231 net/rds/tcp_recv.c tc->t_tinc_data_rem -= to_copy; to_copy 232 net/rds/tcp_recv.c left -= to_copy; to_copy 233 net/rds/tcp_recv.c offset += to_copy; to_copy 888 net/xdp/xsk.c void *to_copy; to_copy 917 net/xdp/xsk.c to_copy = &off; to_copy 925 net/xdp/xsk.c to_copy = &off_v1; to_copy 928 net/xdp/xsk.c if (copy_to_user(optval, to_copy, len))