Lines Matching refs:bcnt
303 u32 bcnt; /* number of bytes completed since the start of the channel */ member
794 uc->bcnt = 0; in udma_reset_counters()
1046 u32 peer_bcnt, bcnt; in udma_is_desc_really_done() local
1054 bcnt = udma_tchanrt_read(uc, UDMA_CHAN_RT_BCNT_REG); in udma_is_desc_really_done()
1057 if (peer_bcnt < bcnt) { in udma_is_desc_really_done()
1058 uc->tx_drain.residue = bcnt - peer_bcnt; in udma_is_desc_really_done()
1118 uc->bcnt += d->residue; in udma_check_tx_completion()
1171 uc->bcnt += d->residue; in udma_ring_irq_handler()
1207 uc->bcnt += d->residue; in udma_udma_irq_handler()
3786 u32 bcnt = 0; in udma_tx_status() local
3791 bcnt = udma_tchanrt_read(uc, UDMA_CHAN_RT_SBCNT_REG); in udma_tx_status()
3797 if (bcnt > peer_bcnt) in udma_tx_status()
3798 delay = bcnt - peer_bcnt; in udma_tx_status()
3801 bcnt = udma_rchanrt_read(uc, UDMA_CHAN_RT_BCNT_REG); in udma_tx_status()
3807 if (peer_bcnt > bcnt) in udma_tx_status()
3808 delay = peer_bcnt - bcnt; in udma_tx_status()
3811 bcnt = udma_tchanrt_read(uc, UDMA_CHAN_RT_BCNT_REG); in udma_tx_status()
3814 bcnt -= uc->bcnt; in udma_tx_status()
3815 if (bcnt && !(bcnt % uc->desc->residue)) in udma_tx_status()
3818 residue -= bcnt % uc->desc->residue; in udma_tx_status()