Lines Matching defs:tgt
3952 * @tgt: buffer into which tail data gets added
3957 * the length of the skb, from skb to tgt. Returns number bytes shifted.
3960 * If @tgt runs out of frags, the whole operation is aborted.
3962 * Skb cannot include anything else but paged data while tgt is allowed
3968 int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen)
3977 if (skb_zcopy(tgt) || skb_zcopy(skb))
3982 to = skb_shinfo(tgt)->nr_frags;
3989 !skb_can_coalesce(tgt, to, skb_frag_page(fragfrom),
3998 skb_prepare_for_shift(tgt))
4003 fragto = &skb_shinfo(tgt)->frags[merge];
4020 if (skb_prepare_for_shift(skb) || skb_prepare_for_shift(tgt))
4028 fragto = &skb_shinfo(tgt)->frags[to];
4051 /* Ready to "commit" this state change to tgt */
4052 skb_shinfo(tgt)->nr_frags = to;
4056 fragto = &skb_shinfo(tgt)->frags[merge];
4071 /* Most likely the tgt won't ever need its checksum anymore, skb on
4074 tgt->ip_summed = CHECKSUM_PARTIAL;
4078 skb_len_add(tgt, shiftlen);