Lines Matching refs:head
125 uint16_t head, tail; in dp_rx_refill_buff_pool_enqueue() local
136 head = buff_pool->head; in dp_rx_refill_buff_pool_enqueue()
138 if (tail > head) in dp_rx_refill_buff_pool_enqueue()
139 total_num_refill = (tail - head - 1); in dp_rx_refill_buff_pool_enqueue()
141 total_num_refill = (buff_pool->max_bufq_len - head + in dp_rx_refill_buff_pool_enqueue()
173 buff_pool->buf_elem[head++] = nbuf; in dp_rx_refill_buff_pool_enqueue()
174 head &= (buff_pool->max_bufq_len - 1); in dp_rx_refill_buff_pool_enqueue()
179 buff_pool->head = head; in dp_rx_refill_buff_pool_enqueue()
194 uint16_t head, tail; in dp_rx_refill_buff_pool_dequeue_nbuf() local
196 head = buff_pool->head; in dp_rx_refill_buff_pool_dequeue_nbuf()
199 if (head == tail) in dp_rx_refill_buff_pool_dequeue_nbuf()
289 uint16_t head = 0; in dp_rx_refill_buff_pool_init() local
333 buff_pool->buf_elem[head] = nbuf; in dp_rx_refill_buff_pool_init()
334 head++; in dp_rx_refill_buff_pool_init()
337 buff_pool->head = head; in dp_rx_refill_buff_pool_init()
341 buff_pool->head); in dp_rx_refill_buff_pool_init()
405 count, buff_pool->head, buff_pool->tail); in dp_rx_refill_buff_pool_deinit()