Lines Matching refs:bdp
118 struct sk_buff *gfar_new_skb(struct net_device *dev, struct rxbd8 *bdp);
922 static inline struct txfcb *gfar_add_fcb(struct sk_buff *skb, struct txbd8 *bdp)
1213 struct txbd8 *bdp;
1220 bdp = priv->dirty_tx;
1221 while ((bdp->status & TXBD_READY) == 0) {
1225 if ((bdp == priv->cur_tx) && (netif_queue_stopped(dev) == 0))
1232 if (bdp->status & TXBD_DEF)
1242 /* update bdp to point at next bd in the ring (wrapping if necessary) */
1243 if (bdp->status & TXBD_WRAP)
1244 bdp = priv->tx_bd_base;
1246 bdp++;
1249 priv->dirty_tx = bdp;
1254 } /* while ((bdp->status & TXBD_READY) == 0) */
1269 struct sk_buff * gfar_new_skb(struct net_device *dev, struct rxbd8 *bdp)
1291 bdp->bufPtr = dma_map_single(NULL, skb->data,
1294 bdp->length = 0;
1298 bdp->status |= (RXBD_EMPTY | RXBD_INTERRUPT);
1471 struct rxbd8 *bdp;
1478 bdp = priv->cur_rx;
1480 while (!((bdp->status & RXBD_EMPTY) || (--rx_work_limit < 0))) {
1484 if (!(bdp->status &
1492 pkt_len = bdp->length - 4;
1498 count_errors(bdp->status, priv);
1509 bdp->status &= ~RXBD_STATS;
1512 skb = gfar_new_skb(dev, bdp);
1516 if (bdp->status & RXBD_WRAP)
1517 bdp = priv->rx_bd_base;
1519 bdp++;
1529 priv->cur_rx = bdp;