Lines Matching refs:copy

413 	int i, copy = start - offset, start_off = offset, n;
417 if (copy > 0) {
418 if (copy > len)
419 copy = len;
421 skb->data + offset, copy, data, to);
423 if (n != copy)
425 if ((len -= copy) == 0)
437 if ((copy = end - offset) > 0) {
441 if (copy > len)
442 copy = len;
445 copy, data, to);
448 if (n != copy)
450 if (!(len -= copy))
462 if ((copy = end - offset) > 0) {
463 if (copy > len)
464 copy = len;
466 to, copy, fault_short, cb, data))
468 if ((len -= copy) == 0)
470 offset += copy;
477 /* This is not really a user copy fault, but rather someone
514 * @skb: buffer to copy
516 * @to: iovec iterator to copy to
517 * @len: amount of data to copy from buffer to iovec
537 * @skb: buffer to copy
539 * @to: iovec iterator to copy to
540 * @len: amount of data to copy from buffer to iovec
553 * @skb: buffer to copy
555 * @from: the copy source
556 * @len: amount of data to copy to buffer from iovec
565 int i, copy = start - offset;
569 if (copy > 0) {
570 if (copy > len)
571 copy = len;
572 if (copy_from_iter(skb->data + offset, copy, from) != copy)
574 if ((len -= copy) == 0)
576 offset += copy;
587 if ((copy = end - offset) > 0) {
590 if (copy > len)
591 copy = len;
594 copy, from);
595 if (copied != copy)
598 if (!(len -= copy))
600 offset += copy;
611 if ((copy = end - offset) > 0) {
612 if (copy > len)
613 copy = len;
616 from, copy))
618 if ((len -= copy) == 0)
620 offset += copy;
718 * @skb: buffer to copy
719 * @from: the source to copy from
721 * The function will first copy up to headlen, and then pin the userspace
728 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from));
730 /* copy up to skb headlen */
731 if (skb_copy_datagram_from_iter(skb, 0, from, copy))
795 * @skb: buffer to copy
797 * @to: iovec iterator to copy to
798 * @len: amount of data to copy from buffer to iovec
827 * -EFAULT - fault during copy.