Lines Matching refs:fifo
58 struct deferred_action fifo[DEFERRED_ACTION_FIFO_SIZE]; member
64 static void action_fifo_init(struct action_fifo *fifo) in action_fifo_init() argument
66 fifo->head = 0; in action_fifo_init()
67 fifo->tail = 0; in action_fifo_init()
70 static bool action_fifo_is_empty(struct action_fifo *fifo) in action_fifo_is_empty() argument
72 return (fifo->head == fifo->tail); in action_fifo_is_empty()
75 static struct deferred_action *action_fifo_get(struct action_fifo *fifo) in action_fifo_get() argument
77 if (action_fifo_is_empty(fifo)) in action_fifo_get()
80 return &fifo->fifo[fifo->tail++]; in action_fifo_get()
83 static struct deferred_action *action_fifo_put(struct action_fifo *fifo) in action_fifo_put() argument
85 if (fifo->head >= DEFERRED_ACTION_FIFO_SIZE - 1) in action_fifo_put()
88 return &fifo->fifo[fifo->head++]; in action_fifo_put()
96 struct action_fifo *fifo; in add_deferred_actions() local
99 fifo = this_cpu_ptr(action_fifos); in add_deferred_actions()
100 da = action_fifo_put(fifo); in add_deferred_actions()
750 struct action_fifo *fifo = this_cpu_ptr(action_fifos); in process_deferred_actions() local
753 if (action_fifo_is_empty(fifo)) in process_deferred_actions()
758 struct deferred_action *da = action_fifo_get(fifo); in process_deferred_actions()
768 } while (!action_fifo_is_empty(fifo)); in process_deferred_actions()
771 action_fifo_init(fifo); in process_deferred_actions()