/linux-4.1.27/arch/m32r/boot/compressed/ |
H A D | boot.h | 19 * 3. relocate copy & jump code 26 * | boot(copy&jump) | 38 * | boot(copy&jump) |
|
/linux-4.1.27/net/core/ |
H A D | datagram.c | 350 * @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 D | skbuff.c | 19 * Alan Cox : skb_copy copy arp field 810 /* We do not copy old->sk */ __copy_skb_header() 912 * skb_copy_ubufs - copy userspace skb frags buffers to kernel 917 * It will copy all frags into kernel and drop the reference 924 * to allocate kernel memory to copy to. 1048 * skb_copy - create private copy of an sk_buff 1049 * @skb: buffer to copy 1052 * Make a copy of both an &sk_buff and its data. This is used when the 1053 * caller wishes to modify the data and needs a private copy of the 1088 * __pskb_copy_fclone - create copy of an sk_buff with private head. 1089 * @skb: buffer to copy 1092 * @fclone: if true allocate the copy of the skb from the fclone 1094 * to true for the cases where the copy will likely be cloned 1096 * Make a copy of both an &sk_buff and part of its data, located 1099 * private copy of the header to alter. Returns %NULL on failure 1158 * Expands (or creates identical copy, if @nhead and @ntail are zero) 1205 /* copy this zero copy skb frags */ pskb_expand_head() 1244 /* Make private copy of skb with writable head and some headroom */ 1266 * skb_copy_expand - copy and expand sk_buff 1267 * @skb: buffer to copy 1272 * Make a copy of both an &sk_buff and its data and while doing so 1276 * private copy of the data to alter as well as more space for new fields. 1288 * Allocate the copy buffer skb_copy_expand() 1694 * skb_copy_bits - copy bits from skb to kernel buffer 1698 * @len: number of bytes to copy 1712 int i, copy; skb_copy_bits() local 1718 if ((copy = start - offset) > 0) { skb_copy_bits() 1719 if (copy > len) skb_copy_bits() 1720 copy = len; skb_copy_bits() 1721 skb_copy_from_linear_data_offset(skb, offset, to, copy); skb_copy_bits() 1722 if ((len -= copy) == 0) skb_copy_bits() 1724 offset += copy; skb_copy_bits() 1725 to += copy; skb_copy_bits() 1735 if ((copy = end - offset) > 0) { skb_copy_bits() 1738 if (copy > len) skb_copy_bits() 1739 copy = len; skb_copy_bits() 1744 copy); skb_copy_bits() 1747 if ((len -= copy) == 0) skb_copy_bits() 1749 offset += copy; skb_copy_bits() 1750 to += copy; skb_copy_bits() 1761 if ((copy = end - offset) > 0) { skb_walk_frags() 1762 if (copy > len) skb_walk_frags() 1763 copy = len; skb_walk_frags() 1764 if (skb_copy_bits(frag_iter, offset - start, to, copy)) skb_walk_frags() 1766 if ((len -= copy) == 0) skb_walk_frags() 1768 offset += copy; skb_walk_frags() 1769 to += copy; skb_walk_frags() 1898 * we can avoid a copy since we own the head portion of this page. __skb_splice_bits() 1990 * @len: number of bytes to copy 2001 int i, copy; skb_store_bits() local 2006 if ((copy = start - offset) > 0) { skb_store_bits() 2007 if (copy > len) skb_store_bits() 2008 copy = len; skb_store_bits() 2009 skb_copy_to_linear_data_offset(skb, offset, from, copy); skb_store_bits() 2010 if ((len -= copy) == 0) skb_store_bits() 2012 offset += copy; skb_store_bits() 2013 from += copy; skb_store_bits() 2023 if ((copy = end - offset) > 0) { skb_store_bits() 2026 if (copy > len) skb_store_bits() 2027 copy = len; skb_store_bits() 2031 from, copy); skb_store_bits() 2034 if ((len -= copy) == 0) skb_store_bits() 2036 offset += copy; skb_store_bits() 2037 from += copy; skb_store_bits() 2048 if ((copy = end - offset) > 0) { skb_walk_frags() 2049 if (copy > len) skb_walk_frags() 2050 copy = len; skb_walk_frags() 2052 from, copy)) skb_walk_frags() 2054 if ((len -= copy) == 0) skb_walk_frags() 2056 offset += copy; skb_walk_frags() 2057 from += copy; skb_walk_frags() 2074 int i, copy = start - offset; __skb_checksum() local 2079 if (copy > 0) { __skb_checksum() 2080 if (copy > len) __skb_checksum() 2081 copy = len; __skb_checksum() 2082 csum = ops->update(skb->data + offset, copy, csum); __skb_checksum() 2083 if ((len -= copy) == 0) __skb_checksum() 2085 offset += copy; __skb_checksum() 2086 pos = copy; __skb_checksum() 2096 if ((copy = end - offset) > 0) { __skb_checksum() 2100 if (copy > len) __skb_checksum() 2101 copy = len; __skb_checksum() 2104 offset - start, copy, 0); __skb_checksum() 2106 csum = ops->combine(csum, csum2, pos, copy); __skb_checksum() 2107 if (!(len -= copy)) __skb_checksum() 2109 offset += copy; __skb_checksum() 2110 pos += copy; __skb_checksum() 2121 if ((copy = end - offset) > 0) { skb_walk_frags() 2123 if (copy > len) skb_walk_frags() 2124 copy = len; skb_walk_frags() 2126 copy, 0, ops); skb_walk_frags() 2127 csum = ops->combine(csum, csum2, pos, copy); skb_walk_frags() 2128 if ((len -= copy) == 0) skb_walk_frags() 2130 offset += copy; skb_walk_frags() 2131 pos += copy; skb_walk_frags() 2159 int i, copy = start - offset; skb_copy_and_csum_bits() local 2164 if (copy > 0) { skb_copy_and_csum_bits() 2165 if (copy > len) skb_copy_and_csum_bits() 2166 copy = len; skb_copy_and_csum_bits() 2168 copy, csum); skb_copy_and_csum_bits() 2169 if ((len -= copy) == 0) skb_copy_and_csum_bits() 2171 offset += copy; skb_copy_and_csum_bits() 2172 to += copy; skb_copy_and_csum_bits() 2173 pos = copy; skb_copy_and_csum_bits() 2182 if ((copy = end - offset) > 0) { skb_copy_and_csum_bits() 2187 if (copy > len) skb_copy_and_csum_bits() 2188 copy = len; skb_copy_and_csum_bits() 2193 copy, 0); skb_copy_and_csum_bits() 2196 if (!(len -= copy)) skb_copy_and_csum_bits() 2198 offset += copy; skb_copy_and_csum_bits() 2199 to += copy; skb_copy_and_csum_bits() 2200 pos += copy; skb_copy_and_csum_bits() 2212 if ((copy = end - offset) > 0) { skb_walk_frags() 2213 if (copy > len) skb_walk_frags() 2214 copy = len; skb_walk_frags() 2217 to, copy, 0); skb_walk_frags() 2219 if ((len -= copy) == 0) skb_walk_frags() 2221 offset += copy; skb_walk_frags() 2222 to += copy; skb_walk_frags() 2223 pos += copy; skb_walk_frags() 2257 * skb_zerocopy - Zero copy skb to skb 2260 * @len: number of bytes to copy from source buffer 2593 else /* Second chunk has no header, nothing to copy. */ skb_split() 2927 int copy; skb_append_datato_frags() local 2940 /* copy the user data to page */ skb_append_datato_frags() 2941 copy = min_t(int, length, pfrag->size - pfrag->offset); skb_append_datato_frags() 2944 offset, copy, 0, skb); skb_append_datato_frags() 2948 /* copy was successful so update the size parameters */ skb_append_datato_frags() 2950 copy); skb_append_datato_frags() 2952 pfrag->offset += copy; skb_append_datato_frags() 2955 skb->truesize += copy; skb_append_datato_frags() 2956 atomic_add(copy, &sk->sk_wmem_alloc); skb_append_datato_frags() 2957 skb->len += copy; skb_append_datato_frags() 2958 skb->data_len += copy; skb_append_datato_frags() 2959 offset += copy; skb_append_datato_frags() 2960 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.1.27/arch/sparc/lib/ |
H A D | U3copy_from_user.S | 1 /* U3copy_from_user.S: UltraSparc-III optimized copy from userspace.
|
H A D | csum_copy_from_user.S | 1 /* csum_copy_from_user.S: Checksum+copy from userspace.
|
H A D | csum_copy_to_user.S | 1 /* csum_copy_to_user.S: Checksum+copy to userspace.
|
H A D | GENcopy_from_user.S | 1 /* GENcopy_from_user.S: Generic sparc64 copy from userspace.
|
H A D | NG4copy_from_user.S | 1 /* NG4copy_from_user.S: Niagara-4 optimized copy from userspace.
|
H A D | GENcopy_to_user.S | 1 /* GENcopy_to_user.S: Generic sparc64 copy to userspace.
|
H A D | NG2copy_from_user.S | 1 /* NG2copy_from_user.S: Niagara-2 optimized copy from userspace.
|
H A D | NGcopy_from_user.S | 1 /* NGcopy_from_user.S: Niagara optimized copy from userspace.
|
H A D | NGcopy_to_user.S | 1 /* NGcopy_to_user.S: Niagara optimized copy to userspace.
|
H A D | U1copy_from_user.S | 1 /* U1copy_from_user.S: UltraSparc-I/II/IIi/IIe optimized copy from userspace.
|
H A D | U1copy_to_user.S | 1 /* U1copy_to_user.S: UltraSparc-I/II/IIi/IIe optimized copy to userspace.
|
H A D | U3copy_to_user.S | 1 /* U3copy_to_user.S: UltraSparc-III optimized copy to userspace.
|
H A D | NG2copy_to_user.S | 1 /* NG2copy_to_user.S: Niagara-2 optimized copy to userspace.
|
H A D | NG4copy_to_user.S | 1 /* NG4copy_to_user.S: Niagara-4 optimized copy to userspace.
|
/linux-4.1.27/sound/core/oss/ |
H A D | Makefile | 10 io.o copy.o linear.o mulaw.o route.o rate.o
|
/linux-4.1.27/arch/metag/include/asm/ |
H A D | ptrace.h | 34 /* 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.1.27/include/linux/ |
H A D | regset.h | 7 * 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 D | dlm_plock.h | 5 * modify, copy, or redistribute it subject to the terms and conditions
|
H A D | openvswitch.h | 13 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/lib/ |
H A D | iov_iter.c | 141 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 D | iomap_copy.c | 13 * 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.1.27/net/sunrpc/ |
H A D | socklib.c | 21 * 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 D | xdr.c | 162 * @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.1.27/Documentation/mic/mpssd/ |
H A D | mpssd.c | 352 sum_iovec_len(struct mic_copy_desc *copy) sum_iovec_len() argument 357 for (i = 0; i < copy->iovcnt; i++) sum_iovec_len() 358 sum += copy->iov[i].iov_len; sum_iovec_len() 363 struct mic_copy_desc *copy) verify_out_len() 365 if (copy->out_len != sum_iovec_len(copy)) { verify_out_len() 366 mpsslog("%s %s %d BUG copy->out_len 0x%x len 0x%zx\n", verify_out_len() 368 copy->out_len, sum_iovec_len(copy)); verify_out_len() 369 assert(copy->out_len == sum_iovec_len(copy)); verify_out_len() 375 disp_iovec(struct mic_info *mic, struct mic_copy_desc *copy, disp_iovec() argument 380 for (i = 0; i < copy->iovcnt; i++) disp_iovec() 381 mpsslog("%s %s %d copy->iov[%d] addr %p len 0x%zx\n", disp_iovec() 383 copy->iov[i].iov_base, copy->iov[i].iov_len); disp_iovec() 392 struct mic_copy_desc *copy, ssize_t len) txrx_prepare() 394 copy->vr_idx = tx ? 0 : 1; txrx_prepare() 395 copy->update_used = true; txrx_prepare() 397 copy->iov[1].iov_len = len - sizeof(struct virtio_net_hdr); txrx_prepare() 399 copy->iov[0].iov_len = len; txrx_prepare() 405 struct mic_vring *vr, struct mic_copy_desc *copy) mic_virtio_copy() 409 ret = ioctl(fd, MIC_VIRTIO_COPY_DESC, copy); mic_virtio_copy() 536 struct mic_copy_desc copy; virtio_net() local 562 copy.iovcnt = 2; virtio_net() 586 copy.iov = iov0; virtio_net() 588 copy.iov, copy.iovcnt); virtio_net() 599 mpsslog("copy.out_len %d hdr->gso_type 0x%x\n", virtio_net() 600 copy.out_len, hdr->gso_type); virtio_net() 603 disp_iovec(mic, copy, __func__, __LINE__); virtio_net() 609 txrx_prepare(VIRTIO_ID_NET, 1, &tx_vr, ©, virtio_net() 614 ©); virtio_net() 621 verify_out_len(mic, ©); virtio_net() 623 disp_iovec(mic, copy, __func__, __LINE__); virtio_net() 626 sum_iovec_len(©)); virtio_net() 631 disp_iovec(mic, ©, __func__, __LINE__); virtio_net() 635 copy.iovcnt, sum_iovec_len(©)); virtio_net() 646 copy.iov = iov1; virtio_net() 647 txrx_prepare(VIRTIO_ID_NET, 0, &rx_vr, ©, virtio_net() 653 ©); virtio_net() 664 copy.out_len, virtio_net() 668 iov1[1].iov_len = copy.out_len - virtio_net() 670 verify_out_len(mic, ©); virtio_net() 672 disp_iovec(mic, copy, __func__, virtio_net() 677 sum_iovec_len(copy)); virtio_net() 680 copy.iov, copy.iovcnt); virtio_net() 681 if (len != sum_iovec_len(©)) { virtio_net() 686 sum_iovec_len(©)); virtio_net() 689 disp_iovec(mic, ©, __func__, virtio_net() 735 struct mic_copy_desc copy; virtio_console() local 777 copy.iovcnt = 1; virtio_console() 795 copy.iov = iov0; virtio_console() 796 len = readv(pty_fd, copy.iov, copy.iovcnt); virtio_console() 799 disp_iovec(mic, copy, __func__, __LINE__); virtio_console() 806 ©, len); virtio_console() 810 &tx_vr, ©); virtio_console() 817 verify_out_len(mic, ©); virtio_console() 819 disp_iovec(mic, copy, __func__, __LINE__); virtio_console() 822 sum_iovec_len(copy)); virtio_console() 827 disp_iovec(mic, ©, __func__, __LINE__); virtio_console() 832 copy.iovcnt, sum_iovec_len(©)); virtio_console() 839 copy.iov = iov1; virtio_console() 841 ©, PAGE_SIZE); virtio_console() 845 &rx_vr, ©); virtio_console() 848 iov1->iov_len = copy.out_len; virtio_console() 849 verify_out_len(mic, ©); virtio_console() 851 disp_iovec(mic, copy, __func__, virtio_console() 856 sum_iovec_len(copy)); virtio_console() 859 copy.iov, copy.iovcnt); virtio_console() 860 if (len != sum_iovec_len(©)) { virtio_console() 865 sum_iovec_len(©)); virtio_console() 868 disp_iovec(mic, copy, __func__, virtio_console() 1085 struct mic_copy_desc copy; read_header() local 1089 copy.iov = &iovec; read_header() 1090 copy.iovcnt = 1; read_header() 1091 copy.vr_idx = 0; /* only one vring on virtio_block */ read_header() 1092 copy.update_used = false; /* do not update used index */ read_header() 1093 return ioctl(fd, MIC_VIRTIO_COPY_DESC, ©); read_header() 1099 struct mic_copy_desc copy; transfer_blocks() local 1101 copy.iov = iovec; transfer_blocks() 1102 copy.iovcnt = iovcnt; transfer_blocks() 1103 copy.vr_idx = 0; /* only one vring on virtio_block */ transfer_blocks() 1104 copy.update_used = false; /* do not update used index */ transfer_blocks() 1105 return ioctl(fd, MIC_VIRTIO_COPY_DESC, ©); transfer_blocks() 1123 struct mic_copy_desc copy; write_status() local 1127 copy.iov = &iovec; write_status() 1128 copy.iovcnt = 1; write_status() 1129 copy.vr_idx = 0; /* only one vring on virtio_block */ write_status() 1130 copy.update_used = true; /* Update used index */ write_status() 1131 return ioctl(fd, MIC_VIRTIO_COPY_DESC, ©); write_status() 362 verify_out_len(struct mic_info *mic, struct mic_copy_desc *copy) verify_out_len() argument 391 txrx_prepare(int type, bool tx, struct mic_vring *vr, struct mic_copy_desc *copy, ssize_t len) txrx_prepare() argument 404 mic_virtio_copy(struct mic_info *mic, int fd, struct mic_vring *vr, struct mic_copy_desc *copy) mic_virtio_copy() argument
|
/linux-4.1.27/mm/ |
H A D | process_vm_access.c | 26 * @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.1.27/arch/x86/kernel/ |
H A D | crash_dump_64.c | 14 * 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 D | crash_dump_32.c | 34 * 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.1.27/arch/sh/kernel/ |
H A D | crash_dump.c | 13 * 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.1.27/arch/mips/include/asm/mach-malta/ |
H A D | mach-gt64120.h | 2 * This is a direct copy of the ev96100.h file, with a global
|
/linux-4.1.27/include/uapi/linux/ |
H A D | ip6_tunnel.h | 11 /* 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 D | dlm_netlink.h | 5 * modify, copy, or redistribute it subject to the terms and conditions
|
H A D | dlm_plock.h | 5 * modify, copy, or redistribute it subject to the terms and conditions
|
/linux-4.1.27/arch/mips/kernel/ |
H A D | crash_dump.c | 10 * 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.1.27/arch/ia64/kernel/ |
H A D | crash_dump.c | 17 * 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.1.27/arch/alpha/lib/ |
H A D | strcpy.S | 21 br __stxcpy # do the copy
|
H A D | copy_user.S | 9 * 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.1.27/fs/dlm/ |
H A D | lvb_table.h | 7 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | midcomms.h | 8 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | util.h | 7 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | lockspace.h | 8 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | memory.h | 8 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | recoverd.h | 8 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | requestqueue.h | 7 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | user.h | 5 * modify, copy, or redistribute it subject to the terms and conditions
|
H A D | midcomms.c | 8 ** 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 D | ast.h | 7 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | dir.h | 8 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | lowcomms.h | 8 ** modify, copy, or redistribute it subject to the terms and conditions
|
H A D | rcom.h | 8 ** modify, copy, or redistribute it subject to the terms and conditions
|
/linux-4.1.27/fs/gfs2/ |
H A D | gfs2.h | 6 * modify, copy, or redistribute it subject to the terms and conditions
|
H A D | acl.h | 6 * modify, copy, or redistribute it subject to the terms and conditions
|
H A D | sys.h | 6 * modify, copy, or redistribute it subject to the terms and conditions
|
H A D | glops.h | 6 * modify, copy, or redistribute it subject to the terms and conditions
|
/linux-4.1.27/arch/frv/lib/ |
H A D | memcpy.S | 21 # 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.1.27/drivers/misc/mic/host/ |
H A D | mic_fops.c | 80 struct mic_copy_desc copy; mic_ioctl() local 86 if (copy_from_user(©, 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, ©); mic_ioctl() 103 ©.out_len, sizeof(copy.out_len))) { mic_ioctl()
|
/linux-4.1.27/arch/parisc/kernel/ |
H A D | entry.S | 20 * 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 589 * copy user pages at addresses congruent with the user 604 copy \va,\tmp1 770 copy %r31, %r2 805 copy %r26, %r28 817 * this way, then we will need to copy %sr3 in to PT_SR[3..7], and 900 copy %r0, %r25 /* long in_syscall = 0 */ 906 copy %r16, %r26 /* struct pt_regs *regs */ 911 copy %r16,%r29 1017 copy %r29, %r26 /* arg0 is pt_regs */ 1018 copy %r29, %r16 /* save pt_regs */ 1038 copy %r8,%r26 1042 copy %r8,%r26 1098 copy %r29, %r25 /* arg1 is pt_regs */ 1104 copy %r25, %r16 /* save pt_regs */ 1348 copy %r1,%r24 1385 copy %r0,%r1 /* Write zero to target register */ 1738 copy %r0,%r28 1857 copy %r1,%r30 /* Restore user sp */ 1949 copy %r25,%r16 1959 copy %r25,%r16 1977 copy %r3, %arg2 1984 copy %ret0, %arg0 1985 copy %ret1, %arg1 1989 copy %ret0, %rp 1990 copy %r23, %ret0 1991 copy %r24, %ret1 2004 copy %sp, %r1 2034 copy %r31, %rp 2045 * copy the value of the general register specified in r8 into 2056 copy %r0,%r1 2060 copy %r2,%r1 2062 copy %r3,%r1 2064 copy %r4,%r1 2066 copy %r5,%r1 2068 copy %r6,%r1 2070 copy %r7,%r1 2076 copy %r10,%r1 2078 copy %r11,%r1 2080 copy %r12,%r1 2082 copy %r13,%r1 2084 copy %r14,%r1 2086 copy %r15,%r1 2092 copy %r18,%r1 2094 copy %r19,%r1 2096 copy %r20,%r1 2098 copy %r21,%r1 2100 copy %r22,%r1 2102 copy %r23,%r1 2108 copy %r26,%r1 2110 copy %r27,%r1 2112 copy %r28,%r1 2114 copy %r29,%r1 2116 copy %r30,%r1 2118 copy %r31,%r1 2124 * copy the value of r1 into the general register specified in 2130 copy %r1,%r0 2132 copy %r1,%r1 2134 copy %r1,%r2 2136 copy %r1,%r3 2138 copy %r1,%r4 2140 copy %r1,%r5 2142 copy %r1,%r6 2144 copy %r1,%r7 2146 copy %r1,%r8 2148 copy %r1,%r9 2150 copy %r1,%r10 2152 copy %r1,%r11 2154 copy %r1,%r12 2156 copy %r1,%r13 2158 copy %r1,%r14 2160 copy %r1,%r15 2162 copy %r1,%r16 2164 copy %r1,%r17 2166 copy %r1,%r18 2168 copy %r1,%r19 2170 copy %r1,%r20 2172 copy %r1,%r21 2174 copy %r1,%r22 2176 copy %r1,%r23 2178 copy %r1,%r24 2180 copy %r1,%r25 2182 copy %r1,%r26 2184 copy %r1,%r27 2186 copy %r1,%r28 2188 copy %r1,%r29 2190 copy %r1,%r30 2192 copy %r1,%r31
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 5 * 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.1.27/drivers/block/ |
H A D | brd.c | 199 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.1.27/lib/zlib_inflate/ |
H A D | inflate.c | 104 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 D | inflate.h | 30 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.1.27/arch/metag/lib/ |
H A D | memcpy.S | 15 ! 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.1.27/arch/xtensa/lib/ |
H A D | memcopy.S | 75 * 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 D | usercopy.S | 82 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.1.27/arch/sparc/include/asm/ |
H A D | kprobes.h | 24 /* Architecture specific copy of original instruction*/ 26 /* copy of the original instruction */
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | kprobes.h | 28 /* Architecture specific copy of original instruction*/ 30 /* copy of the original instruction */
|
/linux-4.1.27/arch/hexagon/include/asm/ |
H A D | mmu.h | 13 * 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.1.27/arch/ia64/lib/ |
H A D | copy_user.S | 4 * 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 D | memcpy.S | 8 * 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.1.27/tools/perf/util/ |
H A D | ordered-events.h | 60 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.1.27/arch/x86/lib/ |
H A D | memcpy_32.c | 33 /* 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()
|
H A D | copy_user_64.S | 6 * Functions to copy from and to user space. 94 * copy_user_generic_unrolled - memory copy with exception handling. 110 jb 20f /* less then 8 bytes, go to byte copy loop */ 192 /* Some CPUs run faster using the string copy instructions. 195 * Only 4GB of copy is supported. This shouldn't be a problem 214 jb 2f /* less than 8 bytes, go to byte copy loop */
|
H A D | copy_user_nocache_64.S | 6 * Functions to copy from and to user space. 47 * copy_user_nocache - Uncached memory copy with exception handling 54 jb 20f /* less then 8 bytes, go to byte copy loop */
|
/linux-4.1.27/arch/mips/include/asm/mach-lasat/ |
H A D | mach-gt64120.h | 2 * This is a direct copy of the ev96100.h file, with a global
|
/linux-4.1.27/arch/cris/arch-v32/lib/ |
H A D | checksumcopy.S | 2 * 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.1.27/arch/hexagon/mm/ |
H A D | copy_from_user.S | 2 * 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 D | copy_to_user.S | 15 * 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.1.27/arch/arm/mach-imx/ |
H A D | 3ds_debugboard.h | 6 * License. You may obtain a copy of the GNU General Public License
|
H A D | cpuidle.h | 6 * License. You may obtain a copy of the GNU General Public License
|
H A D | headsmp.S | 6 * License. You may obtain a copy of the GNU General Public License
|
H A D | imx31-dt.c | 5 * License. You may obtain a copy of the GNU General Public License
|
H A D | mach-imx50.c | 7 * License. You may obtain a copy of the GNU General Public License
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | kprobes.h | 16 * 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.1.27/arch/x86/include/asm/ |
H A D | kprobes.h | 16 * 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 */
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | rv770_dma.c | 5 * 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 D | drm_buffer.c | 7 * 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 D | radeon_asic.c | 7 * copy of this software and associated documentation files (the "Software"), 9 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 227 .copy = { 232 .copy = &r100_copy_blit, 295 .copy = { 300 .copy = &r100_copy_blit, 391 .copy = { 396 .copy = &r100_copy_blit, 459 .copy = { 464 .copy = &r100_copy_blit, 527 .copy = { 532 .copy = &r100_copy_blit, 595 .copy = { 600 .copy = &r100_copy_blit, 663 .copy = { 668 .copy = &r100_copy_blit, 731 .copy = { 736 .copy = &r200_copy_dma, 799 .copy = { 804 .copy = &r100_copy_blit, 867 .copy = { 872 .copy = &r100_copy_blit, 964 .copy = { 969 .copy = &r600_copy_cpdma, 1050 .copy = { 1055 .copy = &r600_copy_cpdma, 1143 .copy = { 1148 .copy = &r600_copy_cpdma, 1249 .copy = { 1254 .copy = &rv770_copy_dma, 1369 .copy = { 1374 .copy = &evergreen_copy_dma, 1463 .copy = { 1468 .copy = &evergreen_copy_dma, 1556 .copy = { 1561 .copy = &evergreen_copy_dma, 1704 .copy = { 1709 .copy = &evergreen_copy_dma, 1809 .copy = { 1814 .copy = &evergreen_copy_dma, 1944 .copy = { 1949 .copy = &si_copy_dma, 2113 .copy = { 2118 .copy = &cik_copy_dma, 2226 .copy = { 2231 .copy = &cik_copy_dma,
|
/linux-4.1.27/arch/parisc/lib/ |
H A D | lusercopy.S | 20 * 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.1.27/sound/core/ |
H A D | memory.c | 17 * 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.1.27/drivers/staging/goldfish/ |
H A D | goldfish_audio.c | 133 /* 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.1.27/drivers/w1/slaves/ |
H A D | w1_ds2431.c | 211 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.1.27/include/net/caif/ |
H A D | cfpkt.h | 29 * 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.1.27/arch/sh/lib/ |
H A D | memcpy.S | 23 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 D | memmove.S | 32 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.1.27/arch/s390/kvm/ |
H A D | gaccess.h | 81 * @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.1.27/drivers/net/ethernet/sfc/ |
H A D | siena_sriov.c | 405 struct efx_memcpy_req copy[4]; __efx_siena_sriov_push_vf_status() local 417 memset(copy, '\0', sizeof(copy)); __efx_siena_sriov_push_vf_status() 419 copy[0].from_buf = &status->generation_start; __efx_siena_sriov_push_vf_status() 420 copy[0].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status() 421 copy[0].to_addr = vf->status_addr + offsetof(struct vfdi_status, __efx_siena_sriov_push_vf_status() 423 copy[0].length = sizeof(status->generation_start); __efx_siena_sriov_push_vf_status() 429 copy[1].from_rid = efx->pci_dev->devfn; __efx_siena_sriov_push_vf_status() 430 copy[1].from_addr = nic_data->vfdi_status.dma_addr + data_offset; __efx_siena_sriov_push_vf_status() 431 copy[1].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status() 432 copy[1].to_addr = vf->status_addr + data_offset; __efx_siena_sriov_push_vf_status() 433 copy[1].length = status->length - data_offset; __efx_siena_sriov_push_vf_status() 445 copy[pos].from_buf = NULL; __efx_siena_sriov_push_vf_status() 446 copy[pos].from_rid = efx->pci_dev->devfn; __efx_siena_sriov_push_vf_status() 447 copy[pos].from_addr = epp->addr; __efx_siena_sriov_push_vf_status() 448 copy[pos].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status() 449 copy[pos].to_addr = vf->peer_page_addrs[count]; __efx_siena_sriov_push_vf_status() 450 copy[pos].length = EFX_PAGE_SIZE; __efx_siena_sriov_push_vf_status() 452 if (++pos == ARRAY_SIZE(copy)) { __efx_siena_sriov_push_vf_status() 453 efx_siena_sriov_memcpy(efx, copy, ARRAY_SIZE(copy)); __efx_siena_sriov_push_vf_status() 460 copy[pos].from_buf = &status->generation_end; __efx_siena_sriov_push_vf_status() 461 copy[pos].to_rid = vf->pci_rid; __efx_siena_sriov_push_vf_status() 462 copy[pos].to_addr = vf->status_addr + offsetof(struct vfdi_status, __efx_siena_sriov_push_vf_status() 464 copy[pos].length = sizeof(status->generation_end); __efx_siena_sriov_push_vf_status() 465 efx_siena_sriov_memcpy(efx, copy, pos + 1); __efx_siena_sriov_push_vf_status() 876 struct efx_memcpy_req copy[2]; efx_siena_sriov_vfdi() local 880 memset(copy, '\0', sizeof(copy)); efx_siena_sriov_vfdi() 881 copy[0].from_rid = vf->pci_rid; efx_siena_sriov_vfdi() 882 copy[0].from_addr = vf->req_addr; efx_siena_sriov_vfdi() 883 copy[0].to_rid = efx->pci_dev->devfn; efx_siena_sriov_vfdi() 884 copy[0].to_addr = vf->buf.dma_addr; efx_siena_sriov_vfdi() 885 copy[0].length = EFX_PAGE_SIZE; efx_siena_sriov_vfdi() 886 rc = efx_siena_sriov_memcpy(efx, copy, 1); efx_siena_sriov_vfdi() 920 memset(copy, '\0', sizeof(copy)); efx_siena_sriov_vfdi() 921 copy[0].from_buf = &req->rc; efx_siena_sriov_vfdi() 922 copy[0].to_rid = vf->pci_rid; efx_siena_sriov_vfdi() 923 copy[0].to_addr = vf->req_addr + offsetof(struct vfdi_req, rc); efx_siena_sriov_vfdi() 924 copy[0].length = sizeof(req->rc); efx_siena_sriov_vfdi() 925 copy[1].from_buf = &req->op; efx_siena_sriov_vfdi() 926 copy[1].to_rid = vf->pci_rid; efx_siena_sriov_vfdi() 927 copy[1].to_addr = vf->req_addr + offsetof(struct vfdi_req, op); efx_siena_sriov_vfdi() 928 copy[1].length = sizeof(req->op); efx_siena_sriov_vfdi() 930 (void)efx_siena_sriov_memcpy(efx, copy, ARRAY_SIZE(copy)); efx_siena_sriov_vfdi() 1047 /* no copy operation; channel must not be reallocated */
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_compat.h | 17 * 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.1.27/arch/mips/boot/dts/include/dt-bindings/dma/ |
H A D | sun4i-a10.h | 21 * 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.1.27/arch/mips/include/asm/ |
H A D | kprobes.h | 17 * 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.1.27/arch/s390/include/asm/ |
H A D | kprobes.h | 16 * 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.1.27/arch/powerpc/boot/dts/include/dt-bindings/dma/ |
H A D | sun4i-a10.h | 21 * 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.1.27/arch/arm64/boot/dts/include/dt-bindings/dma/ |
H A D | sun4i-a10.h | 21 * 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.1.27/arch/metag/boot/dts/include/dt-bindings/dma/ |
H A D | sun4i-a10.h | 21 * 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.1.27/arch/arm/boot/dts/include/dt-bindings/dma/ |
H A D | sun4i-a10.h | 21 * 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.1.27/kernel/trace/ |
H A D | trace_seq.c | 78 * 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.1.27/include/dt-bindings/dma/ |
H A D | sun4i-a10.h | 21 * 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.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | dir.c | 13 * 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 892 * Generic handler to do any pre-copy work. 898 * store it in \a copy. 902 static int ll_ioc_copy_start(struct super_block *sb, struct hsm_copy *copy) ll_ioc_copy_start() argument 908 /* Forge a hsm_progress based on data from copy. */ ll_ioc_copy_start() 909 hpk.hpk_fid = copy->hc_hai.hai_fid; ll_ioc_copy_start() 910 hpk.hpk_cookie = copy->hc_hai.hai_cookie; ll_ioc_copy_start() 911 hpk.hpk_extent.offset = copy->hc_hai.hai_extent.offset; ll_ioc_copy_start() 919 if (copy->hc_hai.hai_action == HSMA_ARCHIVE) { ll_ioc_copy_start() 924 inode = search_inode_for_lustre(sb, ©->hc_hai.hai_fid); ll_ioc_copy_start() 939 PFID(©->hc_hai.hai_fid), rc, ll_ioc_copy_start() 940 copy->hc_hai.hai_cookie); ll_ioc_copy_start() 949 copy->hc_data_version = data_version; ll_ioc_copy_start() 960 * Generic handler to do any post-copy work. 963 * that copy is finished and whether it was successful or not. 967 * with the version saved in ll_ioc_copy_start(). If they do not match, copy 974 static int ll_ioc_copy_end(struct super_block *sb, struct hsm_copy *copy) ll_ioc_copy_end() argument 981 /* Take care: copy->hc_hai.hai_action, len, gid and data are not ll_ioc_copy_end() 982 * initialized if copy_end was called with copy == NULL. ll_ioc_copy_end() 985 /* Forge a hsm_progress based on data from copy. */ ll_ioc_copy_end() 986 hpk.hpk_fid = copy->hc_hai.hai_fid; ll_ioc_copy_end() 987 hpk.hpk_cookie = copy->hc_hai.hai_cookie; ll_ioc_copy_end() 988 hpk.hpk_extent = copy->hc_hai.hai_extent; ll_ioc_copy_end() 989 hpk.hpk_flags = copy->hc_flags | HP_FLAG_COMPLETED; ll_ioc_copy_end() 990 hpk.hpk_errval = copy->hc_errval; ll_ioc_copy_end() 998 if (((copy->hc_hai.hai_action == HSMA_ARCHIVE) || ll_ioc_copy_end() 999 (copy->hc_hai.hai_action == HSMA_RESTORE)) && ll_ioc_copy_end() 1000 (copy->hc_errval == 0)) { ll_ioc_copy_end() 1005 inode = search_inode_for_lustre(sb, ©->hc_hai.hai_fid); ll_ioc_copy_end() 1015 copy->hc_hai.hai_action == HSMA_ARCHIVE); ll_ioc_copy_end() 1030 if ((copy->hc_hai.hai_action == HSMA_ARCHIVE) && ll_ioc_copy_end() 1031 (copy->hc_data_version != data_version)) { ll_ioc_copy_end() 1034 PFID(©->hc_hai.hai_fid), ll_ioc_copy_end() 1035 copy->hc_data_version, data_version); ll_ioc_copy_end() 1061 void *copy; copy_and_ioctl() local 1064 copy = kzalloc(size, GFP_NOFS); copy_and_ioctl() 1065 if (!copy) copy_and_ioctl() 1068 if (copy_from_user(copy, data, size)) { copy_and_ioctl() 1073 rc = obd_iocontrol(cmd, exp, size, copy, NULL); copy_and_ioctl() 1075 OBD_FREE(copy, size); copy_and_ioctl() 1782 /* We don't know the true size yet; copy the fixed-size part */ ll_dir_ioctl() 1861 struct hsm_copy *copy; ll_dir_ioctl() local 1864 copy = kzalloc(sizeof(*copy), GFP_NOFS); ll_dir_ioctl() 1865 if (!copy) ll_dir_ioctl() 1867 if (copy_from_user(copy, (char *)arg, sizeof(*copy))) { ll_dir_ioctl() 1868 OBD_FREE_PTR(copy); ll_dir_ioctl() 1872 rc = ll_ioc_copy_start(inode->i_sb, copy); ll_dir_ioctl() 1873 if (copy_to_user((char *)arg, copy, sizeof(*copy))) ll_dir_ioctl() 1876 OBD_FREE_PTR(copy); ll_dir_ioctl() 1880 struct hsm_copy *copy; ll_dir_ioctl() local 1883 copy = kzalloc(sizeof(*copy), GFP_NOFS); ll_dir_ioctl() 1884 if (!copy) ll_dir_ioctl() 1886 if (copy_from_user(copy, (char *)arg, sizeof(*copy))) { ll_dir_ioctl() 1887 OBD_FREE_PTR(copy); ll_dir_ioctl() 1891 rc = ll_ioc_copy_end(inode->i_sb, copy); ll_dir_ioctl() 1892 if (copy_to_user((char *)arg, copy, sizeof(*copy))) ll_dir_ioctl() 1895 OBD_FREE_PTR(copy); ll_dir_ioctl()
|
/linux-4.1.27/arch/x86/um/shared/sysdep/ |
H A D | faultinfo_32.h | 15 * both structures, thus making it easy to copy the
|
H A D | faultinfo_64.h | 15 * both structures, thus making it easy to copy the
|
/linux-4.1.27/drivers/clk/mxs/ |
H A D | clk.c | 5 * License. You may obtain a copy of the GNU General Public License
|
/linux-4.1.27/arch/mips/boot/dts/include/dt-bindings/gpio/ |
H A D | meson8b-gpio.h | 11 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/ |
H A D | bcm63xx_nvram.h | 10 * Initialized the local nvram copy from the target address and checks
|
/linux-4.1.27/arch/mips/include/asm/mach-jz4740/ |
H A D | clock.h | 9 * You should have received a copy of the GNU General Public License along
|
H A D | dma.h | 10 * You should have received a copy of the GNU General Public License along
|
/linux-4.1.27/drivers/gpu/host1x/hw/ |
H A D | host1x02.h | 15 * You should have received a copy of the GNU General Public License
|
H A D | host1x04.h | 15 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/drivers/usb/chipidea/ |
H A D | ci_hdrc_imx.h | 5 * License. You may obtain a copy of the GNU General Public License
|
/linux-4.1.27/include/linux/power/ |
H A D | jz4740-battery.h | 9 * You should have received a copy of the GNU General Public License along
|
/linux-4.1.27/include/linux/raid/ |
H A D | md_u.h | 10 You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/mips/jz4740/ |
H A D | irq.h | 9 * You should have received a copy of the GNU General Public License along
|
H A D | serial.h | 10 * You should have received a copy of the GNU General Public License along
|
/linux-4.1.27/arch/nios2/include/asm/ |
H A D | prom.h | 13 * You should have received a copy of the GNU General Public License along with
|
H A D | shmparam.h | 13 * You should have received a copy of the GNU General Public License along with
|
H A D | signal.h | 13 * You should have received a copy of the GNU General Public License along with
|
H A D | timex.h | 12 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/nios2/include/uapi/asm/ |
H A D | signal.h | 13 * You should have received a copy of the GNU General Public License along with
|
/linux-4.1.27/arch/powerpc/boot/dts/include/dt-bindings/gpio/ |
H A D | meson8b-gpio.h | 11 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/arm64/boot/dts/include/dt-bindings/gpio/ |
H A D | meson8b-gpio.h | 11 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | arm-cci.h | 15 * You should have received a copy of the GNU General Public License
|
H A D | exec.h | 15 * You should have received a copy of the GNU General Public License
|
H A D | memblock.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | module.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | sparsemem.h | 13 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/arm64/include/uapi/asm/ |
H A D | auxvec.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | bitsperlong.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | byteorder.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | param.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | setup.h | 16 * You should have received a copy of the GNU General Public License
|
H A D | siginfo.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | signal.h | 13 * You should have received a copy of the GNU General Public License
|
H A D | statfs.h | 13 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/blackfin/lib/ |
H A D | memcpy.S | 2 * 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.1.27/arch/c6x/lib/ |
H A D | checksum.c | 13 * copy from fs while checksumming, otherwise like csum_partial
|
/linux-4.1.27/arch/cris/arch-v10/lib/ |
H A D | checksumcopy.S | 2 * 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.1.27/arch/m68k/math-emu/ |
H A D | fp_trig.h | 8 I hereby give permission, free of charge, to copy, modify, and
|
/linux-4.1.27/arch/metag/boot/dts/include/dt-bindings/gpio/ |
H A D | meson8b-gpio.h | 11 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/arm/mach-tegra/ |
H A D | irq.h | 13 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/arm/boot/dts/include/dt-bindings/gpio/ |
H A D | meson8b-gpio.h | 11 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/arch/arm/boot/dts/ |
H A D | mxs-pinfunc.h | 7 * License. You may obtain a copy of the GNU General Public License
|
/linux-4.1.27/net/batman-adv/ |
H A D | bat_algo.h | 14 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/sound/soc/cirrus/ |
H A D | ep93xx-pcm.h | 13 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/include/clocksource/ |
H A D | metag_generic.h | 13 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/include/dt-bindings/gpio/ |
H A D | meson8b-gpio.h | 11 * You should have received a copy of the GNU General Public License
|
/linux-4.1.27/drivers/mtd/maps/ |
H A D | gpio-addr-flash.c | 96 * 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.1.27/drivers/media/usb/cx231xx/ |
H A D | cx231xx-vbi.h | 17 You should have received a copy of the GNU General Public License 49 /* vbi data copy functions */
|
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/ |
H A D | api-support.h | 13 * 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 D | lnet-sysctl.h | 13 * 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 D | lnet.h | 13 * 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.1.27/drivers/staging/lustre/include/linux/lnet/linux/ |
H A D | api-support.h | 13 * 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 D | lib-types.h | 13 * 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 D | lnet.h | 13 * 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.1.27/drivers/staging/lustre/lnet/selftest/ |
H A D | timer.h | 13 * 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.1.27/drivers/staging/lustre/lustre/fid/ |
H A D | fid_internal.h | 13 * 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.1.27/drivers/staging/lustre/lustre/include/ |
H A D | lustre_acl.h | 13 * 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 D | lustre_debug.h | 13 * 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 D | lustre_intent.h | 13 * 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 D | obd_cache.h | 13 * 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.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-tracefile.h | 13 * 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.1.27/drivers/staging/lustre/lustre/lov/ |
H A D | lovsub_io.c | 13 * 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 D | lovsub_page.c | 13 * 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.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | lu_ref.c | 13 * 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.1.27/drivers/staging/lustre/lustre/obdecho/ |
H A D | echo_internal.h | 13 * 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 D | lproc_echo.c | 13 * 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.1.27/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_kernel_queue_cik.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | kfd_kernel_queue_vi.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | kfd_mqd_manager.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | kfd_mqd_manager_vi.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
H A D | opregion.h | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | tc35876x-dsi-lvds.h | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | i915_gem_render_state.h | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | intel_renderstate.h | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/arch/tile/lib/ |
H A D | memmove.c | 36 /* copy backwards */ memmove() 41 /* copy forwards */ memmove()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_debugfs.c | 5 * a copy of this software and associated documentation files (the 7 * without limitation the rights to use, copy, modify, merge, publish,
|
H A D | nouveau_hwmon.h | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | nv50_display.h | 6 * a copy of this software and associated documentation files (the 8 * without limitation the rights to use, copy, modify, merge, publish,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | enum.c | 7 * a copy of this software and associated documentation files (the 9 * without limitation the rights to use, copy, modify, merge, publish,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
H A D | acpi.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | gk208.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | gk20a.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | gm204.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxgk20a.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | gk20a.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | gm206.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
H A D | g84.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | gk110.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
H A D | nv50.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
H A D | gk20a.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | bit.c | 5 * copy of this software and associated documentation files (the "Software"), 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|