Lines Matching refs:cell
404 struct snd_seq_event_cell *cell; in snd_seq_read() local
426 cell = NULL; in snd_seq_read()
435 if ((err = snd_seq_fifo_cell_out(fifo, &cell, nonblock)) < 0) { in snd_seq_read()
438 if (snd_seq_ev_is_variable(&cell->event)) { in snd_seq_read()
440 tmpev = cell->event; in snd_seq_read()
448 err = snd_seq_expand_var_event(&cell->event, count, in snd_seq_read()
457 if (copy_to_user(buf, &cell->event, sizeof(struct snd_seq_event))) { in snd_seq_read()
464 snd_seq_cell_free(cell); in snd_seq_read()
465 cell = NULL; /* to be sure */ in snd_seq_read()
470 if (cell) in snd_seq_read()
471 snd_seq_fifo_cell_putback(fifo, cell); in snd_seq_read()
846 int snd_seq_dispatch_event(struct snd_seq_event_cell *cell, int atomic, int hop) in snd_seq_dispatch_event() argument
851 if (snd_BUG_ON(!cell)) in snd_seq_dispatch_event()
854 client = snd_seq_client_use_ptr(cell->event.source.client); in snd_seq_dispatch_event()
856 snd_seq_cell_free(cell); /* release this cell */ in snd_seq_dispatch_event()
860 if (cell->event.type == SNDRV_SEQ_EVENT_NOTE) { in snd_seq_dispatch_event()
868 tmpev = cell->event; in snd_seq_dispatch_event()
877 ev = &cell->event; in snd_seq_dispatch_event()
897 if (snd_seq_enqueue_event(cell, atomic, hop) < 0) in snd_seq_dispatch_event()
898 snd_seq_cell_free(cell); /* release this cell */ in snd_seq_dispatch_event()
905 result = snd_seq_deliver_event(client, &cell->event, atomic, hop); in snd_seq_dispatch_event()
906 snd_seq_cell_free(cell); in snd_seq_dispatch_event()
923 struct snd_seq_event_cell *cell; in snd_seq_client_enqueue_event() local
959 err = snd_seq_event_dup(client->pool, event, &cell, !blocking || atomic, file); in snd_seq_client_enqueue_event()
964 if ((err = snd_seq_enqueue_event(cell, atomic, hop)) < 0) { in snd_seq_client_enqueue_event()
965 snd_seq_cell_free(cell); in snd_seq_client_enqueue_event()