Lines Matching full:ring
27 struct aq_ring_s ring[AQ_CFG_TCS_MAX][2]; member
37 struct aq_ring_s *ring = NULL; in aq_vec_poll() local
46 for (i = 0U, ring = self->ring[0]; in aq_vec_poll()
47 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_poll()
48 u64_stats_update_begin(&ring[AQ_VEC_RX_ID].stats.rx.syncp); in aq_vec_poll()
49 ring[AQ_VEC_RX_ID].stats.rx.polls++; in aq_vec_poll()
50 u64_stats_update_end(&ring[AQ_VEC_RX_ID].stats.rx.syncp); in aq_vec_poll()
54 &ring[AQ_VEC_TX_ID]); in aq_vec_poll()
59 if (ring[AQ_VEC_TX_ID].sw_head != in aq_vec_poll()
60 ring[AQ_VEC_TX_ID].hw_head) { in aq_vec_poll()
61 was_tx_cleaned = aq_ring_tx_clean(&ring[AQ_VEC_TX_ID]); in aq_vec_poll()
62 aq_ring_update_queue_state(&ring[AQ_VEC_TX_ID]); in aq_vec_poll()
66 &ring[AQ_VEC_RX_ID]); in aq_vec_poll()
70 if (ring[AQ_VEC_RX_ID].sw_head != in aq_vec_poll()
71 ring[AQ_VEC_RX_ID].hw_head) { in aq_vec_poll()
72 err = aq_ring_rx_clean(&ring[AQ_VEC_RX_ID], in aq_vec_poll()
79 sw_tail_old = ring[AQ_VEC_RX_ID].sw_tail; in aq_vec_poll()
81 err = aq_ring_rx_fill(&ring[AQ_VEC_RX_ID]); in aq_vec_poll()
87 &ring[AQ_VEC_RX_ID], sw_tail_old); in aq_vec_poll()
137 struct aq_ring_s *ring = NULL; in aq_vec_ring_alloc() local
145 ring = aq_ring_tx_alloc(&self->ring[i][AQ_VEC_TX_ID], aq_nic, in aq_vec_ring_alloc()
147 if (!ring) { in aq_vec_ring_alloc()
154 aq_nic_set_tx_ring(aq_nic, idx_ring, ring); in aq_vec_ring_alloc()
156 ring = aq_ring_rx_alloc(&self->ring[i][AQ_VEC_RX_ID], aq_nic, in aq_vec_ring_alloc()
158 if (!ring) { in aq_vec_ring_alloc()
178 struct aq_ring_s *ring = NULL; in aq_vec_init() local
185 for (i = 0U, ring = self->ring[0]; in aq_vec_init()
186 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_init()
187 err = aq_ring_init(&ring[AQ_VEC_TX_ID], ATL_RING_TX); in aq_vec_init()
192 &ring[AQ_VEC_TX_ID], in aq_vec_init()
197 err = aq_ring_init(&ring[AQ_VEC_RX_ID], ATL_RING_RX); in aq_vec_init()
202 &ring[AQ_VEC_RX_ID], in aq_vec_init()
207 err = aq_ring_rx_fill(&ring[AQ_VEC_RX_ID]); in aq_vec_init()
212 &ring[AQ_VEC_RX_ID], 0U); in aq_vec_init()
223 struct aq_ring_s *ring = NULL; in aq_vec_start() local
227 for (i = 0U, ring = self->ring[0]; in aq_vec_start()
228 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_start()
230 &ring[AQ_VEC_TX_ID]); in aq_vec_start()
235 &ring[AQ_VEC_RX_ID]); in aq_vec_start()
248 struct aq_ring_s *ring = NULL; in aq_vec_stop() local
251 for (i = 0U, ring = self->ring[0]; in aq_vec_stop()
252 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_stop()
254 &ring[AQ_VEC_TX_ID]); in aq_vec_stop()
257 &ring[AQ_VEC_RX_ID]); in aq_vec_stop()
265 struct aq_ring_s *ring = NULL; in aq_vec_deinit() local
271 for (i = 0U, ring = self->ring[0]; in aq_vec_deinit()
272 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_deinit()
273 aq_ring_tx_clean(&ring[AQ_VEC_TX_ID]); in aq_vec_deinit()
274 aq_ring_rx_deinit(&ring[AQ_VEC_RX_ID]); in aq_vec_deinit()
294 struct aq_ring_s *ring = NULL; in aq_vec_ring_free() local
300 for (i = 0U, ring = self->ring[0]; in aq_vec_ring_free()
301 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_ring_free()
302 aq_ring_free(&ring[AQ_VEC_TX_ID]); in aq_vec_ring_free()
304 aq_ring_free(&ring[AQ_VEC_RX_ID]); in aq_vec_ring_free()
371 count = aq_ring_fill_stats_data(&self->ring[tc][AQ_VEC_RX_ID], data); in aq_vec_get_sw_stats()
372 count += aq_ring_fill_stats_data(&self->ring[tc][AQ_VEC_TX_ID], data + count); in aq_vec_get_sw_stats()