• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching defs:bdp

115 static void gfar_new_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp,
153 static void gfar_init_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp,
158 bdp->bufPtr = buf;
161 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1)
166 bdp->lstatus = lstatus;
2022 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride,
2025 struct txbd8 *new_bd = bdp + stride;
2030 static inline struct txbd8 *next_txbd(struct txbd8 *bdp, struct txbd8 *base,
2033 return skip_txbd(bdp, 1, base, ring_size);
2438 struct txbd8 *bdp, *next = NULL;
2452 bdp = tx_queue->dirty_tx;
2470 lbdp = skip_txbd(bdp, nr_txbds - 1, base, tx_ring_size);
2480 next = next_txbd(bdp, base, tx_ring_size);
2483 buflen = bdp->length;
2485 dma_unmap_single(&priv->ofdev->dev, bdp->bufPtr,
2494 bdp->lstatus &= BD_LFLAG(TXBD_WRAP);
2495 bdp = next;
2498 bdp->lstatus &= BD_LFLAG(TXBD_WRAP);
2499 bdp = next_txbd(bdp, base, tx_ring_size);
2503 bdp->bufPtr,
2504 bdp->length,
2506 bdp->lstatus &= BD_LFLAG(TXBD_WRAP);
2507 bdp = next_txbd(bdp, base, tx_ring_size);
2539 tx_queue->dirty_tx = bdp;
2570 static void gfar_new_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp,
2579 gfar_init_rxbdp(rx_queue, bdp, buf);
2720 struct rxbd8 *bdp, *base;
2728 bdp = rx_queue->cur_rx;
2733 while (!((bdp->status & RXBD_EMPTY) || (--rx_work_limit < 0))) {
2742 dma_unmap_single(&priv->ofdev->dev, bdp->bufPtr,
2745 if (unlikely(!(bdp->status & RXBD_ERR) &&
2746 bdp->length > priv->rx_buffer_size))
2747 bdp->status = RXBD_LARGE;
2750 if (unlikely(!newskb || !(bdp->status & RXBD_LAST) ||
2751 bdp->status & RXBD_ERR)) {
2752 count_errors(bdp->status, dev);
2764 pkt_len = bdp->length - ETH_FCS_LEN;
2783 /* Setup the new bdp */
2784 gfar_new_rxbdp(rx_queue, bdp, newskb);
2787 bdp = next_bd(bdp, base, rx_queue->rx_ring_size);
2796 rx_queue->cur_rx = bdp;