23 #include <linux/slab.h>
37 snd_printd(
"malloc failed for snd_seq_fifo_new() \n");
106 while ((cell = fifo_cell_out(f)) !=
NULL) {
109 spin_unlock_irqrestore(&f->
lock, flags);
136 f->
tail->next = cell;
141 spin_unlock_irqrestore(&f->
lock, flags);
184 init_waitqueue_entry(&wait,
current);
186 while ((cell = fifo_cell_out(f)) ==
NULL) {
189 spin_unlock_irqrestore(&f->
lock, flags);
194 spin_unlock_irq(&f->
lock);
196 spin_lock_irq(&f->
lock);
199 spin_unlock_irqrestore(&f->
lock, flags);
203 spin_unlock_irqrestore(&f->
lock, flags);
220 spin_unlock_irqrestore(&f->
lock, flags);
230 return (f->
cells > 0);
262 spin_unlock_irqrestore(&f->
lock, flags);
265 for (cell = oldhead; cell; cell =
next) {