Lines Matching refs:txwr
64 u32 txwr; /* 0x20C */ member
381 static inline u32 grcan_txspace(size_t txsize, u32 txwr, u32 eskbp) in grcan_txspace() argument
384 u32 used = grcan_ring_sub(txwr, eskbp, txsize) / GRCAN_MSG_SIZE; in grcan_txspace()
694 u32 txwr = grcan_read_reg(®s->txwr); in grcan_err() local
696 if (grcan_txspace(dma->tx.size, txwr, in grcan_err()
829 u32 txwr = grcan_read_reg(®s->txwr); in grcan_running_reset() local
843 grcan_write_reg(®s->txwr, txwr); in grcan_running_reset()
864 if (grcan_txspace(priv->dma.tx.size, txwr, priv->eskbp) && in grcan_running_reset()
1267 u32 txwr, u32 oneshotmode, in grcan_txbug_workaround() argument
1284 grcan_read_reg(®s->txrd) == txwr) { in grcan_txbug_workaround()
1293 if (grcan_txspace(dma->tx.size, txwr, priv->eskbp)) in grcan_txbug_workaround()
1341 u32 id, txwr, txrd, space, txctrl; in grcan_start_xmit() local
1364 txwr = grcan_read_reg(®s->txwr); in grcan_start_xmit()
1365 space = grcan_txspace(dma->tx.size, txwr, priv->eskbp); in grcan_start_xmit()
1367 slotindex = txwr / GRCAN_MSG_SIZE; in grcan_start_xmit()
1368 slot = dma->tx.buf + txwr; in grcan_start_xmit()
1420 if (unlikely(grcan_ring_sub(txwr, txrd, dma->tx.size) == 1)) { in grcan_start_xmit()
1423 err = grcan_txbug_workaround(dev, skb, txwr, in grcan_start_xmit()
1444 grcan_write_reg(®s->txwr, in grcan_start_xmit()
1445 grcan_ring_add(txwr, GRCAN_MSG_SIZE, dma->tx.size)); in grcan_start_xmit()