Lines Matching refs:bdp

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