Lines Matching refs:bdp

155 static void gfar_init_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp,  in gfar_init_rxbdp()  argument
160 bdp->bufPtr = cpu_to_be32(buf); in gfar_init_rxbdp()
163 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
168 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
2284 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride, in skip_txbd() argument
2287 struct txbd8 *new_bd = bdp + stride; in skip_txbd()
2292 static inline struct txbd8 *next_txbd(struct txbd8 *bdp, struct txbd8 *base, in next_txbd() argument
2295 return skip_txbd(bdp, 1, base, ring_size); in next_txbd()
2661 struct txbd8 *bdp, *next = NULL; in gfar_clean_tx_ring() local
2676 bdp = tx_queue->dirty_tx; in gfar_clean_tx_ring()
2691 lbdp = skip_txbd(bdp, nr_txbds - 1, base, tx_ring_size); in gfar_clean_tx_ring()
2701 next = next_txbd(bdp, base, tx_ring_size); in gfar_clean_tx_ring()
2705 buflen = be16_to_cpu(bdp->length); in gfar_clean_tx_ring()
2707 dma_unmap_single(priv->dev, be32_to_cpu(bdp->bufPtr), in gfar_clean_tx_ring()
2719 gfar_clear_txbd_status(bdp); in gfar_clean_tx_ring()
2720 bdp = next; in gfar_clean_tx_ring()
2723 gfar_clear_txbd_status(bdp); in gfar_clean_tx_ring()
2724 bdp = next_txbd(bdp, base, tx_ring_size); in gfar_clean_tx_ring()
2727 dma_unmap_page(priv->dev, be32_to_cpu(bdp->bufPtr), in gfar_clean_tx_ring()
2728 be16_to_cpu(bdp->length), in gfar_clean_tx_ring()
2730 gfar_clear_txbd_status(bdp); in gfar_clean_tx_ring()
2731 bdp = next_txbd(bdp, base, tx_ring_size); in gfar_clean_tx_ring()
2757 tx_queue->dirty_tx = bdp; in gfar_clean_tx_ring()
2797 struct rxbd8 *bdp; in gfar_alloc_rx_buffs() local
2802 bdp = &rx_queue->rx_bd_base[i]; in gfar_alloc_rx_buffs()
2815 gfar_init_rxbdp(rx_queue, bdp, in gfar_alloc_rx_buffs()
2819 bdp++; in gfar_alloc_rx_buffs()
2824 bdp = rx_queue->rx_bd_base; in gfar_alloc_rx_buffs()
3075 struct rxbd8 *bdp; in gfar_clean_rx_ring() local
3092 bdp = &rx_queue->rx_bd_base[i]; in gfar_clean_rx_ring()
3093 lstatus = be32_to_cpu(bdp->lstatus); in gfar_clean_rx_ring()