Lines Matching refs:buffer_id

36 	s16 buffer_id;  in gve_alloc_buf_state()  local
38 buffer_id = rx->dqo.free_buf_states; in gve_alloc_buf_state()
39 if (unlikely(buffer_id == -1)) in gve_alloc_buf_state()
42 buf_state = &rx->dqo.buf_states[buffer_id]; in gve_alloc_buf_state()
48 buf_state->next = buffer_id; in gve_alloc_buf_state()
56 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_buf_state_is_allocated() local
58 return buf_state->next == buffer_id; in gve_buf_state_is_allocated()
64 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_free_buf_state() local
67 rx->dqo.free_buf_states = buffer_id; in gve_free_buf_state()
74 s16 buffer_id; in gve_dequeue_buf_state() local
76 buffer_id = list->head; in gve_dequeue_buf_state()
77 if (unlikely(buffer_id == -1)) in gve_dequeue_buf_state()
80 buf_state = &rx->dqo.buf_states[buffer_id]; in gve_dequeue_buf_state()
88 buf_state->next = buffer_id; in gve_dequeue_buf_state()
97 s16 buffer_id = buf_state - rx->dqo.buf_states; in gve_enqueue_buf_state() local
102 list->head = buffer_id; in gve_enqueue_buf_state()
103 list->tail = buffer_id; in gve_enqueue_buf_state()
107 rx->dqo.buf_states[tail].next = buffer_id; in gve_enqueue_buf_state()
108 list->tail = buffer_id; in gve_enqueue_buf_state()
522 const u16 buffer_id = le16_to_cpu(compl_desc->buf_id); in gve_rx_dqo() local
528 if (unlikely(buffer_id >= rx->dqo.num_buf_states)) { in gve_rx_dqo()
530 priv->dev->name, buffer_id); in gve_rx_dqo()
533 buf_state = &rx->dqo.buf_states[buffer_id]; in gve_rx_dqo()
536 priv->dev->name, buffer_id); in gve_rx_dqo()