• Home
  • Raw
  • Download

Lines Matching refs:s

61 static void psc_dma_bcom_enqueue_next_buffer(struct psc_dma_stream *s)  in psc_dma_bcom_enqueue_next_buffer()  argument
66 bd = bcom_prepare_next_buffer(s->bcom_task); in psc_dma_bcom_enqueue_next_buffer()
67 bd->status = s->period_bytes; in psc_dma_bcom_enqueue_next_buffer()
68 bd->data[0] = s->runtime->dma_addr + (s->period_next * s->period_bytes); in psc_dma_bcom_enqueue_next_buffer()
69 bcom_submit_next_buffer(s->bcom_task, NULL); in psc_dma_bcom_enqueue_next_buffer()
72 s->period_next = (s->period_next + 1) % s->runtime->periods; in psc_dma_bcom_enqueue_next_buffer()
78 struct psc_dma_stream *s = _psc_dma_stream; in psc_dma_bcom_irq() local
80 spin_lock(&s->psc_dma->lock); in psc_dma_bcom_irq()
83 while (bcom_buffer_done(s->bcom_task)) { in psc_dma_bcom_irq()
84 bcom_retrieve_buffer(s->bcom_task, NULL, NULL); in psc_dma_bcom_irq()
86 s->period_current = (s->period_current+1) % s->runtime->periods; in psc_dma_bcom_irq()
87 s->period_count++; in psc_dma_bcom_irq()
89 psc_dma_bcom_enqueue_next_buffer(s); in psc_dma_bcom_irq()
91 spin_unlock(&s->psc_dma->lock); in psc_dma_bcom_irq()
95 if (s->active) in psc_dma_bcom_irq()
96 snd_pcm_period_elapsed(s->stream); in psc_dma_bcom_irq()
116 struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma); in psc_dma_trigger() local
127 s->period_bytes = frames_to_bytes(runtime, in psc_dma_trigger()
129 s->period_next = 0; in psc_dma_trigger()
130 s->period_current = 0; in psc_dma_trigger()
131 s->active = 1; in psc_dma_trigger()
132 s->period_count = 0; in psc_dma_trigger()
133 s->runtime = runtime; in psc_dma_trigger()
141 bcom_gen_bd_rx_reset(s->bcom_task); in psc_dma_trigger()
143 bcom_gen_bd_tx_reset(s->bcom_task); in psc_dma_trigger()
146 if (!bcom_queue_full(s->bcom_task)) in psc_dma_trigger()
147 psc_dma_bcom_enqueue_next_buffer(s); in psc_dma_trigger()
149 bcom_enable(s->bcom_task); in psc_dma_trigger()
158 substream->pstr->stream, s->period_count); in psc_dma_trigger()
159 s->active = 0; in psc_dma_trigger()
162 bcom_disable(s->bcom_task); in psc_dma_trigger()
164 bcom_gen_bd_rx_reset(s->bcom_task); in psc_dma_trigger()
166 bcom_gen_bd_tx_reset(s->bcom_task); in psc_dma_trigger()
217 struct psc_dma_stream *s; in psc_dma_open() local
223 s = &psc_dma->capture; in psc_dma_open()
225 s = &psc_dma->playback; in psc_dma_open()
236 s->stream = substream; in psc_dma_open()
245 struct psc_dma_stream *s; in psc_dma_close() local
250 s = &psc_dma->capture; in psc_dma_close()
252 s = &psc_dma->playback; in psc_dma_close()
261 s->stream = NULL; in psc_dma_close()
271 struct psc_dma_stream *s; in psc_dma_pointer() local
275 s = &psc_dma->capture; in psc_dma_pointer()
277 s = &psc_dma->playback; in psc_dma_pointer()
279 count = s->period_current * s->period_bytes; in psc_dma_pointer()