Home
last modified time | relevance | path

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

/drivers/staging/fbtft/
Dfbtft-bus.c131 size_t to_copy; in fbtft_write_vmem16_bus8() local
161 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8()
163 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8()
165 for (i = 0; i < to_copy; i++) in fbtft_write_vmem16_bus8()
168 vmem16 = vmem16 + to_copy; in fbtft_write_vmem16_bus8()
170 startbyte_size + to_copy * 2); in fbtft_write_vmem16_bus8()
173 remain -= to_copy; in fbtft_write_vmem16_bus8()
186 size_t to_copy; in fbtft_write_vmem16_bus9() local
205 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus9()
207 to_copy, remain - to_copy); in fbtft_write_vmem16_bus9()
[all …]
Dfb_ra8875.c262 size_t to_copy; in write_vmem16_bus8() local
280 to_copy = min(tx_array_size, remain); in write_vmem16_bus8()
282 to_copy, remain - to_copy); in write_vmem16_bus8()
284 for (i = 0; i < to_copy; i++) in write_vmem16_bus8()
287 vmem16 = vmem16 + to_copy; in write_vmem16_bus8()
289 startbyte_size + to_copy * 2); in write_vmem16_bus8()
292 remain -= to_copy; in write_vmem16_bus8()
/drivers/staging/android/ion/
Dion_test.c70 size_t to_copy = PAGE_SIZE - offset; in ion_handle_test_dma() local
72 to_copy = min(to_copy, size); in ion_handle_test_dma()
79 ret = copy_from_user(vaddr + offset, ptr, to_copy); in ion_handle_test_dma()
81 ret = copy_to_user(ptr, vaddr + offset, to_copy); in ion_handle_test_dma()
88 size -= to_copy; in ion_handle_test_dma()
91 ptr += to_copy; in ion_handle_test_dma()
118 size_t to_copy; in ion_handle_test_kernel() local
124 to_copy = min_t(size_t, PAGE_SIZE - copy_offset, copy_size); in ion_handle_test_kernel()
127 ret = copy_from_user(vaddr + copy_offset, ptr, to_copy); in ion_handle_test_kernel()
129 ret = copy_to_user(ptr, vaddr + copy_offset, to_copy); in ion_handle_test_kernel()
[all …]
/drivers/staging/most/aim-cdev/
Dcdev.c191 size_t to_copy, left; in aim_write() local
211 to_copy = min(count, c->cfg->buffer_size - c->mbo_offs); in aim_write()
212 left = copy_from_user(mbo->virt_address + c->mbo_offs, buf, to_copy); in aim_write()
213 if (left == to_copy) { in aim_write()
218 c->mbo_offs += to_copy - left; in aim_write()
228 ret = to_copy - left; in aim_write()
244 size_t to_copy, not_copied, copied; in aim_read() local
266 to_copy = min_t(size_t, in aim_read()
272 to_copy); in aim_read()
274 copied = to_copy - not_copied; in aim_read()
/drivers/net/ethernet/brocade/bna/
Dbfa_msgq.c214 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()
/drivers/misc/vmw_vmci/
Dvmci_queue_pair.c369 size_t to_copy; in __qp_memcpy_to_queue() local
379 to_copy = PAGE_SIZE - page_offset; in __qp_memcpy_to_queue()
381 to_copy = size - bytes_copied; in __qp_memcpy_to_queue()
389 msg, to_copy); in __qp_memcpy_to_queue()
397 (u8 *)src + bytes_copied, to_copy); in __qp_memcpy_to_queue()
400 bytes_copied += to_copy; in __qp_memcpy_to_queue()
429 size_t to_copy; in __qp_memcpy_from_queue() local
439 to_copy = PAGE_SIZE - page_offset; in __qp_memcpy_from_queue()
441 to_copy = size - bytes_copied; in __qp_memcpy_from_queue()
449 to_copy); in __qp_memcpy_from_queue()
[all …]
/drivers/net/ethernet/sfc/
Dmcdi_port.c749 unsigned int to_copy; in efx_mcdi_phy_get_module_eeprom() local
778 to_copy = (space_remaining < payload_len) ? in efx_mcdi_phy_get_module_eeprom()
783 to_copy); in efx_mcdi_phy_get_module_eeprom()
785 space_remaining -= to_copy; in efx_mcdi_phy_get_module_eeprom()
786 user_data += to_copy; in efx_mcdi_phy_get_module_eeprom()
/drivers/isdn/hardware/eicon/
Ddebug.c732 int to_copy; in diva_get_driver_info() local
755 if ((to_copy = min(strlen(clients[id].drvName), (size_t)(data_length - 1)))) { in diva_get_driver_info()
756 memcpy(p, clients[id].drvName, to_copy); in diva_get_driver_info()
757 p += to_copy; in diva_get_driver_info()
758 data_length -= to_copy; in diva_get_driver_info()
762 if ((to_copy = min(strlen(clients[id].hDbg->drvTag), (size_t)(data_length - 2)))) { in diva_get_driver_info()
763 memcpy(p, clients[id].hDbg->drvTag, to_copy); in diva_get_driver_info()
764 p += to_copy; in diva_get_driver_info()
765 data_length -= to_copy; in diva_get_driver_info()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3392 int to_copy = 0, hlen = 0; in bnx2x_pkt_req_lin() local
3429 to_copy = 1; in bnx2x_pkt_req_lin()
3443 to_copy = 1; in bnx2x_pkt_req_lin()
3452 to_copy = 1; in bnx2x_pkt_req_lin()
3457 if (unlikely(to_copy)) in bnx2x_pkt_req_lin()
3463 return to_copy; in bnx2x_pkt_req_lin()