Lines Matching refs:cell

257 	struct snd_seq_event_cell *cell;  in snd_seq_check_queue()  local
274 while ((cell = snd_seq_prioq_cell_peek(q->tickq)) != NULL) { in snd_seq_check_queue()
276 &cell->event.time.tick)) { in snd_seq_check_queue()
277 cell = snd_seq_prioq_cell_out(q->tickq); in snd_seq_check_queue()
278 if (cell) in snd_seq_check_queue()
279 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue()
288 while ((cell = snd_seq_prioq_cell_peek(q->timeq)) != NULL) { in snd_seq_check_queue()
290 &cell->event.time.time)) { in snd_seq_check_queue()
291 cell = snd_seq_prioq_cell_out(q->timeq); in snd_seq_check_queue()
292 if (cell) in snd_seq_check_queue()
293 snd_seq_dispatch_event(cell, atomic, hop); in snd_seq_check_queue()
313 int snd_seq_enqueue_event(struct snd_seq_event_cell *cell, int atomic, int hop) in snd_seq_enqueue_event() argument
318 if (snd_BUG_ON(!cell)) in snd_seq_enqueue_event()
320 dest = cell->event.queue; /* destination queue */ in snd_seq_enqueue_event()
325 if ((cell->event.flags & SNDRV_SEQ_TIME_MODE_MASK) == SNDRV_SEQ_TIME_MODE_REL) { in snd_seq_enqueue_event()
326 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_enqueue_event()
328 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
332 snd_seq_inc_real_time(&cell->event.time.time, in snd_seq_enqueue_event()
336 cell->event.flags &= ~SNDRV_SEQ_TIME_MODE_MASK; in snd_seq_enqueue_event()
337 cell->event.flags |= SNDRV_SEQ_TIME_MODE_ABS; in snd_seq_enqueue_event()
340 switch (cell->event.flags & SNDRV_SEQ_TIME_STAMP_MASK) { in snd_seq_enqueue_event()
342 err = snd_seq_prioq_cell_in(q->tickq, cell); in snd_seq_enqueue_event()
347 err = snd_seq_prioq_cell_in(q->timeq, cell); in snd_seq_enqueue_event()