Home
last modified time | relevance | path

Searched refs:to_copy (Results 1 – 18 of 18) sorted by relevance

/drivers/staging/fbtft/
Dfbtft-bus.c126 size_t to_copy; in fbtft_write_vmem16_bus8() local
155 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8()
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
199 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus9()
201 to_copy, remain - to_copy); in fbtft_write_vmem16_bus9()
[all …]
Dfb_ra8875.c249 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()
/drivers/xen/
Dxen-front-pgdir-shbuf.c285 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()
364 int cur_gref, grefs_left, to_copy, i, num_pages_dir; in guest_fill_page_dir() local
380 to_copy = grefs_left; in guest_fill_page_dir()
383 to_copy = XEN_NUM_GREFS_PER_PAGE; in guest_fill_page_dir()
387 to_copy * sizeof(grant_ref_t)); in guest_fill_page_dir()
389 grefs_left -= to_copy; in guest_fill_page_dir()
[all …]
/drivers/gpu/drm/amd/amdkfd/
Dkfd_smi_events.c80 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()
/drivers/most/
Dmost_cdev.c186 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()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c122 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; \
/drivers/infiniband/hw/hfi1/
Deprom.c304 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()
/drivers/infiniband/sw/siw/
Dsiw_qp_rx.c892 u16 to_copy = sizeof(struct iwarp_ctrl); in siw_proc_terminate() local
921 skb_copy_bits(skb, srx->skb_offset, infop, to_copy); in siw_proc_terminate()
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()
937 if (to_copy + MPA_CRC_SIZE > srx->skb_new) in siw_proc_terminate()
[all …]
/drivers/net/ethernet/brocade/bna/
Dbfa_msgq.c206 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()
/drivers/misc/vmw_vmci/
Dvmci_queue_pair.c343 size_t to_copy; in qp_memcpy_to_queue_iter() local
353 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_to_queue_iter()
355 to_copy = size - bytes_copied; in qp_memcpy_to_queue_iter()
357 if (!copy_from_iter_full((u8 *)va + page_offset, to_copy, in qp_memcpy_to_queue_iter()
363 bytes_copied += to_copy; in qp_memcpy_to_queue_iter()
390 size_t to_copy; in qp_memcpy_from_queue_iter() local
401 to_copy = PAGE_SIZE - page_offset; in qp_memcpy_from_queue_iter()
403 to_copy = size - bytes_copied; in qp_memcpy_from_queue_iter()
405 err = copy_to_iter((u8 *)va + page_offset, to_copy, to); in qp_memcpy_from_queue_iter()
406 if (err != to_copy) { in qp_memcpy_from_queue_iter()
[all …]
/drivers/net/ethernet/sfc/
Dmcdi_port_common.c908 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()
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_debugfs.c2285 size_t to_copy = log_ctx.pos - *pos; in dtn_log_read() local
2287 to_copy = min(to_copy, size); in dtn_log_read()
2289 if (!copy_to_user(buf, log_ctx.buf + *pos, to_copy)) { in dtn_log_read()
2290 *pos += to_copy; in dtn_log_read()
2291 result = to_copy; in dtn_log_read()
/drivers/crypto/amcc/
Dcrypto4xx_core.c455 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()
/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c1460 unsigned long to_copy) in tmc_etr_sync_perf_buffer() argument
1473 while (to_copy > 0) { in tmc_etr_sync_perf_buffer()
1484 bytes = tmc_etr_buf_get_data(etr_buf, src_offset, to_copy, in tmc_etr_sync_perf_buffer()
1492 to_copy -= bytes; in tmc_etr_sync_perf_buffer()
/drivers/media/usb/dvb-usb/
Dcxusb-analog.c153 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()
/drivers/md/
Ddm-integrity.c1322 unsigned to_copy; in dm_integrity_rw_tag() local
1333 to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size); in dm_integrity_rw_tag()
1336 memcpy(tag, dp, to_copy); in dm_integrity_rw_tag()
1338 memcpy(dp, tag, to_copy); in dm_integrity_rw_tag()
1339 dm_bufio_mark_partial_buffer_dirty(b, *metadata_offset, *metadata_offset + to_copy); in dm_integrity_rw_tag()
1344 if (unlikely(memcmp(dp, tag, to_copy))) in dm_integrity_rw_tag()
1346 unlikely(memchr_inv(dp, DISCARD_FILLER, to_copy) != NULL)) { in dm_integrity_rw_tag()
1354 for (i = 0; i < to_copy; i++, ts--) { in dm_integrity_rw_tag()
1373 tag += to_copy; in dm_integrity_rw_tag()
1374 *metadata_offset += to_copy; in dm_integrity_rw_tag()
[all …]
/drivers/net/wireless/intel/iwlwifi/dvm/
Dsta.c1089 size_t to_copy; in iwlagn_send_sta_key() local
1110 to_copy = min_t(size_t, sizeof(sta_cmd.key.key), keyconf->keylen); in iwlagn_send_sta_key()
1111 memcpy(sta_cmd.key.key, keyconf->key, to_copy); in iwlagn_send_sta_key()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3406 int to_copy = 0, hlen = 0; in bnx2x_pkt_req_lin() local
3443 to_copy = 1; in bnx2x_pkt_req_lin()
3457 to_copy = 1; in bnx2x_pkt_req_lin()
3466 to_copy = 1; in bnx2x_pkt_req_lin()
3471 if (unlikely(to_copy)) in bnx2x_pkt_req_lin()
3477 return to_copy; in bnx2x_pkt_req_lin()