Searched refs:txwr (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/net/can/
H A Dgrcan.c66 u32 txwr; /* 0x20C */ member in struct:grcan_registers
383 static inline u32 grcan_txspace(size_t txsize, u32 txwr, u32 eskbp) grcan_txspace() argument
386 u32 used = grcan_ring_sub(txwr, eskbp, txsize) / GRCAN_MSG_SIZE; grcan_txspace()
697 u32 txwr = grcan_read_reg(&regs->txwr); grcan_err() local
699 if (grcan_txspace(dma->tx.size, txwr, grcan_err()
832 u32 txwr = grcan_read_reg(&regs->txwr); grcan_running_reset() local
846 grcan_write_reg(&regs->txwr, txwr); grcan_running_reset()
867 if (grcan_txspace(priv->dma.tx.size, txwr, priv->eskbp) && grcan_running_reset()
988 /* regs->txwr, regs->txrd and priv->eskbp already set to 0 by reset */ grcan_start()
1285 u32 txwr, u32 oneshotmode, grcan_txbug_workaround()
1302 grcan_read_reg(&regs->txrd) == txwr) { grcan_txbug_workaround()
1311 if (grcan_txspace(dma->tx.size, txwr, priv->eskbp)) grcan_txbug_workaround()
1340 * regs->txwr - the next slot for the driver to put data to be sent
1344 * grcan_start_xmit can enter more messages as long as regs->txwr does
1347 * The device sends messages until regs->txrd reaches regs->txwr
1359 u32 id, txwr, txrd, space, txctrl; grcan_start_xmit() local
1382 txwr = grcan_read_reg(&regs->txwr); grcan_start_xmit()
1383 space = grcan_txspace(dma->tx.size, txwr, priv->eskbp); grcan_start_xmit()
1385 slotindex = txwr / GRCAN_MSG_SIZE; grcan_start_xmit()
1386 slot = dma->tx.buf + txwr; grcan_start_xmit()
1432 /* Bug workaround for old version of grcan where updating txwr grcan_start_xmit()
1434 * the current txwr could hang the can controller grcan_start_xmit()
1438 if (unlikely(grcan_ring_sub(txwr, txrd, dma->tx.size) == 1)) { grcan_start_xmit()
1441 err = grcan_txbug_workaround(dev, skb, txwr, grcan_start_xmit()
1463 grcan_write_reg(&regs->txwr, grcan_start_xmit()
1464 grcan_ring_add(txwr, GRCAN_MSG_SIZE, dma->tx.size)); grcan_start_xmit()
1284 grcan_txbug_workaround(struct net_device *dev, struct sk_buff *skb, u32 txwr, u32 oneshotmode, netdev_tx_t *netdev_tx_status) grcan_txbug_workaround() argument
/linux-4.4.14/drivers/net/ethernet/broadcom/
H A Dcnic_defs.h3464 struct fcoe_tce_tx_only txwr; member in struct:xstorm_fcoe_tce

Completed in 208 milliseconds