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