Lines Matching refs:txdesc
1165 struct sh_eth_txdesc *txdesc = NULL; in sh_eth_ring_format() local
1167 int tx_ringsize = sizeof(*txdesc) * mdp->num_tx_ring; in sh_eth_ring_format()
1224 txdesc = &mdp->tx_ring[i]; in sh_eth_ring_format()
1225 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_ring_format()
1226 txdesc->len = cpu_to_edmac(mdp, 0); in sh_eth_ring_format()
1236 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_ring_format()
1417 struct sh_eth_txdesc *txdesc; in sh_eth_txfree() local
1423 txdesc = &mdp->tx_ring[entry]; in sh_eth_txfree()
1424 if (txdesc->status & cpu_to_edmac(mdp, TD_TACT)) in sh_eth_txfree()
1430 entry, edmac_to_cpu(mdp, txdesc->status)); in sh_eth_txfree()
1434 edmac_to_cpu(mdp, txdesc->addr), in sh_eth_txfree()
1435 edmac_to_cpu(mdp, txdesc->len) >> 16, in sh_eth_txfree()
1441 txdesc->status = cpu_to_edmac(mdp, TD_TFP); in sh_eth_txfree()
1443 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE); in sh_eth_txfree()
1446 ndev->stats.tx_bytes += edmac_to_cpu(mdp, txdesc->len) >> 16; in sh_eth_txfree()
2383 struct sh_eth_txdesc *txdesc; in sh_eth_start_xmit() local
2404 txdesc = &mdp->tx_ring[entry]; in sh_eth_start_xmit()
2414 txdesc->addr = cpu_to_edmac(mdp, dma_addr); in sh_eth_start_xmit()
2415 txdesc->len = cpu_to_edmac(mdp, skb->len << 16); in sh_eth_start_xmit()
2419 txdesc->status |= cpu_to_edmac(mdp, TD_TACT | TD_TDLE); in sh_eth_start_xmit()
2421 txdesc->status |= cpu_to_edmac(mdp, TD_TACT); in sh_eth_start_xmit()