Home
last modified time | relevance | path

Searched refs:copy_size (Results 1 – 13 of 13) sorted by relevance

/drivers/char/
Dlp.c302 size_t copy_size = count; in lp_write() local
314 if (copy_size > LP_BUFFER_SIZE) in lp_write()
315 copy_size = LP_BUFFER_SIZE; in lp_write()
320 if (copy_from_user (kbuf, buf, copy_size)) { in lp_write()
339 written = parport_write (port, kbuf, copy_size); in lp_write()
341 copy_size -= written; in lp_write()
354 if (copy_size > 0) { in lp_write()
383 copy_size = count; in lp_write()
384 if (copy_size > LP_BUFFER_SIZE) in lp_write()
385 copy_size = LP_BUFFER_SIZE; in lp_write()
[all …]
/drivers/usb/misc/
Drio500.c277 unsigned long copy_size; in write_rio() local
301 thistime = copy_size = in write_rio()
303 if (copy_from_user(rio->obuf, buffer, copy_size)) { in write_rio()
347 bytes_written += copy_size; in write_rio()
348 count -= copy_size; in write_rio()
349 buffer += copy_size; in write_rio()
/drivers/staging/android/ion/
Dion_test.c107 size_t copy_size = size; in ion_handle_test_kernel() local
117 while (copy_size > 0) { in ion_handle_test_kernel()
124 to_copy = min_t(size_t, PAGE_SIZE - copy_offset, copy_size); in ion_handle_test_kernel()
137 copy_size -= to_copy; in ion_handle_test_kernel()
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c1499 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local
1513 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
1516 copy_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd()
1531 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd()
1532 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd()
1538 copy_size += copy; in iwl_pcie_enqueue_hcmd()
1570 copy_size += cmdlen[i]; in iwl_pcie_enqueue_hcmd()
1581 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_enqueue_hcmd()
1584 cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd()
1622 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
[all …]
Dtrans.c716 u32 copy_size, dst_addr; in iwl_pcie_load_section() local
719 copy_size = min_t(u32, chunk_sz, section->len - offset); in iwl_pcie_load_section()
730 memcpy(v_addr, (u8 *)section->data + offset, copy_size); in iwl_pcie_load_section()
732 copy_size); in iwl_pcie_load_section()
/drivers/dma/sh/
Dshdma-base.c511 size_t copy_size = *len; in shdma_add_desc() local
513 if (!copy_size) in shdma_add_desc()
523 ops->desc_setup(schan, new, *src, *dst, &copy_size); in shdma_add_desc()
536 copy_size, *len, src, dst, &new->async_tx, in shdma_add_desc()
544 *len -= copy_size; in shdma_add_desc()
546 *src += copy_size; in shdma_add_desc()
548 *dst += copy_size; in shdma_add_desc()
/drivers/acpi/acpica/
Dutcopy.c680 acpi_size copy_size; in acpi_ut_copy_simple_object() local
691 copy_size = sizeof(union acpi_operand_object); in acpi_ut_copy_simple_object()
693 copy_size = sizeof(struct acpi_namespace_node); in acpi_ut_copy_simple_object()
697 ACPI_CAST_PTR(char, source_desc), copy_size); in acpi_ut_copy_simple_object()
/drivers/staging/unisys/visorbus/
Dvisorchannel.c145 size_t copy_size; in visorchannel_write() local
151 copy_size = min(chdr_size - offset, nbytes); in visorchannel_write()
153 local, copy_size); in visorchannel_write()
/drivers/net/vmxnet3/
Dvmxnet3_drv.c680 BUG_ON(ctx->copy_size > skb_headlen(skb)); in vmxnet3_map_pkt()
689 if (ctx->copy_size) { in vmxnet3_map_pkt()
693 ctx->sop_txd->dword[2] = cpu_to_le32(dw2 | ctx->copy_size); in vmxnet3_map_pkt()
711 len = skb_headlen(skb) - ctx->copy_size; in vmxnet3_map_pkt()
712 buf_offset = ctx->copy_size; in vmxnet3_map_pkt()
843 ctx->copy_size = ctx->eth_ip_hdr_size + ctx->l4_hdr_size; in vmxnet3_parse_hdr()
870 ctx->copy_size = min(ctx->eth_ip_hdr_size + in vmxnet3_parse_hdr()
876 ctx->copy_size = min_t(unsigned int, in vmxnet3_parse_hdr()
882 ctx->copy_size = skb->len; in vmxnet3_parse_hdr()
885 if (unlikely(!pskb_may_pull(skb, ctx->copy_size))) in vmxnet3_parse_hdr()
[all …]
Dvmxnet3_int.h224 u32 copy_size; /* # of bytes copied into the data ring */ member
/drivers/media/usb/s2255/
Ds2255drv.c1729 unsigned long copy_size; in save_frame() local
1847 copy_size = (pipe_info->cur_transfer_size - offset); in save_frame()
1852 if ((copy_size + frm->cur_size) < vc->req_image_size) in save_frame()
1853 memcpy(pdest, psrc, copy_size); in save_frame()
1855 frm->cur_size += copy_size; in save_frame()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c2047 size_t copy_size = 0; in vmw_kms_update_proxy() local
2082 copy_size += sizeof(*cmd); in vmw_kms_update_proxy()
2085 vmw_fifo_commit(dev_priv, copy_size); in vmw_kms_update_proxy()
/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c1988 unsigned long request_size, copy_size; in _ctl_diag_read_buffer() local
2046 copy_size = request_size - karg.starting_offset; in _ctl_diag_read_buffer()
2048 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
2051 diag_data, copy_size)) { in _ctl_diag_read_buffer()