PCN_TXRING
(pcnp->pcn_txavail != PCN_TXRING)) {
pcnp->pcn_txavail = PCN_TXRING;
for (i = 0; i < PCN_TXRING; i++) {
PCN_TXRING * sizeof (pcn_tx_desc_t), DDI_DMA_SYNC_FORDEV);
pcn_csr_write(pcnp, PCN_CSR_TXRINGLEN, (~PCN_TXRING) + 1);
size = PCN_TXRING * sizeof (pcn_tx_desc_t);
pcnp->pcn_txbufs = kmem_zalloc(PCN_TXRING * sizeof (pcn_buf_t *),
for (i = 0; i < PCN_TXRING; i++) {
for (i = 0; i < PCN_TXRING; i++)
kmem_free(pcnp->pcn_txbufs, PCN_TXRING * sizeof (pcn_buf_t *));
pcnp->pcn_txsend = (txsend + 1) % PCN_TXRING;
while (pcnp->pcn_txavail != PCN_TXRING) {
pcnp->pcn_txreclaim = (index + 1) % PCN_TXRING;