Home
last modified time | relevance | path

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

/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx-gen2.c37 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local
45 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd()
56 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_gen2_enqueue_hcmd()
57 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd()
63 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
95 copy_size += cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd()
105 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_gen2_enqueue_hcmd()
107 iwl_get_cmd_string(trans, cmd->id), cmd->id, copy_size)) { in iwl_pcie_gen2_enqueue_hcmd()
147 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd()
163 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd()
[all …]
Dtx.c910 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local
925 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
928 copy_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd()
943 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd()
944 int copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd()
950 copy_size += copy; in iwl_pcie_enqueue_hcmd()
982 copy_size += cmdlen[i]; in iwl_pcie_enqueue_hcmd()
993 if (WARN(copy_size > TFD_MAX_PAYLOAD_SIZE, in iwl_pcie_enqueue_hcmd()
996 cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd()
1034 copy_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
[all …]
Dtrans.c701 u32 copy_size, dst_addr; in iwl_pcie_load_section() local
704 copy_size = min_t(u32, chunk_sz, section->len - offset); in iwl_pcie_load_section()
715 memcpy(v_addr, (u8 *)section->data + offset, copy_size); in iwl_pcie_load_section()
717 copy_size); in iwl_pcie_load_section()
/drivers/firmware/broadcom/
Dbcm47xx_nvram.c51 size_t copy_size; in bcm47xx_nvram_copy() local
53 copy_size = header->len; in bcm47xx_nvram_copy()
54 if (copy_size > res_size) { in bcm47xx_nvram_copy()
56 copy_size = res_size; in bcm47xx_nvram_copy()
58 if (copy_size >= NVRAM_SPACE) { in bcm47xx_nvram_copy()
60 copy_size, NVRAM_SPACE - 1); in bcm47xx_nvram_copy()
61 copy_size = NVRAM_SPACE - 1; in bcm47xx_nvram_copy()
64 __ioread32_copy(nvram_buf, nvram_start, DIV_ROUND_UP(copy_size, 4)); in bcm47xx_nvram_copy()
66 nvram_len = copy_size; in bcm47xx_nvram_copy()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_blit.c365 u32 copy_size = bytes_to_copy; in vmw_bo_cpu_blit_line() local
374 copy_size = min_t(u32, copy_size, PAGE_SIZE - dst_page_offset); in vmw_bo_cpu_blit_line()
375 copy_size = min_t(u32, copy_size, PAGE_SIZE - src_page_offset); in vmw_bo_cpu_blit_line()
413 d->src_addr + src_page_offset, copy_size); in vmw_bo_cpu_blit_line()
415 bytes_to_copy -= copy_size; in vmw_bo_cpu_blit_line()
416 dst_offset += copy_size; in vmw_bo_cpu_blit_line()
417 src_offset += copy_size; in vmw_bo_cpu_blit_line()
Dvmwgfx_stdu.c1436 uint32_t copy_size = 0; in vmw_stdu_surface_update_proxy() local
1461 copy_size += sizeof(*cmd_update); in vmw_stdu_surface_update_proxy()
1465 return copy_size; in vmw_stdu_surface_update_proxy()
Dvmwgfx_kms.c2557 size_t copy_size = 0; in vmw_kms_update_proxy() local
2589 copy_size += sizeof(*cmd); in vmw_kms_update_proxy()
2592 vmw_cmd_commit(dev_priv, copy_size); in vmw_kms_update_proxy()
/drivers/char/
Dlp.c307 size_t copy_size = count; in lp_write() local
319 if (copy_size > LP_BUFFER_SIZE) in lp_write()
320 copy_size = LP_BUFFER_SIZE; in lp_write()
325 if (copy_from_user(kbuf, buf, copy_size)) { in lp_write()
344 written = parport_write(port, kbuf, copy_size); in lp_write()
346 copy_size -= written; in lp_write()
359 if (copy_size > 0) { in lp_write()
388 copy_size = count; in lp_write()
389 if (copy_size > LP_BUFFER_SIZE) in lp_write()
390 copy_size = LP_BUFFER_SIZE; in lp_write()
[all …]
/drivers/dma/sh/
Dshdma-base.c508 size_t copy_size = *len; in shdma_add_desc() local
510 if (!copy_size) in shdma_add_desc()
520 ops->desc_setup(schan, new, *src, *dst, &copy_size); in shdma_add_desc()
533 copy_size, *len, src, dst, &new->async_tx, in shdma_add_desc()
541 *len -= copy_size; in shdma_add_desc()
543 *src += copy_size; in shdma_add_desc()
545 *dst += copy_size; in shdma_add_desc()
/drivers/visorbus/
Dvisorchannel.c125 size_t copy_size; in visorchannel_write() local
131 copy_size = min(chdr_size - offset, nbytes); in visorchannel_write()
133 dest, copy_size); in visorchannel_write()
/drivers/acpi/acpica/
Dutcopy.c646 acpi_size copy_size; in acpi_ut_copy_simple_object() local
657 copy_size = sizeof(union acpi_operand_object); in acpi_ut_copy_simple_object()
659 copy_size = sizeof(struct acpi_namespace_node); in acpi_ut_copy_simple_object()
663 ACPI_CAST_PTR(char, source_desc), copy_size); in acpi_ut_copy_simple_object()
/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c850 int copy_size, pbuf_length; in GEN_SEC_SETKEY_FUNC() local
857 copy_size = aead_req->cryptlen + aead_req->assoclen; in GEN_SEC_SETKEY_FUNC()
859 copy_size = c_req->c_len; in GEN_SEC_SETKEY_FUNC()
862 qp_ctx->res[req_id].pbuf, copy_size); in GEN_SEC_SETKEY_FUNC()
863 if (unlikely(pbuf_length != copy_size)) { in GEN_SEC_SETKEY_FUNC()
870 mac_offset = qp_ctx->res[req_id].pbuf + copy_size - authsize; in GEN_SEC_SETKEY_FUNC()
886 int copy_size, pbuf_length; in sec_cipher_pbuf_unmap() local
890 copy_size = c_req->c_len + aead_req->assoclen; in sec_cipher_pbuf_unmap()
892 copy_size = c_req->c_len; in sec_cipher_pbuf_unmap()
895 qp_ctx->res[req_id].pbuf, copy_size); in sec_cipher_pbuf_unmap()
[all …]
/drivers/net/vmxnet3/
Dvmxnet3_drv.c692 BUG_ON(ctx->copy_size > skb_headlen(skb)); in vmxnet3_map_pkt()
701 if (ctx->copy_size) { in vmxnet3_map_pkt()
705 ctx->sop_txd->dword[2] = cpu_to_le32(dw2 | ctx->copy_size); in vmxnet3_map_pkt()
723 len = skb_headlen(skb) - ctx->copy_size; in vmxnet3_map_pkt()
724 buf_offset = ctx->copy_size; in vmxnet3_map_pkt()
856 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr()
860 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr()
908 ctx->copy_size = min(ctx->l4_offset + in vmxnet3_parse_hdr()
914 ctx->copy_size = min_t(unsigned int, in vmxnet3_parse_hdr()
920 ctx->copy_size = skb->len; in vmxnet3_parse_hdr()
[all …]
Dvmxnet3_int.h234 u32 copy_size; /* # of bytes copied into the data ring */ member
/drivers/net/ethernet/intel/ice/
Dice_controlq.c1080 u16 copy_size = le16_to_cpu(desc->datalen); in ice_sq_send_cmd() local
1082 if (copy_size > buf_size) { in ice_sq_send_cmd()
1084 copy_size, buf_size); in ice_sq_send_cmd()
1087 memcpy(buf, dma_buf->va, copy_size); in ice_sq_send_cmd()
/drivers/infiniband/hw/irdma/
Duk.c629 u32 copy_size; in irdma_copy_inline_data() local
643 copy_size = len < 31 ? len : 31; in irdma_copy_inline_data()
644 memcpy(dest, src, copy_size); in irdma_copy_inline_data()
646 len -= copy_size; in irdma_copy_inline_data()
648 src += copy_size; in irdma_copy_inline_data()
/drivers/s390/block/
Ddasd_ioctl.c514 size_t copy_size) in dasd_ioctl_information() argument
524 if (!error && copy_to_user(argp, dasd_info, copy_size)) in dasd_ioctl_information()
/drivers/usb/class/
Dcdc-acm.c365 unsigned int expected_size, copy_size, alloc_size; in acm_ctrl_irq() local
415 copy_size = min(current_size, in acm_ctrl_irq()
419 urb->transfer_buffer, copy_size); in acm_ctrl_irq()
420 acm->nb_index += copy_size; in acm_ctrl_irq()
/drivers/media/usb/s2255/
Ds2255drv.c1696 unsigned long copy_size; in save_frame() local
1816 copy_size = (pipe_info->cur_transfer_size - offset); in save_frame()
1821 if ((copy_size + frm->cur_size) < vc->req_image_size) in save_frame()
1822 memcpy(pdest, psrc, copy_size); in save_frame()
1824 frm->cur_size += copy_size; in save_frame()
/drivers/android/
Dbinder.c2561 size_t copy_size; in binder_do_deferred_txn_copies() local
2568 copy_size = pf ? min(bytes_left, (size_t)pf->offset - offset) in binder_do_deferred_txn_copies()
2570 if (!ret && copy_size) in binder_do_deferred_txn_copies()
2575 copy_size); in binder_do_deferred_txn_copies()
2576 bytes_copied += copy_size; in binder_do_deferred_txn_copies()
2577 if (copy_size != bytes_left) { in binder_do_deferred_txn_copies()
3464 binder_size_t copy_size; in binder_transaction() local
3481 copy_size = object_offset - user_offset; in binder_transaction()
3482 if (copy_size && (user_offset > object_offset || in binder_transaction()
3487 copy_size))) { in binder_transaction()
/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.c2315 unsigned long request_size, copy_size; in _ctl_diag_read_buffer() local
2375 copy_size = request_size - karg.starting_offset; in _ctl_diag_read_buffer()
2377 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
2380 diag_data, copy_size)) { in _ctl_diag_read_buffer()
/drivers/misc/habanalabs/common/
Dfirmware_if.c1881 fw_loader->boot_fit_img.copy_size); in hl_fw_dynamic_copy_image()
Dhabanalabs.h1015 u32 copy_size; member