Searched refs:fifo (Results 1 – 1 of 1) sorted by relevance
69 struct deferred_action fifo[DEFERRED_ACTION_FIFO_SIZE]; member97 static void action_fifo_init(struct action_fifo *fifo) in action_fifo_init() argument99 fifo->head = 0; in action_fifo_init()100 fifo->tail = 0; in action_fifo_init()103 static bool action_fifo_is_empty(const struct action_fifo *fifo) in action_fifo_is_empty() argument105 return (fifo->head == fifo->tail); in action_fifo_is_empty()108 static struct deferred_action *action_fifo_get(struct action_fifo *fifo) in action_fifo_get() argument110 if (action_fifo_is_empty(fifo)) in action_fifo_get()113 return &fifo->fifo[fifo->tail++]; in action_fifo_get()116 static struct deferred_action *action_fifo_put(struct action_fifo *fifo) in action_fifo_put() argument[all …]