Lines Matching refs:bufq
186 buffer_queue_slots = rx->dqo.bufq.mask + 1; in gve_rx_free_ring_dqo()
203 if (rx->dqo.bufq.desc_ring) { in gve_rx_free_ring_dqo()
204 size = sizeof(rx->dqo.bufq.desc_ring[0]) * buffer_queue_slots; in gve_rx_free_ring_dqo()
205 dma_free_coherent(hdev, size, rx->dqo.bufq.desc_ring, in gve_rx_free_ring_dqo()
206 rx->dqo.bufq.bus); in gve_rx_free_ring_dqo()
207 rx->dqo.bufq.desc_ring = NULL; in gve_rx_free_ring_dqo()
240 rx->dqo.bufq.mask = buffer_queue_slots - 1; in gve_rx_alloc_ring_dqo()
272 size = sizeof(rx->dqo.bufq.desc_ring[0]) * buffer_queue_slots; in gve_rx_alloc_ring_dqo()
273 rx->dqo.bufq.desc_ring = in gve_rx_alloc_ring_dqo()
274 dma_alloc_coherent(hdev, size, &rx->dqo.bufq.bus, GFP_KERNEL); in gve_rx_alloc_ring_dqo()
275 if (!rx->dqo.bufq.desc_ring) in gve_rx_alloc_ring_dqo()
297 iowrite32(rx->dqo.bufq.tail, &priv->db_bar2[index]); in gve_rx_write_doorbell_dqo()
335 struct gve_rx_buf_queue_dqo *bufq = &rx->dqo.bufq; in gve_rx_post_buffers_dqo() local
341 num_full_slots = (bufq->tail - bufq->head) & bufq->mask; in gve_rx_post_buffers_dqo()
342 num_avail_slots = bufq->mask - num_full_slots; in gve_rx_post_buffers_dqo()
346 struct gve_rx_desc_dqo *desc = &bufq->desc_ring[bufq->tail]; in gve_rx_post_buffers_dqo()
368 bufq->tail = (bufq->tail + 1) & bufq->mask; in gve_rx_post_buffers_dqo()
372 if ((bufq->tail & (GVE_RX_BUF_THRESH_DQO - 1)) == 0) in gve_rx_post_buffers_dqo()
712 struct gve_rx_buf_queue_dqo *bufq = &rx->dqo.bufq; in gve_rx_poll_dqo() local
714 bufq->head = (bufq->head + 1) & bufq->mask; in gve_rx_poll_dqo()