Searched refs:cmdRing (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3_rx.c | 217 vmxnet3_cmdring_t *cmdRing = &rxq->cmdRing; in vmxnet3_rx_populate() local 218 Vmxnet3_GenericDesc *rxDesc = VMXNET3_GET_DESC(cmdRing, idx); in vmxnet3_rx_populate() 225 rxDesc->rxd.gen = cmdRing->gen; in vmxnet3_rx_populate() 242 vmxnet3_cmdring_t *cmdRing = &rxq->cmdRing; in vmxnet3_rxqueue_init() local 246 cmdRing->size * 10, cmdRing->size * 2); in vmxnet3_rxqueue_init() 249 if ((err = vmxnet3_rx_populate(dp, rxq, cmdRing->next2fill, in vmxnet3_rxqueue_init() 253 VMXNET3_INC_RING_IDX(cmdRing, cmdRing->next2fill); in vmxnet3_rxqueue_init() 254 } while (cmdRing->next2fill); in vmxnet3_rxqueue_init() 268 while (cmdRing->next2fill) { in vmxnet3_rxqueue_init() 269 VMXNET3_DEC_RING_IDX(cmdRing, cmdRing->next2fill); in vmxnet3_rxqueue_init() [all …]
|
H A D | vmxnet3_tx.c | 56 for (i = 0; i < txq->cmdRing.size; i++) { in vmxnet3_txqueue_fini() 163 vmxnet3_cmdring_t *cmdRing = &txq->cmdRing; in vmxnet3_tx_one() local 172 sopIdx = eopIdx = cmdRing->next2fill; in vmxnet3_tx_one() 173 sopGen = cmdRing->gen; in vmxnet3_tx_one() 174 curGen = !cmdRing->gen; in vmxnet3_tx_one() 207 ASSERT(cmdRing->avail - frags); in vmxnet3_tx_one() 209 if (frags >= cmdRing->size - 1 || in vmxnet3_tx_one() 219 if (cmdRing->avail - frags <= 1) { in vmxnet3_tx_one() 234 eopIdx = cmdRing->next2fill; in vmxnet3_tx_one() 236 txDesc = VMXNET3_GET_DESC(cmdRing, eopIdx); in vmxnet3_tx_one() [all …]
|
H A D | vmxnet3_main.c | 288 vmxnet3_alloc_cmdring(vmxnet3_softc_t *dp, vmxnet3_cmdring_t *cmdRing) in vmxnet3_alloc_cmdring() argument 290 size_t ringSize = cmdRing->size * sizeof (Vmxnet3_TxDesc); in vmxnet3_alloc_cmdring() 293 if ((err = vmxnet3_alloc_dma_mem_512(dp, &cmdRing->dma, ringSize, in vmxnet3_alloc_cmdring() 297 (void) memset(cmdRing->dma.buf, 0, ringSize); in vmxnet3_alloc_cmdring() 298 cmdRing->avail = cmdRing->size; in vmxnet3_alloc_cmdring() 299 cmdRing->next2fill = 0; in vmxnet3_alloc_cmdring() 300 cmdRing->gen = VMXNET3_INIT_GEN; in vmxnet3_alloc_cmdring() 340 ASSERT(!(txq->cmdRing.size & VMXNET3_RING_SIZE_MASK)); in vmxnet3_prepare_txqueue() 342 ASSERT(!txq->cmdRing.dma.buf && !txq->compRing.dma.buf); in vmxnet3_prepare_txqueue() 344 if ((err = vmxnet3_alloc_cmdring(dp, &txq->cmdRing)) != 0) { in vmxnet3_prepare_txqueue() [all …]
|
H A D | vmxnet3.h | 87 vmxnet3_cmdring_t cmdRing; member 112 vmxnet3_cmdring_t cmdRing; member
|