Lines Matching defs:siu_stream
53 struct siu_stream *siu_stream = &port_info->playback;
56 if (!siu_stream->rw_flg)
66 siu_stream->rw_flg = 0;
73 struct siu_stream *siu_stream = &port_info->playback;
75 if (siu_stream->rw_flg)
82 siu_stream->rw_flg = RWF_STM_WT;
85 tasklet_schedule(&siu_stream->tasklet);
92 struct siu_stream *siu_stream = arg;
94 if (!siu_stream->rw_flg)
98 if (++siu_stream->cur_period >=
99 GET_MAX_PERIODS(siu_stream->buf_bytes,
100 siu_stream->period_bytes))
101 siu_stream->cur_period = 0;
104 __func__, siu_stream->cur_period,
105 siu_stream->cur_period * siu_stream->period_bytes,
106 siu_stream->buf_bytes, siu_stream->cookie);
108 tasklet_schedule(&siu_stream->tasklet);
111 snd_pcm_period_elapsed(siu_stream->substream);
119 struct siu_stream *siu_stream = &port_info->playback;
120 struct snd_pcm_substream *substream = siu_stream->substream;
132 desc = siu_stream->chan->device->device_prep_slave_sg(siu_stream->chan,
140 desc->callback_param = siu_stream;
147 siu_stream->tx_desc = desc;
148 siu_stream->cookie = cookie;
150 dma_async_issue_pending(siu_stream->chan);
166 struct siu_stream *siu_stream = &port_info->capture;
167 struct snd_pcm_substream *substream = siu_stream->substream;
181 desc = siu_stream->chan->device->device_prep_slave_sg(siu_stream->chan,
189 desc->callback_param = siu_stream;
196 siu_stream->tx_desc = desc;
197 siu_stream->cookie = cookie;
199 dma_async_issue_pending(siu_stream->chan);
213 struct siu_stream *siu_stream = (struct siu_stream *)data;
214 struct snd_pcm_substream *substream = siu_stream->substream;
219 dev_dbg(dev, "%s: flags %x\n", __func__, siu_stream->rw_flg);
221 if (!siu_stream->rw_flg) {
232 siu_stream->cur_period,
233 siu_stream->period_bytes);
235 siu_stream->cur_period,
236 siu_stream->period_bytes);
237 count = siu_stream->period_bytes;
244 siu_stream->cur_period,
245 siu_stream->period_bytes),
246 siu_stream->period_bytes);
253 struct siu_stream *siu_stream = &port_info->capture;
255 if (siu_stream->xfer_cnt > 0x1000000)
257 if (siu_stream->rw_flg)
261 siu_stream->cur_period = 0;
264 siu_stream->rw_flg = RWF_STM_RD;
266 tasklet_schedule(&siu_stream->tasklet);
275 struct siu_stream *siu_stream = &port_info->capture;
276 struct device *dev = siu_stream->substream->pcm->card->dev;
279 if (!siu_stream->rw_flg)
289 siu_stream->rw_flg = 0;
315 struct siu_stream *siu_stream;
318 siu_stream = &port_info->playback;
320 siu_stream = &port_info->capture;
345 struct siu_stream *siu_stream;
358 siu_stream = &port_info->playback;
359 param = &siu_stream->param;
363 siu_stream = &port_info->capture;
364 param = &siu_stream->param;
371 siu_stream->chan = dma_request_channel(mask, filter, param);
372 if (!siu_stream->chan) {
377 siu_stream->substream = ss;
387 struct siu_stream *siu_stream;
392 siu_stream = &port_info->playback;
394 siu_stream = &port_info->capture;
396 dma_release_channel(siu_stream->chan);
397 siu_stream->chan = NULL;
399 siu_stream->substream = NULL;
410 struct siu_stream *siu_stream;
414 siu_stream = &port_info->playback;
416 siu_stream = &port_info->capture;
418 rt = siu_stream->substream->runtime;
420 siu_stream->buf_bytes = snd_pcm_lib_buffer_bytes(ss);
421 siu_stream->period_bytes = snd_pcm_lib_period_bytes(ss);
424 info->port_id, rt->channels, siu_stream->period_bytes);
427 if (siu_stream->buf_bytes % siu_stream->period_bytes) {
429 __func__, siu_stream->buf_bytes,
430 siu_stream->period_bytes);
434 xfer_cnt = bytes_to_frames(rt, siu_stream->period_bytes);
438 siu_stream->format = rt->format;
439 siu_stream->xfer_cnt = xfer_cnt;
443 (unsigned long)rt->dma_addr, siu_stream->buf_bytes,
444 siu_stream->period_bytes,
445 siu_stream->format, rt->channels, (int)xfer_cnt);
500 struct siu_stream *siu_stream;
503 siu_stream = &port_info->playback;
505 siu_stream = &port_info->capture;
512 siu_stream->cur_period,
513 siu_stream->period_bytes) - rt->dma_addr;
518 siu_read32(base + SIU_SBFSTS), ptr, siu_stream->buf_bytes,
519 siu_stream->cookie);
521 if (ptr >= siu_stream->buf_bytes)