Lines Matching defs:txdesc
478 struct sh_eth_txdesc *txdesc = NULL;
480 int tx_ringsize = sizeof(*txdesc) * TX_RING_SIZE;
526 txdesc = &mdp->tx_ring[i];
527 txdesc->status = cpu_to_edmac(mdp, TD_TFP);
528 txdesc->buffer_length = 0;
538 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE);
701 struct sh_eth_txdesc *txdesc;
707 txdesc = &mdp->tx_ring[entry];
708 if (txdesc->status & cpu_to_edmac(mdp, TD_TACT))
716 txdesc->status = cpu_to_edmac(mdp, TD_TFP);
718 txdesc->status |= cpu_to_edmac(mdp, TD_TDLE);
721 mdp->stats.tx_bytes += txdesc->buffer_length;
1162 struct sh_eth_txdesc *txdesc;
1178 txdesc = &mdp->tx_ring[entry];
1179 txdesc->addr = virt_to_phys(skb->data);
1182 sh_eth_soft_swap(phys_to_virt(ALIGN(txdesc->addr, 4)),
1187 txdesc->buffer_length = ETHERSMALL;
1189 txdesc->buffer_length = skb->len;
1192 txdesc->status |= cpu_to_edmac(mdp, TD_TACT | TD_TDLE);
1194 txdesc->status |= cpu_to_edmac(mdp, TD_TACT);