Lines Matching refs:buf_states
44 buf_state = &rx->dqo.buf_states[buffer_id]; in gve_alloc_buf_state()
58 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_buf_state_is_allocated()
66 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_free_buf_state()
82 buf_state = &rx->dqo.buf_states[buffer_id]; in gve_dequeue_buf_state()
99 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_enqueue_buf_state()
109 rx->dqo.buf_states[tail].next = buffer_id; in gve_enqueue_buf_state()
236 if (rx->dqo.buf_states) { in gve_rx_init_ring_state_dqo()
238 rx->dqo.buf_states[i].next = i + 1; in gve_rx_init_ring_state_dqo()
239 rx->dqo.buf_states[rx->dqo.num_buf_states - 1].next = -1; in gve_rx_init_ring_state_dqo()
277 if (rx->dqo.buf_states) { in gve_rx_reset_ring_dqo()
279 struct gve_rx_buf_state_dqo *bs = &rx->dqo.buf_states[i]; in gve_rx_reset_ring_dqo()
323 struct gve_rx_buf_state_dqo *bs = &rx->dqo.buf_states[i]; in gve_rx_free_ring_dqo()
350 kvfree(rx->dqo.buf_states); in gve_rx_free_ring_dqo()
351 rx->dqo.buf_states = NULL; in gve_rx_free_ring_dqo()
401 rx->dqo.buf_states = kvcalloc(rx->dqo.num_buf_states, in gve_rx_alloc_ring_dqo()
402 sizeof(rx->dqo.buf_states[0]), in gve_rx_alloc_ring_dqo()
404 if (!rx->dqo.buf_states) in gve_rx_alloc_ring_dqo()
541 desc->buf_id = cpu_to_le16(buf_state - rx->dqo.buf_states); in gve_rx_post_buffers_dqo()
768 buf_state = &rx->dqo.buf_states[buffer_id]; in gve_rx_dqo()