Lines Matching refs:fifo
66 struct deferred_action fifo[DEFERRED_ACTION_FIFO_SIZE]; member
94 static void action_fifo_init(struct action_fifo *fifo) in action_fifo_init() argument
96 fifo->head = 0; in action_fifo_init()
97 fifo->tail = 0; in action_fifo_init()
100 static bool action_fifo_is_empty(const struct action_fifo *fifo) in action_fifo_is_empty() argument
102 return (fifo->head == fifo->tail); in action_fifo_is_empty()
105 static struct deferred_action *action_fifo_get(struct action_fifo *fifo) in action_fifo_get() argument
107 if (action_fifo_is_empty(fifo)) in action_fifo_get()
110 return &fifo->fifo[fifo->tail++]; in action_fifo_get()
113 static struct deferred_action *action_fifo_put(struct action_fifo *fifo) in action_fifo_put() argument
115 if (fifo->head >= DEFERRED_ACTION_FIFO_SIZE - 1) in action_fifo_put()
118 return &fifo->fifo[fifo->head++]; in action_fifo_put()
127 struct action_fifo *fifo; in add_deferred_actions() local
130 fifo = this_cpu_ptr(action_fifos); in add_deferred_actions()
131 da = action_fifo_put(fifo); in add_deferred_actions()
1550 struct action_fifo *fifo = this_cpu_ptr(action_fifos); in process_deferred_actions() local
1553 if (action_fifo_is_empty(fifo)) in process_deferred_actions()
1558 struct deferred_action *da = action_fifo_get(fifo); in process_deferred_actions()
1568 } while (!action_fifo_is_empty(fifo)); in process_deferred_actions()
1571 action_fifo_init(fifo); in process_deferred_actions()