Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 55) sorted by relevance

123

/linux-4.19.296/include/linux/
Dregset.h266 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyout() local
270 memcpy(*kbuf, data, copy); in user_regset_copyout()
271 *kbuf += copy; in user_regset_copyout()
272 } else if (__copy_to_user(*ubuf, data, copy)) in user_regset_copyout()
275 *ubuf += copy; in user_regset_copyout()
276 *pos += copy; in user_regset_copyout()
277 *count -= copy; in user_regset_copyout()
291 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin() local
295 memcpy(data, *kbuf, copy); in user_regset_copyin()
296 *kbuf += copy; in user_regset_copyin()
[all …]
Drbtree_augmented.h41 void (*copy)(struct rb_node *old, struct rb_node *new); member
106 .copy = rbname ## _copy, \
217 augment->copy(node, successor); in __rb_erase_augmented()
243 augment->copy(node, successor); in __rb_erase_augmented()
Dcdrom.h193 __u8 copy : 1; member
208 __u8 copy : 1;
/linux-4.19.296/lib/zlib_inflate/
Dinflate.c104 unsigned copy, dist; in zlib_updatewindow() local
109 copy = out - strm->avail_out; in zlib_updatewindow()
110 if (copy >= state->wsize) { in zlib_updatewindow()
117 if (dist > copy) dist = copy; in zlib_updatewindow()
118 memcpy(state->window + state->write, strm->next_out - copy, dist); in zlib_updatewindow()
119 copy -= dist; in zlib_updatewindow()
120 if (copy) { in zlib_updatewindow()
121 memcpy(state->window, strm->next_out - copy, copy); in zlib_updatewindow()
122 state->write = copy; in zlib_updatewindow()
326 unsigned copy; /* number of stored or match bytes to copy */ in zlib_inflate() local
[all …]
/linux-4.19.296/drivers/misc/mic/scif/
Dscif_fd.c356 struct scifioctl_copy copy; in scif_fdioctl() local
358 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
362 err = scif_readfrom(priv, copy.loffset, copy.len, copy.roffset, in scif_fdioctl()
363 copy.flags); in scif_fdioctl()
371 struct scifioctl_copy copy; in scif_fdioctl() local
373 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
377 err = scif_writeto(priv, copy.loffset, copy.len, copy.roffset, in scif_fdioctl()
378 copy.flags); in scif_fdioctl()
386 struct scifioctl_copy copy; in scif_fdioctl() local
388 if (copy_from_user(&copy, argp, sizeof(copy))) { in scif_fdioctl()
[all …]
/linux-4.19.296/fs/dlm/
Dmidcomms.c37 unsigned copy = len; in copy_from_cb() local
39 if ((copy + offset) > limit) in copy_from_cb()
40 copy = limit - offset; in copy_from_cb()
41 memcpy(dst, base + offset, copy); in copy_from_cb()
42 len -= copy; in copy_from_cb()
44 memcpy(dst + copy, base, len); in copy_from_cb()
/linux-4.19.296/lib/
Diov_iter.c154 size_t skip, copy, left, wanted; in copy_page_to_iter_iovec() local
170 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
172 if (IS_ENABLED(CONFIG_HIGHMEM) && !fault_in_pages_writeable(buf, copy)) { in copy_page_to_iter_iovec()
177 left = copyout(buf, from, copy); in copy_page_to_iter_iovec()
178 copy -= left; in copy_page_to_iter_iovec()
179 skip += copy; in copy_page_to_iter_iovec()
180 from += copy; in copy_page_to_iter_iovec()
181 bytes -= copy; in copy_page_to_iter_iovec()
186 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
187 left = copyout(buf, from, copy); in copy_page_to_iter_iovec()
[all …]
Dvsprintf.c2279 int copy = read; in vsnprintf() local
2281 if (copy > end - str) in vsnprintf()
2282 copy = end - str; in vsnprintf()
2283 memcpy(str, old_fmt, copy); in vsnprintf()
2753 int copy = read; in bstr_printf() local
2755 if (copy > end - str) in bstr_printf()
2756 copy = end - str; in bstr_printf()
2757 memcpy(str, old_fmt, copy); in bstr_printf()
2802 int copy, len; in bstr_printf() local
2820 len = copy = strlen(args); in bstr_printf()
[all …]
/linux-4.19.296/block/
Dblk-map.c60 gfp_t gfp_mask, bool copy) in __blk_rq_map_user_iov() argument
66 if (copy) in __blk_rq_map_user_iov()
118 bool copy = false; in blk_rq_map_user_iov() local
128 copy = true; in blk_rq_map_user_iov()
130 copy = true; in blk_rq_map_user_iov()
132 copy = queue_virt_boundary(q) & iov_iter_gap_alignment(iter); in blk_rq_map_user_iov()
136 ret =__blk_rq_map_user_iov(rq, map_data, &i, gfp_mask, copy); in blk_rq_map_user_iov()
/linux-4.19.296/fs/nfs/
Dnfs42proc.c142 struct nfs4_copy_state *copy, *tmp_copy; in handle_async_copy() local
147 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_NOFS); in handle_async_copy()
148 if (!copy) in handle_async_copy()
163 kfree(copy); in handle_async_copy()
164 copy = tmp_copy; in handle_async_copy()
168 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE); in handle_async_copy()
169 init_completion(&copy->completion); in handle_async_copy()
170 copy->parent_state = ctx->state; in handle_async_copy()
172 list_add_tail(&copy->copies, &server->ss_copies); in handle_async_copy()
175 status = wait_for_completion_interruptible(&copy->completion); in handle_async_copy()
[all …]
Dcallback_proc.c682 struct nfs4_copy_state *copy, *tmp_copy; in nfs4_callback_offload() local
685 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_NOFS); in nfs4_callback_offload()
686 if (!copy) in nfs4_callback_offload()
707 memcpy(&copy->stateid, &args->coa_stateid, NFS4_STATEID_SIZE); in nfs4_callback_offload()
708 nfs4_copy_cb_args(copy, args); in nfs4_callback_offload()
709 list_add_tail(&copy->copies, &cps->clp->pending_cb_stateids); in nfs4_callback_offload()
711 kfree(copy); in nfs4_callback_offload()
/linux-4.19.296/include/trace/events/
Dsmbus.h54 goto copy;
58 goto copy;
63 copy:
163 goto copy;
167 goto copy;
172 copy:
/linux-4.19.296/drivers/misc/mic/vop/
Dvop_vringh.c755 static int _vop_virtio_copy(struct vop_vdev *vdev, struct mic_copy_desc *copy) in _vop_virtio_copy() argument
758 u32 iovcnt = copy->iovcnt; in _vop_virtio_copy()
760 struct iovec __user *u_iov = copy->iov; in _vop_virtio_copy()
762 struct vop_vringh *vvr = &vdev->vvr[copy->vr_idx]; in _vop_virtio_copy()
770 copy->out_len = 0; in _vop_virtio_copy()
794 MIC_VRINGH_READ, copy->vr_idx, &out_len); in _vop_virtio_copy()
802 copy->out_len += out_len; in _vop_virtio_copy()
805 !MIC_VRINGH_READ, copy->vr_idx, &out_len); in _vop_virtio_copy()
813 copy->out_len += out_len; in _vop_virtio_copy()
827 if (*head != USHRT_MAX && copy->out_len && copy->update_used) { in _vop_virtio_copy()
[all …]
/linux-4.19.296/include/sound/
Dpcm-indirect.h49 snd_pcm_indirect_copy_t copy) in snd_pcm_indirect_playback_transfer() argument
77 copy(substream, rec, bytes); in snd_pcm_indirect_playback_transfer()
118 snd_pcm_indirect_copy_t copy) in snd_pcm_indirect_capture_transfer() argument
145 copy(substream, rec, bytes); in snd_pcm_indirect_capture_transfer()
Dcompress_driver.h113 int (*copy)(struct snd_compr_stream *stream, char __user *buf, member
/linux-4.19.296/fs/fat/
Ddir.c1209 unsigned long size, copy; in fat_add_new_entries() local
1230 i = n = copy = 0; in fat_add_new_entries()
1242 copy = min(size, sb->s_blocksize); in fat_add_new_entries()
1245 memcpy(bhs[n]->b_data, slots, copy); in fat_add_new_entries()
1249 slots += copy; in fat_add_new_entries()
1250 size -= copy; in fat_add_new_entries()
1258 memset(bhs[n]->b_data + copy, 0, sb->s_blocksize - copy); in fat_add_new_entries()
1259 offset = copy - sizeof(struct msdos_dir_entry); in fat_add_new_entries()
1348 int copy = min_t(int, sb->s_blocksize - offset, size); in fat_add_entries() local
1349 memcpy(bhs[i]->b_data + offset, slots, copy); in fat_add_entries()
[all …]
Dfatent.c382 int err, n, copy; in fat_mirror_bhs() local
385 for (copy = 1; copy < sbi->fats; copy++) { in fat_mirror_bhs()
386 sector_t backup_fat = sbi->fat_length * copy; in fat_mirror_bhs()
/linux-4.19.296/fs/overlayfs/
DKconfig54 The inodes index feature prevents breaking of lower hardlinks on copy
75 The NFS export feature creates an index on copy up of every file and
109 bool "Overlayfs: turn on metadata only copy up feature by default"
114 copy up only metadata where appropriate and data copy up will
/linux-4.19.296/include/net/
Dsock.h1991 int copy, int offset) in skb_do_copy_data_nocache() argument
1995 if (!csum_and_copy_from_iter_full(to, copy, &csum, from)) in skb_do_copy_data_nocache()
1999 if (!copy_from_iter_full_nocache(to, copy, from)) in skb_do_copy_data_nocache()
2001 } else if (!copy_from_iter_full(to, copy, from)) in skb_do_copy_data_nocache()
2008 struct iov_iter *from, int copy) in skb_add_data_nocache() argument
2012 err = skb_do_copy_data_nocache(sk, skb, from, skb_put(skb, copy), in skb_add_data_nocache()
2013 copy, offset); in skb_add_data_nocache()
2023 int off, int copy) in skb_copy_to_page_nocache() argument
2028 copy, skb->len); in skb_copy_to_page_nocache()
2032 skb->len += copy; in skb_copy_to_page_nocache()
[all …]
/linux-4.19.296/drivers/virt/vboxguest/
DKconfig8 copy-and-paste, seamless mode and OpenGL pass-through.
/linux-4.19.296/fs/gfs2/
Dxattr.c683 unsigned int copy; in ea_write() local
703 copy = data_len > sdp->sd_jbsize ? sdp->sd_jbsize : in ea_write()
705 memcpy(bh->b_data + mh_size, data, copy); in ea_write()
706 if (copy < sdp->sd_jbsize) in ea_write()
707 memset(bh->b_data + mh_size + copy, 0, in ea_write()
708 sdp->sd_jbsize - copy); in ea_write()
711 data += copy; in ea_write()
712 data_len -= copy; in ea_write()
/linux-4.19.296/drivers/s390/block/
Ddasd_fba.c515 char *copy = kmem_cache_alloc(dasd_page_cache, in dasd_fba_build_cp_regular() local
517 if (copy && rq_data_dir(req) == WRITE) in dasd_fba_build_cp_regular()
518 memcpy(copy + bv.bv_offset, dst, bv.bv_len); in dasd_fba_build_cp_regular()
519 if (copy) in dasd_fba_build_cp_regular()
520 dst = copy + bv.bv_offset; in dasd_fba_build_cp_regular()
/linux-4.19.296/include/uapi/linux/
Duserfaultfd.h219 __s64 copy; member
/linux-4.19.296/drivers/xen/
Dgntdev.c1086 struct ioctl_gntdev_grant_copy copy; in gntdev_ioctl_grant_copy() local
1091 if (copy_from_user(&copy, u, sizeof(copy))) in gntdev_ioctl_grant_copy()
1097 for (i = 0; i < copy.count; i++) { in gntdev_ioctl_grant_copy()
1100 if (copy_from_user(&seg, &copy.segments[i], sizeof(seg))) { in gntdev_ioctl_grant_copy()
1105 ret = gntdev_grant_copy_seg(&batch, &seg, &copy.segments[i].status); in gntdev_ioctl_grant_copy()
/linux-4.19.296/drivers/thunderbolt/
Dctl.h88 bool (*copy)(struct tb_cfg_request *req, const struct ctl_pkg *pkg); member

123