Searched refs:copy (Results 226 - 250 of 385) sorted by path

1234567891011>>

/linux-master/fs/
H A Dnamespace.c3091 * propagating a copy @c of @mnt_from on top of @mnt_to. This
3099 * mean propagating a copy @c of @mnt_from on top of @mnt_from.
3105 * covered by a copy @c of @mnt_from and @c would be covered by
3551 char *copy; local
3557 copy = kmalloc(PAGE_SIZE, GFP_KERNEL);
3558 if (!copy)
3561 left = copy_from_user(copy, data, PAGE_SIZE);
3572 copy[offset] = c;
3578 kfree(copy);
3582 return copy;
[all...]
H A Duserfaultfd.c1708 /* don't copy "copy" last field */
1732 if (unlikely(put_user(ret, &user_uffdio_copy->copy)))
1764 /* don't copy "zeropage" last field */
1867 /* don't copy the output fields */
1924 /* don't copy the output fields */
1992 /* don't copy "move" last field */
/linux-master/fs/nfs/
H A Dcallback_proc.c711 struct nfs4_copy_state *copy, *tmp_copy; local
714 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_KERNEL);
715 if (!copy)
736 memcpy(&copy->stateid, &args->coa_stateid, NFS4_STATEID_SIZE);
737 nfs4_copy_cb_args(copy, args);
738 list_add_tail(&copy->copies, &cps->clp->pending_cb_stateids);
740 kfree(copy);
H A Dnfs42proc.c184 struct nfs4_copy_state *copy, *tmp_copy = NULL, *iter; local
189 copy = kzalloc(sizeof(struct nfs4_copy_state), GFP_KERNEL);
190 if (!copy)
206 kfree(copy);
207 copy = tmp_copy;
211 memcpy(&copy->stateid, &res->write_res.stateid, NFS4_STATEID_SIZE);
212 init_completion(&copy->completion);
213 copy->parent_dst_state = dst_ctx->state;
214 copy->parent_src_state = src_ctx->state;
216 list_add_tail(&copy
[all...]
H A Dnfs4state.c1580 struct nfs4_copy_state *copy; local
1587 list_for_each_entry(copy, &sp->so_server->ss_copies, copies) {
1590 &copy->parent_dst_state->stateid)))
1592 copy->flags = 1;
1596 complete(&copy->completion);
1599 list_for_each_entry(copy, &sp->so_server->ss_copies, src_copies) {
1602 &copy->parent_src_state->stateid)))
1604 copy->flags = 1;
1607 complete(&copy->completion);
/linux-master/fs/nfsd/
H A Dnfs4proc.c58 "Enable inter server to server copy offload. Default: false");
408 * field isn't set for some reason, throw warning and just copy
966 * If we do a zero copy read, then a client will see read data
970 * To ensure proper ordering, we therefore turn off zero copy if
1287 static void nfs4_put_copy(struct nfsd4_copy *copy) argument
1289 if (!refcount_dec_and_test(&copy->refcount))
1291 kfree(copy->cp_src);
1292 kfree(copy);
1295 static void nfsd4_stop_copy(struct nfsd4_copy *copy) argument
1297 if (!test_and_set_bit(NFSD4_COPY_F_STOPPED, &copy
1304 struct nfsd4_copy *copy = NULL; local
1318 struct nfsd4_copy *copy; local
1515 nfsd4_setup_inter_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy) argument
1573 nfsd4_setup_inter_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy) argument
1595 nfsd4_setup_intra_ssc(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_copy *copy) argument
1627 nfsd4_init_copy_res(struct nfsd4_copy *copy, bool sync) argument
1636 _nfsd_copy_file_range(struct nfsd4_copy *copy, struct file *dst, struct file *src) argument
1677 nfsd4_do_copy(struct nfsd4_copy *copy, struct file *src, struct file *dst, bool sync) argument
1719 release_copy_files(struct nfsd4_copy *copy) argument
1727 cleanup_async_copy(struct nfsd4_copy *copy) argument
1740 nfsd4_send_cb_offload(struct nfsd4_copy *copy, __be32 nfserr) argument
1768 struct nfsd4_copy *copy = (struct nfsd4_copy *)data; local
1806 struct nfsd4_copy *copy = &u->copy; local
1886 struct nfsd4_copy *copy; local
1901 struct nfsd4_copy *copy; local
1917 struct nfsd4_copy *copy; local
2003 struct nfsd4_copy *copy; local
2594 struct nfsd4_copy *copy; local
[all...]
H A Dnfs4state.c1006 int nfs4_init_copy_state(struct nfsd_net *nn, struct nfsd4_copy *copy) argument
1008 return nfs4_init_cp_state(nn, &copy->cp_stateid, NFS4_COPY_STID);
1032 void nfs4_free_copy_state(struct nfsd4_copy *copy) argument
1036 if (copy->cp_stateid.cs_type != NFS4_COPY_STID)
1038 nn = net_generic(copy->cp_clp->net, nfsd_net_id);
1041 copy->cp_stateid.cs_stid.si_opaque.so_id);
2921 /* XXX: copy stateids? */
6562 /* service the server-to-server copy delayed unmount list */
6900 * copy stateid. Look up the copy notif
[all...]
H A Dnfs4xdr.c1979 struct nfsd4_copy *copy = &u->copy; local
1984 memset(copy, 0, sizeof(*copy));
1985 status = nfsd4_decode_stateid4(argp, &copy->cp_src_stateid);
1988 status = nfsd4_decode_stateid4(argp, &copy->cp_dst_stateid);
1991 if (xdr_stream_decode_u64(argp->xdr, &copy->cp_src_pos) < 0)
1993 if (xdr_stream_decode_u64(argp->xdr, &copy->cp_dst_pos) < 0)
1995 if (xdr_stream_decode_u64(argp->xdr, &copy->cp_count) < 0)
2002 nfsd4_copy_set_sync(copy, syn
5099 nfsd4_encode_write_response4(struct xdr_stream *xdr, const struct nfsd4_copy *copy) argument
5126 nfsd4_encode_copy_requirements4(struct xdr_stream *xdr, const struct nfsd4_copy *copy) argument
5143 struct nfsd4_copy *copy = &u->copy; local
[all...]
H A Dstate.h132 stateid_t cp_p_stateid; /* copy of parent's stateid */
133 clientid_t cp_p_clid; /* copy of parent's clid */
721 int nfs4_init_copy_state(struct nfsd_net *nn, struct nfsd4_copy *copy);
722 void nfs4_free_copy_state(struct nfsd4_copy *copy);
H A Dtrace.h2022 const struct nfsd4_copy *copy
2024 TP_ARGS(copy),
2042 const stateid_t *src_stp = &copy->cp_src_stateid;
2043 const stateid_t *dst_stp = &copy->cp_dst_stateid;
2045 __entry->intra = test_bit(NFSD4_COPY_F_INTRA, &copy->cp_flags);
2046 __entry->async = !test_bit(NFSD4_COPY_F_SYNCHRONOUS, &copy->cp_flags);
2055 __entry->src_cp_pos = copy->cp_src_pos;
2056 __entry->dst_cp_pos = copy->cp_dst_pos;
2057 __entry->cp_count = copy->cp_count;
2058 __assign_sockaddr(addr, &copy
[all...]
H A Dxdr4.h698 static inline void nfsd4_copy_set_sync(struct nfsd4_copy *copy, bool sync) argument
701 set_bit(NFSD4_COPY_F_SYNCHRONOUS, &copy->cp_flags);
703 clear_bit(NFSD4_COPY_F_SYNCHRONOUS, &copy->cp_flags);
706 static inline bool nfsd4_copy_is_sync(const struct nfsd4_copy *copy) argument
708 return test_bit(NFSD4_COPY_F_SYNCHRONOUS, &copy->cp_flags);
711 static inline bool nfsd4_copy_is_async(const struct nfsd4_copy *copy) argument
713 return !test_bit(NFSD4_COPY_F_SYNCHRONOUS, &copy->cp_flags);
716 static inline bool nfsd4_ssc_is_inter(const struct nfsd4_copy *copy) argument
718 return !test_bit(NFSD4_COPY_F_INTRA, &copy->cp_flags);
810 struct nfsd4_copy copy; member in union:nfsd4_op::nfsd4_op_u
[all...]
/linux-master/fs/smb/server/
H A Dtransport_tcp.c122 int copy = min(bytes, iov->iov_len); local
124 bytes -= copy;
125 base += copy;
/linux-master/fs/udf/
H A Ddirectory.c326 int copy; local
331 copy = min(off + len, len1) - off;
332 memcpy(buf1 + off, src, copy);
333 src += copy;
334 len -= copy;
347 int copy; local
353 copy = min(off + len, len1) - off;
354 crc = crc_itu_t(crc, buf1 + off, copy);
355 len -= copy;
/linux-master/fs/unicode/
H A DMakefile36 $(call if_changed,copy)
/linux-master/include/linux/
H A Dcdrom.h198 __u8 copy : 1; member in struct:__anon3308
213 __u8 copy : 1;
H A Dmpi.h112 mpi_barrett_t mpi_barrett_init(MPI m, int copy);
H A Dperf_event.h88 perf_copy_f copy; member in struct:perf_raw_frag
834 * writing kernel copy of event->attr.type without user being aware
H A Drbtree_augmented.h29 void (*copy)(struct rb_node *old, struct rb_node *new); member in struct:rb_augment_callbacks
129 .copy = RBNAME ## _copy, \
273 augment->copy(node, successor);
299 augment->copy(node, successor);
H A Dregset.h90 * not copy it all out.
106 * @count: amount of data to copy, in bytes
107 * @kbuf: if not %NULL, a kernel-space pointer to copy from
108 * @ubuf: if @kbuf is %NULL, a user-space pointer to copy from
262 unsigned int copy = (end_pos < 0 ? *count
266 memcpy(data, *kbuf, copy);
267 *kbuf += copy;
268 } else if (__copy_from_user(data, *ubuf, copy))
271 *ubuf += copy;
272 *pos += copy;
[all...]
H A Dskbuff.h506 * If we need to compute a TX checksum, we'll need to copy
538 * The zerocopy_success argument is true if zero copy transmit occurred,
539 * false on data copy or out of memory error caused by data copy attempt.
2022 * If the buffer is shared the buffer is cloned and the old copy
2053 * skb_unshare - make a copy of a shared buffer
2058 * copy of the data, drops a reference count on the old copy and returns
2059 * the new copy with the reference count at 1. If the buffer is not a clone
2072 /* Free our shared copy */
3712 skb_add_data(struct sk_buff *skb, struct iov_iter *from, int copy) argument
4786 __nf_copy(struct sk_buff *dst, const struct sk_buff *src, bool copy) argument
[all...]
H A Dskmsg.h32 DECLARE_BITMAP(copy, MAX_MSG_FRAGS + 2);
243 if (test_bit(msg->sg.start, msg->sg.copy)) {
262 __set_bit(msg->sg.end, msg->sg.copy);
271 __set_bit(i, msg->sg.copy);
273 __clear_bit(i, msg->sg.copy);
/linux-master/include/net/
H A Dsock.h2152 int copy, int offset)
2156 if (!csum_and_copy_from_iter_full(to, copy, &csum, from))
2160 if (!copy_from_iter_full_nocache(to, copy, from))
2162 } else if (!copy_from_iter_full(to, copy, from))
2169 struct iov_iter *from, int copy)
2173 err = skb_do_copy_data_nocache(sk, skb, from, skb_put(skb, copy),
2174 copy, offset);
2184 int off, int copy)
2189 copy, skb->len);
2193 skb_len_add(skb, copy);
2150 skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, char *to, int copy, int offset) argument
2168 skb_add_data_nocache(struct sock *sk, struct sk_buff *skb, struct iov_iter *from, int copy) argument
2181 skb_copy_to_page_nocache(struct sock *sk, struct iov_iter *from, struct sk_buff *skb, struct page *page, int off, int copy) argument
[all...]
H A Dtcp.h337 int tcp_wmem_schedule(struct sock *sk, int copy);
/linux-master/include/sound/
H A Dcompress_driver.h27 * DSP doesn't implement copy
104 * @copy: Copy the compressed data to/from userspace, Optional
108 * Not valid if copy is implemented
126 int (*copy)(struct snd_compr_stream *stream, char __user *buf, member in struct:snd_compr_ops
H A Dpcm-indirect.h36 snd_pcm_indirect_copy_t copy)
64 copy(substream, rec, bytes);
110 snd_pcm_indirect_copy_t copy)
137 copy(substream, rec, bytes);
34 snd_pcm_indirect_playback_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, snd_pcm_indirect_copy_t copy) argument
108 snd_pcm_indirect_capture_transfer(struct snd_pcm_substream *substream, struct snd_pcm_indirect *rec, snd_pcm_indirect_copy_t copy) argument

Completed in 518 milliseconds

1234567891011>>