• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/core/

Lines Matching defs:copy

19  *		Alan Cox	:	skb_copy copy arp field
745 * skb_copy - create private copy of an sk_buff
746 * @skb: buffer to copy
749 * Make a copy of both an &sk_buff and its data. This is used when the
750 * caller wishes to modify the data and needs a private copy of the
765 * Allocate the copy buffer
790 * pskb_copy - create copy of an sk_buff with private head.
791 * @skb: buffer to copy
794 * Make a copy of both an &sk_buff and part of its data, located
797 * private copy of the header to alter. Returns %NULL on failure
805 * Allocate the copy buffer
855 * Expands (or creates identical copy, if &nhead and &ntail are zero)
935 /* Make private copy of skb with writable head and some headroom */
957 * skb_copy_expand - copy and expand sk_buff
958 * @skb: buffer to copy
963 * Make a copy of both an &sk_buff and its data and while doing so
967 * private copy of the data to alter as well as more space for new fields.
979 * Allocate the copy buffer
1368 int i, copy;
1374 if ((copy = start - offset) > 0) {
1375 if (copy > len)
1376 copy = len;
1377 skb_copy_from_linear_data_offset(skb, offset, to, copy);
1378 if ((len -= copy) == 0)
1380 offset += copy;
1381 to += copy;
1390 if ((copy = end - offset) > 0) {
1393 if (copy > len)
1394 copy = len;
1399 offset - start, copy);
1402 if ((len -= copy) == 0)
1404 offset += copy;
1405 to += copy;
1416 if ((copy = end - offset) > 0) {
1417 if (copy > len)
1418 copy = len;
1419 if (skb_copy_bits(frag_iter, offset - start, to, copy))
1421 if ((len -= copy) == 0)
1423 offset += copy;
1424 to += copy;
1664 * @len: number of bytes to copy
1675 int i, copy;
1680 if ((copy = start - offset) > 0) {
1681 if (copy > len)
1682 copy = len;
1683 skb_copy_to_linear_data_offset(skb, offset, from, copy);
1684 if ((len -= copy) == 0)
1686 offset += copy;
1687 from += copy;
1697 if ((copy = end - offset) > 0) {
1700 if (copy > len)
1701 copy = len;
1705 from, copy);
1708 if ((len -= copy) == 0)
1710 offset += copy;
1711 from += copy;
1722 if ((copy = end - offset) > 0) {
1723 if (copy > len)
1724 copy = len;
1726 from, copy))
1728 if ((len -= copy) == 0)
1730 offset += copy;
1731 from += copy;
1758 int i, copy = start - offset;
1763 if (copy > 0) {
1764 if (copy > len)
1765 copy = len;
1766 pref_range(skb->data + offset, skb->data + offset + copy - L1_CACHE_BYTES);
1767 csum = csum_partial(skb->data + offset, copy, csum);
1768 if ((len -= copy) == 0)
1770 offset += copy;
1771 pos = copy;
1780 if ((copy = end - offset) > 0) {
1785 if (copy > len)
1786 copy = len;
1789 vaddr + frag->page_offset + offset - start + copy - L1_CACHE_BYTES);
1791 offset - start, copy, 0);
1794 if (!(len -= copy))
1796 offset += copy;
1797 pos += copy;
1808 if ((copy = end - offset) > 0) {
1810 if (copy > len)
1811 copy = len;
1813 copy, 0);
1815 if ((len -= copy) == 0)
1817 offset += copy;
1818 pos += copy;
1834 int i, copy = start - offset;
1839 if (copy > 0) {
1840 if (copy > len)
1841 copy = len;
1843 copy, csum);
1844 if ((len -= copy) == 0)
1846 offset += copy;
1847 to += copy;
1848 pos = copy;
1857 if ((copy = end - offset) > 0) {
1862 if (copy > len)
1863 copy = len;
1868 copy, 0);
1871 if (!(len -= copy))
1873 offset += copy;
1874 to += copy;
1875 pos += copy;
1887 if ((copy = end - offset) > 0) {
1888 if (copy > len)
1889 copy = len;
1892 to, copy, 0);
1894 if ((len -= copy) == 0)
1896 offset += copy;
1897 to += copy;
1898 pos += copy;
2169 else /* Second chunk has no header, nothing to copy. */
2500 int copy, left;
2530 /* copy the user data to page */
2532 copy = (length > left)? left : length;
2536 offset, copy, 0, skb);
2540 /* copy was successful so update the size parameters */
2541 sk->sk_sndmsg_off += copy;
2542 frag->size += copy;
2543 skb->len += copy;
2544 skb->data_len += copy;
2545 offset += copy;
2546 length -= copy;
3094 int i, copy = start - offset;
3098 if (copy > 0) {
3099 if (copy > len)
3100 copy = len;
3102 sg_set_buf(sg, skb->data + offset, copy);
3104 if ((len -= copy) == 0)
3106 offset += copy;
3115 if ((copy = end - offset) > 0) {
3118 if (copy > len)
3119 copy = len;
3121 sg_set_page(&sg[elt], frag->page, copy,
3124 if (!(len -= copy))
3126 offset += copy;
3137 if ((copy = end - offset) > 0) {
3138 if (copy > len)
3139 copy = len;
3141 copy);
3142 if ((len -= copy) == 0)
3144 offset += copy;