| /Linux-v4.19/net/rds/ |
| D | tcp_recv.c | 74 unsigned long to_copy, skb_off; in rds_tcp_inc_copy_to_user() local 75 for (skb_off = 0; skb_off < skb->len; skb_off += to_copy) { in rds_tcp_inc_copy_to_user() 76 to_copy = iov_iter_count(to); in rds_tcp_inc_copy_to_user() 77 to_copy = min(to_copy, skb->len - skb_off); in rds_tcp_inc_copy_to_user() 79 if (skb_copy_datagram_iter(skb, skb_off, to, to_copy)) in rds_tcp_inc_copy_to_user() 82 rds_stats_add(s_copy_to_user, to_copy); in rds_tcp_inc_copy_to_user() 83 ret += to_copy; in rds_tcp_inc_copy_to_user() 109 unsigned int to_copy, skb_off; in rds_tcp_cong_recv() local 126 to_copy = min_t(unsigned int, PAGE_SIZE - map_off, in rds_tcp_cong_recv() 134 to_copy); in rds_tcp_cong_recv() [all …]
|
| D | message.c | 419 unsigned long to_copy, nbytes; in rds_message_copy_from_user() local 443 to_copy = min_t(unsigned long, iov_iter_count(from), in rds_message_copy_from_user() 446 rds_stats_add(s_copy_from_user, to_copy); in rds_message_copy_from_user() 448 to_copy, from); in rds_message_copy_from_user() 449 if (nbytes != to_copy) in rds_message_copy_from_user() 452 sg_off += to_copy; in rds_message_copy_from_user() 465 unsigned long to_copy; in rds_message_inc_copy_to_user() local 479 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_message_inc_copy_to_user() 481 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_message_inc_copy_to_user() 483 rds_stats_add(s_copy_to_user, to_copy); in rds_message_inc_copy_to_user() [all …]
|
| D | ib_recv.c | 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() [all …]
|
| /Linux-v4.19/drivers/staging/fbtft/ |
| D | fbtft-bus.c | 126 size_t to_copy; in fbtft_write_vmem16_bus8() local 156 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8() 158 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8() 160 for (i = 0; i < to_copy; i++) in fbtft_write_vmem16_bus8() 163 vmem16 = vmem16 + to_copy; in fbtft_write_vmem16_bus8() 165 startbyte_size + to_copy * 2); in fbtft_write_vmem16_bus8() 168 remain -= to_copy; in fbtft_write_vmem16_bus8() 181 size_t to_copy; in fbtft_write_vmem16_bus9() local 200 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus9() 202 to_copy, remain - to_copy); in fbtft_write_vmem16_bus9() [all …]
|
| D | fb_ra8875.c | 249 size_t to_copy; in write_vmem16_bus8() local 267 to_copy = min(tx_array_size, remain); in write_vmem16_bus8() 269 to_copy, remain - to_copy); in write_vmem16_bus8() 271 for (i = 0; i < to_copy; i++) in write_vmem16_bus8() 274 vmem16 = vmem16 + to_copy; in write_vmem16_bus8() 276 startbyte_size + to_copy * 2); in write_vmem16_bus8() 279 remain -= to_copy; in write_vmem16_bus8()
|
| /Linux-v4.19/drivers/gpu/drm/xen/ |
| D | xen_drm_front_shbuf.c | 197 int to_copy = XEN_DRM_NUM_GREFS_PER_PAGE; in backend_map() local 199 if (to_copy > grefs_left) in backend_map() 200 to_copy = grefs_left; in backend_map() 202 for (cur_gref = 0; cur_gref < to_copy; cur_gref++) { in backend_map() 213 grefs_left -= to_copy; in backend_map() 259 int cur_gref, grefs_left, to_copy, i, num_pages_dir; in guest_fill_page_dir() local 275 to_copy = grefs_left; in guest_fill_page_dir() 278 to_copy = XEN_DRM_NUM_GREFS_PER_PAGE; in guest_fill_page_dir() 282 to_copy * sizeof(grant_ref_t)); in guest_fill_page_dir() 284 grefs_left -= to_copy; in guest_fill_page_dir() [all …]
|
| /Linux-v4.19/sound/xen/ |
| D | xen_snd_front_shbuf.c | 59 int i, cur_gref, grefs_left, to_copy; in fill_page_dir() local 71 to_copy = grefs_left; in fill_page_dir() 74 to_copy = XENSND_NUM_GREFS_PER_PAGE; in fill_page_dir() 79 to_copy * sizeof(grant_ref_t)); in fill_page_dir() 82 grefs_left -= to_copy; in fill_page_dir() 83 cur_gref += to_copy; in fill_page_dir()
|
| /Linux-v4.19/drivers/staging/most/cdev/ |
| D | cdev.c | 193 size_t to_copy, left; in comp_write() local 213 to_copy = min(count, c->cfg->buffer_size - c->mbo_offs); in comp_write() 214 left = copy_from_user(mbo->virt_address + c->mbo_offs, buf, to_copy); in comp_write() 215 if (left == to_copy) { in comp_write() 220 c->mbo_offs += to_copy - left; in comp_write() 230 ret = to_copy - left; in comp_write() 246 size_t to_copy, not_copied, copied; in comp_read() local 268 to_copy = min_t(size_t, in comp_read() 274 to_copy); in comp_read() 276 copied = to_copy - not_copied; in comp_read()
|
| /Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_blit.c | 121 size_t to_copy = size & ~(sizeof(_type) - 1); \ 124 ((_type *) dst, (_type *) src, to_copy); \ 194 size_t to_copy = round_down(size, sizeof(_type)); \ 197 ((_type *) dst, (_type *) src, to_copy); \ 198 location = size - to_copy + diff_offs - sizeof(_type); \ 202 dst -= to_copy - diff_offs; \ 203 src -= to_copy - diff_offs; \ 204 size -= to_copy - diff_offs; \
|
| /Linux-v4.19/drivers/infiniband/hw/hfi1/ |
| D | eprom.c | 304 u32 bytes_available, ncopied, to_copy; in read_segment_platform_config() local 408 to_copy = entry->size - ncopied; in read_segment_platform_config() 411 if (to_copy > bytes_available) in read_segment_platform_config() 412 to_copy = bytes_available; in read_segment_platform_config() 424 ret = read_length(dd, seg_base + seg_offset, to_copy, in read_segment_platform_config() 429 ncopied += to_copy; in read_segment_platform_config()
|
| /Linux-v4.19/drivers/net/ethernet/brocade/bna/ |
| D | bfa_msgq.c | 214 size_t to_copy; in __cmd_copy() local 222 to_copy = (len < BFI_MSGQ_CMD_ENTRY_SIZE) ? in __cmd_copy() 224 memcpy(dst, src, to_copy); in __cmd_copy() 225 len -= to_copy; in __cmd_copy() 649 size_t to_copy; in bfa_msgq_rsp_copy() local 659 to_copy = (len < BFI_MSGQ_RSP_ENTRY_SIZE) ? in bfa_msgq_rsp_copy() 661 memcpy(dst, src, to_copy); in bfa_msgq_rsp_copy() 662 len -= to_copy; in bfa_msgq_rsp_copy()
|
| /Linux-v4.19/drivers/misc/vmw_vmci/ |
| D | vmci_queue_pair.c | 351 size_t to_copy; in qp_memcpy_to_queue_iter() local 361 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_to_queue_iter() 363 to_copy = size - bytes_copied; in qp_memcpy_to_queue_iter() 365 if (!copy_from_iter_full((u8 *)va + page_offset, to_copy, in qp_memcpy_to_queue_iter() 371 bytes_copied += to_copy; in qp_memcpy_to_queue_iter() 398 size_t to_copy; in qp_memcpy_from_queue_iter() local 409 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_from_queue_iter() 411 to_copy = size - bytes_copied; in qp_memcpy_from_queue_iter() 413 err = copy_to_iter((u8 *)va + page_offset, to_copy, to); in qp_memcpy_from_queue_iter() 414 if (err != to_copy) { in qp_memcpy_from_queue_iter() [all …]
|
| /Linux-v4.19/net/batman-adv/ |
| D | tp_meter.c | 546 size_t to_copy; in batadv_tp_fill_prerandom() local 558 to_copy = min(nbytes, bytes_inbuf); in batadv_tp_fill_prerandom() 560 memcpy(&buf[pos], &batadv_tp_prerandom[local_offset], to_copy); in batadv_tp_fill_prerandom() 561 pos += to_copy; in batadv_tp_fill_prerandom() 562 nbytes -= to_copy; in batadv_tp_fill_prerandom()
|
| /Linux-v4.19/drivers/isdn/hardware/eicon/ |
| D | debug.c | 733 int to_copy; in diva_get_driver_info() local 756 if ((to_copy = min(strlen(clients[id].drvName), (size_t)(data_length - 1)))) { in diva_get_driver_info() 757 memcpy(p, clients[id].drvName, to_copy); in diva_get_driver_info() 758 p += to_copy; in diva_get_driver_info() 759 data_length -= to_copy; in diva_get_driver_info() 763 if ((to_copy = min(strlen(clients[id].hDbg->drvTag), (size_t)(data_length - 2)))) { in diva_get_driver_info() 764 memcpy(p, clients[id].hDbg->drvTag, to_copy); in diva_get_driver_info() 765 p += to_copy; in diva_get_driver_info() 766 data_length -= to_copy; in diva_get_driver_info()
|
| /Linux-v4.19/fs/cifs/ |
| D | smbdirect.c | 1880 int to_copy, to_read, data_read, offset; in smbd_recv_buf() local 1941 to_copy = min_t(int, data_length - offset, to_read); in smbd_recv_buf() 1945 to_copy); in smbd_recv_buf() 1948 if (to_copy == data_length - offset) { in smbd_recv_buf() 1970 offset += to_copy; in smbd_recv_buf() 1972 to_read -= to_copy; in smbd_recv_buf() 1973 data_read += to_copy; in smbd_recv_buf() 1978 to_copy, data_length - offset, in smbd_recv_buf()
|
| /Linux-v4.19/drivers/crypto/amcc/ |
| D | crypto4xx_core.c | 466 unsigned int to_copy; in crypto4xx_copy_pkt_to_dst() local 485 to_copy = min(nbytes, PPC4XX_SD_BUFFER_SIZE * in crypto4xx_copy_pkt_to_dst() 487 scatterwalk_map_and_copy(buf, dst, dst_start, to_copy, 1); in crypto4xx_copy_pkt_to_dst() 488 nbytes -= to_copy; in crypto4xx_copy_pkt_to_dst() 493 dst_start += to_copy; in crypto4xx_copy_pkt_to_dst()
|
| /Linux-v4.19/drivers/net/ethernet/sfc/ |
| D | mcdi_port.c | 936 unsigned int to_copy; in efx_mcdi_phy_get_module_eeprom_page() local 942 to_copy = min(space, SFP_PAGE_SIZE - offset); in efx_mcdi_phy_get_module_eeprom_page() 962 to_copy); in efx_mcdi_phy_get_module_eeprom_page() 964 return to_copy; in efx_mcdi_phy_get_module_eeprom_page()
|
| /Linux-v4.19/drivers/md/ |
| D | dm-integrity.c | 1112 unsigned to_copy; in dm_integrity_rw_tag() local 1123 to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size); in dm_integrity_rw_tag() 1126 memcpy(tag, dp, to_copy); in dm_integrity_rw_tag() 1128 memcpy(dp, tag, to_copy); in dm_integrity_rw_tag() 1129 dm_bufio_mark_partial_buffer_dirty(b, *metadata_offset, *metadata_offset + to_copy); in dm_integrity_rw_tag() 1132 if (unlikely(memcmp(dp, tag, to_copy))) { in dm_integrity_rw_tag() 1135 for (i = 0; i < to_copy; i++) { in dm_integrity_rw_tag() 1146 tag += to_copy; in dm_integrity_rw_tag() 1147 *metadata_offset += to_copy; in dm_integrity_rw_tag() 1152 total_size -= to_copy; in dm_integrity_rw_tag()
|
| /Linux-v4.19/net/tls/ |
| D | tls_sw.c | 897 int to_copy = rxm->full_len - tls_ctx->rx.overhead_size; in tls_sw_recvmsg() local 899 if (!is_kvec && to_copy <= len && in tls_sw_recvmsg()
|
| /Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/ |
| D | bnx2x_cmn.c | 3396 int to_copy = 0, hlen = 0; in bnx2x_pkt_req_lin() local 3433 to_copy = 1; in bnx2x_pkt_req_lin() 3447 to_copy = 1; in bnx2x_pkt_req_lin() 3456 to_copy = 1; in bnx2x_pkt_req_lin() 3461 if (unlikely(to_copy)) in bnx2x_pkt_req_lin() 3467 return to_copy; in bnx2x_pkt_req_lin()
|
| /Linux-v4.19/net/core/ |
| D | skbuff.c | 5532 int to_copy, gfp_t gfp) in pskb_extract() argument 5540 pskb_trim(clone, to_copy)) { in pskb_extract()
|
| /Linux-v4.19/include/linux/ |
| D | skbuff.h | 3311 struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
|