Lines Matching refs:compRing
312 vmxnet3_alloc_compring(vmxnet3_softc_t *dp, vmxnet3_compring_t *compRing)
314 size_t ringSize = compRing->size * sizeof (Vmxnet3_TxCompDesc);
316 if (vmxnet3_alloc_dma_mem_512(dp, &compRing->dma, ringSize,
320 (void) memset(compRing->dma.buf, 0, ringSize);
321 compRing->next2comp = 0;
322 compRing->gen = VMXNET3_INIT_GEN;
341 ASSERT(!(txq->compRing.size & VMXNET3_RING_SIZE_MASK));
342 ASSERT(!txq->cmdRing.dma.buf && !txq->compRing.dma.buf);
352 if ((err = vmxnet3_alloc_compring(dp, &txq->compRing)) != 0) {
355 tqdesc->conf.compRingBasePA = txq->compRing.dma.bufPA;
356 tqdesc->conf.compRingSize = txq->compRing.size;
370 vmxnet3_free_dma_mem(&txq->compRing.dma);
391 ASSERT(!(rxq->compRing.size & VMXNET3_RING_SIZE_MASK));
392 ASSERT(!rxq->cmdRing.dma.buf && !rxq->compRing.dma.buf);
402 if ((err = vmxnet3_alloc_compring(dp, &rxq->compRing)) != 0) {
405 rqdesc->conf.compRingBasePA = rxq->compRing.dma.bufPA;
406 rqdesc->conf.compRingSize = rxq->compRing.size;
420 vmxnet3_free_dma_mem(&rxq->compRing.dma);
436 ASSERT(txq->cmdRing.dma.buf && txq->compRing.dma.buf);
443 vmxnet3_free_dma_mem(&txq->compRing.dma);
455 ASSERT(rxq->cmdRing.dma.buf && rxq->compRing.dma.buf);
462 vmxnet3_free_dma_mem(&rxq->compRing.dma);
533 dp->txQueue.compRing.size = txQueueSize;
553 dp->rxQueue.compRing.size = rxQueueSize;