Lines Matching defs:txdesc
658 struct sh_eth_txdesc *txdesc = NULL;
660 int tx_ringsize = sizeof(*txdesc) * TX_RING_SIZE;
704 txdesc = &mdp->tx_ring[i];
705 txdesc->status = cpu_to_edmac(mdp, TD_TFP);
706 txdesc->buffer_length = 0;
715 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE);
878 struct sh_eth_txdesc *txdesc;
884 txdesc = &mdp->tx_ring[entry];
885 if (txdesc->status & cpu_to_edmac(mdp, TD_TACT))
889 dma_unmap_single(&ndev->dev, txdesc->addr,
890 txdesc->buffer_length, DMA_TO_DEVICE);
895 txdesc->status = cpu_to_edmac(mdp, TD_TFP);
897 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE);
900 ndev->stats.tx_bytes += txdesc->buffer_length;
1494 struct sh_eth_txdesc *txdesc;
1512 txdesc = &mdp->tx_ring[entry];
1515 sh_eth_soft_swap(phys_to_virt(ALIGN(txdesc->addr, 4)),
1517 txdesc->addr = dma_map_single(&ndev->dev, skb->data, skb->len,
1520 txdesc->buffer_length = ETHERSMALL;
1522 txdesc->buffer_length = skb->len;
1525 txdesc->status |= cpu_to_edmac(mdp, TD_TACT | TD_TDLE);
1527 txdesc->status |= cpu_to_edmac(mdp, TD_TACT);