Lines Matching refs:comp_ring
437 gdesc = tq->comp_ring.base + tq->comp_ring.next2proc; in vmxnet3_tq_tx_complete()
438 while (VMXNET3_TCD_GET_GEN(&gdesc->tcd) == tq->comp_ring.gen) { in vmxnet3_tq_tx_complete()
448 vmxnet3_comp_ring_adv_next2proc(&tq->comp_ring); in vmxnet3_tq_tx_complete()
449 gdesc = tq->comp_ring.base + tq->comp_ring.next2proc; in vmxnet3_tq_tx_complete()
506 tq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_tq_cleanup()
507 tq->comp_ring.next2proc = 0; in vmxnet3_tq_cleanup()
533 if (tq->comp_ring.base) { in vmxnet3_tq_destroy()
534 dma_free_coherent(&adapter->pdev->dev, tq->comp_ring.size * in vmxnet3_tq_destroy()
536 tq->comp_ring.base, tq->comp_ring.basePA); in vmxnet3_tq_destroy()
537 tq->comp_ring.base = NULL; in vmxnet3_tq_destroy()
575 memset(tq->comp_ring.base, 0, tq->comp_ring.size * in vmxnet3_tq_init()
577 tq->comp_ring.next2proc = 0; in vmxnet3_tq_init()
578 tq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_tq_init()
594 tq->comp_ring.base || tq->buf_info); in vmxnet3_tq_create()
624 tq->comp_ring.base = dma_alloc_coherent(&adapter->pdev->dev, in vmxnet3_tq_create()
625 tq->comp_ring.size * sizeof(struct Vmxnet3_TxCompDesc), in vmxnet3_tq_create()
626 &tq->comp_ring.basePA, GFP_KERNEL); in vmxnet3_tq_create()
627 if (!tq->comp_ring.base) { in vmxnet3_tq_create()
1583 vmxnet3_getRxComp(rcd, &rq->comp_ring.base[rq->comp_ring.next2proc].rcd, in vmxnet3_rq_rx_complete()
1585 while (rcd->gen == rq->comp_ring.gen) { in vmxnet3_rq_rx_complete()
1968 vmxnet3_comp_ring_adv_next2proc(&rq->comp_ring); in vmxnet3_rq_rx_complete()
1970 &rq->comp_ring.base[rq->comp_ring.next2proc].rcd, &rxComp); in vmxnet3_rq_rx_complete()
2026 rq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_rq_cleanup()
2027 rq->comp_ring.next2proc = 0; in vmxnet3_rq_cleanup()
2087 if (rq->comp_ring.base) { in vmxnet3_rq_destroy()
2088 dma_free_coherent(&adapter->pdev->dev, rq->comp_ring.size in vmxnet3_rq_destroy()
2090 rq->comp_ring.base, rq->comp_ring.basePA); in vmxnet3_rq_destroy()
2091 rq->comp_ring.base = NULL; in vmxnet3_rq_destroy()
2175 rq->comp_ring.next2proc = 0; in vmxnet3_rq_init()
2176 memset(rq->comp_ring.base, 0, rq->comp_ring.size * in vmxnet3_rq_init()
2178 rq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_rq_init()
2259 sz = rq->comp_ring.size * sizeof(struct Vmxnet3_RxCompDesc); in vmxnet3_rq_create()
2260 rq->comp_ring.base = dma_alloc_coherent(&adapter->pdev->dev, sz, in vmxnet3_rq_create()
2261 &rq->comp_ring.basePA, in vmxnet3_rq_create()
2263 if (!rq->comp_ring.base) { in vmxnet3_rq_create()
2372 vmxnet3_enable_intr(adapter, rq->comp_ring.intr_idx); in vmxnet3_poll_rx_only()
2392 vmxnet3_disable_intr(adapter, tq->comp_ring.intr_idx); in vmxnet3_msix_tx()
2404 vmxnet3_enable_intr(adapter, tq->comp_ring.intr_idx); in vmxnet3_msix_tx()
2423 vmxnet3_disable_intr(adapter, rq->comp_ring.intr_idx); in vmxnet3_msix_rx()
2547 adapter->tx_queue[i].comp_ring.intr_idx in vmxnet3_request_irqs()
2552 adapter->tx_queue[i].comp_ring.intr_idx in vmxnet3_request_irqs()
2578 adapter->rx_queue[i].comp_ring.intr_idx = vector++; in vmxnet3_request_irqs()
2621 adapter->tx_queue[i].comp_ring.intr_idx = 0; in vmxnet3_request_irqs()
2622 adapter->rx_queue[0].comp_ring.intr_idx = 0; in vmxnet3_request_irqs()
2908 tqc->compRingBasePA = cpu_to_le64(tq->comp_ring.basePA); in vmxnet3_setup_driver_shared()
2913 tqc->compRingSize = cpu_to_le32(tq->comp_ring.size); in vmxnet3_setup_driver_shared()
2915 tqc->intrIdx = tq->comp_ring.intr_idx; in vmxnet3_setup_driver_shared()
2930 rqc->compRingBasePA = cpu_to_le64(rq->comp_ring.basePA); in vmxnet3_setup_driver_shared()
2934 rqc->compRingSize = cpu_to_le32(rq->comp_ring.size); in vmxnet3_setup_driver_shared()
2936 rqc->intrIdx = rq->comp_ring.intr_idx; in vmxnet3_setup_driver_shared()
3388 rq->comp_ring.size = comp_size; in vmxnet3_adjust_rx_ring_size()
3404 tq->comp_ring.size = tx_ring_size; in vmxnet3_create_queues()