Lines Matching refs:comp_ring

396 	gdesc = tq->comp_ring.base + tq->comp_ring.next2proc;  in vmxnet3_tq_tx_complete()
397 while (VMXNET3_TCD_GET_GEN(&gdesc->tcd) == tq->comp_ring.gen) { in vmxnet3_tq_tx_complete()
407 vmxnet3_comp_ring_adv_next2proc(&tq->comp_ring); in vmxnet3_tq_tx_complete()
408 gdesc = tq->comp_ring.base + tq->comp_ring.next2proc; in vmxnet3_tq_tx_complete()
453 tq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_tq_cleanup()
454 tq->comp_ring.next2proc = 0; in vmxnet3_tq_cleanup()
474 if (tq->comp_ring.base) { in vmxnet3_tq_destroy()
475 dma_free_coherent(&adapter->pdev->dev, tq->comp_ring.size * in vmxnet3_tq_destroy()
477 tq->comp_ring.base, tq->comp_ring.basePA); in vmxnet3_tq_destroy()
478 tq->comp_ring.base = NULL; in vmxnet3_tq_destroy()
512 memset(tq->comp_ring.base, 0, tq->comp_ring.size * in vmxnet3_tq_init()
514 tq->comp_ring.next2proc = 0; in vmxnet3_tq_init()
515 tq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_tq_init()
531 tq->comp_ring.base || tq->buf_info); in vmxnet3_tq_create()
549 tq->comp_ring.base = dma_alloc_coherent(&adapter->pdev->dev, in vmxnet3_tq_create()
550 tq->comp_ring.size * sizeof(struct Vmxnet3_TxCompDesc), in vmxnet3_tq_create()
551 &tq->comp_ring.basePA, GFP_KERNEL); in vmxnet3_tq_create()
552 if (!tq->comp_ring.base) { in vmxnet3_tq_create()
1420 vmxnet3_getRxComp(rcd, &rq->comp_ring.base[rq->comp_ring.next2proc].rcd, in vmxnet3_rq_rx_complete()
1422 while (rcd->gen == rq->comp_ring.gen) { in vmxnet3_rq_rx_complete()
1748 vmxnet3_comp_ring_adv_next2proc(&rq->comp_ring); in vmxnet3_rq_rx_complete()
1750 &rq->comp_ring.base[rq->comp_ring.next2proc].rcd, &rxComp); in vmxnet3_rq_rx_complete()
1796 rq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_rq_cleanup()
1797 rq->comp_ring.next2proc = 0; in vmxnet3_rq_cleanup()
1844 if (rq->comp_ring.base) { in vmxnet3_rq_destroy()
1845 dma_free_coherent(&adapter->pdev->dev, rq->comp_ring.size in vmxnet3_rq_destroy()
1847 rq->comp_ring.base, rq->comp_ring.basePA); in vmxnet3_rq_destroy()
1848 rq->comp_ring.base = NULL; in vmxnet3_rq_destroy()
1916 rq->comp_ring.next2proc = 0; in vmxnet3_rq_init()
1917 memset(rq->comp_ring.base, 0, rq->comp_ring.size * in vmxnet3_rq_init()
1919 rq->comp_ring.gen = VMXNET3_INIT_GEN; in vmxnet3_rq_init()
1985 sz = rq->comp_ring.size * sizeof(struct Vmxnet3_RxCompDesc); in vmxnet3_rq_create()
1986 rq->comp_ring.base = dma_alloc_coherent(&adapter->pdev->dev, sz, in vmxnet3_rq_create()
1987 &rq->comp_ring.basePA, in vmxnet3_rq_create()
1989 if (!rq->comp_ring.base) { in vmxnet3_rq_create()
2098 vmxnet3_enable_intr(adapter, rq->comp_ring.intr_idx); in vmxnet3_poll_rx_only()
2118 vmxnet3_disable_intr(adapter, tq->comp_ring.intr_idx); in vmxnet3_msix_tx()
2130 vmxnet3_enable_intr(adapter, tq->comp_ring.intr_idx); in vmxnet3_msix_tx()
2149 vmxnet3_disable_intr(adapter, rq->comp_ring.intr_idx); in vmxnet3_msix_rx()
2273 adapter->tx_queue[i].comp_ring.intr_idx in vmxnet3_request_irqs()
2278 adapter->tx_queue[i].comp_ring.intr_idx in vmxnet3_request_irqs()
2304 adapter->rx_queue[i].comp_ring.intr_idx = vector++; in vmxnet3_request_irqs()
2347 adapter->tx_queue[i].comp_ring.intr_idx = 0; in vmxnet3_request_irqs()
2348 adapter->rx_queue[0].comp_ring.intr_idx = 0; in vmxnet3_request_irqs()
2632 tqc->compRingBasePA = cpu_to_le64(tq->comp_ring.basePA); in vmxnet3_setup_driver_shared()
2637 tqc->compRingSize = cpu_to_le32(tq->comp_ring.size); in vmxnet3_setup_driver_shared()
2639 tqc->intrIdx = tq->comp_ring.intr_idx; in vmxnet3_setup_driver_shared()
2649 rqc->compRingBasePA = cpu_to_le64(rq->comp_ring.basePA); in vmxnet3_setup_driver_shared()
2653 rqc->compRingSize = cpu_to_le32(rq->comp_ring.size); in vmxnet3_setup_driver_shared()
2655 rqc->intrIdx = rq->comp_ring.intr_idx; in vmxnet3_setup_driver_shared()
3102 rq->comp_ring.size = comp_size; in vmxnet3_adjust_rx_ring_size()
3118 tq->comp_ring.size = tx_ring_size; in vmxnet3_create_queues()