• Home
  • Raw
  • Download

Lines Matching refs:from

1874 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len)  in skb_store_bits()  argument
1886 skb_copy_to_linear_data_offset(skb, offset, from, copy); in skb_store_bits()
1890 from += copy; in skb_store_bits()
1908 from, copy); in skb_store_bits()
1914 from += copy; in skb_store_bits()
1929 from, copy)) in skb_store_bits()
1934 from += copy; in skb_store_bits()
2395 int from, to, merge, todo; in skb_shift() local
2402 from = 0; in skb_shift()
2404 fragfrom = &skb_shinfo(skb)->frags[from]; in skb_shift()
2423 fragfrom = &skb_shinfo(skb)->frags[from]; in skb_shift()
2433 from++; in skb_shift()
2438 (skb_shinfo(skb)->nr_frags - from) > (MAX_SKB_FRAGS - to)) in skb_shift()
2444 while ((todo > 0) && (from < skb_shinfo(skb)->nr_frags)) { in skb_shift()
2448 fragfrom = &skb_shinfo(skb)->frags[from]; in skb_shift()
2454 from++; in skb_shift()
2485 while (from < skb_shinfo(skb)->nr_frags) in skb_shift()
2486 skb_shinfo(skb)->frags[to++] = skb_shinfo(skb)->frags[from++]; in skb_shift()
2519 void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from, in skb_prepare_seq_read() argument
2522 st->lower_offset = from; in skb_prepare_seq_read()
2658 unsigned int skb_find_text(struct sk_buff *skb, unsigned int from, in skb_find_text() argument
2667 skb_prepare_seq_read(skb, from, to, TS_SKB_CB(state)); in skb_find_text()
2670 return (ret <= to - from ? ret : UINT_MAX); in skb_find_text()
2686 int (*getfrag)(void *from, char *to, int offset, in skb_append_datato_frags() argument
2688 void *from, int length) in skb_append_datato_frags()
2707 ret = getfrag(from, page_address(pfrag->page) + pfrag->offset, in skb_append_datato_frags()
3436 bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from, in skb_try_coalesce() argument
3439 int i, delta, len = from->len; in skb_try_coalesce()
3447 BUG_ON(skb_copy_bits(from, 0, skb_put(to, len), len)); in skb_try_coalesce()
3452 if (skb_has_frag_list(to) || skb_has_frag_list(from)) in skb_try_coalesce()
3455 if (skb_headlen(from) != 0) { in skb_try_coalesce()
3460 skb_shinfo(from)->nr_frags >= MAX_SKB_FRAGS) in skb_try_coalesce()
3463 if (skb_head_is_locked(from)) in skb_try_coalesce()
3466 delta = from->truesize - SKB_DATA_ALIGN(sizeof(struct sk_buff)); in skb_try_coalesce()
3468 page = virt_to_head_page(from->head); in skb_try_coalesce()
3469 offset = from->data - (unsigned char *)page_address(page); in skb_try_coalesce()
3472 page, offset, skb_headlen(from)); in skb_try_coalesce()
3476 skb_shinfo(from)->nr_frags > MAX_SKB_FRAGS) in skb_try_coalesce()
3479 delta = from->truesize - SKB_TRUESIZE(skb_end_offset(from)); in skb_try_coalesce()
3485 skb_shinfo(from)->frags, in skb_try_coalesce()
3486 skb_shinfo(from)->nr_frags * sizeof(skb_frag_t)); in skb_try_coalesce()
3487 skb_shinfo(to)->nr_frags += skb_shinfo(from)->nr_frags; in skb_try_coalesce()
3489 if (!skb_cloned(from)) in skb_try_coalesce()
3490 skb_shinfo(from)->nr_frags = 0; in skb_try_coalesce()
3495 for (i = 0; i < skb_shinfo(from)->nr_frags; i++) in skb_try_coalesce()
3496 skb_frag_ref(from, i); in skb_try_coalesce()