Lines Matching refs:ring
251 wq->ring = oce_create_ring_buffer(sc, q_len, NIC_WQE_SIZE); in oce_wq_init()
252 if (!wq->ring) in oce_wq_init()
283 if (wq->ring != NULL) { in oce_wq_free()
284 oce_destroy_ring_buffer(sc, wq->ring); in oce_wq_free()
285 wq->ring = NULL; in oce_wq_free()
334 wq->ring->cidx = 0; in oce_wq_create()
335 wq->ring->pidx = 0; in oce_wq_create()
433 rq->ring = oce_create_ring_buffer(sc, q_len, in oce_rq_init()
435 if (!rq->ring) in oce_rq_init()
458 if (rq->ring != NULL) { in oce_rq_free()
459 oce_destroy_ring_buffer(sc, rq->ring); in oce_rq_free()
460 rq->ring = NULL; in oce_rq_free()
505 rq->ring->cidx = 0; in oce_rq_create()
506 rq->ring->pidx = 0; in oce_rq_create()
574 eq->ring = oce_create_ring_buffer(sc, q_len, item_size); in oce_eq_create()
575 if (!eq->ring) in oce_eq_create()
614 if (eq->ring != NULL) { in oce_eq_del()
615 oce_destroy_ring_buffer(sc, eq->ring); in oce_eq_del()
616 eq->ring = NULL; in oce_eq_del()
657 mq->ring = oce_create_ring_buffer(sc, q_len, sizeof(struct oce_mbx)); in oce_mq_create()
658 if (!mq->ring) in oce_mq_create()
672 num_pages = oce_page_list(mq->ring, &fwcmd->params.req.pages[0]); in oce_mq_create()
673 page_size = mq->ring->num_items * mq->ring->item_size; in oce_mq_create()
746 if (mq->ring != NULL) { in oce_mq_free()
747 oce_destroy_ring_buffer(sc, mq->ring); in oce_mq_free()
748 mq->ring = NULL; in oce_mq_free()
856 cq->ring = oce_create_ring_buffer(sc, q_len, item_size); in oce_cq_create()
857 if (!cq->ring) in oce_cq_create()
891 if (cq->ring != NULL) { in oce_cq_del()
899 oce_destroy_ring_buffer(sc, cq->ring); in oce_cq_del()
900 cq->ring = NULL; in oce_cq_del()
1007 eqe = RING_GET_CONSUMER_ITEM_VA(eq->ring, struct oce_eqe); in oce_drain_eq()
1011 bus_dmamap_sync(eq->ring->dma.tag, eq->ring->dma.map, in oce_drain_eq()
1014 RING_GET(eq->ring, 1); in oce_drain_eq()
1030 bus_dmamap_sync(cq->ring->dma.tag, cq->ring->dma.map, in oce_drain_wq_cq()
1034 cqe = RING_GET_CONSUMER_ITEM_VA(cq->ring, struct oce_nic_tx_cqe); in oce_drain_wq_cq()
1038 bus_dmamap_sync(cq->ring->dma.tag, cq->ring->dma.map, in oce_drain_wq_cq()
1040 RING_GET(cq->ring, 1); in oce_drain_wq_cq()
1077 cqe = RING_GET_CONSUMER_ITEM_VA(cq->ring, struct oce_nic_rx_cqe); in oce_drain_rq_cq()
1081 RING_GET(cq->ring, 1); in oce_drain_rq_cq()
1082 cqe = RING_GET_CONSUMER_ITEM_VA(cq->ring, in oce_drain_rq_cq()
1097 pd = &rq->pckts[rq->ring->cidx]; in oce_free_posted_rxbuf()
1105 RING_GET(rq->ring,1); in oce_free_posted_rxbuf()
1123 bus_dmamap_sync(cq->ring->dma.tag,cq->ring->dma.map, BUS_DMASYNC_POSTWRITE); in oce_rx_cq_clean_hwlro()
1124 cqe = RING_GET_CONSUMER_ITEM_VA(cq->ring, struct nic_hwlro_singleton_cqe); in oce_rx_cq_clean_hwlro()
1140 RING_GET(cq->ring, 1); in oce_rx_cq_clean_hwlro()
1148 RING_GET(cq->ring, 1); in oce_rx_cq_clean_hwlro()
1166 RING_GET(cq->ring, 1); in oce_rx_cq_clean_hwlro()
1200 bus_dmamap_sync(cq->ring->dma.tag, in oce_rx_cq_clean()
1201 cq->ring->dma.map, BUS_DMASYNC_POSTWRITE); in oce_rx_cq_clean()
1202 cqe = RING_GET_CONSUMER_ITEM_VA(cq->ring, struct oce_nic_rx_cqe); in oce_rx_cq_clean()
1211 RING_GET(cq->ring, 1); in oce_rx_cq_clean()
1305 rq->ring->cidx = 0; in oce_start_rx()
1306 rq->ring->pidx = 0; in oce_start_rx()