Lines Matching refs:bdp
261 struct qe_bd *bdp = qe_port->tx_bd_base;
264 if (ioread16be(&bdp->status) & BD_SC_READY)
268 if (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 iowrite16be(1, &bdp->length);
348 qe_setbits_be16(&bdp->status, BD_SC_READY);
350 if (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 (!(ioread16be(&bdp->status) & BD_SC_READY) && !uart_circ_empty(xmit)) {
371 p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
380 iowrite16be(count, &bdp->length);
381 qe_setbits_be16(&bdp->status, BD_SC_READY);
384 if (ioread16be(&bdp->status) & BD_SC_WRAP)
385 bdp = qe_port->tx_bd_base;
387 bdp++;
389 qe_port->tx_cur = bdp;
463 struct qe_bd *bdp;
470 bdp = qe_port->rx_cur;
472 status = ioread16be(&bdp->status);
479 i = ioread16be(&bdp->length);
490 cp = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port);
510 qe_clrsetbits_be16(&bdp->status,
513 if (ioread16be(&bdp->status) & BD_SC_WRAP)
514 bdp = qe_port->rx_bd_base;
516 bdp++;
521 qe_port->rx_cur = bdp;
593 struct qe_bd *bdp;
599 bdp = qe_port->rx_bd_base;
602 iowrite16be(BD_SC_EMPTY | BD_SC_INTRPT, &bdp->status);
603 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
604 iowrite16be(0, &bdp->length);
606 bdp++;
610 iowrite16be(BD_SC_WRAP | BD_SC_EMPTY | BD_SC_INTRPT, &bdp->status);
611 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
612 iowrite16be(0, &bdp->length);
621 bdp = qe_port->tx_bd_base;
623 iowrite16be(BD_SC_INTRPT, &bdp->status);
624 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
625 iowrite16be(0, &bdp->length);
627 bdp++;
635 iowrite16be(BD_SC_WRAP | BD_SC_INTRPT, &bdp->status);
636 iowrite32be(cpu2qe_addr(bd_virt, qe_port), &bdp->buf);
637 iowrite16be(0, &bdp->length);