Lines Matching refs:data_ring
521 if (tq->data_ring.base) { in vmxnet3_tq_destroy()
523 tq->data_ring.size * tq->txdata_desc_size, in vmxnet3_tq_destroy()
524 tq->data_ring.base, tq->data_ring.basePA); in vmxnet3_tq_destroy()
525 tq->data_ring.base = NULL; in vmxnet3_tq_destroy()
567 memset(tq->data_ring.base, 0, in vmxnet3_tq_init()
568 tq->data_ring.size * tq->txdata_desc_size); in vmxnet3_tq_init()
593 BUG_ON(tq->tx_ring.base || tq->data_ring.base || in vmxnet3_tq_create()
604 tq->data_ring.base = dma_alloc_coherent(&adapter->pdev->dev, in vmxnet3_tq_create()
605 tq->data_ring.size * tq->txdata_desc_size, in vmxnet3_tq_create()
606 &tq->data_ring.basePA, GFP_KERNEL); in vmxnet3_tq_create()
607 if (!tq->data_ring.base) { in vmxnet3_tq_create()
802 ctx->sop_txd->txd.addr = cpu_to_le64(tq->data_ring.basePA + in vmxnet3_map_pkt()
1060 tdd = (struct Vmxnet3_TxDataDesc *)((u8 *)tq->data_ring.base + in vmxnet3_copy_hdr()
1690 sz = rcd->rxdIdx * rq->data_ring.desc_size; in vmxnet3_rq_rx_complete()
1692 &rq->data_ring.base[sz], in vmxnet3_rq_rx_complete()
1719 BUG_ON(rcd->len > rq->data_ring.desc_size); in vmxnet3_rq_rx_complete()
1722 sz = rcd->rxdIdx * rq->data_ring.desc_size; in vmxnet3_rq_rx_complete()
1724 &rq->data_ring.base[sz], rcd->len); in vmxnet3_rq_rx_complete()
2073 if (rq->data_ring.base) { in vmxnet3_rq_destroy()
2075 rq->rx_ring[0].size * rq->data_ring.desc_size, in vmxnet3_rq_destroy()
2076 rq->data_ring.base, rq->data_ring.basePA); in vmxnet3_rq_destroy()
2077 rq->data_ring.base = NULL; in vmxnet3_rq_destroy()
2107 if (rq->data_ring.base) { in vmxnet3_rq_destroy_all_rxdataring()
2110 rq->data_ring.desc_size), in vmxnet3_rq_destroy_all_rxdataring()
2111 rq->data_ring.base, in vmxnet3_rq_destroy_all_rxdataring()
2112 rq->data_ring.basePA); in vmxnet3_rq_destroy_all_rxdataring()
2113 rq->data_ring.base = NULL; in vmxnet3_rq_destroy_all_rxdataring()
2115 rq->data_ring.desc_size = 0; in vmxnet3_rq_destroy_all_rxdataring()
2228 if ((adapter->rxdataring_enabled) && (rq->data_ring.desc_size != 0)) { in vmxnet3_rq_create()
2229 sz = rq->rx_ring[0].size * rq->data_ring.desc_size; in vmxnet3_rq_create()
2230 rq->data_ring.base = in vmxnet3_rq_create()
2232 &rq->data_ring.basePA, in vmxnet3_rq_create()
2234 if (!rq->data_ring.base) { in vmxnet3_rq_create()
2240 rq->data_ring.base = NULL; in vmxnet3_rq_create()
2241 rq->data_ring.desc_size = 0; in vmxnet3_rq_create()
2907 tqc->dataRingBasePA = cpu_to_le64(tq->data_ring.basePA); in vmxnet3_setup_driver_shared()
2911 tqc->dataRingSize = cpu_to_le32(tq->data_ring.size); in vmxnet3_setup_driver_shared()
2939 cpu_to_le64(rq->data_ring.basePA); in vmxnet3_setup_driver_shared()
2941 cpu_to_le16(rq->data_ring.desc_size); in vmxnet3_setup_driver_shared()
3403 tq->data_ring.size = tx_ring_size; in vmxnet3_create_queues()
3432 rq->data_ring.desc_size = rxdata_desc_size; in vmxnet3_create_queues()