Home
last modified time | relevance | path

Searched refs:fifo (Results 1 – 3 of 3) sorted by relevance

/net/openvswitch/
Dactions.c58 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
[all …]
/net/dccp/
Dprobe.c47 struct kfifo fifo; member
71 kfifo_in_locked(&dccpw.fifo, tbuf, len, &dccpw.lock); in printl()
113 kfifo_reset(&dccpw.fifo); in dccpprobe_open()
135 kfifo_len(&dccpw.fifo) != 0); in dccpprobe_read()
139 cnt = kfifo_out_locked(&dccpw.fifo, tbuf, len, &dccpw.lock); in dccpprobe_read()
161 if (kfifo_alloc(&dccpw.fifo, bufsize, GFP_KERNEL)) in dccpprobe_init()
181 kfifo_free(&dccpw.fifo); in dccpprobe_init()
188 kfifo_free(&dccpw.fifo); in dccpprobe_exit()
/net/sctp/
Dprobe.c65 struct kfifo fifo; member
81 kfifo_in_locked(&sctpw.fifo, tbuf, len, &sctpw.lock); in printl()
87 kfifo_reset(&sctpw.fifo); in sctpprobe_open()
110 kfifo_len(&sctpw.fifo) != 0); in sctpprobe_read()
114 cnt = kfifo_out_locked(&sctpw.fifo, tbuf, len, &sctpw.lock); in sctpprobe_read()
213 if (kfifo_alloc(&sctpw.fifo, bufsize, GFP_KERNEL)) in sctpprobe_init()
231 kfifo_free(&sctpw.fifo); in sctpprobe_init()
237 kfifo_free(&sctpw.fifo); in sctpprobe_exit()