Lines Matching refs:bdp
261 struct qe_bd *bdp = qe_port->tx_bd_base;
264 if (qe_ioread16be(&bdp->status) & BD_SC_READY)
268 if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
275 bdp++;
333 struct qe_bd *bdp;
342 bdp = qe_port->tx_cur;
344 p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
347 qe_iowrite16be(1, &bdp->length);
348 qe_setbits_be16(&bdp->status, BD_SC_READY);
350 if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
351 bdp = qe_port->tx_bd_base;
353 bdp++;
354 qe_port->tx_cur = bdp;
367 bdp = qe_port->tx_cur;
369 while (!(qe_ioread16be(&bdp->status) & BD_SC_READY) &&
372 p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
382 qe_iowrite16be(count, &bdp->length);
383 qe_setbits_be16(&bdp->status, BD_SC_READY);
386 if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
387 bdp = qe_port->tx_bd_base;
389 bdp++;
391 qe_port->tx_cur = bdp;
465 struct qe_bd *bdp;
472 bdp = qe_port->rx_cur;
474 status = qe_ioread16be(&bdp->status);
481 i = qe_ioread16be(&bdp->length);
492 cp = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
512 qe_clrsetbits_be16(&bdp->status,
515 if (qe_ioread16be(&bdp->status) & BD_SC_WRAP)
516 bdp = qe_port->rx_bd_base;
518 bdp++;
523 qe_port->rx_cur = bdp;
595 struct qe_bd *bdp;
601 bdp = qe_port->rx_bd_base;
604 qe_iowrite16be(BD_SC_EMPTY | BD_SC_INTRPT, &bdp->status);
605 qe_iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
606 qe_iowrite16be(0, &bdp->length);
608 bdp++;
612 qe_iowrite16be(BD_SC_WRAP | BD_SC_EMPTY | BD_SC_INTRPT, &bdp->status);
613 qe_iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
614 qe_iowrite16be(0, &bdp->length);
623 bdp = qe_port->tx_bd_base;
625 qe_iowrite16be(BD_SC_INTRPT, &bdp->status);
626 qe_iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
627 qe_iowrite16be(0, &bdp->length);
629 bdp++;
637 qe_iowrite16be(BD_SC_WRAP | BD_SC_INTRPT, &bdp->status);
638 qe_iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
639 qe_iowrite16be(0, &bdp->length);