Lines Matching refs:bdp
110 static void gfar_init_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp,
115 bdp->bufPtr = cpu_to_be32(buf);
118 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1)
123 bdp->lstatus = cpu_to_be32(lstatus);
1279 struct rxbd8 *bdp;
1284 bdp = &rx_queue->rx_bd_base[i];
1297 gfar_init_rxbdp(rx_queue, bdp,
1301 bdp++;
1306 bdp = rx_queue->rx_bd_base;
1767 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride,
1770 struct txbd8 *new_bd = bdp + stride;
1775 static inline struct txbd8 *next_txbd(struct txbd8 *bdp, struct txbd8 *base,
1778 return skip_txbd(bdp, 1, base, ring_size);
2189 struct txbd8 *bdp, *next = NULL;
2204 bdp = tx_queue->dirty_tx;
2223 lbdp = skip_txbd(bdp, nr_txbds - 1, base, tx_ring_size);
2233 next = next_txbd(bdp, base, tx_ring_size);
2237 buflen = be16_to_cpu(bdp->length);
2239 dma_unmap_single(priv->dev, be32_to_cpu(bdp->bufPtr),
2251 gfar_clear_txbd_status(bdp);
2252 bdp = next;
2255 gfar_clear_txbd_status(bdp);
2256 bdp = next_txbd(bdp, base, tx_ring_size);
2259 dma_unmap_page(priv->dev, be32_to_cpu(bdp->bufPtr),
2260 be16_to_cpu(bdp->length),
2262 gfar_clear_txbd_status(bdp);
2263 bdp = next_txbd(bdp, base, tx_ring_size);
2289 tx_queue->dirty_tx = bdp;
2542 struct rxbd8 *bdp;
2559 bdp = &rx_queue->rx_bd_base[i];
2560 lstatus = be32_to_cpu(bdp->lstatus);