/linux/drivers/net/wireless/intel/iwlwifi/pcie/ |
A D | tx-gen2.c | 37 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local 56 if (copy_size < IWL_FIRST_TB_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() 163 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 178 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_gen2_enqueue_hcmd() 179 copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() 183 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 200 if (copy_size > tb0_size) { in iwl_pcie_gen2_enqueue_hcmd() 203 copy_size - tb0_size, in iwl_pcie_gen2_enqueue_hcmd() [all …]
|
A D | tx.c | 910 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local 943 if (copy_size < IWL_FIRST_TB_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() 996 cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd() 1060 copy_size += copy; in iwl_pcie_enqueue_hcmd() 1075 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd() 1076 copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd() 1080 copy_size += copy; in iwl_pcie_enqueue_hcmd() 1099 if (copy_size > tb0_size) { in iwl_pcie_enqueue_hcmd() [all …]
|
/linux/drivers/firmware/broadcom/ |
A D | bcm47xx_nvram.c | 51 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()
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_blit.c | 365 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()
|
/linux/fs/reiserfs/ |
A D | resize.c | 36 int copy_size; in reiserfs_resize() local 100 copy_size = bmap_nr_new < bmap_nr ? bmap_nr_new : bmap_nr; in reiserfs_resize() 101 copy_size = in reiserfs_resize() 102 copy_size * sizeof(struct reiserfs_list_bitmap_node *); in reiserfs_resize() 106 memcpy(jbitmap[i].bitmaps, jb->bitmaps, copy_size); in reiserfs_resize()
|
A D | inode.c | 2381 int copy_size; in map_block_for_writepage() local 2428 copy_size = ih_item_len(ih) - pos_in_item; in map_block_for_writepage() 2457 copy_size); in map_block_for_writepage() 2460 bytes_copied += copy_size; in map_block_for_writepage() 2468 copy_size); in map_block_for_writepage()
|
/linux/lib/xz/ |
A D | xz_dec_lzma2.c | 381 size_t copy_size; in dict_uncompressed() local 389 if (copy_size > *left) in dict_uncompressed() 390 copy_size = *left; in dict_uncompressed() 392 *left -= copy_size; in dict_uncompressed() 402 dict->pos += copy_size; in dict_uncompressed() 416 copy_size); in dict_uncompressed() 421 b->out_pos += copy_size; in dict_uncompressed() 422 b->in_pos += copy_size; in dict_uncompressed() 457 copy_size); in dict_flush() 461 b->out_pos += copy_size; in dict_flush() [all …]
|
A D | xz_dec_bcj.c | 401 size_t copy_size; in bcj_flush() local 403 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush() 404 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush() 405 b->out_pos += copy_size; in bcj_flush() 407 s->temp.filtered -= copy_size; in bcj_flush() 408 s->temp.size -= copy_size; in bcj_flush() 409 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush()
|
A D | xz_dec_stream.c | 159 size_t copy_size = min_t(size_t, in fill_temp() local 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 163 b->in_pos += copy_size; in fill_temp() 164 s->temp.pos += copy_size; in fill_temp()
|
/linux/drivers/char/ |
A D | lp.c | 307 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 …]
|
/linux/net/bpf/ |
A D | test_run.c | 137 u32 copy_size = size; in bpf_test_finish() local 143 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 144 copy_size = kattr->test.data_size_out; in bpf_test_finish() 148 if (data_out && copy_to_user(data_out, data, copy_size)) in bpf_test_finish() 432 u32 copy_size = size; in bpf_ctx_finish() local 437 if (copy_size > kattr->test.ctx_size_out) { in bpf_ctx_finish() 438 copy_size = kattr->test.ctx_size_out; in bpf_ctx_finish() 442 if (copy_to_user(data_out, data, copy_size)) in bpf_ctx_finish()
|
/linux/drivers/dma/sh/ |
A D | shdma-base.c | 508 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, ©_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()
|
/linux/drivers/visorbus/ |
A D | visorchannel.c | 125 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()
|
/linux/drivers/acpi/acpica/ |
A D | utcopy.c | 646 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()
|
/linux/drivers/crypto/hisilicon/sec2/ |
A D | sec_crypto.c | 850 int copy_size, pbuf_length; in GEN_SEC_SETKEY_FUNC() local 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() 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() 896 if (unlikely(pbuf_length != copy_size)) in sec_cipher_pbuf_unmap() 907 size_t copy_size; in sec_aead_mac_init() local [all …]
|
/linux/arch/s390/kernel/ |
A D | debug.c | 474 size_t copy_size; in debug_output() local 479 copy_size = min(user_buf_residue, formatted_line_residue); in debug_output() 480 if (copy_size) { in debug_output() 482 + entry_offset, copy_size)) in debug_output() 484 count += copy_size; in debug_output() 485 entry_offset += copy_size; in debug_output() 487 if (copy_size == formatted_line_residue) { in debug_output()
|
/linux/drivers/net/vmxnet3/ |
A D | vmxnet3_drv.c | 678 BUG_ON(ctx->copy_size > skb_headlen(skb)); in vmxnet3_map_pkt() 687 if (ctx->copy_size) { in vmxnet3_map_pkt() 709 len = skb_headlen(skb) - ctx->copy_size; in vmxnet3_map_pkt() 710 buf_offset = ctx->copy_size; in vmxnet3_map_pkt() 894 ctx->copy_size = min(ctx->l4_offset + in vmxnet3_parse_hdr() 900 ctx->copy_size = min_t(unsigned int, in vmxnet3_parse_hdr() 906 ctx->copy_size = skb->len; in vmxnet3_parse_hdr() 915 ctx->copy_size = 0; in vmxnet3_parse_hdr() 945 memcpy(tdd->data, skb->data, ctx->copy_size); in vmxnet3_copy_hdr() 948 ctx->copy_size, tq->tx_ring.next2fill); in vmxnet3_copy_hdr() [all …]
|
A D | vmxnet3_int.h | 234 u32 copy_size; /* # of bytes copied into the data ring */ member
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_controlq.c | 1080 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()
|
/linux/drivers/infiniband/hw/irdma/ |
A D | uk.c | 626 u32 copy_size; in irdma_copy_inline_data() local 640 copy_size = len < 31 ? len : 31; in irdma_copy_inline_data() 641 memcpy(dest, src, copy_size); in irdma_copy_inline_data() 643 len -= copy_size; in irdma_copy_inline_data() 645 src += copy_size; in irdma_copy_inline_data()
|
/linux/fs/jfs/ |
A D | namei.c | 990 int copy_size = min(ssize, PSIZE); in jfs_symlink() local 1000 memcpy(mp->data, name, copy_size); in jfs_symlink() 1002 ssize -= copy_size; in jfs_symlink() 1003 name += copy_size; in jfs_symlink()
|
/linux/drivers/s390/block/ |
A D | dasd_ioctl.c | 513 size_t copy_size) in dasd_ioctl_information() argument 523 if (!error && copy_to_user(argp, dasd_info, copy_size)) in dasd_ioctl_information()
|
/linux/fs/cifs/ |
A D | smb2pdu.c | 2551 int copy_size; in smb311_posix_mkdir() local 2616 uni_path_len = copy_size; in smb311_posix_mkdir() 2625 copy_size = roundup(uni_path_len, 8); in smb311_posix_mkdir() 2633 uni_path_len = copy_size; in smb311_posix_mkdir() 2711 int copy_size; in SMB2_open_init() local 2760 uni_path_len = copy_size; in SMB2_open_init() 2766 copy_size = uni_path_len; in SMB2_open_init() 2767 if (copy_size % 8 != 0) in SMB2_open_init() 2768 copy_size = roundup(copy_size, 8); in SMB2_open_init() 2769 copy_path = kzalloc(copy_size, GFP_KERNEL); in SMB2_open_init() [all …]
|
/linux/drivers/usb/class/ |
A D | cdc-acm.c | 365 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()
|
/linux/drivers/media/usb/s2255/ |
A D | s2255drv.c | 1696 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()
|