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