Searched refs:copy (Results 1 - 200 of 12692) sorted by relevance

1234567891011>>

/linux-4.4.14/arch/m32r/boot/compressed/
H A Dboot.h19 * 3. relocate copy & jump code
26 * | boot(copy&jump) |
38 * | boot(copy&jump) |
/linux-4.4.14/net/core/
H A Ddatagram.c350 * @skb: buffer to copy
352 * @to: iovec iterator to copy to
353 * @len: amount of data to copy from buffer to iovec
359 int i, copy = start - offset; skb_copy_datagram_iter() local
365 if (copy > 0) { skb_copy_datagram_iter()
366 if (copy > len) skb_copy_datagram_iter()
367 copy = len; skb_copy_datagram_iter()
368 if (copy_to_iter(skb->data + offset, copy, to) != copy) skb_copy_datagram_iter()
370 if ((len -= copy) == 0) skb_copy_datagram_iter()
372 offset += copy; skb_copy_datagram_iter()
383 if ((copy = end - offset) > 0) { skb_copy_datagram_iter()
384 if (copy > len) skb_copy_datagram_iter()
385 copy = len; skb_copy_datagram_iter()
388 start, copy, to) != copy) skb_copy_datagram_iter()
390 if (!(len -= copy)) skb_copy_datagram_iter()
392 offset += copy; skb_copy_datagram_iter()
403 if ((copy = end - offset) > 0) { skb_walk_frags()
404 if (copy > len) skb_walk_frags()
405 copy = len; skb_walk_frags()
407 to, copy)) skb_walk_frags()
409 if ((len -= copy) == 0) skb_walk_frags()
411 offset += copy; skb_walk_frags()
418 /* This is not really a user copy fault, but rather someone
436 * @skb: buffer to copy
438 * @from: the copy source
439 * @len: amount of data to copy to buffer from iovec
448 int i, copy = start - offset; skb_copy_datagram_from_iter() local
452 if (copy > 0) { skb_copy_datagram_from_iter()
453 if (copy > len) skb_copy_datagram_from_iter()
454 copy = len; skb_copy_datagram_from_iter()
455 if (copy_from_iter(skb->data + offset, copy, from) != copy) skb_copy_datagram_from_iter()
457 if ((len -= copy) == 0) skb_copy_datagram_from_iter()
459 offset += copy; skb_copy_datagram_from_iter()
470 if ((copy = end - offset) > 0) { skb_copy_datagram_from_iter()
473 if (copy > len) skb_copy_datagram_from_iter()
474 copy = len; skb_copy_datagram_from_iter()
477 copy, from); skb_copy_datagram_from_iter()
478 if (copied != copy) skb_copy_datagram_from_iter()
481 if (!(len -= copy)) skb_copy_datagram_from_iter()
483 offset += copy; skb_copy_datagram_from_iter()
494 if ((copy = end - offset) > 0) { skb_walk_frags()
495 if (copy > len) skb_walk_frags()
496 copy = len; skb_walk_frags()
499 from, copy)) skb_walk_frags()
501 if ((len -= copy) == 0) skb_walk_frags()
503 offset += copy; skb_walk_frags()
517 * @skb: buffer to copy
518 * @from: the source to copy from
520 * The function will first copy up to headlen, and then pin the userspace
528 int copy = min_t(int, skb_headlen(skb), len); zerocopy_sg_from_iter() local
531 /* copy up to skb headlen */ zerocopy_sg_from_iter()
532 if (skb_copy_datagram_from_iter(skb, 0, from, copy)) zerocopy_sg_from_iter()
574 int i, copy = start - offset; skb_copy_and_csum_datagram() local
580 if (copy > 0) { skb_copy_and_csum_datagram()
581 if (copy > len) skb_copy_and_csum_datagram()
582 copy = len; skb_copy_and_csum_datagram()
583 n = csum_and_copy_to_iter(skb->data + offset, copy, csump, to); skb_copy_and_csum_datagram()
584 if (n != copy) skb_copy_and_csum_datagram()
586 if ((len -= copy) == 0) skb_copy_and_csum_datagram()
588 offset += copy; skb_copy_and_csum_datagram()
589 pos = copy; skb_copy_and_csum_datagram()
599 if ((copy = end - offset) > 0) { skb_copy_and_csum_datagram()
604 if (copy > len) skb_copy_and_csum_datagram()
605 copy = len; skb_copy_and_csum_datagram()
607 offset - start, copy, skb_copy_and_csum_datagram()
610 if (n != copy) skb_copy_and_csum_datagram()
613 if (!(len -= copy)) skb_copy_and_csum_datagram()
615 offset += copy; skb_copy_and_csum_datagram()
616 pos += copy; skb_copy_and_csum_datagram()
627 if ((copy = end - offset) > 0) { skb_walk_frags()
629 if (copy > len) skb_walk_frags()
630 copy = len; skb_walk_frags()
633 to, copy, skb_walk_frags()
637 if ((len -= copy) == 0) skb_walk_frags()
639 offset += copy; skb_walk_frags()
640 pos += copy; skb_walk_frags()
704 * -EFAULT - fault during copy.
H A Dskbuff.c19 * Alan Cox : skb_copy copy arp field
762 /* We do not copy old->sk */ __copy_skb_header()
864 * skb_copy_ubufs - copy userspace skb frags buffers to kernel
869 * It will copy all frags into kernel and drop the reference
876 * to allocate kernel memory to copy to.
1000 * skb_copy - create private copy of an sk_buff
1001 * @skb: buffer to copy
1004 * Make a copy of both an &sk_buff and its data. This is used when the
1005 * caller wishes to modify the data and needs a private copy of the
1040 * __pskb_copy_fclone - create copy of an sk_buff with private head.
1041 * @skb: buffer to copy
1044 * @fclone: if true allocate the copy of the skb from the fclone
1046 * to true for the cases where the copy will likely be cloned
1048 * Make a copy of both an &sk_buff and part of its data, located
1051 * private copy of the header to alter. Returns %NULL on failure
1110 * Expands (or creates identical copy, if @nhead and @ntail are zero)
1157 /* copy this zero copy skb frags */ pskb_expand_head()
1196 /* Make private copy of skb with writable head and some headroom */
1218 * skb_copy_expand - copy and expand sk_buff
1219 * @skb: buffer to copy
1224 * Make a copy of both an &sk_buff and its data and while doing so
1228 * private copy of the data to alter as well as more space for new fields.
1240 * Allocate the copy buffer skb_copy_expand()
1646 * skb_copy_bits - copy bits from skb to kernel buffer
1650 * @len: number of bytes to copy
1664 int i, copy; skb_copy_bits() local
1670 if ((copy = start - offset) > 0) { skb_copy_bits()
1671 if (copy > len) skb_copy_bits()
1672 copy = len; skb_copy_bits()
1673 skb_copy_from_linear_data_offset(skb, offset, to, copy); skb_copy_bits()
1674 if ((len -= copy) == 0) skb_copy_bits()
1676 offset += copy; skb_copy_bits()
1677 to += copy; skb_copy_bits()
1687 if ((copy = end - offset) > 0) { skb_copy_bits()
1690 if (copy > len) skb_copy_bits()
1691 copy = len; skb_copy_bits()
1696 copy); skb_copy_bits()
1699 if ((len -= copy) == 0) skb_copy_bits()
1701 offset += copy; skb_copy_bits()
1702 to += copy; skb_copy_bits()
1713 if ((copy = end - offset) > 0) { skb_walk_frags()
1714 if (copy > len) skb_walk_frags()
1715 copy = len; skb_walk_frags()
1716 if (skb_copy_bits(frag_iter, offset - start, to, copy)) skb_walk_frags()
1718 if ((len -= copy) == 0) skb_walk_frags()
1720 offset += copy; skb_walk_frags()
1721 to += copy; skb_walk_frags()
1850 * we can avoid a copy since we own the head portion of this page. __skb_splice_bits()
1954 * @len: number of bytes to copy
1965 int i, copy; skb_store_bits() local
1970 if ((copy = start - offset) > 0) { skb_store_bits()
1971 if (copy > len) skb_store_bits()
1972 copy = len; skb_store_bits()
1973 skb_copy_to_linear_data_offset(skb, offset, from, copy); skb_store_bits()
1974 if ((len -= copy) == 0) skb_store_bits()
1976 offset += copy; skb_store_bits()
1977 from += copy; skb_store_bits()
1987 if ((copy = end - offset) > 0) { skb_store_bits()
1990 if (copy > len) skb_store_bits()
1991 copy = len; skb_store_bits()
1995 from, copy); skb_store_bits()
1998 if ((len -= copy) == 0) skb_store_bits()
2000 offset += copy; skb_store_bits()
2001 from += copy; skb_store_bits()
2012 if ((copy = end - offset) > 0) { skb_walk_frags()
2013 if (copy > len) skb_walk_frags()
2014 copy = len; skb_walk_frags()
2016 from, copy)) skb_walk_frags()
2018 if ((len -= copy) == 0) skb_walk_frags()
2020 offset += copy; skb_walk_frags()
2021 from += copy; skb_walk_frags()
2038 int i, copy = start - offset; __skb_checksum() local
2043 if (copy > 0) { __skb_checksum()
2044 if (copy > len) __skb_checksum()
2045 copy = len; __skb_checksum()
2046 csum = ops->update(skb->data + offset, copy, csum); __skb_checksum()
2047 if ((len -= copy) == 0) __skb_checksum()
2049 offset += copy; __skb_checksum()
2050 pos = copy; __skb_checksum()
2060 if ((copy = end - offset) > 0) { __skb_checksum()
2064 if (copy > len) __skb_checksum()
2065 copy = len; __skb_checksum()
2068 offset - start, copy, 0); __skb_checksum()
2070 csum = ops->combine(csum, csum2, pos, copy); __skb_checksum()
2071 if (!(len -= copy)) __skb_checksum()
2073 offset += copy; __skb_checksum()
2074 pos += copy; __skb_checksum()
2085 if ((copy = end - offset) > 0) { skb_walk_frags()
2087 if (copy > len) skb_walk_frags()
2088 copy = len; skb_walk_frags()
2090 copy, 0, ops); skb_walk_frags()
2091 csum = ops->combine(csum, csum2, pos, copy); skb_walk_frags()
2092 if ((len -= copy) == 0) skb_walk_frags()
2094 offset += copy; skb_walk_frags()
2095 pos += copy; skb_walk_frags()
2123 int i, copy = start - offset; skb_copy_and_csum_bits() local
2128 if (copy > 0) { skb_copy_and_csum_bits()
2129 if (copy > len) skb_copy_and_csum_bits()
2130 copy = len; skb_copy_and_csum_bits()
2132 copy, csum); skb_copy_and_csum_bits()
2133 if ((len -= copy) == 0) skb_copy_and_csum_bits()
2135 offset += copy; skb_copy_and_csum_bits()
2136 to += copy; skb_copy_and_csum_bits()
2137 pos = copy; skb_copy_and_csum_bits()
2146 if ((copy = end - offset) > 0) { skb_copy_and_csum_bits()
2151 if (copy > len) skb_copy_and_csum_bits()
2152 copy = len; skb_copy_and_csum_bits()
2157 copy, 0); skb_copy_and_csum_bits()
2160 if (!(len -= copy)) skb_copy_and_csum_bits()
2162 offset += copy; skb_copy_and_csum_bits()
2163 to += copy; skb_copy_and_csum_bits()
2164 pos += copy; skb_copy_and_csum_bits()
2176 if ((copy = end - offset) > 0) { skb_walk_frags()
2177 if (copy > len) skb_walk_frags()
2178 copy = len; skb_walk_frags()
2181 to, copy, 0); skb_walk_frags()
2183 if ((len -= copy) == 0) skb_walk_frags()
2185 offset += copy; skb_walk_frags()
2186 to += copy; skb_walk_frags()
2187 pos += copy; skb_walk_frags()
2221 * skb_zerocopy - Zero copy skb to skb
2224 * @len: number of bytes to copy from source buffer
2557 else /* Second chunk has no header, nothing to copy. */ skb_split()
2891 int copy; skb_append_datato_frags() local
2904 /* copy the user data to page */ skb_append_datato_frags()
2905 copy = min_t(int, length, pfrag->size - pfrag->offset); skb_append_datato_frags()
2908 offset, copy, 0, skb); skb_append_datato_frags()
2912 /* copy was successful so update the size parameters */ skb_append_datato_frags()
2914 copy); skb_append_datato_frags()
2916 pfrag->offset += copy; skb_append_datato_frags()
2919 skb->truesize += copy; skb_append_datato_frags()
2920 atomic_add(copy, &sk->sk_wmem_alloc); skb_append_datato_frags()
2921 skb->len += copy; skb_append_datato_frags()
2922 skb->data_len += copy; skb_append_datato_frags()
2923 offset += copy; skb_append_datato_frags()
2924 length -= copy; skb_append_datato_frags()
3364 int i, copy = start - offset; __skb_to_sgvec() local
3368 if (copy > 0) { __skb_to_sgvec()
3369 if (copy > len) __skb_to_sgvec()
3370 copy = len; __skb_to_sgvec()
3371 sg_set_buf(sg, skb->data + offset, copy); __skb_to_sgvec()
3373 if ((len -= copy) == 0) __skb_to_sgvec()
3375 offset += copy; __skb_to_sgvec()
3384 if ((copy = end - offset) > 0) { __skb_to_sgvec()
3387 if (copy > len) __skb_to_sgvec()
3388 copy = len; __skb_to_sgvec()
3389 sg_set_page(&sg[elt], skb_frag_page(frag), copy, __skb_to_sgvec()
3392 if (!(len -= copy)) __skb_to_sgvec()
3394 offset += copy; __skb_to_sgvec()
3405 if ((copy = end - offset) > 0) { skb_walk_frags()
3406 if (copy > len) skb_walk_frags()
3407 copy = len; skb_walk_frags()
3409 copy); skb_walk_frags()
3410 if ((len -= copy) == 0) skb_walk_frags()
3412 offset += copy; skb_walk_frags()
/linux-4.4.14/arch/sparc/lib/
H A Dcsum_copy_from_user.S1 /* csum_copy_from_user.S: Checksum+copy from userspace.
H A Dcsum_copy_to_user.S1 /* csum_copy_to_user.S: Checksum+copy to userspace.
H A DGENcopy_from_user.S1 /* GENcopy_from_user.S: Generic sparc64 copy from userspace.
H A DU3copy_from_user.S1 /* U3copy_from_user.S: UltraSparc-III optimized copy from userspace.
H A DGENcopy_to_user.S1 /* GENcopy_to_user.S: Generic sparc64 copy to userspace.
H A DNG2copy_from_user.S1 /* NG2copy_from_user.S: Niagara-2 optimized copy from userspace.
H A DNG4copy_from_user.S1 /* NG4copy_from_user.S: Niagara-4 optimized copy from userspace.
H A DNGcopy_from_user.S1 /* NGcopy_from_user.S: Niagara optimized copy from userspace.
H A DNGcopy_to_user.S1 /* NGcopy_to_user.S: Niagara optimized copy to userspace.
H A DNG2copy_to_user.S1 /* NG2copy_to_user.S: Niagara-2 optimized copy to userspace.
H A DNG4copy_to_user.S1 /* NG4copy_to_user.S: Niagara-4 optimized copy to userspace.
H A DU1copy_from_user.S1 /* U1copy_from_user.S: UltraSparc-I/II/IIi/IIe optimized copy from userspace.
H A DU1copy_to_user.S1 /* U1copy_to_user.S: UltraSparc-I/II/IIi/IIe optimized copy to userspace.
H A DU3copy_to_user.S1 /* U3copy_to_user.S: UltraSparc-III optimized copy to userspace.
/linux-4.4.14/sound/core/oss/
H A DMakefile10 io.o copy.o linear.o mulaw.o route.o rate.o
/linux-4.4.14/arch/metag/include/asm/
H A Dptrace.h34 /* copy a struct user_gp_regs out to user */
38 /* copy a struct user_gp_regs in from user */
42 /* copy a struct user_cb_regs out to user */
46 /* copy a struct user_cb_regs in from user */
50 /* copy a struct user_rp_state out to user */
54 /* copy a struct user_rp_state in from user */
/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_fd.c356 struct scifioctl_copy copy; scif_fdioctl() local
358 if (copy_from_user(&copy, argp, sizeof(copy))) { scif_fdioctl()
362 err = scif_readfrom(priv, copy.loffset, copy.len, copy.roffset, scif_fdioctl()
363 copy.flags); scif_fdioctl()
371 struct scifioctl_copy copy; scif_fdioctl() local
373 if (copy_from_user(&copy, argp, sizeof(copy))) { scif_fdioctl()
377 err = scif_writeto(priv, copy.loffset, copy.len, copy.roffset, scif_fdioctl()
378 copy.flags); scif_fdioctl()
386 struct scifioctl_copy copy; scif_fdioctl() local
388 if (copy_from_user(&copy, argp, sizeof(copy))) { scif_fdioctl()
392 err = scif_vreadfrom(priv, (void __force *)copy.addr, copy.len, scif_fdioctl()
393 copy.roffset, copy.flags); scif_fdioctl()
401 struct scifioctl_copy copy; scif_fdioctl() local
403 if (copy_from_user(&copy, argp, sizeof(copy))) { scif_fdioctl()
407 err = scif_vwriteto(priv, (void __force *)copy.addr, copy.len, scif_fdioctl()
408 copy.roffset, copy.flags); scif_fdioctl()
/linux-4.4.14/include/linux/
H A Dregset.h7 * modify, copy, or redistribute it subject to the terms and conditions
35 * not copy it all out.
47 * @count: amount of data to copy, in bytes
48 * @kbuf: if not %NULL, a kernel-space pointer to copy into
49 * @ubuf: if @kbuf is %NULL, a user-space pointer to copy into
68 * @count: amount of data to copy, in bytes
69 * @kbuf: if not %NULL, a kernel-space pointer to copy from
70 * @ubuf: if @kbuf is %NULL, a user-space pointer to copy from
229 unsigned int copy = (end_pos < 0 ? *count user_regset_copyout()
233 memcpy(*kbuf, data, copy); user_regset_copyout()
234 *kbuf += copy; user_regset_copyout()
235 } else if (__copy_to_user(*ubuf, data, copy)) user_regset_copyout()
238 *ubuf += copy; user_regset_copyout()
239 *pos += copy; user_regset_copyout()
240 *count -= copy; user_regset_copyout()
254 unsigned int copy = (end_pos < 0 ? *count
258 memcpy(data, *kbuf, copy);
259 *kbuf += copy;
260 } else if (__copy_from_user(data, *ubuf, copy))
263 *ubuf += copy;
264 *pos += copy;
265 *count -= copy;
284 unsigned int copy = (end_pos < 0 ? *count
287 memset(*kbuf, 0, copy);
288 *kbuf += copy;
289 } else if (__clear_user(*ubuf, copy))
292 *ubuf += copy;
293 *pos += copy;
294 *count -= copy;
310 unsigned int copy = (end_pos < 0 ? *count
313 *kbuf += copy;
315 *ubuf += copy;
316 *pos += copy;
317 *count -= copy;
328 * @size: amount of data to copy, in bytes
329 * @data: user-mode pointer to copy into
354 * @size: amount of data to copy, in bytes
355 * @data: user-mode pointer to copy from
H A Dpmem.h115 * memcpy_to_pmem - copy data to persistent memory
116 * @dst: destination buffer for the copy
117 * @src: source buffer for the copy
118 * @n: length of the copy in bytes
120 * Perform a memory copy that results in the destination of the copy
122 * cache hierarchy after the copy completes. After memcpy_to_pmem()
150 * copy_from_iter_pmem - copy data from an iterator to PMEM
152 * @bytes: number of bytes to copy
H A Ddlm_plock.h5 * modify, copy, or redistribute it subject to the terms and conditions
H A Dopenvswitch.h13 * You should have received a copy of the GNU General Public License
/linux-4.4.14/lib/
H A Diov_iter.c141 size_t skip, copy, left, wanted; copy_page_to_iter_iovec() local
156 copy = min(bytes, iov->iov_len - skip); copy_page_to_iter_iovec()
158 if (!fault_in_pages_writeable(buf, copy)) { copy_page_to_iter_iovec()
163 left = __copy_to_user_inatomic(buf, from, copy); copy_page_to_iter_iovec()
164 copy -= left; copy_page_to_iter_iovec()
165 skip += copy; copy_page_to_iter_iovec()
166 from += copy; copy_page_to_iter_iovec()
167 bytes -= copy; copy_page_to_iter_iovec()
172 copy = min(bytes, iov->iov_len); copy_page_to_iter_iovec()
173 left = __copy_to_user_inatomic(buf, from, copy); copy_page_to_iter_iovec()
174 copy -= left; copy_page_to_iter_iovec()
175 skip = copy; copy_page_to_iter_iovec()
176 from += copy; copy_page_to_iter_iovec()
177 bytes -= copy; copy_page_to_iter_iovec()
184 buf += copy; copy_page_to_iter_iovec()
186 copy = min(bytes, iov->iov_len - skip); copy_page_to_iter_iovec()
191 left = __copy_to_user(buf, from, copy); copy_page_to_iter_iovec()
192 copy -= left; copy_page_to_iter_iovec()
193 skip += copy; copy_page_to_iter_iovec()
194 from += copy; copy_page_to_iter_iovec()
195 bytes -= copy; copy_page_to_iter_iovec()
199 copy = min(bytes, iov->iov_len); copy_page_to_iter_iovec()
200 left = __copy_to_user(buf, from, copy); copy_page_to_iter_iovec()
201 copy -= left; copy_page_to_iter_iovec()
202 skip = copy; copy_page_to_iter_iovec()
203 from += copy; copy_page_to_iter_iovec()
204 bytes -= copy; copy_page_to_iter_iovec()
222 size_t skip, copy, left, wanted; copy_page_from_iter_iovec() local
237 copy = min(bytes, iov->iov_len - skip); copy_page_from_iter_iovec()
239 if (!fault_in_pages_readable(buf, copy)) { copy_page_from_iter_iovec()
244 left = __copy_from_user_inatomic(to, buf, copy); copy_page_from_iter_iovec()
245 copy -= left; copy_page_from_iter_iovec()
246 skip += copy; copy_page_from_iter_iovec()
247 to += copy; copy_page_from_iter_iovec()
248 bytes -= copy; copy_page_from_iter_iovec()
253 copy = min(bytes, iov->iov_len); copy_page_from_iter_iovec()
254 left = __copy_from_user_inatomic(to, buf, copy); copy_page_from_iter_iovec()
255 copy -= left; copy_page_from_iter_iovec()
256 skip = copy; copy_page_from_iter_iovec()
257 to += copy; copy_page_from_iter_iovec()
258 bytes -= copy; copy_page_from_iter_iovec()
265 buf += copy; copy_page_from_iter_iovec()
267 copy = min(bytes, iov->iov_len - skip); copy_page_from_iter_iovec()
272 left = __copy_from_user(to, buf, copy); copy_page_from_iter_iovec()
273 copy -= left; copy_page_from_iter_iovec()
274 skip += copy; copy_page_from_iter_iovec()
275 to += copy; copy_page_from_iter_iovec()
276 bytes -= copy; copy_page_from_iter_iovec()
280 copy = min(bytes, iov->iov_len); copy_page_from_iter_iovec()
281 left = __copy_from_user(to, buf, copy); copy_page_from_iter_iovec()
282 copy -= left; copy_page_from_iter_iovec()
283 skip = copy; copy_page_from_iter_iovec()
284 to += copy; copy_page_from_iter_iovec()
285 bytes -= copy; copy_page_from_iter_iovec()
H A Diomap_copy.c13 * You should have received a copy of the GNU General Public License
22 * __iowrite32_copy - copy data to MMIO space, in 32-bit units
25 * @count: number of 32-bit quantities to copy
45 * __iowrite64_copy - copy data to MMIO space, in 64-bit or 32-bit units
48 * @count: number of 64-bit quantities to copy
/linux-4.4.14/net/sunrpc/
H A Dsocklib.c21 * xdr_skb_read_bits - copy some data bits from skb to internal buffer
22 * @desc: sk_buff copy helper
23 * @to: copy destination
24 * @len: number of bytes to copy
26 * Possibly called several times to iterate over an sk_buff and copy
42 * xdr_skb_read_and_csum_bits - copy and checksum from skb to buffer
43 * @desc: sk_buff copy helper
44 * @to: copy destination
45 * @len: number of bytes to copy
65 * xdr_partial_copy_from_skb - copy data out of an skb
68 * @desc: sk_buff copy helper
146 * csum_partial_copy_to_xdr - checksum and copy data
H A Dxdr.c162 * @len: number of bytes to copy
177 size_t copy; _shift_data_right_pages() local
201 copy = len; _shift_data_right_pages()
202 if (copy > pgto_base) _shift_data_right_pages()
203 copy = pgto_base; _shift_data_right_pages()
204 if (copy > pgfrom_base) _shift_data_right_pages()
205 copy = pgfrom_base; _shift_data_right_pages()
206 pgto_base -= copy; _shift_data_right_pages()
207 pgfrom_base -= copy; _shift_data_right_pages()
212 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); _shift_data_right_pages()
215 memmove(vto + pgto_base, vto + pgfrom_base, copy); _shift_data_right_pages()
219 } while ((len -= copy) != 0); _shift_data_right_pages()
230 * The copy is assumed to be non-overlapping.
237 size_t copy; _copy_to_pages() local
243 copy = PAGE_CACHE_SIZE - pgbase; _copy_to_pages()
244 if (copy > len) _copy_to_pages()
245 copy = len; _copy_to_pages()
248 memcpy(vto + pgbase, p, copy); _copy_to_pages()
251 len -= copy; _copy_to_pages()
255 pgbase += copy; _copy_to_pages()
261 p += copy; _copy_to_pages()
274 * The copy is assumed to be non-overlapping.
281 size_t copy; _copy_from_pages() local
287 copy = PAGE_CACHE_SIZE - pgbase; _copy_from_pages()
288 if (copy > len) _copy_from_pages()
289 copy = len; _copy_from_pages()
292 memcpy(p, vfrom + pgbase, copy); _copy_from_pages()
295 pgbase += copy; _copy_from_pages()
300 p += copy; _copy_from_pages()
302 } while ((len -= copy) != 0); _copy_from_pages()
319 size_t copy, offs; xdr_shrink_bufhead() local
332 copy = tail->iov_len - len; xdr_shrink_bufhead()
334 tail->iov_base, copy); xdr_shrink_bufhead()
337 copy = len; xdr_shrink_bufhead()
338 if (copy > pglen) xdr_shrink_bufhead()
339 copy = pglen; xdr_shrink_bufhead()
340 offs = len - copy; xdr_shrink_bufhead()
342 copy = 0; xdr_shrink_bufhead()
343 else if (copy > tail->iov_len - offs) xdr_shrink_bufhead()
344 copy = tail->iov_len - offs; xdr_shrink_bufhead()
345 if (copy != 0) xdr_shrink_bufhead()
349 copy); xdr_shrink_bufhead()
350 /* Do we also need to copy data from the head into the tail ? */ xdr_shrink_bufhead()
352 offs = copy = len - pglen; xdr_shrink_bufhead()
353 if (copy > tail->iov_len) xdr_shrink_bufhead()
354 copy = tail->iov_len; xdr_shrink_bufhead()
358 copy); xdr_shrink_bufhead()
368 copy = len; xdr_shrink_bufhead()
370 copy = pglen; xdr_shrink_bufhead()
373 copy); xdr_shrink_bufhead()
395 size_t copy; xdr_shrink_pagelen() local
412 copy = len; xdr_shrink_pagelen()
417 copy = tail->iov_len; xdr_shrink_pagelen()
421 copy); xdr_shrink_pagelen()
534 * page, then copy it back later in xdr_commit_encode. We use xdr_get_next_encode_buffer()
599 * cache pages (as in a zero-copy server read reply), except for the
847 * we copy the data into the scratch buffer in order to allow linear
1195 * try to find space for it at the end of the tail, copy it there, and
1216 * (We don't copy to the beginning because then we'd have xdr_buf_read_netobj()
1217 * to worry about doing a potentially overlapping copy. xdr_buf_read_netobj()
/linux-4.4.14/Documentation/mic/mpssd/
H A Dmpssd.c349 sum_iovec_len(struct mic_copy_desc *copy) sum_iovec_len() argument
354 for (i = 0; i < copy->iovcnt; i++) sum_iovec_len()
355 sum += copy->iov[i].iov_len; sum_iovec_len()
360 struct mic_copy_desc *copy) verify_out_len()
362 if (copy->out_len != sum_iovec_len(copy)) { verify_out_len()
363 mpsslog("%s %s %d BUG copy->out_len 0x%x len 0x%zx\n", verify_out_len()
365 copy->out_len, sum_iovec_len(copy)); verify_out_len()
366 assert(copy->out_len == sum_iovec_len(copy)); verify_out_len()
372 disp_iovec(struct mic_info *mic, struct mic_copy_desc *copy, disp_iovec() argument
377 for (i = 0; i < copy->iovcnt; i++) disp_iovec()
378 mpsslog("%s %s %d copy->iov[%d] addr %p len 0x%zx\n", disp_iovec()
380 copy->iov[i].iov_base, copy->iov[i].iov_len); disp_iovec()
389 struct mic_copy_desc *copy, ssize_t len) txrx_prepare()
391 copy->vr_idx = tx ? 0 : 1; txrx_prepare()
392 copy->update_used = true; txrx_prepare()
394 copy->iov[1].iov_len = len - sizeof(struct virtio_net_hdr); txrx_prepare()
396 copy->iov[0].iov_len = len; txrx_prepare()
402 struct mic_vring *vr, struct mic_copy_desc *copy) mic_virtio_copy()
406 ret = ioctl(fd, MIC_VIRTIO_COPY_DESC, copy); mic_virtio_copy()
552 struct mic_copy_desc copy; virtio_net() local
578 copy.iovcnt = 2; virtio_net()
609 copy.iov = iov0; virtio_net()
611 copy.iov, copy.iovcnt); virtio_net()
622 mpsslog("copy.out_len %d hdr->gso_type 0x%x\n", virtio_net()
623 copy.out_len, hdr->gso_type); virtio_net()
626 disp_iovec(mic, copy, __func__, __LINE__); virtio_net()
632 txrx_prepare(VIRTIO_ID_NET, 1, &tx_vr, &copy, virtio_net()
637 &copy); virtio_net()
644 verify_out_len(mic, &copy); virtio_net()
646 disp_iovec(mic, copy, __func__, __LINE__); virtio_net()
649 sum_iovec_len(&copy)); virtio_net()
654 disp_iovec(mic, &copy, __func__, __LINE__); virtio_net()
658 copy.iovcnt, sum_iovec_len(&copy)); virtio_net()
669 copy.iov = iov1; virtio_net()
670 txrx_prepare(VIRTIO_ID_NET, 0, &rx_vr, &copy, virtio_net()
676 &copy); virtio_net()
687 copy.out_len, virtio_net()
691 iov1[1].iov_len = copy.out_len - virtio_net()
693 verify_out_len(mic, &copy); virtio_net()
695 disp_iovec(mic, copy, __func__, virtio_net()
700 sum_iovec_len(copy)); virtio_net()
703 copy.iov, copy.iovcnt); virtio_net()
704 if (len != sum_iovec_len(&copy)) { virtio_net()
709 sum_iovec_len(&copy)); virtio_net()
712 disp_iovec(mic, &copy, __func__, virtio_net()
758 struct mic_copy_desc copy; virtio_console() local
800 copy.iovcnt = 1; virtio_console()
824 copy.iov = iov0; virtio_console()
825 len = readv(pty_fd, copy.iov, copy.iovcnt); virtio_console()
828 disp_iovec(mic, copy, __func__, __LINE__); virtio_console()
835 &copy, len); virtio_console()
839 &tx_vr, &copy); virtio_console()
846 verify_out_len(mic, &copy); virtio_console()
848 disp_iovec(mic, copy, __func__, __LINE__); virtio_console()
851 sum_iovec_len(copy)); virtio_console()
856 disp_iovec(mic, &copy, __func__, __LINE__); virtio_console()
861 copy.iovcnt, sum_iovec_len(&copy)); virtio_console()
868 copy.iov = iov1; virtio_console()
870 &copy, PAGE_SIZE); virtio_console()
874 &rx_vr, &copy); virtio_console()
877 iov1->iov_len = copy.out_len; virtio_console()
878 verify_out_len(mic, &copy); virtio_console()
880 disp_iovec(mic, copy, __func__, virtio_console()
885 sum_iovec_len(copy)); virtio_console()
888 copy.iov, copy.iovcnt); virtio_console()
889 if (len != sum_iovec_len(&copy)) { virtio_console()
894 sum_iovec_len(&copy)); virtio_console()
897 disp_iovec(mic, copy, __func__, virtio_console()
1115 struct mic_copy_desc copy; read_header() local
1119 copy.iov = &iovec; read_header()
1120 copy.iovcnt = 1; read_header()
1121 copy.vr_idx = 0; /* only one vring on virtio_block */ read_header()
1122 copy.update_used = false; /* do not update used index */ read_header()
1123 return ioctl(fd, MIC_VIRTIO_COPY_DESC, &copy); read_header()
1129 struct mic_copy_desc copy; transfer_blocks() local
1131 copy.iov = iovec; transfer_blocks()
1132 copy.iovcnt = iovcnt; transfer_blocks()
1133 copy.vr_idx = 0; /* only one vring on virtio_block */ transfer_blocks()
1134 copy.update_used = false; /* do not update used index */ transfer_blocks()
1135 return ioctl(fd, MIC_VIRTIO_COPY_DESC, &copy); transfer_blocks()
1153 struct mic_copy_desc copy; write_status() local
1157 copy.iov = &iovec; write_status()
1158 copy.iovcnt = 1; write_status()
1159 copy.vr_idx = 0; /* only one vring on virtio_block */ write_status()
1160 copy.update_used = true; /* Update used index */ write_status()
1161 return ioctl(fd, MIC_VIRTIO_COPY_DESC, &copy); write_status()
359 verify_out_len(struct mic_info *mic, struct mic_copy_desc *copy) verify_out_len() argument
388 txrx_prepare(int type, bool tx, struct mic_vring *vr, struct mic_copy_desc *copy, ssize_t len) txrx_prepare() argument
401 mic_virtio_copy(struct mic_info *mic, int fd, struct mic_vring *vr, struct mic_copy_desc *copy) mic_virtio_copy() argument
/linux-4.4.14/arch/x86/lib/
H A Dcopy_user_64.S6 * Functions to copy from and to user space.
63 * copy_user_generic_unrolled - memory copy with exception handling.
78 jb 20f /* less then 8 bytes, go to byte copy loop */
159 /* Some CPUs run faster using the string copy instructions.
162 * Only 4GB of copy is supported. This shouldn't be a problem
180 jb 2f /* less than 8 bytes, go to byte copy loop */
234 * copy_user_nocache - Uncached memory copy with exception handling
237 * Note: Cached memory copy is used when destination or size is not
245 /* If size is less than 8 bytes, go to 4-byte copy */
249 /* If destination is not 8-byte aligned, "cache" copy to align it */
252 /* Set 4x8-byte copy count and remainder */
258 /* Perform 4x8-byte nocache loop-copy */
281 /* Set 8-byte copy count and remainder */
288 /* Perform 8-byte nocache loop-copy */
302 /* If destination is not 4-byte aligned, go to byte copy: */
307 /* Set 4-byte copy count (1 or 0) and remainder */
313 /* Perform 4-byte nocache copy: */
323 /* Perform byte "cache" loop-copy for the remainder */
H A Dmemcpy_32.c33 /* Decide forward/backward copy mode */ memmove()
100 * Start to prepare for backward copy. memmove()
112 * Calculate copy position to tail. memmove()
137 * Calculate copy position to head. memmove()
/linux-4.4.14/mm/
H A Dprocess_vm_access.c26 * @pages: array of pointers to pages we want to copy
28 * @len: number of bytes to copy
29 * @iter: where to copy to/from locally
30 * @vm_write: 0 means copy from, 1 means copy to
39 /* Do the copy for each page */ process_vm_rw_pages()
42 size_t copy = PAGE_SIZE - offset; process_vm_rw_pages() local
45 if (copy > len) process_vm_rw_pages()
46 copy = len; process_vm_rw_pages()
49 copied = copy_page_from_iter(page, offset, copy, iter); process_vm_rw_pages()
52 copied = copy_page_to_iter(page, offset, copy, iter); process_vm_rw_pages()
55 if (copied < copy && iov_iter_count(iter)) process_vm_rw_pages()
62 /* Maximum number of pages kmalloc'd to hold struct page's during copy */
68 * @len: size of area to copy to/from
69 * @iter: where to copy to/from locally
74 * @vm_write: 0 means copy from, 1 means copy to
132 * @iter: where to copy to/from locally
133 * @rvec: iovec array specifying where to copy to/from in the other process
217 /* If we have managed to copy any data at all then process_vm_rw_core()
237 * @lvec: iovec array specifying where to copy to/from locally
239 * @rvec: iovec array specifying where to copy to/from in the other process
/linux-4.4.14/arch/x86/kernel/
H A Dcrash_dump_64.c14 * copy_oldmem_page - copy one page from "oldmem"
16 * @buf: target memory address for the copy; this can be in kernel address
18 * @csize: number of bytes to copy
19 * @offset: offset in bytes into the page (based on pfn) to begin the copy
H A Dcrash_dump_32.c34 * copy_oldmem_page - copy one page from "oldmem"
36 * @buf: target memory address for the copy; this can be in kernel address
38 * @csize: number of bytes to copy
39 * @offset: offset in bytes into the page (based on pfn) to begin the copy
/linux-4.4.14/arch/alpha/lib/
H A Dstrcpy.S21 br __stxcpy # do the copy
H A Dcopy_user.S9 * contains the right "bytes left to copy" value (and that it is updated
10 * only _after_ a successful copy). There is also some rather minor
23 * bytes left to copy in $0
/linux-4.4.14/fs/gfs2/
H A Dgfs2.h6 * modify, copy, or redistribute it subject to the terms and conditions
H A Dacl.h6 * modify, copy, or redistribute it subject to the terms and conditions
H A Dsys.h6 * modify, copy, or redistribute it subject to the terms and conditions
H A Dglops.h6 * modify, copy, or redistribute it subject to the terms and conditions
/linux-4.4.14/fs/dlm/
H A Dlvb_table.h7 ** modify, copy, or redistribute it subject to the terms and conditions
H A Dmidcomms.h8 ** modify, copy, or redistribute it subject to the terms and conditions
H A Dutil.h7 ** modify, copy, or redistribute it subject to the terms and conditions
H A Dlockspace.h8 ** modify, copy, or redistribute it subject to the terms and conditions
H A Dmemory.h8 ** modify, copy, or redistribute it subject to the terms and conditions
H A Drecoverd.h8 ** modify, copy, or redistribute it subject to the terms and conditions
H A Drequestqueue.h7 ** modify, copy, or redistribute it subject to the terms and conditions
H A Duser.h5 * modify, copy, or redistribute it subject to the terms and conditions
H A Dmidcomms.c8 ** modify, copy, or redistribute it subject to the terms and conditions
37 unsigned copy = len; copy_from_cb() local
39 if ((copy + offset) > limit) copy_from_cb()
40 copy = limit - offset; copy_from_cb()
41 memcpy(dst, base + offset, copy); copy_from_cb()
42 len -= copy; copy_from_cb()
44 memcpy(dst + copy, base, len); copy_from_cb()
H A Dast.h7 ** modify, copy, or redistribute it subject to the terms and conditions
H A Ddir.h8 ** modify, copy, or redistribute it subject to the terms and conditions
H A Dlowcomms.h8 ** modify, copy, or redistribute it subject to the terms and conditions
H A Drcom.h8 ** modify, copy, or redistribute it subject to the terms and conditions
/linux-4.4.14/include/uapi/linux/
H A Dip6_tunnel.h11 /* copy the traffic class field from the inner packet */
13 /* copy the flowlabel from the inner packet */
17 /* copy DSCP from the outer packet */
19 /* copy fwmark from inner packet */
H A Ddlm_netlink.h5 * modify, copy, or redistribute it subject to the terms and conditions
H A Ddlm_plock.h5 * modify, copy, or redistribute it subject to the terms and conditions
/linux-4.4.14/arch/mips/include/asm/mach-malta/
H A Dmach-gt64120.h2 * This is a direct copy of the ev96100.h file, with a global
/linux-4.4.14/arch/mips/kernel/
H A Dcrash_dump.c10 * copy_oldmem_page - copy one page from "oldmem"
12 * @buf: target memory address for the copy; this can be in kernel address
14 * @csize: number of bytes to copy
15 * @offset: offset in bytes into the page (based on pfn) to begin the copy
/linux-4.4.14/arch/sh/kernel/
H A Dcrash_dump.c13 * copy_oldmem_page - copy one page from "oldmem"
15 * @buf: target memory address for the copy; this can be in kernel address
17 * @csize: number of bytes to copy
18 * @offset: offset in bytes into the page (based on pfn) to begin the copy
/linux-4.4.14/arch/ia64/kernel/
H A Dcrash_dump.c17 * copy_oldmem_page - copy one page from "oldmem"
19 * @buf: target memory address for the copy; this can be in kernel address
21 * @csize: number of bytes to copy
22 * @offset: offset in bytes into the page (based on pfn) to begin the copy
/linux-4.4.14/arch/frv/lib/
H A Dmemcpy.S21 # to caller's fixup routine, aborting the remainder of the copy
44 # do byte by byte copy
53 # do halfword by halfword copy
64 # do word by word copy
75 # do double-word by double-word copy
85 # do quad-word by quad-word copy
102 # copy to/from userspace
/linux-4.4.14/drivers/misc/mic/host/
H A Dmic_fops.c80 struct mic_copy_desc copy; mic_ioctl() local
86 if (copy_from_user(&copy, argp, sizeof(copy))) mic_ioctl()
91 __func__, __LINE__, copy.iovcnt, copy.vr_idx, mic_ioctl()
92 copy.update_used); mic_ioctl()
94 ret = mic_virtio_copy_desc(mvdev, &copy); mic_ioctl()
103 &copy.out_len, sizeof(copy.out_len))) { mic_ioctl()
/linux-4.4.14/arch/parisc/kernel/
H A Dentry.S20 * You should have received a copy of the GNU General Public License
118 copy %r30, %r17
131 copy %r9,%r29
139 copy %r30,%r1
145 copy %r9,%r29
389 copy \spc,\tmp
415 copy %r0,\pte
419 copy \pmd,%r9
441 copy %r0,\pte
449 copy \index,\pgd
517 copy \pte,\tmp
606 * copy user pages at addresses congruent with the user
621 copy \va,\tmp1
782 copy %r31, %r2
817 copy %r26, %r28
829 * this way, then we will need to copy %sr3 in to PT_SR[3..7], and
912 copy %r0, %r25 /* long in_syscall = 0 */
918 copy %r16, %r26 /* struct pt_regs *regs */
923 copy %r16,%r29
1029 copy %r29, %r26 /* arg0 is pt_regs */
1030 copy %r29, %r16 /* save pt_regs */
1050 copy %r8,%r26
1054 copy %r8,%r26
1110 copy %r29, %r25 /* arg1 is pt_regs */
1116 copy %r25, %r16 /* save pt_regs */
1360 copy %r1,%r24
1397 copy %r0,%r1 /* Write zero to target register */
1750 copy %r0,%r28
1869 copy %r1,%r30 /* Restore user sp */
1961 copy %r25,%r16
1971 copy %r25,%r16
1989 copy %r3, %arg2
1996 copy %ret0, %arg0
1997 copy %ret1, %arg1
2001 copy %ret0, %rp
2002 copy %r23, %ret0
2003 copy %r24, %ret1
2016 copy %sp, %r1
2046 copy %r31, %rp
2057 * copy the value of the general register specified in r8 into
2068 copy %r0,%r1
2072 copy %r2,%r1
2074 copy %r3,%r1
2076 copy %r4,%r1
2078 copy %r5,%r1
2080 copy %r6,%r1
2082 copy %r7,%r1
2088 copy %r10,%r1
2090 copy %r11,%r1
2092 copy %r12,%r1
2094 copy %r13,%r1
2096 copy %r14,%r1
2098 copy %r15,%r1
2104 copy %r18,%r1
2106 copy %r19,%r1
2108 copy %r20,%r1
2110 copy %r21,%r1
2112 copy %r22,%r1
2114 copy %r23,%r1
2120 copy %r26,%r1
2122 copy %r27,%r1
2124 copy %r28,%r1
2126 copy %r29,%r1
2128 copy %r30,%r1
2130 copy %r31,%r1
2136 * copy the value of r1 into the general register specified in
2142 copy %r1,%r0
2144 copy %r1,%r1
2146 copy %r1,%r2
2148 copy %r1,%r3
2150 copy %r1,%r4
2152 copy %r1,%r5
2154 copy %r1,%r6
2156 copy %r1,%r7
2158 copy %r1,%r8
2160 copy %r1,%r9
2162 copy %r1,%r10
2164 copy %r1,%r11
2166 copy %r1,%r12
2168 copy %r1,%r13
2170 copy %r1,%r14
2172 copy %r1,%r15
2174 copy %r1,%r16
2176 copy %r1,%r17
2178 copy %r1,%r18
2180 copy %r1,%r19
2182 copy %r1,%r20
2184 copy %r1,%r21
2186 copy %r1,%r22
2188 copy %r1,%r23
2190 copy %r1,%r24
2192 copy %r1,%r25
2194 copy %r1,%r26
2196 copy %r1,%r27
2198 copy %r1,%r28
2200 copy %r1,%r29
2202 copy %r1,%r30
2204 copy %r1,%r31
/linux-4.4.14/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; qxl_draw_opaque_fb()
231 drawable->u.copy.src_area.bottom = height; qxl_draw_opaque_fb()
232 drawable->u.copy.src_area.left = 0; qxl_draw_opaque_fb()
233 drawable->u.copy.src_area.right = width; qxl_draw_opaque_fb()
235 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; qxl_draw_opaque_fb()
236 drawable->u.copy.scale_mode = 0; qxl_draw_opaque_fb()
237 drawable->u.copy.mask.flags = 0; qxl_draw_opaque_fb()
238 drawable->u.copy.mask.pos.x = 0; qxl_draw_opaque_fb()
239 drawable->u.copy.mask.pos.y = 0; qxl_draw_opaque_fb()
240 drawable->u.copy.mask.bitmap = 0; qxl_draw_opaque_fb()
242 drawable->u.copy.src_bitmap = qxl_draw_opaque_fb()
362 drawable->u.copy.src_area.top = 0; qxl_draw_dirty_fb()
363 drawable->u.copy.src_area.bottom = height; qxl_draw_dirty_fb()
364 drawable->u.copy.src_area.left = 0; qxl_draw_dirty_fb()
365 drawable->u.copy.src_area.right = width; qxl_draw_dirty_fb()
367 drawable->u.copy.rop_descriptor = SPICE_ROPD_OP_PUT; qxl_draw_dirty_fb()
368 drawable->u.copy.scale_mode = 0; qxl_draw_dirty_fb()
369 drawable->u.copy.mask.flags = 0; qxl_draw_dirty_fb()
370 drawable->u.copy.mask.pos.x = 0; qxl_draw_dirty_fb()
371 drawable->u.copy.mask.pos.y = 0; qxl_draw_dirty_fb()
372 drawable->u.copy.mask.bitmap = 0; qxl_draw_dirty_fb()
374 drawable->u.copy.src_bitmap = qxl_bo_physical_address(qdev, dimage->bo, 0); qxl_draw_dirty_fb()
/linux-4.4.14/drivers/block/
H A Dbrd.c199 size_t copy; copy_to_brd_setup() local
201 copy = min_t(size_t, n, PAGE_SIZE - offset); copy_to_brd_setup()
204 if (copy < n) { copy_to_brd_setup()
205 sector += copy >> SECTOR_SHIFT; copy_to_brd_setup()
239 size_t copy; copy_to_brd() local
241 copy = min_t(size_t, n, PAGE_SIZE - offset); copy_to_brd()
246 memcpy(dst + offset, src, copy); copy_to_brd()
249 if (copy < n) { copy_to_brd()
250 src += copy; copy_to_brd()
251 sector += copy >> SECTOR_SHIFT; copy_to_brd()
252 copy = n - copy; copy_to_brd()
257 memcpy(dst, src, copy); copy_to_brd()
271 size_t copy; copy_from_brd() local
273 copy = min_t(size_t, n, PAGE_SIZE - offset); copy_from_brd()
277 memcpy(dst, src + offset, copy); copy_from_brd()
280 memset(dst, 0, copy); copy_from_brd()
282 if (copy < n) { copy_from_brd()
283 dst += copy; copy_from_brd()
284 sector += copy >> SECTOR_SHIFT; copy_from_brd()
285 copy = n - copy; copy_from_brd()
289 memcpy(dst, src, copy); copy_from_brd()
292 memset(dst, 0, copy); copy_from_brd()
/linux-4.4.14/lib/zlib_inflate/
H A Dinflate.c104 unsigned copy, dist; zlib_updatewindow() local
108 /* copy state->wsize or less output bytes into the circular window */ zlib_updatewindow()
109 copy = out - strm->avail_out; zlib_updatewindow()
110 if (copy >= state->wsize) { zlib_updatewindow()
117 if (dist > copy) dist = copy; zlib_updatewindow()
118 memcpy(state->window + state->write, strm->next_out - copy, dist); zlib_updatewindow()
119 copy -= dist; zlib_updatewindow()
120 if (copy) { zlib_updatewindow()
121 memcpy(state->window, strm->next_out - copy, copy); zlib_updatewindow()
122 state->write = copy; zlib_updatewindow()
303 and there is no window currently, goto inf_leave will create one and copy
326 unsigned copy; /* number of stored or match bytes to copy */ zlib_inflate() local
327 unsigned char *from; /* where to copy match bytes from */ zlib_inflate()
330 unsigned len; /* length to copy for repeats, bits to drop */ zlib_inflate()
432 copy = state->length; zlib_inflate()
433 if (copy) { zlib_inflate()
434 if (copy > have) copy = have; zlib_inflate()
435 if (copy > left) copy = left; zlib_inflate()
436 if (copy == 0) goto inf_leave; zlib_inflate()
437 memcpy(put, next, copy); zlib_inflate()
438 have -= copy; zlib_inflate()
439 next += copy; zlib_inflate()
440 left -= copy; zlib_inflate()
441 put += copy; zlib_inflate()
442 state->length -= copy; zlib_inflate()
506 copy = 3 + BITS(2); zlib_inflate()
513 copy = 3 + BITS(3); zlib_inflate()
520 copy = 11 + BITS(7); zlib_inflate()
523 if (state->have + copy > state->nlen + state->ndist) { zlib_inflate()
528 while (copy--) zlib_inflate()
649 copy = out - left; zlib_inflate()
650 if (state->offset > copy) { /* copy from window */ zlib_inflate()
651 copy = state->offset - copy; zlib_inflate()
652 if (copy > state->write) { zlib_inflate()
653 copy -= state->write; zlib_inflate()
654 from = state->window + (state->wsize - copy); zlib_inflate()
657 from = state->window + (state->write - copy); zlib_inflate()
658 if (copy > state->length) copy = state->length; zlib_inflate()
660 else { /* copy from output */ zlib_inflate()
662 copy = state->length; zlib_inflate()
664 if (copy > left) copy = left; zlib_inflate()
665 left -= copy; zlib_inflate()
666 state->length -= copy; zlib_inflate()
669 } while (--copy); zlib_inflate()
H A Dinflate.h30 COPY, /* i/o: waiting for input or output to copy stored block */
38 MATCH, /* o: waiting for output space to copy string */
79 unsigned long check; /* protected copy of check value */
80 unsigned long total; /* protected copy of output count */
92 unsigned length; /* literal or length of data to copy */
93 unsigned offset; /* distance back to copy string from */
/linux-4.4.14/arch/metag/lib/
H A Dmemcpy.S15 ! If there are less than 16 bytes to copy use the byte copy loop
19 ! Simply copy a byte at a time
36 ! The destination address is not 8 byte aligned. We will copy bytes from
38 ! destination address alignment (i.e we should never copy more than 7
48 ! We have at least (16 - 7) = 9 bytes to copy - calculate the number of 8 byte
49 ! blocks, then jump to the unaligned copy loop or fall through to the aligned
50 ! copy loop as appropriate.
55 BNZ $Lunaligned_copy ! if unaligned, use unaligned copy loop
74 ! If there are any remaining bytes use the byte copy loop, otherwise we are done
91 ! if there is no mis-alignment after all, use the aligned copy loop
175 ! If there are no remaining bytes to copy, we are done.
179 ! address of the remaining bytes, and fall through to the byte copy loop.
/linux-4.4.14/arch/xtensa/lib/
H A Dmemcopy.S75 * Byte by byte copy
106 # copy 1 byte
115 # copy 2 bytes
133 mov a5, a2 # copy dst so that a2 is return value
141 _bany a3, a8, .Lsrcunaligned # then use shifting copy
143 * Destination and source are word-aligned, use word copy.
145 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
169 # copy 8 bytes
182 # copy 4 bytes
191 # copy 2 bytes
199 # copy 1 byte
211 # copy 16 bytes per iteration for word-aligned dst and unaligned src
249 # copy 8 bytes
261 # copy 4 bytes
276 # copy 2 bytes
286 # copy 1 byte
341 * Byte by byte copy
373 # copy 1 byte
382 # copy 2 bytes
401 mov a5, a2 # copy dst so that a2 is return value
415 _bany a3, a8, .Lbacksrcunaligned # then use shifting copy
417 * Destination and source are word-aligned, use word copy.
419 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
443 # copy 8 bytes
456 # copy 4 bytes
465 # copy 2 bytes
473 # copy 1 byte
487 # copy 16 bytes per iteration for word-aligned dst and unaligned src
524 # copy 8 bytes
536 # copy 4 bytes
552 # copy 2 bytes
562 # copy 1 byte
H A Dusercopy.S82 mov a5, a2 # copy dst so that a2 is return value
91 bnone a3, a8, .Laligned # then use word copy
104 # copy 1 byte
113 # copy 2 bytes
125 * Byte by byte copy
152 # copy 16 bytes per iteration for word-aligned dst and word-aligned src
179 # copy 8 bytes
188 # copy 4 bytes
195 # copy 2 bytes
202 # copy 1 byte
217 # copy 16 bytes per iteration for word-aligned dst and unaligned src
248 # copy 8 bytes
260 # copy 4 bytes
270 # copy 2 bytes
279 # copy 1 byte
/linux-4.4.14/arch/sh/include/asm/
H A Dkprobes.h28 /* Architecture specific copy of original instruction*/
30 /* copy of the original instruction */
/linux-4.4.14/arch/sparc/include/asm/
H A Dkprobes.h24 /* Architecture specific copy of original instruction*/
26 /* copy of the original instruction */
/linux-4.4.14/arch/hexagon/include/asm/
H A Dmmu.h13 * You should have received a copy of the GNU General Public License
26 * For the Hexagon Virtual Machine, it can be a copy
/linux-4.4.14/arch/ia64/lib/
H A Dcopy_user.S4 * It is used to copy date across the kernel/user boundary.
9 * errors on stores. Note that because of the nature of the copy
16 * in2 number of bytes to copy
37 #define COPY_BREAK 16 // we do byte copy below (must be >=16)
97 mov dst1=dst // copy because of rotation
101 mov src1=src // copy because of rotation
103 cmp.lt p10,p7=COPY_BREAK,len // if len > COPY_BREAK then long copy
126 // At this point we know we have more than 16 bytes to copy
131 // The basic idea is that we copy byte-by-byte at the head so
133 // Then copy the body using software pipelined 8-byte copy,
134 // shifting the two back-to-back words right and left, then copy
139 // to the dst1. Then copy zeros for the rest of dst1.
146 // copy some bytes from the 2nd word of the source that has the
152 // to copy the head to dst1, to start 8-byte copy software pipeline.
177 // For the case p14, we don't need to copy the shifted part to
203 (p9) br.cond.spnt 4f // if (16 > len1) skip 8-byte copy
214 // we have more than 8 bytes to copy.
296 // To fix that, we simply copy the tail byte by byte.
323 mov len1=len // copy because of rotation
326 // At this point we know we have more than 16 bytes to copy
386 // is 16 byte aligned AND we have less than 16 bytes to copy.
414 // Here we handle the case where the byte by byte copy fails
450 // This is the case where the byte by byte copy fails on the load
451 // when we copy the head. We need to finish the pipeline and copy
512 // either go for the 16byte copy loop OR the ld8 in the tail part.
514 // because it would mean you had 15bytes to copy in which case you
515 // would have defaulted to the byte by byte copy.
527 // at most 15 bytes to copy: no chance of crossing.
532 // 2 or 3 bytes left to copy and we did not execute the ld8 nor ld4.
H A Dmemcpy.S8 * in2: number of bytes to copy
44 * the more general copy routine handling arbitrary
66 mov dst=in0 // copy because of rotation
67 shr.u cnt=in2,3 // number of 8-byte words to copy
81 mov src=in1 // copy because of rotation
113 * copy loop. This performs relatively poorly on Itanium, but it doesn't
219 // At this point, dst is aligned to 8 bytes and there at least 16-7=9 bytes left to copy:
222 sub cnt=in2,cnt // cnt = number of bytes left to copy
230 shr.u t2=cnt,3 // t2 = number of 8-byte words left to copy
242 mov pr=cnt,0x38 // set (p5,p4,p3) to # of bytes last-word bytes to copy
258 // At this point, (p5,p4,p3) are set to the number of bytes left to copy (which is
/linux-4.4.14/tools/perf/util/
H A Dordered-events.h60 void ordered_events__set_copy_on_queue(struct ordered_events *oe, bool copy) ordered_events__set_copy_on_queue() argument
62 oe->copy_on_queue = copy; ordered_events__set_copy_on_queue()
/linux-4.4.14/arch/cris/arch-v32/lib/
H A Dchecksumcopy.S2 * A fast checksum+copy routine using movem
29 ;; do a movem copy and checksum
70 ;; copy and checksum the rest of the words
86 ;; copy and checksum the last byte
/linux-4.4.14/arch/cris/boot/dts/include/dt-bindings/pinctrl/
H A Dbcm2835.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/include/dt-bindings/pinctrl/
H A Dbcm2835.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/mips/include/asm/mach-lasat/
H A Dmach-gt64120.h2 * This is a direct copy of the ev96100.h file, with a global
/linux-4.4.14/arch/metag/boot/dts/include/dt-bindings/pinctrl/
H A Dbcm2835.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/mips/boot/dts/include/dt-bindings/pinctrl/
H A Dbcm2835.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/powerpc/boot/dts/include/dt-bindings/pinctrl/
H A Dbcm2835.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/hexagon/mm/
H A Dcopy_from_user.S2 * User memory copy functions for kernel
15 * You should have received a copy of the GNU General Public License
34 * copy from user: loads can fault
61 /* Normal copy loops. Do epilog. Use src-src_sav to compute distance */
H A Dcopy_to_user.S15 * You should have received a copy of the GNU General Public License
33 * copy to user: stores can fault
59 /* Normal copy loops. Use dst-dst_sav to compute distance */
/linux-4.4.14/arch/arm64/boot/dts/include/dt-bindings/pinctrl/
H A Dbcm2835.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/arm/boot/dts/include/dt-bindings/pinctrl/
H A Dbcm2835.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/arm/mach-imx/
H A D3ds_debugboard.h6 * License. You may obtain a copy of the GNU General Public License
H A Dcpuidle.h6 * License. You may obtain a copy of the GNU General Public License
H A Dheadsmp.S6 * License. You may obtain a copy of the GNU General Public License
H A Dimx31-dt.c5 * License. You may obtain a copy of the GNU General Public License
H A Dmach-imx50.c7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/mn10300/include/asm/
H A Dkprobes.h16 * You should have received a copy of the GNU General Public Licence
34 /* Architecture specific copy of original instruction */
36 /* copy of original instruction
/linux-4.4.14/drivers/gpu/drm/radeon/
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; rv770_copy_dma()
H A Ddrm_buffer.c7 * copy of this software and associated documentation files (the
9 * without limitation the rights to use, copy, modify, merge, publish,
95 * size: The Number of bytes to copy.
104 DRM_ERROR("Requesting to copy %d bytes to a drm buffer with" drm_buffer_copy_from_user()
115 DRM_ERROR("Failed to copy user data (%p) to drm buffer" drm_buffer_copy_from_user()
165 /* The object is split which forces copy to temporary object.*/ drm_buffer_read_object()
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,
226 .copy = {
231 .copy = &r100_copy_blit,
294 .copy = {
299 .copy = &r100_copy_blit,
390 .copy = {
395 .copy = &r100_copy_blit,
458 .copy = {
463 .copy = &r100_copy_blit,
526 .copy = {
531 .copy = &r100_copy_blit,
594 .copy = {
599 .copy = &r100_copy_blit,
662 .copy = {
667 .copy = &r100_copy_blit,
730 .copy = {
735 .copy = &r200_copy_dma,
798 .copy = {
803 .copy = &r100_copy_blit,
866 .copy = {
871 .copy = &r100_copy_blit,
963 .copy = {
968 .copy = &r600_copy_cpdma,
1049 .copy = {
1054 .copy = &r600_copy_cpdma,
1142 .copy = {
1147 .copy = &r600_copy_cpdma,
1248 .copy = {
1253 .copy = &rv770_copy_dma,
1368 .copy = {
1373 .copy = &evergreen_copy_dma,
1462 .copy = {
1467 .copy = &evergreen_copy_dma,
1555 .copy = {
1560 .copy = &evergreen_copy_dma,
1703 .copy = {
1708 .copy = &evergreen_copy_dma,
1823 .copy = {
1828 .copy = &evergreen_copy_dma,
1961 .copy = {
1966 .copy = &si_copy_dma,
2131 .copy = {
2136 .copy = &cik_copy_dma,
2244 .copy = {
2249 .copy = &cik_copy_dma,
H A Drs100d.h7 * copy of this software and associated documentation files (the "Software"),
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Drv200d.h7 * copy of this software and associated documentation files (the "Software"),
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Drv350d.h7 * copy of this software and associated documentation files (the "Software"),
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Dsi_blit_shaders.h5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
/linux-4.4.14/arch/x86/include/asm/
H A Dkprobes.h16 * You should have received a copy of the GNU General Public License
66 /* Architecture specific copy of original instruction*/
68 /* copy of the original instruction */
74 * added a relative jump after the instruction copy in insn,
83 /* copy of the original instructions */
H A Dpmem.h23 * arch_memcpy_to_pmem - copy data to persistent memory
24 * @dst: destination buffer for the copy
25 * @src: source buffer for the copy
26 * @n: length of the copy in bytes
100 * arch_copy_from_iter_pmem - copy data from an iterator to PMEM
102 * @bytes: number of bytes to copy
/linux-4.4.14/sound/core/
H A Dmemory.c17 * You should have received a copy of the GNU General Public License
29 * copy_to_user_fromio - copy data from mmio-space to user-space
32 * @count: the data size to copy in bytes
62 * copy_from_user_toio - copy data from user-space to mmio-space
65 * @count: the data size to copy in bytes
/linux-4.4.14/arch/parisc/lib/
H A Dlusercopy.S20 * You should have received a copy of the GNU General Public License
53 copy %r0,%r1
82 copy %r25,%r28
108 copy %r26,%r24
127 copy %r24,%r26 /* reset r26 so 0 is returned on fault */
/linux-4.4.14/drivers/staging/goldfish/
H A Dgoldfish_audio.c133 /* copy data to user space */ goldfish_audio_read()
153 ssize_t copy = count; goldfish_audio_write() local
155 if (copy > WRITE_BUFFER_SIZE) goldfish_audio_write()
156 copy = WRITE_BUFFER_SIZE; goldfish_audio_write()
166 /* copy from user space to the appropriate buffer */ goldfish_audio_write()
167 if (copy_from_user(kbuf, buf, copy)) { goldfish_audio_write()
179 AUDIO_WRITE(data, AUDIO_WRITE_BUFFER_1, copy); goldfish_audio_write()
182 AUDIO_WRITE(data, AUDIO_WRITE_BUFFER_2, copy); goldfish_audio_write()
186 buf += copy; goldfish_audio_write()
187 result += copy; goldfish_audio_write()
188 count -= copy; goldfish_audio_write()
/linux-4.4.14/include/net/caif/
H A Dcfpkt.h29 * data Pointer to copy the header data into.
30 * len Length of head data to copy.
40 * data Pointer to copy the header data into.
41 * len Length of head data to copy.
50 * data Pointer to copy the trailer data into.
51 * len Length of header data to copy.
61 * data Pointer to data to copy into the header.
62 * len Length of header data to copy.
72 * data Pointer to data to copy into the trailer.
73 * len Length of trailer data to copy.
101 * data Pointer to data to copy into the packet body.
/linux-4.4.14/drivers/w1/slaves/
H A Dw1_ds2431.c211 int copy; eeprom_write() local
235 /* copy at most to the boundary of the PAGE or len */ eeprom_write()
236 copy = W1_F2D_SCRATCH_SIZE - eeprom_write()
239 if (copy > len) eeprom_write()
240 copy = len; eeprom_write()
242 memcpy(&tmp[addr & W1_F2D_SCRATCH_MASK], buf, copy); eeprom_write()
250 copy = W1_F2D_SCRATCH_SIZE; eeprom_write()
251 if (w1_f2d_write(sl, addr, copy, buf) < 0) { eeprom_write()
256 buf += copy; eeprom_write()
257 addr += copy; eeprom_write()
258 len -= copy; eeprom_write()
/linux-4.4.14/arch/sh/lib/
H A Dmemcpy.S23 bt/s 7f ! if it's too small, copy a byte at once
51 ! copy a byte at once
80 2: ! Second, copy a long word at once
88 ! Third, copy a byte at once, if necessary
140 ! Third, copy a byte at once, if necessary
168 ! Third, copy a byte at once, if necessary
222 ! Third, copy a byte at once, if necessary
H A Dmemmove.S32 bt/s 8f ! if it's too small, copy a byte at once
61 ! copy a byte at once
93 2: ! Second, copy a long word at once
102 ! Third, copy a byte at once, if necessary
159 ! Third, copy a byte at once, if necessary
188 ! Third, copy a byte at once, if necessary
248 ! Third, copy a byte at once, if necessary
/linux-4.4.14/arch/s390/kvm/
H A Dgaccess.h81 * @x: value to copy to guest
107 * write_guest_lc - copy data from kernel space to guest vcpu's lowcore
111 * @len: number of bytes to copy
133 * read_guest_lc - copy data from guest vcpu's lowcore to kernel space
137 * @len: number of bytes to copy
170 * write_guest - copy data from kernel space to guest space
175 * @len: number of bytes to copy
178 * In order to copy data to guest space the PSW of the vcpu is inspected:
222 * read_guest - copy data from guest space to kernel space
227 * @len: number of bytes to copy
242 * write_guest_abs - copy data from kernel space to guest space absolute
246 * @len: number of bytes to copy
265 * read_guest_abs - copy data from guest space absolute to kernel space
269 * @len: number of bytes to copy
288 * write_guest_real - copy data from kernel space to guest space real
292 * @len: number of bytes to copy
311 * read_guest_real - copy data from guest space real to kernel space
315 * @len: number of bytes to copy
/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_compat.h17 * more details, a copy of which can be found in the file COPYING *
30 However on a big-endian host, copy 4 bytes at a time,
85 /* convert bytes in argument list to word count for copy function */ lpfc_memcpy_to_slim()
/linux-4.4.14/drivers/net/ethernet/sfc/
H A Dsiena_sriov.c406 struct efx_memcpy_req copy[4]; __efx_siena_sriov_push_vf_status() local
418 memset(copy, '\0', sizeof(copy)); __efx_siena_sriov_push_vf_status()
420 copy[0].from_buf = &status->generation_start; __efx_siena_sriov_push_vf_status()
421 copy[0].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status()
422 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status, __efx_siena_sriov_push_vf_status()
424 copy[0].length = sizeof(status->generation_start); __efx_siena_sriov_push_vf_status()
430 copy[1].from_rid = efx->pci_dev->devfn; __efx_siena_sriov_push_vf_status()
431 copy[1].from_addr = nic_data->vfdi_status.dma_addr + data_offset; __efx_siena_sriov_push_vf_status()
432 copy[1].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status()
433 copy[1].to_addr = vf->status_addr + data_offset; __efx_siena_sriov_push_vf_status()
434 copy[1].length = status->length - data_offset; __efx_siena_sriov_push_vf_status()
446 copy[pos].from_buf = NULL; __efx_siena_sriov_push_vf_status()
447 copy[pos].from_rid = efx->pci_dev->devfn; __efx_siena_sriov_push_vf_status()
448 copy[pos].from_addr = epp->addr; __efx_siena_sriov_push_vf_status()
449 copy[pos].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status()
450 copy[pos].to_addr = vf->peer_page_addrs[count]; __efx_siena_sriov_push_vf_status()
451 copy[pos].length = EFX_PAGE_SIZE; __efx_siena_sriov_push_vf_status()
453 if (++pos == ARRAY_SIZE(copy)) { __efx_siena_sriov_push_vf_status()
454 efx_siena_sriov_memcpy(efx, copy, ARRAY_SIZE(copy)); __efx_siena_sriov_push_vf_status()
461 copy[pos].from_buf = &status->generation_end; __efx_siena_sriov_push_vf_status()
462 copy[pos].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status()
463 copy[pos].to_addr = vf->status_addr + offsetof(struct vfdi_status, __efx_siena_sriov_push_vf_status()
465 copy[pos].length = sizeof(status->generation_end); __efx_siena_sriov_push_vf_status()
466 efx_siena_sriov_memcpy(efx, copy, pos + 1); __efx_siena_sriov_push_vf_status()
878 struct efx_memcpy_req copy[2]; efx_siena_sriov_vfdi() local
882 memset(copy, '\0', sizeof(copy)); efx_siena_sriov_vfdi()
883 copy[0].from_rid = vf->pci_rid; efx_siena_sriov_vfdi()
884 copy[0].from_addr = vf->req_addr; efx_siena_sriov_vfdi()
885 copy[0].to_rid = efx->pci_dev->devfn; efx_siena_sriov_vfdi()
886 copy[0].to_addr = vf->buf.dma_addr; efx_siena_sriov_vfdi()
887 copy[0].length = EFX_PAGE_SIZE; efx_siena_sriov_vfdi()
888 rc = efx_siena_sriov_memcpy(efx, copy, 1); efx_siena_sriov_vfdi()
922 memset(copy, '\0', sizeof(copy)); efx_siena_sriov_vfdi()
923 copy[0].from_buf = &req->rc; efx_siena_sriov_vfdi()
924 copy[0].to_rid = vf->pci_rid; efx_siena_sriov_vfdi()
925 copy[0].to_addr = vf->req_addr + offsetof(struct vfdi_req, rc); efx_siena_sriov_vfdi()
926 copy[0].length = sizeof(req->rc); efx_siena_sriov_vfdi()
927 copy[1].from_buf = &req->op; efx_siena_sriov_vfdi()
928 copy[1].to_rid = vf->pci_rid; efx_siena_sriov_vfdi()
929 copy[1].to_addr = vf->req_addr + offsetof(struct vfdi_req, op); efx_siena_sriov_vfdi()
930 copy[1].length = sizeof(req->op); efx_siena_sriov_vfdi()
932 (void)efx_siena_sriov_memcpy(efx, copy, ARRAY_SIZE(copy)); efx_siena_sriov_vfdi()
1050 /* no copy operation; channel must not be reallocated */
/linux-4.4.14/arch/cris/boot/dts/include/dt-bindings/dma/
H A Dsun4i-a10.h21 * You should have received a copy of the GNU General Public
29 * obtaining a copy of this software and associated documentation
32 * copy, modify, merge, publish, distribute, sublicense, and/or
/linux-4.4.14/kernel/trace/
H A Dtrace_seq.c78 * copy to user routines. To simplify formating of a trace
138 * copy to user routines. To simplify formating of a trace
203 * copy to user routines. This function records a simple string
231 * copy to user routines. This function records a simple charater
254 * @mem: The raw memory to copy into the buffer
255 * @len: The length of the raw memory to copy (in bytes)
281 * @len: The length of the raw memory to copy (in bytes)
315 * trace_seq_path - copy a path into the sequence buffer
353 * trace_seq_to_user - copy the squence buffer to user space
355 * @ubuf: The userspace memory location to copy to
356 * @cnt: The amount to copy
370 * Returns -EFAULT if the copy to userspace fails.
/linux-4.4.14/include/dt-bindings/dma/
H A Dsun4i-a10.h21 * You should have received a copy of the GNU General Public
29 * obtaining a copy of this software and associated documentation
32 * copy, modify, merge, publish, distribute, sublicense, and/or
/linux-4.4.14/arch/mips/include/asm/
H A Dkprobes.h17 * You should have received a copy of the GNU General Public License
53 /* Architecture specific copy of original instruction*/
55 /* copy of the original instruction */
/linux-4.4.14/arch/s390/include/asm/
H A Dkprobes.h16 * You should have received a copy of the GNU General Public License
59 /* Architecture specific copy of original instruction */
61 /* copy of original instruction */
/linux-4.4.14/arch/metag/boot/dts/include/dt-bindings/dma/
H A Dsun4i-a10.h21 * You should have received a copy of the GNU General Public
29 * obtaining a copy of this software and associated documentation
32 * copy, modify, merge, publish, distribute, sublicense, and/or
/linux-4.4.14/arch/mips/boot/dts/include/dt-bindings/dma/
H A Dsun4i-a10.h21 * You should have received a copy of the GNU General Public
29 * obtaining a copy of this software and associated documentation
32 * copy, modify, merge, publish, distribute, sublicense, and/or
/linux-4.4.14/arch/powerpc/boot/dts/include/dt-bindings/dma/
H A Dsun4i-a10.h21 * You should have received a copy of the GNU General Public
29 * obtaining a copy of this software and associated documentation
32 * copy, modify, merge, publish, distribute, sublicense, and/or
/linux-4.4.14/arch/arm64/boot/dts/include/dt-bindings/dma/
H A Dsun4i-a10.h21 * You should have received a copy of the GNU General Public
29 * obtaining a copy of this software and associated documentation
32 * copy, modify, merge, publish, distribute, sublicense, and/or
/linux-4.4.14/arch/arm/boot/dts/include/dt-bindings/dma/
H A Dsun4i-a10.h21 * You should have received a copy of the GNU General Public
29 * obtaining a copy of this software and associated documentation
32 * copy, modify, merge, publish, distribute, sublicense, and/or
/linux-4.4.14/drivers/usb/chipidea/
H A Dci_hdrc_imx.h5 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/drivers/gpu/host1x/hw/
H A Dhost1x02.h15 * You should have received a copy of the GNU General Public License
H A Dhost1x04.h15 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/x86/um/shared/sysdep/
H A Dfaultinfo_32.h15 * both structures, thus making it easy to copy the
H A Dfaultinfo_64.h15 * both structures, thus making it easy to copy the
/linux-4.4.14/drivers/clk/mxs/
H A Dclk.c5 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/arch/c6x/lib/
H A Dchecksum.c13 * copy from fs while checksumming, otherwise like csum_partial
/linux-4.4.14/arch/cris/arch-v10/lib/
H A Dchecksumcopy.S2 * A fast checksum+copy routine using movem
35 ;; do a movem copy and checksum
98 ;; copy and checksum the rest of the words
120 ;; copy and checksum the last byte
/linux-4.4.14/arch/cris/boot/dts/include/dt-bindings/gpio/
H A Dmeson8b-gpio.h11 * You should have received a copy of the GNU General Public License
/linux-4.4.14/net/batman-adv/
H A Dbat_algo.h14 * You should have received a copy of the GNU General Public License
/linux-4.4.14/include/clocksource/
H A Dmetag_generic.h13 * You should have received a copy of the GNU General Public License
/linux-4.4.14/include/dt-bindings/gpio/
H A Dmeson8b-gpio.h11 * You should have received a copy of the GNU General Public License
/linux-4.4.14/include/linux/power/
H A Djz4740-battery.h9 * You should have received a copy of the GNU General Public License along
/linux-4.4.14/include/linux/raid/
H A Dmd_u.h10 You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_nvram.h10 * Initialized the local nvram copy from the target address and checks
/linux-4.4.14/arch/mips/include/asm/mach-jz4740/
H A Dclock.h9 * You should have received a copy of the GNU General Public License along
H A Ddma.h10 * You should have received a copy of the GNU General Public License along
/linux-4.4.14/arch/m68k/math-emu/
H A Dfp_trig.h8 I hereby give permission, free of charge, to copy, modify, and
/linux-4.4.14/arch/metag/boot/dts/include/dt-bindings/gpio/
H A Dmeson8b-gpio.h11 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/mips/boot/dts/include/dt-bindings/gpio/
H A Dmeson8b-gpio.h11 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/nios2/include/asm/
H A Dprom.h13 * You should have received a copy of the GNU General Public License along with
H A Dshmparam.h13 * You should have received a copy of the GNU General Public License along with
H A Dsignal.h13 * You should have received a copy of the GNU General Public License along with
H A Dtimex.h12 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/nios2/include/uapi/asm/
H A Dsignal.h13 * You should have received a copy of the GNU General Public License along with
/linux-4.4.14/arch/powerpc/boot/dts/include/dt-bindings/gpio/
H A Dmeson8b-gpio.h11 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/arm64/boot/dts/include/dt-bindings/gpio/
H A Dmeson8b-gpio.h11 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/arm64/include/asm/
H A Darm-cci.h15 * You should have received a copy of the GNU General Public License
H A Dexec.h15 * You should have received a copy of the GNU General Public License
H A Dmemblock.h13 * You should have received a copy of the GNU General Public License
H A Dmodule.h13 * You should have received a copy of the GNU General Public License
H A Dsparsemem.h13 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/arm64/include/uapi/asm/
H A Dauxvec.h13 * You should have received a copy of the GNU General Public License
H A Dbitsperlong.h13 * You should have received a copy of the GNU General Public License
H A Dbyteorder.h13 * You should have received a copy of the GNU General Public License
H A Dparam.h13 * You should have received a copy of the GNU General Public License
H A Dsetup.h16 * You should have received a copy of the GNU General Public License
H A Dsiginfo.h13 * You should have received a copy of the GNU General Public License
H A Dsignal.h13 * You should have received a copy of the GNU General Public License
H A Dstatfs.h13 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/blackfin/lib/
H A Dmemcpy.S2 * internal version of memcpy(), issued by the compiler to copy blocks of
55 /* Both addresses are word-aligned, so we can copy
71 /* There's at least eight bytes to copy. */
87 /* Any remaining bytes to copy? */
/linux-4.4.14/arch/arm/mach-tegra/
H A Dirq.h13 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/arm/boot/dts/include/dt-bindings/gpio/
H A Dmeson8b-gpio.h11 * You should have received a copy of the GNU General Public License
/linux-4.4.14/arch/arm/boot/dts/
H A Dmxs-pinfunc.h7 * License. You may obtain a copy of the GNU General Public License
/linux-4.4.14/sound/soc/cirrus/
H A Dep93xx-pcm.h13 * You should have received a copy of the GNU General Public License
/linux-4.4.14/include/linux/irqchip/
H A Dingenic.h9 * You should have received a copy of the GNU General Public License along
/linux-4.4.14/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
885 * Generic handler to do any pre-copy work.
891 * store it in \a copy.
895 static int ll_ioc_copy_start(struct super_block *sb, struct hsm_copy *copy) ll_ioc_copy_start() argument
901 /* Forge a hsm_progress based on data from copy. */ ll_ioc_copy_start()
902 hpk.hpk_fid = copy->hc_hai.hai_fid; ll_ioc_copy_start()
903 hpk.hpk_cookie = copy->hc_hai.hai_cookie; ll_ioc_copy_start()
904 hpk.hpk_extent.offset = copy->hc_hai.hai_extent.offset; ll_ioc_copy_start()
911 if (copy->hc_hai.hai_action == HSMA_ARCHIVE) { ll_ioc_copy_start()
916 inode = search_inode_for_lustre(sb, &copy->hc_hai.hai_fid); ll_ioc_copy_start()
931 PFID(&copy->hc_hai.hai_fid), rc, ll_ioc_copy_start()
932 copy->hc_hai.hai_cookie); ll_ioc_copy_start()
941 copy->hc_data_version = data_version; ll_ioc_copy_start()
952 * Generic handler to do any post-copy work.
955 * that copy is finished and whether it was successful or not.
959 * with the version saved in ll_ioc_copy_start(). If they do not match, copy
966 static int ll_ioc_copy_end(struct super_block *sb, struct hsm_copy *copy) ll_ioc_copy_end() argument
973 /* Take care: copy->hc_hai.hai_action, len, gid and data are not ll_ioc_copy_end()
974 * initialized if copy_end was called with copy == NULL. ll_ioc_copy_end()
977 /* Forge a hsm_progress based on data from copy. */ ll_ioc_copy_end()
978 hpk.hpk_fid = copy->hc_hai.hai_fid; ll_ioc_copy_end()
979 hpk.hpk_cookie = copy->hc_hai.hai_cookie; ll_ioc_copy_end()
980 hpk.hpk_extent = copy->hc_hai.hai_extent; ll_ioc_copy_end()
981 hpk.hpk_flags = copy->hc_flags | HP_FLAG_COMPLETED; ll_ioc_copy_end()
982 hpk.hpk_errval = copy->hc_errval; ll_ioc_copy_end()
990 if (((copy->hc_hai.hai_action == HSMA_ARCHIVE) || ll_ioc_copy_end()
991 (copy->hc_hai.hai_action == HSMA_RESTORE)) && ll_ioc_copy_end()
992 (copy->hc_errval == 0)) { ll_ioc_copy_end()
997 inode = search_inode_for_lustre(sb, &copy->hc_hai.hai_fid); ll_ioc_copy_end()
1007 copy->hc_hai.hai_action == HSMA_ARCHIVE); ll_ioc_copy_end()
1022 if ((copy->hc_hai.hai_action == HSMA_ARCHIVE) && ll_ioc_copy_end()
1023 (copy->hc_data_version != data_version)) { ll_ioc_copy_end()
1026 PFID(&copy->hc_hai.hai_fid), ll_ioc_copy_end()
1027 copy->hc_data_version, data_version); ll_ioc_copy_end()
1052 void *copy; copy_and_ioctl() local
1055 copy = kzalloc(size, GFP_NOFS); copy_and_ioctl()
1056 if (!copy) copy_and_ioctl()
1059 if (copy_from_user(copy, data, size)) { copy_and_ioctl()
1064 rc = obd_iocontrol(cmd, exp, size, copy, NULL); copy_and_ioctl()
1066 kfree(copy); copy_and_ioctl()
1824 struct hsm_copy *copy; ll_dir_ioctl() local
1827 copy = memdup_user((char *)arg, sizeof(*copy)); ll_dir_ioctl()
1828 if (IS_ERR(copy)) ll_dir_ioctl()
1829 return PTR_ERR(copy); ll_dir_ioctl()
1831 rc = ll_ioc_copy_start(inode->i_sb, copy); ll_dir_ioctl()
1832 if (copy_to_user((char *)arg, copy, sizeof(*copy))) ll_dir_ioctl()
1835 kfree(copy); ll_dir_ioctl()
1839 struct hsm_copy *copy; ll_dir_ioctl() local
1842 copy = memdup_user((char *)arg, sizeof(*copy)); ll_dir_ioctl()
1843 if (IS_ERR(copy)) ll_dir_ioctl()
1844 return PTR_ERR(copy); ll_dir_ioctl()
1846 rc = ll_ioc_copy_end(inode->i_sb, copy); ll_dir_ioctl()
1847 if (copy_to_user((char *)arg, copy, sizeof(*copy))) ll_dir_ioctl()
1850 kfree(copy); ll_dir_ioctl()
/linux-4.4.14/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_prim.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
/linux-4.4.14/drivers/staging/lustre/include/linux/lnet/
H A Dlnet.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
/linux-4.4.14/drivers/staging/lustre/lnet/selftest/
H A Dtimer.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
/linux-4.4.14/drivers/staging/lustre/lustre/fid/
H A Dfid_internal.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
/linux-4.4.14/drivers/staging/lustre/lustre/include/
H A Dlustre_acl.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
H A Dlustre_debug.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
H A Dlustre_intent.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
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
H A Dlinux-mem.c9 * General Public License version 2 for more details (a copy is included
12 * You should have received a copy of the GNU General Public License
H A Dlinux-tracefile.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
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
H A Dlovsub_io.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
H A Dlovsub_page.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
/linux-4.4.14/drivers/staging/lustre/lustre/mgc/
H A Dmgc_internal.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
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
H A Dlu_ref.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
H A Duuid.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
/linux-4.4.14/drivers/staging/lustre/lustre/obdecho/
H A Decho_internal.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
/linux-4.4.14/drivers/mtd/maps/
H A Dgpio-addr-flash.c96 * gf_copy_from() - copy a chunk of data from the flash
98 * @to: memory to copy to
99 * @from: flash offset to copy from
100 * @len: how much to copy
143 * gf_copy_to() - copy a chunk of data to the flash
145 * @to: flash offset to copy to
146 * @from: memory to copy from
147 * @len: how much to copy
/linux-4.4.14/drivers/gpu/drm/tdfx/
H A Dtdfx_drv.h9 * copy of this software and associated documentation files (the "Software"),
11 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
/linux-4.4.14/drivers/gpu/drm/vgem/
H A Dvgem_drv.h6 * copy of this software and associated documentation files (the "Software"),
8 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
/linux-4.4.14/drivers/gpu/drm/virtio/
H A Dvirtgpu_debugfs.c6 * a copy of this software and associated documentation files (the
8 * without limitation the rights to use, copy, modify, merge, publish,
/linux-4.4.14/drivers/gpu/drm/vmwgfx/device_include/
H A Dsvga3d_reg.h5 * obtaining a copy of this software and associated documentation
7 * restriction, including without limitation the rights to use, copy,
H A Dsvga_types.h5 * obtaining a copy of this software and associated documentation
7 * restriction, including without limitation the rights to use, copy,
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_reg.h7 * copy of this software and associated documentation files (the
9 * without limitation the rights to use, copy, modify, merge, publish,
/linux-4.4.14/drivers/media/usb/cx231xx/
H A Dcx231xx-vbi.h17 You should have received a copy of the GNU General Public License
49 /* vbi data copy functions */
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/ce/
H A Dgm204.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dacpi.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dbasegk104.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Dbasegk110.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Dbasegt200.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Dbasegt215.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Dchangf119.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
H A Dcoreg94.c5 * copy of this software and associated documentation files (the "Software"),
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,

Completed in 4010 milliseconds

1234567891011>>