Lines Matching refs:bdp
109 static void gfar_init_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp,
114 bdp->bufPtr = cpu_to_be32(buf);
117 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1)
122 bdp->lstatus = cpu_to_be32(lstatus);
1246 struct rxbd8 *bdp;
1251 bdp = &rx_queue->rx_bd_base[i];
1264 gfar_init_rxbdp(rx_queue, bdp,
1268 bdp++;
1273 bdp = rx_queue->rx_bd_base;
1734 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride,
1737 struct txbd8 *new_bd = bdp + stride;
1742 static inline struct txbd8 *next_txbd(struct txbd8 *bdp, struct txbd8 *base,
1745 return skip_txbd(bdp, 1, base, ring_size);
2153 struct txbd8 *bdp, *next = NULL;
2168 bdp = tx_queue->dirty_tx;
2187 lbdp = skip_txbd(bdp, nr_txbds - 1, base, tx_ring_size);
2197 next = next_txbd(bdp, base, tx_ring_size);
2201 buflen = be16_to_cpu(bdp->length);
2203 dma_unmap_single(priv->dev, be32_to_cpu(bdp->bufPtr),
2215 gfar_clear_txbd_status(bdp);
2216 bdp = next;
2219 gfar_clear_txbd_status(bdp);
2220 bdp = next_txbd(bdp, base, tx_ring_size);
2223 dma_unmap_page(priv->dev, be32_to_cpu(bdp->bufPtr),
2224 be16_to_cpu(bdp->length),
2226 gfar_clear_txbd_status(bdp);
2227 bdp = next_txbd(bdp, base, tx_ring_size);
2253 tx_queue->dirty_tx = bdp;
2506 struct rxbd8 *bdp;
2523 bdp = &rx_queue->rx_bd_base[i];
2524 lstatus = be32_to_cpu(bdp->lstatus);