Searched refs:copy (Results 1 - 25 of 83) sorted by relevance

1234

/drivers/misc/mic/host/
H A Dmic_fops.c80 struct mic_copy_desc copy; local
86 if (copy_from_user(&copy, argp, sizeof(copy)))
91 __func__, __LINE__, copy.iovcnt, copy.vr_idx,
92 copy.update_used);
94 ret = mic_virtio_copy_desc(mvdev, &copy);
103 &copy.out_len, sizeof(copy.out_len))) {
H A Dmic_virtio.c34 * for copy to/from user.
257 struct mic_copy_desc *copy)
260 u32 iovcnt = copy->iovcnt;
262 struct iovec __user *u_iov = copy->iov;
264 struct mic_vringh *mvr = &mvdev->mvr[copy->vr_idx];
272 copy->out_len = 0;
296 copy->vr_idx, &out_len);
304 copy->out_len += out_len;
307 copy->vr_idx, &out_len);
315 copy
256 _mic_virtio_copy(struct mic_vdev *mvdev, struct mic_copy_desc *copy) argument
347 mic_verify_copy_args(struct mic_vdev *mvdev, struct mic_copy_desc *copy) argument
359 mic_virtio_copy_desc(struct mic_vdev *mvdev, struct mic_copy_desc *copy) argument
[all...]
/drivers/w1/slaves/
H A Dw1_ds2431.c211 int copy; local
235 /* copy at most to the boundary of the PAGE or len */
236 copy = W1_F2D_SCRATCH_SIZE -
239 if (copy > len)
240 copy = len;
242 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy);
250 copy = W1_F2D_SCRATCH_SIZE;
251 if (w1_f2d_write(sl, addr, copy, buf) < 0) {
256 buf += copy;
257 addr += copy;
[all...]
/drivers/block/
H A Dbrd.c199 size_t copy; local
201 copy = min_t(size_t, n, PAGE_SIZE - offset);
204 if (copy < n) {
205 sector += copy >> SECTOR_SHIFT;
239 size_t copy; local
241 copy = min_t(size_t, n, PAGE_SIZE - offset);
246 memcpy(dst + offset, src, copy);
249 if (copy < n) {
250 src += copy;
251 sector += copy >> SECTOR_SHIF
271 size_t copy; local
[all...]
H A Dxen-blkfront.c19 * Permission is hereby granted, free of charge, to any person obtaining a copy
21 * restriction, including without limitation the rights to use, copy, modify,
565 /* Keep a private copy so we can reissue requests when recovering. */
1443 struct blk_shadow *copy; local
1452 /* Stage 1: Make a safe copy of the shadow state. */
1453 copy = kmemdup(info->shadow, sizeof(info->shadow),
1455 if (!copy)
1467 kfree(copy);
1477 if (!copy[i].request)
1483 if (copy[
[all...]
/drivers/gpu/drm/qxl/
H A Dqxl_draw.c5 * copy of this software and associated documentation files (the "Software"),
7 * on the rights to use, copy, modify, merge, publish, distribute, sub
230 drawable->u.copy.src_area.top = 0;
231 drawable->u.copy.src_area.bottom = height;
232 drawable->u.copy.src_area.left = 0;
233 drawable->u.copy.src_area.right = width;
235 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT;
236 drawable->u.copy.scale_mode = 0;
237 drawable->u.copy.mask.flags = 0;
238 drawable->u.copy
[all...]
/drivers/staging/lustre/lustre/llite/
H A Ddir.c13 * General Public License version 2 for more details (a copy is included
16 * You should have received a copy of the GNU General Public License
63 * Original lustre readdir implementation cached exact copy of raw directory
890 * Generic handler to do any pre-copy work.
896 * store it in \a copy.
900 static int ll_ioc_copy_start(struct super_block *sb, struct hsm_copy *copy) argument
906 /* Forge a hsm_progress based on data from copy. */
907 hpk.hpk_fid = copy->hc_hai.hai_fid;
908 hpk.hpk_cookie = copy->hc_hai.hai_cookie;
909 hpk.hpk_extent.offset = copy
972 ll_ioc_copy_end(struct super_block *sb, struct hsm_copy *copy) argument
1061 void *copy; local
1920 struct hsm_copy *copy; local
1939 struct hsm_copy *copy; local
[all...]
/drivers/staging/goldfish/
H A Dgoldfish_audio.c133 /* copy data to user space */
153 ssize_t copy = count; local
155 if (copy > WRITE_BUFFER_SIZE)
156 copy = WRITE_BUFFER_SIZE;
166 /* copy from user space to the appropriate buffer */
167 if (copy_from_user(kbuf, buf, copy)) {
179 AUDIO_WRITE(data, AUDIO_WRITE_BUFFER_1, copy);
182 AUDIO_WRITE(data, AUDIO_WRITE_BUFFER_2, copy);
186 buf += copy;
187 result += copy;
[all...]
/drivers/net/ethernet/sfc/
H A Dsiena_sriov.c399 struct efx_memcpy_req copy[4]; local
411 memset(copy, '\0', sizeof(copy));
413 copy[0].from_buf = &status->generation_start;
414 copy[0].to_rid = vf->pci_rid;
415 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status,
417 copy[0].length = sizeof(status->generation_start);
423 copy[1].from_rid = efx->pci_dev->devfn;
424 copy[1].from_addr = efx->vfdi_status.dma_addr + data_offset;
425 copy[
865 struct efx_memcpy_req copy[2]; local
[all...]
/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c693 int copy; local
698 copy = min_t(int, size, sizeof(to->first.data));
699 memcpy(to->first.data, from, copy);
700 size -= copy;
701 from += copy;
710 copy = min_t(int, size, MLX5_CMD_DATA_BLOCK_SIZE);
712 memcpy(block->data, from, copy);
713 from += copy;
714 size -= copy;
725 int copy; local
884 int copy; local
[all...]
/drivers/gpu/drm/radeon/
H A Dradeon_asic.c7 * copy of this software and associated documentation files (the "Software"),
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
218 .copy = {
223 .copy = &r100_copy_blit,
284 .copy = {
289 .copy = &r100_copy_blit,
364 .copy = {
369 .copy = &r100_copy_blit,
430 .copy = {
435 .copy
[all...]
H A Dradeon_benchmark.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
58 DRM_ERROR("Unknown copy method\n");
121 if (rdev->asic->copy.dma) {
131 if (rdev->asic->copy.blit) {
H A Dni_dma.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
160 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) ||
161 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX))
256 if ((rdev->asic->copy.copy_ring_index == R600_RING_TYPE_DMA_INDEX) ||
257 (rdev->asic->copy.copy_ring_index == CAYMAN_RING_TYPE_DMA1_INDEX))
309 * @src: src addr where to copy from
H A Drv770_dma.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
30 * rv770_copy_dma - copy pages using the DMA engine
40 * registered as the asic copy callback.
49 int ring_index = rdev->asic->copy.dma_ring_index;
/drivers/staging/lustre/lustre/include/
H A Dlustre_param.h13 * General Public License version 2 for more details (a copy is included
16 * You should have received a copy of the GNU General Public License
61 int class_get_next_param(char **params, char *copy);
/drivers/block/paride/
H A Dpg.c22 copy the data through an internal buffer. In keeping with all
621 int copy; local
637 copy = 0;
641 copy = hdr.dlen;
642 if (copy > (count - hs))
643 copy = count - hs;
651 if (copy > 0)
652 if (copy_to_user(buf + hs, dev->bufptr, copy))
654 return copy + hs;
/drivers/net/wireless/hostap/
H A Dhostap_proc.c308 int start_bytes, left, copy, copied; local
322 copy = start_bytes - off;
323 if (copy > count)
324 copy = count;
325 memcpy(page, ((u8 *) &local->io_debug[head]) + off, copy);
326 left -= copy;
328 memcpy(&page[copy], local->io_debug, left);
/drivers/net/wireless/iwlwifi/pcie/
H A Dtx.c18 * You should have received a copy of the GNU General Public License along with
1234 int copy = IWL_HCMD_SCRATCHBUF_SIZE - copy_size; local
1236 if (copy > cmdlen[i])
1237 copy = cmdlen[i];
1238 cmdlen[i] -= copy;
1239 cmddata[i] += copy;
1240 copy_size += copy;
1317 /* and copy the data that needs to be copied */
1321 int copy; local
1326 /* copy everythin
[all...]
/drivers/gpu/drm/nouveau/core/engine/device/
H A Dgm100.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
51 #include <engine/copy.h>
/drivers/net/
H A Dmacvtap.c482 * so far only KVM virtio_net uses macvtap, enable zero copy between
486 * copy so we don't have to look at the lower device directly.
737 /* copy skb_ubuf_info for callback when skb has no error */
805 int copy; local
817 copy = min_t(int, vlan_offset, len);
818 ret = skb_copy_datagram_const_iovec(skb, 0, iv, copied, copy);
819 len -= copy;
820 copied += copy;
824 copy = min_t(int, sizeof(veth), len);
825 ret = memcpy_toiovecend(iv, (void *)&veth, copied, copy);
[all...]
/drivers/dma/
H A Dk3dma.c426 size_t copy = 0; local
451 copy = min_t(size_t, len, DMA_MAX_SIZE);
452 k3_dma_fill_desc(ds, dst, src, copy, num++, c->ccfg);
455 src += copy;
457 dst += copy;
459 src += copy;
460 dst += copy;
462 len -= copy;
H A Dmmp_pdma.c448 size_t copy = 0; local
473 copy = min_t(size_t, len, PDMA_MAX_DESC_BYTES);
477 new->desc.dcmd = chan->dcmd | (DCMD_LENGTH & copy);
490 len -= copy;
493 dma_src += copy;
495 dma_dst += copy;
497 dma_src += copy;
498 dma_dst += copy;
/drivers/s390/block/
H A Ddasd_fba.c331 char *copy = kmem_cache_alloc(dasd_page_cache, local
333 if (copy && rq_data_dir(req) == WRITE)
334 memcpy(copy + bv.bv_offset, dst, bv.bv_len);
335 if (copy)
336 dst = copy + bv.bv_offset;
/drivers/crypto/
H A Dhifn_795x.c15 * You should have received a copy of the GNU General Public License
1463 unsigned int copy, drest = *drestp, nbytes = *nbytesp; local
1470 copy = min3(drest, size, dst->length);
1472 size -= copy;
1473 drest -= copy;
1474 nbytes -= copy;
1476 dprintk("%s: copy: %u, size: %u, drest: %u, nbytes: %u.\n",
1477 __func__, copy, size, drest, nbytes);
1493 unsigned int nbytes = req->nbytes, offset, copy, diff; local
1521 copy
1724 unsigned int srest = *srestp, nbytes = *nbytesp, copy; local
[all...]
/drivers/acpi/
H A Dec.c25 * You should have received a copy of the GNU General Public License along
636 struct acpi_ec_query_handler *handler, *copy; local
647 copy = kmalloc(sizeof(*handler), GFP_KERNEL);
648 if (!copy)
650 memcpy(copy, handler, sizeof(*copy));
653 return acpi_os_execute((copy->func) ?
655 acpi_ec_run, copy);

Completed in 3652 milliseconds

1234