Lines Matching refs:bdp

257 	struct qe_bd *bdp = qe_port->tx_bd_base;  in qe_uart_tx_empty()  local
260 if (in_be16(&bdp->status) & BD_SC_READY) in qe_uart_tx_empty()
264 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_empty()
271 bdp++; in qe_uart_tx_empty()
329 struct qe_bd *bdp; in qe_uart_tx_pump() local
335 bdp = qe_port->rx_cur; in qe_uart_tx_pump()
340 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
342 p = qe2cpu_addr(bdp->buf, qe_port); in qe_uart_tx_pump()
345 out_be16(&bdp->length, 1); in qe_uart_tx_pump()
346 setbits16(&bdp->status, BD_SC_READY); in qe_uart_tx_pump()
348 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_pump()
349 bdp = qe_port->tx_bd_base; in qe_uart_tx_pump()
351 bdp++; in qe_uart_tx_pump()
352 qe_port->tx_cur = bdp; in qe_uart_tx_pump()
365 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
367 while (!(in_be16(&bdp->status) & BD_SC_READY) && in qe_uart_tx_pump()
370 p = qe2cpu_addr(bdp->buf, qe_port); in qe_uart_tx_pump()
380 out_be16(&bdp->length, count); in qe_uart_tx_pump()
381 setbits16(&bdp->status, BD_SC_READY); in qe_uart_tx_pump()
384 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_pump()
385 bdp = qe_port->tx_bd_base; in qe_uart_tx_pump()
387 bdp++; in qe_uart_tx_pump()
389 qe_port->tx_cur = bdp; in qe_uart_tx_pump()
463 struct qe_bd *bdp; in qe_uart_int_rx() local
470 bdp = qe_port->rx_cur; in qe_uart_int_rx()
472 status = in_be16(&bdp->status); in qe_uart_int_rx()
479 i = in_be16(&bdp->length); in qe_uart_int_rx()
490 cp = qe2cpu_addr(bdp->buf, qe_port); in qe_uart_int_rx()
510 clrsetbits_be16(&bdp->status, BD_SC_BR | BD_SC_FR | BD_SC_PR | in qe_uart_int_rx()
512 if (in_be16(&bdp->status) & BD_SC_WRAP) in qe_uart_int_rx()
513 bdp = qe_port->rx_bd_base; in qe_uart_int_rx()
515 bdp++; in qe_uart_int_rx()
520 qe_port->rx_cur = bdp; in qe_uart_int_rx()
594 struct qe_bd *bdp; in qe_uart_initbd() local
600 bdp = qe_port->rx_bd_base; in qe_uart_initbd()
603 out_be16(&bdp->status, BD_SC_EMPTY | BD_SC_INTRPT); in qe_uart_initbd()
604 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
605 out_be16(&bdp->length, 0); in qe_uart_initbd()
607 bdp++; in qe_uart_initbd()
611 out_be16(&bdp->status, BD_SC_WRAP | BD_SC_EMPTY | BD_SC_INTRPT); in qe_uart_initbd()
612 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
613 out_be16(&bdp->length, 0); in qe_uart_initbd()
622 bdp = qe_port->tx_bd_base; in qe_uart_initbd()
624 out_be16(&bdp->status, BD_SC_INTRPT); in qe_uart_initbd()
625 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
626 out_be16(&bdp->length, 0); in qe_uart_initbd()
628 bdp++; in qe_uart_initbd()
636 out_be16(&bdp->status, BD_SC_WRAP | BD_SC_INTRPT); in qe_uart_initbd()
637 out_be32(&bdp->buf, cpu2qe_addr(bd_virt, qe_port)); in qe_uart_initbd()
638 out_be16(&bdp->length, 0); in qe_uart_initbd()