| /linux/net/rds/ |
| A D | tcp_recv.c | 77 to_copy = min(to_copy, skb->len - skb_off); in rds_tcp_inc_copy_to_user() 83 ret += to_copy; in rds_tcp_inc_copy_to_user() 134 to_copy); in rds_tcp_cong_recv() 137 skb_off += to_copy; in rds_tcp_cong_recv() 138 map_off += to_copy; in rds_tcp_cong_recv() 162 size_t left = len, to_copy; in rds_tcp_data_recv() local 201 to_copy); in rds_tcp_data_recv() 203 left -= to_copy; in rds_tcp_data_recv() 204 offset += to_copy; in rds_tcp_data_recv() 232 left -= to_copy; in rds_tcp_data_recv() [all …]
|
| A D | message.c | 425 unsigned long to_copy, nbytes; in rds_message_copy_from_user() local 454 to_copy, from); in rds_message_copy_from_user() 455 if (nbytes != to_copy) in rds_message_copy_from_user() 458 sg_off += to_copy; in rds_message_copy_from_user() 471 unsigned long to_copy; in rds_message_inc_copy_to_user() local 487 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_message_inc_copy_to_user() 489 rds_stats_add(s_copy_to_user, to_copy); in rds_message_inc_copy_to_user() 491 to_copy, to); in rds_message_inc_copy_to_user() 492 if (ret != to_copy) in rds_message_inc_copy_to_user() 495 vec_off += to_copy; in rds_message_inc_copy_to_user() [all …]
|
| A D | ib_recv.c | 536 unsigned long to_copy; in rds_ib_inc_copy_to_user() local 554 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_ib_inc_copy_to_user() 560 to_copy, in rds_ib_inc_copy_to_user() 562 if (ret != to_copy) in rds_ib_inc_copy_to_user() 565 frag_off += to_copy; in rds_ib_inc_copy_to_user() 566 copied += to_copy; in rds_ib_inc_copy_to_user() 790 unsigned long to_copy; in rds_ib_cong_recv() local 819 for (k = 0; k < to_copy; k += 8) { in rds_ib_cong_recv() 827 copied += to_copy; in rds_ib_cong_recv() 829 map_off += to_copy; in rds_ib_cong_recv() [all …]
|
| /linux/drivers/staging/fbtft/ |
| A D | fbtft-bus.c | 126 size_t to_copy; in fbtft_write_vmem16_bus8() local 157 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8() 159 for (i = 0; i < to_copy; i++) in fbtft_write_vmem16_bus8() 162 vmem16 = vmem16 + to_copy; in fbtft_write_vmem16_bus8() 164 startbyte_size + to_copy * 2); in fbtft_write_vmem16_bus8() 167 remain -= to_copy; in fbtft_write_vmem16_bus8() 180 size_t to_copy; in fbtft_write_vmem16_bus9() local 201 to_copy, remain - to_copy); in fbtft_write_vmem16_bus9() 209 for (i = 0; i < to_copy; i++) in fbtft_write_vmem16_bus9() 212 vmem8 = vmem8 + to_copy; in fbtft_write_vmem16_bus9() [all …]
|
| A 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/drivers/xen/ |
| A D | xen-front-pgdir-shbuf.c | 285 int to_copy = XEN_NUM_GREFS_PER_PAGE; in backend_map() local 287 if (to_copy > grefs_left) in backend_map() 288 to_copy = grefs_left; in backend_map() 290 for (cur_gref = 0; cur_gref < to_copy; cur_gref++) { in backend_map() 301 grefs_left -= to_copy; in backend_map() 371 int cur_gref, grefs_left, to_copy, i, num_pages_dir; in guest_fill_page_dir() local 387 to_copy = grefs_left; in guest_fill_page_dir() 390 to_copy = XEN_NUM_GREFS_PER_PAGE; in guest_fill_page_dir() 394 to_copy * sizeof(grant_ref_t)); in guest_fill_page_dir() 396 grefs_left -= to_copy; in guest_fill_page_dir() [all …]
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| A D | kfd_smi_events.c | 80 size_t to_copy; in kfd_smi_ev_read() local 92 to_copy = kfifo_len(&client->fifo); in kfd_smi_ev_read() 93 if (!to_copy) { in kfd_smi_ev_read() 98 to_copy = min3(size, sizeof(buf), to_copy); in kfd_smi_ev_read() 99 ret = kfifo_out(&client->fifo, buf, to_copy); in kfd_smi_ev_read() 106 ret = copy_to_user(user, buf, to_copy); in kfd_smi_ev_read() 113 return to_copy; in kfd_smi_ev_read()
|
| /linux/drivers/most/ |
| A D | most_cdev.c | 186 size_t to_copy, left; in comp_write() local 206 to_copy = min(count, c->cfg->buffer_size - c->mbo_offs); in comp_write() 207 left = copy_from_user(mbo->virt_address + c->mbo_offs, buf, to_copy); in comp_write() 208 if (left == to_copy) { in comp_write() 213 c->mbo_offs += to_copy - left; in comp_write() 223 ret = to_copy - left; in comp_write() 239 size_t to_copy, not_copied, copied; in comp_read() local 261 to_copy = min_t(size_t, in comp_read() 267 to_copy); in comp_read() 269 copied = to_copy - not_copied; in comp_read()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_blit.c | 122 size_t to_copy = size & ~(sizeof(_type) - 1); \ 125 ((_type *) dst, (_type *) src, to_copy); \ 195 size_t to_copy = round_down(size, sizeof(_type)); \ 198 ((_type *) dst, (_type *) src, to_copy); \ 199 location = size - to_copy + diff_offs - sizeof(_type); \ 203 dst -= to_copy - diff_offs; \ 204 src -= to_copy - diff_offs; \ 205 size -= to_copy - diff_offs; \
|
| /linux/drivers/infiniband/hw/hfi1/ |
| A D | eprom.c | 263 u32 bytes_available, ncopied, to_copy; in read_segment_platform_config() local 367 to_copy = entry->size - ncopied; in read_segment_platform_config() 370 if (to_copy > bytes_available) in read_segment_platform_config() 371 to_copy = bytes_available; in read_segment_platform_config() 383 ret = read_length(dd, seg_base + seg_offset, to_copy, in read_segment_platform_config() 388 ncopied += to_copy; in read_segment_platform_config()
|
| /linux/drivers/infiniband/sw/siw/ |
| A D | siw_qp_rx.c | 927 infop += to_copy; in siw_proc_terminate() 928 srx->skb_offset += to_copy; in siw_proc_terminate() 929 srx->skb_new -= to_copy; in siw_proc_terminate() 930 srx->skb_copied += to_copy; in siw_proc_terminate() 931 srx->fpdu_part_rcvd += to_copy; in siw_proc_terminate() 932 srx->fpdu_part_rem -= to_copy; in siw_proc_terminate() 934 to_copy = iwarp_pktinfo[op].hdr_len - to_copy; in siw_proc_terminate() 952 srx->skb_new -= to_copy; in siw_proc_terminate() 953 srx->skb_offset += to_copy; in siw_proc_terminate() 954 srx->skb_copied += to_copy; in siw_proc_terminate() [all …]
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| A D | bfa_msgq.c | 206 size_t to_copy; in __cmd_copy() local 214 to_copy = (len < BFI_MSGQ_CMD_ENTRY_SIZE) ? in __cmd_copy() 216 memcpy(dst, src, to_copy); in __cmd_copy() 217 len -= to_copy; in __cmd_copy() 641 size_t to_copy; in bfa_msgq_rsp_copy() local 651 to_copy = (len < BFI_MSGQ_RSP_ENTRY_SIZE) ? in bfa_msgq_rsp_copy() 653 memcpy(dst, src, to_copy); in bfa_msgq_rsp_copy() 654 len -= to_copy; in bfa_msgq_rsp_copy()
|
| /linux/drivers/misc/vmw_vmci/ |
| A D | vmci_queue_pair.c | 345 size_t to_copy; in qp_memcpy_to_queue_iter() local 355 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_to_queue_iter() 357 to_copy = size - bytes_copied; in qp_memcpy_to_queue_iter() 359 if (!copy_from_iter_full((u8 *)va + page_offset, to_copy, in qp_memcpy_to_queue_iter() 365 bytes_copied += to_copy; in qp_memcpy_to_queue_iter() 392 size_t to_copy; in qp_memcpy_from_queue_iter() local 403 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_from_queue_iter() 405 to_copy = size - bytes_copied; in qp_memcpy_from_queue_iter() 407 err = copy_to_iter((u8 *)va + page_offset, to_copy, to); in qp_memcpy_from_queue_iter() 408 if (err != to_copy) { in qp_memcpy_from_queue_iter() [all …]
|
| /linux/net/batman-adv/ |
| A D | tp_meter.c | 539 size_t to_copy; in batadv_tp_fill_prerandom() local 551 to_copy = min(nbytes, bytes_inbuf); in batadv_tp_fill_prerandom() 553 memcpy(&buf[pos], &batadv_tp_prerandom[local_offset], to_copy); in batadv_tp_fill_prerandom() 554 pos += to_copy; in batadv_tp_fill_prerandom() 555 nbytes -= to_copy; in batadv_tp_fill_prerandom()
|
| /linux/fs/cifs/ |
| A D | smbdirect.c | 1771 int to_copy, to_read, data_read, offset; in smbd_recv_buf() local 1827 to_copy = min_t(int, data_length - offset, to_read); in smbd_recv_buf() 1831 to_copy); in smbd_recv_buf() 1834 if (to_copy == data_length - offset) { in smbd_recv_buf() 1856 offset += to_copy; in smbd_recv_buf() 1858 to_read -= to_copy; in smbd_recv_buf() 1859 data_read += to_copy; in smbd_recv_buf() 1862 to_copy, data_length - offset, in smbd_recv_buf()
|
| /linux/fs/ksmbd/ |
| A D | transport_rdma.c | 664 int to_copy, to_read, data_read, offset; in smb_direct_read() local 724 to_copy = min_t(int, data_length - offset, to_read); in smb_direct_read() 726 to_copy); in smb_direct_read() 729 if (to_copy == data_length - offset) { in smb_direct_read() 746 offset += to_copy; in smb_direct_read() 749 to_read -= to_copy; in smb_direct_read() 750 data_read += to_copy; in smb_direct_read()
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | mcdi_port_common.c | 908 unsigned int to_copy; in efx_mcdi_phy_get_module_eeprom_page() local 915 to_copy = min(space, SFP_PAGE_SIZE - offset); in efx_mcdi_phy_get_module_eeprom_page() 935 to_copy); in efx_mcdi_phy_get_module_eeprom_page() 937 return to_copy; in efx_mcdi_phy_get_module_eeprom_page()
|
| /linux/drivers/crypto/amcc/ |
| A D | crypto4xx_core.c | 455 unsigned int to_copy; in crypto4xx_copy_pkt_to_dst() local 474 to_copy = min(nbytes, PPC4XX_SD_BUFFER_SIZE * in crypto4xx_copy_pkt_to_dst() 476 scatterwalk_map_and_copy(buf, dst, dst_start, to_copy, 1); in crypto4xx_copy_pkt_to_dst() 477 nbytes -= to_copy; in crypto4xx_copy_pkt_to_dst() 482 dst_start += to_copy; in crypto4xx_copy_pkt_to_dst()
|
| /linux/net/xdp/ |
| A D | xsk.c | 1170 void *to_copy; in xsk_getsockopt() local 1199 to_copy = &off; in xsk_getsockopt() 1207 to_copy = &off_v1; in xsk_getsockopt() 1210 if (copy_to_user(optval, to_copy, len)) in xsk_getsockopt()
|
| /linux/drivers/hwtracing/coresight/ |
| A D | coresight-tmc-etr.c | 1459 unsigned long to_copy) in tmc_etr_sync_perf_buffer() argument 1471 while (to_copy > 0) { in tmc_etr_sync_perf_buffer() 1482 bytes = tmc_etr_buf_get_data(etr_buf, src_offset, to_copy, in tmc_etr_sync_perf_buffer() 1490 to_copy -= bytes; in tmc_etr_sync_perf_buffer()
|
| /linux/fs/btrfs/ |
| A D | block-group.h | 98 unsigned int to_copy:1; member
|
| /linux/drivers/md/ |
| A D | dm-integrity.c | 1421 unsigned to_copy; in dm_integrity_rw_tag() local 1435 memcpy(tag, dp, to_copy); in dm_integrity_rw_tag() 1437 if (memcmp(dp, tag, to_copy)) { in dm_integrity_rw_tag() 1438 memcpy(dp, tag, to_copy); in dm_integrity_rw_tag() 1445 if (unlikely(memcmp(dp, tag, to_copy))) in dm_integrity_rw_tag() 1447 unlikely(memchr_inv(dp, DISCARD_FILLER, to_copy) != NULL)) { in dm_integrity_rw_tag() 1455 for (i = 0; i < to_copy; i++, ts--) { in dm_integrity_rw_tag() 1474 tag += to_copy; in dm_integrity_rw_tag() 1475 *metadata_offset += to_copy; in dm_integrity_rw_tag() 1482 hash_offset = (hash_offset + to_copy) % ic->tag_size; in dm_integrity_rw_tag() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| A D | amdgpu_dm_debugfs.c | 2999 size_t to_copy = log_ctx.pos - *pos; in dtn_log_read() local 3001 to_copy = min(to_copy, size); in dtn_log_read() 3003 if (!copy_to_user(buf, log_ctx.buf + *pos, to_copy)) { in dtn_log_read() 3004 *pos += to_copy; in dtn_log_read() 3005 result = to_copy; in dtn_log_read()
|
| /linux/drivers/media/usb/dvb-usb/ |
| A D | cxusb-analog.c | 153 unsigned int to_copy; in cxusb_auxbuf_append_urb() local 155 to_copy = urb->iso_frame_desc[i].actual_length; in cxusb_auxbuf_append_urb() 158 urb->iso_frame_desc[i].offset, to_copy); in cxusb_auxbuf_append_urb() 160 auxbuf->paylen += to_copy; in cxusb_auxbuf_append_urb()
|
| /linux/kernel/trace/ |
| A D | bpf_trace.c | 1408 u32 to_copy; in BPF_CALL_4() 1422 to_copy = min_t(u32, br_stack->nr * br_entry_size, size); in BPF_CALL_4() 1423 memcpy(buf, br_stack->entries, to_copy); in BPF_CALL_4() 1425 return to_copy; in BPF_CALL_4()
|