Lines Matching refs:bdp
259 struct qe_bd *bdp = qe_port->tx_bd_base; in qe_uart_tx_empty() local
262 if (in_be16(&bdp->status) & BD_SC_READY) in qe_uart_tx_empty()
266 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_empty()
273 bdp++; in qe_uart_tx_empty()
331 struct qe_bd *bdp; in qe_uart_tx_pump() local
337 bdp = qe_port->rx_cur; in qe_uart_tx_pump()
342 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
344 p = qe2cpu_addr(bdp->buf, qe_port); in qe_uart_tx_pump()
347 out_be16(&bdp->length, 1); in qe_uart_tx_pump()
348 setbits16(&bdp->status, BD_SC_READY); in qe_uart_tx_pump()
350 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_pump()
351 bdp = qe_port->tx_bd_base; in qe_uart_tx_pump()
353 bdp++; in qe_uart_tx_pump()
354 qe_port->tx_cur = bdp; in qe_uart_tx_pump()
367 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
369 while (!(in_be16(&bdp->status) & BD_SC_READY) && in qe_uart_tx_pump()
372 p = qe2cpu_addr(bdp->buf, qe_port); in qe_uart_tx_pump()
382 out_be16(&bdp->length, count); in qe_uart_tx_pump()
383 setbits16(&bdp->status, BD_SC_READY); in qe_uart_tx_pump()
386 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_pump()
387 bdp = qe_port->tx_bd_base; in qe_uart_tx_pump()
389 bdp++; in qe_uart_tx_pump()
391 qe_port->tx_cur = bdp; in qe_uart_tx_pump()
465 struct qe_bd *bdp; in qe_uart_int_rx() local
472 bdp = qe_port->rx_cur; in qe_uart_int_rx()
474 status = in_be16(&bdp->status); in qe_uart_int_rx()
481 i = in_be16(&bdp->length); in qe_uart_int_rx()
492 cp = qe2cpu_addr(bdp->buf, qe_port); in qe_uart_int_rx()
512 clrsetbits_be16(&bdp->status, BD_SC_BR | BD_SC_FR | BD_SC_PR | in qe_uart_int_rx()
514 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_int_rx()
515 bdp = qe_port->rx_bd_base; in qe_uart_int_rx()
517 bdp++; in qe_uart_int_rx()
522 qe_port->rx_cur = bdp; in qe_uart_int_rx()
596 struct qe_bd *bdp; in qe_uart_initbd() local
602 bdp = qe_port->rx_bd_base; in qe_uart_initbd()
605 out_be16(&bdp->status, BD_SC_EMPTY | BD_SC_INTRPT); in qe_uart_initbd()
606 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
607 out_be16(&bdp->length, 0); in qe_uart_initbd()
609 bdp++; in qe_uart_initbd()
613 out_be16(&bdp->status, BD_SC_WRAP | BD_SC_EMPTY | BD_SC_INTRPT); in qe_uart_initbd()
614 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
615 out_be16(&bdp->length, 0); in qe_uart_initbd()
624 bdp = qe_port->tx_bd_base; in qe_uart_initbd()
626 out_be16(&bdp->status, BD_SC_INTRPT); in qe_uart_initbd()
627 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
628 out_be16(&bdp->length, 0); in qe_uart_initbd()
630 bdp++; in qe_uart_initbd()
638 out_be16(&bdp->status, BD_SC_WRAP | BD_SC_INTRPT); in qe_uart_initbd()
639 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
640 out_be16(&bdp->length, 0); in qe_uart_initbd()