Lines Matching refs:txdesc
659 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local
661 int tx_ringsize = sizeof(*txdesc) * TX_RING_SIZE; in sh_eth_ring_format()
705 txdesc = &mdp->tx_ring[i]; in sh_eth_ring_format()
706 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_ring_format()
707 txdesc->buffer_length = 0; in sh_eth_ring_format()
716 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_ring_format()
879 struct sh_eth_txdesc *txdesc; in sh_eth_txfree() local
885 txdesc = &mdp->tx_ring[entry]; in sh_eth_txfree()
886 if (txdesc->status & cpu_to_edmac(mdp, TD_TACT)) in sh_eth_txfree()
890 dma_unmap_single(&ndev->dev, txdesc->addr, in sh_eth_txfree()
891 txdesc->buffer_length, DMA_TO_DEVICE); in sh_eth_txfree()
896 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_txfree()
898 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_txfree()
901 ndev->stats.tx_bytes += txdesc->buffer_length; in sh_eth_txfree()
1495 struct sh_eth_txdesc *txdesc; in sh_eth_start_xmit() local
1513 txdesc = &mdp->tx_ring[entry]; in sh_eth_start_xmit()
1516 sh_eth_soft_swap(phys_to_virt(ALIGN(txdesc->addr, 4)), in sh_eth_start_xmit()
1518 txdesc->addr = dma_map_single(&ndev->dev, skb->data, skb->len, in sh_eth_start_xmit()
1521 txdesc->buffer_length = ETHERSMALL; in sh_eth_start_xmit()
1523 txdesc->buffer_length = skb->len; in sh_eth_start_xmit()
1526 txdesc->status |= cpu_to_edmac(mdp, TD_TACT | TD_TDLE); in sh_eth_start_xmit()
1528 txdesc->status |= cpu_to_edmac(mdp, TD_TACT); in sh_eth_start_xmit()