Lines Matching refs:cell
232 struct snd_seq_event_cell *cell; in snd_seq_check_queue() local
253 cell = snd_seq_prioq_cell_out(q->tickq, &cur_tick); in snd_seq_check_queue()
254 if (!cell) in snd_seq_check_queue()
256 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue()
264 cell = snd_seq_prioq_cell_out(q->timeq, &cur_time); in snd_seq_check_queue()
265 if (!cell) in snd_seq_check_queue()
267 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue()
286 int snd_seq_enqueue_event(struct snd_seq_event_cell *cell, int atomic, int hop) in snd_seq_enqueue_event() argument
291 if (snd_BUG_ON(!cell)) in snd_seq_enqueue_event()
293 dest = cell->event.queue; /* destination queue */ in snd_seq_enqueue_event()
298 if ((cell->event.flags & SNDRV_SEQ_TIME_MODE_MASK) == SNDRV_SEQ_TIME_MODE_REL) { in snd_seq_enqueue_event()
299 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_enqueue_event()
301 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
305 snd_seq_inc_real_time(&cell->event.time.time, in snd_seq_enqueue_event()
309 cell->event.flags &= ~SNDRV_SEQ_TIME_MODE_MASK; in snd_seq_enqueue_event()
310 cell->event.flags |= SNDRV_SEQ_TIME_MODE_ABS; in snd_seq_enqueue_event()
313 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_enqueue_event()
315 err = snd_seq_prioq_cell_in(q->tickq, cell); in snd_seq_enqueue_event()
320 err = snd_seq_prioq_cell_in(q->timeq, cell); in snd_seq_enqueue_event()