Lines Matching refs:first
80 static inline bool mfifo_enqueue_idx_get(uint8_t count, uint8_t first, in mfifo_enqueue_idx_get() argument
95 if (last == first) { in mfifo_enqueue_idx_get()
144 uint8_t count, uint8_t first, in mfifo_enqueue_get() argument
150 if (!mfifo_enqueue_idx_get(count, first, last, &idx)) { in mfifo_enqueue_get()
210 static inline uint8_t mfifo_avail_count_get(uint8_t count, uint8_t first, in mfifo_avail_count_get() argument
213 if (last >= first) { in mfifo_avail_count_get()
214 return last - first; in mfifo_avail_count_get()
216 return count - first + last; in mfifo_avail_count_get()
233 uint8_t first, uint8_t last) in mfifo_dequeue_get() argument
235 if (first == last) { in mfifo_dequeue_get()
240 return (void *)(fifo + first * size); in mfifo_dequeue_get()
255 uint8_t first, uint8_t last) in mfifo_dequeue_peek() argument
257 if (first == last) { in mfifo_dequeue_peek()
262 return *((void **)(fifo + first * size)); in mfifo_dequeue_peek()
274 uint8_t count, uint8_t first, in mfifo_dequeue_iter_get() argument
281 *idx = first; in mfifo_dequeue_iter_get()
316 uint8_t last, uint8_t *first) in mfifo_dequeue() argument
318 uint8_t _first = *first; /* Copy read-index */ in mfifo_dequeue()
337 *first = _first; /* Write back read-index */ in mfifo_dequeue()