Lines Matching refs:skb
79 static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb) in genelink_rx_fixup() argument
88 if (skb->len < dev->net->hard_header_len) in genelink_rx_fixup()
91 header = (struct gl_header *) skb->data; in genelink_rx_fixup()
106 skb_pull(skb, 4); in genelink_rx_fixup()
134 skb_pull(skb, size + 4); in genelink_rx_fixup()
138 skb_pull(skb, 4); in genelink_rx_fixup()
140 if (skb->len > GL_MAX_PACKET_LEN) { in genelink_rx_fixup()
142 skb->len); in genelink_rx_fixup()
149 genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) in genelink_tx_fixup() argument
152 int length = skb->len; in genelink_tx_fixup()
153 int headroom = skb_headroom(skb); in genelink_tx_fixup()
154 int tailroom = skb_tailroom(skb); in genelink_tx_fixup()
159 padlen = ((skb->len + (4 + 4*1)) % 64) ? 0 : 1; in genelink_tx_fixup()
161 if ((!skb_cloned(skb)) in genelink_tx_fixup()
164 skb->data = memmove(skb->head + (4 + 4*1), in genelink_tx_fixup()
165 skb->data, skb->len); in genelink_tx_fixup()
166 skb_set_tail_pointer(skb, skb->len); in genelink_tx_fixup()
170 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
171 dev_kfree_skb_any(skb); in genelink_tx_fixup()
172 skb = skb2; in genelink_tx_fixup()
173 if (!skb) in genelink_tx_fixup()
178 packet_count = (__le32 *) skb_push(skb, (4 + 4*1)); in genelink_tx_fixup()
185 if ((skb->len % dev->maxpacket) == 0) in genelink_tx_fixup()
186 skb_put(skb, 1); in genelink_tx_fixup()
188 return skb; in genelink_tx_fixup()