Lines Matching defs:skb
3309 skbuff_enqueue(struct desc_ring *ring, struct sk_buff *skb)
3311 skb->next = NULL;
3313 ring->head = skb;
3315 ring->tail->next = skb;
3316 ring->tail = skb;
3323 struct sk_buff *skb = ring->head;
3324 if (skb != NULL)
3325 if ((ring->head = skb->next) == NULL)
3327 return skb;
3363 struct sk_buff *skb;
3366 while ((skb = skbuff_dequeue(ring)) != NULL)
3367 dev_kfree_skb(skb);
3559 struct sk_buff *skb;
3567 if ((skb = dev_alloc_skb(MAX_DESC_LEN)) == NULL)
3574 skb->dev = sc->net_dev;
3577 skbuff_enqueue(ring, skb);
3586 dma_addr = pci_map_single(sc->pci_dev, skb->data,
3629 struct sk_buff *skb;
3630 if ((skb = skbuff_dequeue(ring)) == NULL)
3634 sc->status.cntrs.obytes += skb->len + sc->config.crc_len +1;
3645 dev_kfree_skb_any(skb);
3723 txintr_setup_skb(softc_t *sc, struct sk_buff *skb)
3729 if (txintr_setup_frag(sc, skb->data, skb_headlen(skb)))
3733 if (skb_shinfo(skb)->nr_frags != 0)
3734 for (i=0; i<skb_shinfo(skb)->nr_frags; i++)
3736 skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
3743 if ((list = skb_shinfo(skb)->frag_list) != NULL)
6500 linux_start(struct sk_buff *skb, struct net_device *net_dev)
6506 /* Put this skb where the transmitter will see it. */
6507 sc->tx_skb = skb;
6512 /* If the tx didn't take the skb then stop the queue. */
6519 /* This shouldn't happen; skb is NOT consumed. */