/drivers/char/ |
D | lp.c | 302 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/net/wireless/iwlwifi/pcie/ |
D | tx.c | 1337 u16 copy_size, cmd_size, scratch_size; in iwl_pcie_enqueue_hcmd() local 1352 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd() 1355 copy_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd() 1370 if (copy_size < IWL_HCMD_SCRATCHBUF_SIZE) { in iwl_pcie_enqueue_hcmd() 1371 int copy = IWL_HCMD_SCRATCHBUF_SIZE - copy_size; in iwl_pcie_enqueue_hcmd() 1377 copy_size += copy; in iwl_pcie_enqueue_hcmd() 1409 copy_size += cmdlen[i]; in iwl_pcie_enqueue_hcmd() 1420 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_enqueue_hcmd() 1422 get_cmd_string(trans_pcie, cmd->id), cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd() 1460 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd() [all …]
|
D | trans.c | 684 u32 copy_size, dst_addr; in iwl_pcie_load_section() local 687 copy_size = min_t(u32, chunk_sz, section->len - offset); in iwl_pcie_load_section() 698 memcpy(v_addr, (u8 *)section->data + offset, copy_size); in iwl_pcie_load_section() 700 copy_size); in iwl_pcie_load_section()
|
/drivers/staging/android/ion/ |
D | ion_test.c | 106 size_t copy_size = size; in ion_handle_test_kernel() local 116 while (copy_size > 0) { in ion_handle_test_kernel() 123 to_copy = min_t(size_t, PAGE_SIZE - copy_offset, copy_size); in ion_handle_test_kernel() 136 copy_size -= to_copy; in ion_handle_test_kernel()
|
/drivers/video/adf/ |
D | adf_fops.c | 864 size_t cnt, cnt_to_end, copy_size = 0; in adf_file_copy_to_user() local 883 copy_size = min(buffer_size, cnt); in adf_file_copy_to_user() 885 if (cnt_to_end >= copy_size) { in adf_file_copy_to_user() 886 memcpy(event_buf, fpriv->event_buf + tail, copy_size); in adf_file_copy_to_user() 890 copy_size - cnt_to_end); in adf_file_copy_to_user() 893 fpriv->event_tail = (fpriv->event_tail + copy_size) & in adf_file_copy_to_user() 898 if (copy_size) { in adf_file_copy_to_user() 899 if (copy_to_user(buffer, event_buf, copy_size)) in adf_file_copy_to_user() 902 ret = copy_size; in adf_file_copy_to_user()
|
/drivers/dma/sh/ |
D | shdma-base.c | 511 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, ©_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/ |
D | utcopy.c | 681 acpi_size copy_size; in acpi_ut_copy_simple_object() local 692 copy_size = sizeof(union acpi_operand_object); in acpi_ut_copy_simple_object() 694 copy_size = sizeof(struct acpi_namespace_node); in acpi_ut_copy_simple_object() 698 ACPI_CAST_PTR(char, source_desc), copy_size); in acpi_ut_copy_simple_object()
|
/drivers/staging/unisys/visorbus/ |
D | visorchannel.c | 256 size_t copy_size; in visorchannel_write() local 262 copy_size = min(chdr_size - offset, nbytes); in visorchannel_write() 264 local, copy_size); in visorchannel_write()
|
/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 680 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() 844 ctx->copy_size = ctx->eth_ip_hdr_size + ctx->l4_hdr_size; in vmxnet3_parse_and_copy_hdr() 871 ctx->copy_size = min(ctx->eth_ip_hdr_size + in vmxnet3_parse_and_copy_hdr() 877 ctx->copy_size = min((unsigned int)VMXNET3_HDR_COPY_SIZE in vmxnet3_parse_and_copy_hdr() 882 ctx->copy_size = skb->len; in vmxnet3_parse_and_copy_hdr() 885 if (unlikely(!pskb_may_pull(skb, ctx->copy_size))) in vmxnet3_parse_and_copy_hdr() [all …]
|
D | vmxnet3_int.h | 220 u32 copy_size; /* # of bytes copied into the data ring */ member
|
/drivers/media/usb/s2255/ |
D | s2255drv.c | 1729 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/ |
D | vmwgfx_kms.c | 2025 size_t copy_size = 0; in vmw_kms_update_proxy() local 2060 copy_size += sizeof(*cmd); in vmw_kms_update_proxy() 2063 vmw_fifo_commit(dev_priv, copy_size); in vmw_kms_update_proxy()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.c | 1983 unsigned long timeleft, request_size, copy_size; in _ctl_diag_read_buffer() local 2041 copy_size = request_size - karg.starting_offset; in _ctl_diag_read_buffer() 2043 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer() 2046 diag_data, copy_size)) { in _ctl_diag_read_buffer()
|