• Home
  • Raw
  • Download

Lines Matching refs:from

2600 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len)  in skb_store_bits()  argument
2612 skb_copy_to_linear_data_offset(skb, offset, from, copy); in skb_store_bits()
2616 from += copy; in skb_store_bits()
2638 memcpy(vaddr + p_off, from + copied, p_len); in skb_store_bits()
2645 from += copy; in skb_store_bits()
2660 from, copy)) in skb_store_bits()
2665 from += copy; in skb_store_bits()
2954 skb_zerocopy_headlen(const struct sk_buff *from) in skb_zerocopy_headlen() argument
2958 if (!from->head_frag || in skb_zerocopy_headlen()
2959 skb_headlen(from) < L1_CACHE_BYTES || in skb_zerocopy_headlen()
2960 skb_shinfo(from)->nr_frags >= MAX_SKB_FRAGS) { in skb_zerocopy_headlen()
2961 hlen = skb_headlen(from); in skb_zerocopy_headlen()
2963 hlen = from->len; in skb_zerocopy_headlen()
2966 if (skb_has_frag_list(from)) in skb_zerocopy_headlen()
2967 hlen = from->len; in skb_zerocopy_headlen()
2992 skb_zerocopy(struct sk_buff *to, struct sk_buff *from, int len, int hlen) in skb_zerocopy() argument
3000 BUG_ON(!from->head_frag && !hlen); in skb_zerocopy()
3004 return skb_copy_bits(from, 0, skb_put(to, len), len); in skb_zerocopy()
3007 ret = skb_copy_bits(from, 0, skb_put(to, hlen), hlen); in skb_zerocopy()
3012 plen = min_t(int, skb_headlen(from), len); in skb_zerocopy()
3014 page = virt_to_head_page(from->head); in skb_zerocopy()
3015 offset = from->data - (unsigned char *)page_address(page); in skb_zerocopy()
3027 if (unlikely(skb_orphan_frags(from, GFP_ATOMIC))) { in skb_zerocopy()
3028 skb_tx_error(from); in skb_zerocopy()
3031 skb_zerocopy_clone(to, from, GFP_ATOMIC); in skb_zerocopy()
3033 for (i = 0; i < skb_shinfo(from)->nr_frags; i++) { in skb_zerocopy()
3038 skb_shinfo(to)->frags[j] = skb_shinfo(from)->frags[i]; in skb_zerocopy()
3355 int from, to, merge, todo; in skb_shift() local
3366 from = 0; in skb_shift()
3368 fragfrom = &skb_shinfo(skb)->frags[from]; in skb_shift()
3387 fragfrom = &skb_shinfo(skb)->frags[from]; in skb_shift()
3397 from++; in skb_shift()
3402 (skb_shinfo(skb)->nr_frags - from) > (MAX_SKB_FRAGS - to)) in skb_shift()
3408 while ((todo > 0) && (from < skb_shinfo(skb)->nr_frags)) { in skb_shift()
3412 fragfrom = &skb_shinfo(skb)->frags[from]; in skb_shift()
3418 from++; in skb_shift()
3449 while (from < skb_shinfo(skb)->nr_frags) in skb_shift()
3450 skb_shinfo(skb)->frags[to++] = skb_shinfo(skb)->frags[from++]; in skb_shift()
3483 void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from, in skb_prepare_seq_read() argument
3486 st->lower_offset = from; in skb_prepare_seq_read()
3626 unsigned int skb_find_text(struct sk_buff *skb, unsigned int from, in skb_find_text() argument
3635 skb_prepare_seq_read(skb, from, to, TS_SKB_CB(&state)); in skb_find_text()
3638 return (ret <= to - from ? ret : UINT_MAX); in skb_find_text()
5219 bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from, in skb_try_coalesce() argument
5223 int i, delta, len = from->len; in skb_try_coalesce()
5232 BUG_ON(skb_copy_bits(from, 0, skb_put(to, len), len)); in skb_try_coalesce()
5238 from_shinfo = skb_shinfo(from); in skb_try_coalesce()
5241 if (skb_zcopy(to) || skb_zcopy(from)) in skb_try_coalesce()
5244 if (skb_headlen(from) != 0) { in skb_try_coalesce()
5252 if (skb_head_is_locked(from)) in skb_try_coalesce()
5255 delta = from->truesize - SKB_DATA_ALIGN(sizeof(struct sk_buff)); in skb_try_coalesce()
5257 page = virt_to_head_page(from->head); in skb_try_coalesce()
5258 offset = from->data - (unsigned char *)page_address(page); in skb_try_coalesce()
5261 page, offset, skb_headlen(from)); in skb_try_coalesce()
5268 delta = from->truesize - SKB_TRUESIZE(skb_end_offset(from)); in skb_try_coalesce()
5278 if (!skb_cloned(from)) in skb_try_coalesce()