prtd               37 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd               39 sound/core/pcm_dmaengine.c 	return prtd->dma_chan;
prtd              134 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd              136 sound/core/pcm_dmaengine.c 	prtd->pos += snd_pcm_lib_period_bytes(substream);
prtd              137 sound/core/pcm_dmaengine.c 	if (prtd->pos >= snd_pcm_lib_buffer_bytes(substream))
prtd              138 sound/core/pcm_dmaengine.c 		prtd->pos = 0;
prtd              145 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd              146 sound/core/pcm_dmaengine.c 	struct dma_chan *chan = prtd->dma_chan;
prtd              156 sound/core/pcm_dmaengine.c 	prtd->pos = 0;
prtd              167 sound/core/pcm_dmaengine.c 	prtd->cookie = dmaengine_submit(desc);
prtd              184 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd              193 sound/core/pcm_dmaengine.c 		dma_async_issue_pending(prtd->dma_chan);
prtd              197 sound/core/pcm_dmaengine.c 		dmaengine_resume(prtd->dma_chan);
prtd              201 sound/core/pcm_dmaengine.c 			dmaengine_pause(prtd->dma_chan);
prtd              203 sound/core/pcm_dmaengine.c 			dmaengine_terminate_async(prtd->dma_chan);
prtd              206 sound/core/pcm_dmaengine.c 		dmaengine_pause(prtd->dma_chan);
prtd              209 sound/core/pcm_dmaengine.c 		dmaengine_terminate_async(prtd->dma_chan);
prtd              228 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd              229 sound/core/pcm_dmaengine.c 	return bytes_to_frames(substream->runtime, prtd->pos);
prtd              242 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd              248 sound/core/pcm_dmaengine.c 	status = dmaengine_tx_status(prtd->dma_chan, prtd->cookie, &state);
prtd              295 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd;
prtd              306 sound/core/pcm_dmaengine.c 	prtd = kzalloc(sizeof(*prtd), GFP_KERNEL);
prtd              307 sound/core/pcm_dmaengine.c 	if (!prtd)
prtd              310 sound/core/pcm_dmaengine.c 	prtd->dma_chan = chan;
prtd              312 sound/core/pcm_dmaengine.c 	substream->runtime->private_data = prtd;
prtd              345 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd              347 sound/core/pcm_dmaengine.c 	dmaengine_synchronize(prtd->dma_chan);
prtd              348 sound/core/pcm_dmaengine.c 	kfree(prtd);
prtd              362 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
prtd              364 sound/core/pcm_dmaengine.c 	dmaengine_synchronize(prtd->dma_chan);
prtd              365 sound/core/pcm_dmaengine.c 	dma_release_channel(prtd->dma_chan);
prtd              366 sound/core/pcm_dmaengine.c 	kfree(prtd);
prtd              767 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd              768 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,
prtd              845 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd              846 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,
prtd              849 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_card *card = prtd->card;
prtd             1166 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd             1167 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,
prtd              283 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd              284 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,
prtd              405 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd              407 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,
prtd               57 sound/soc/atmel/atmel-pcm-dma.c 	struct atmel_pcm_dma_params *prtd;
prtd               59 sound/soc/atmel/atmel-pcm-dma.c 	prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
prtd               61 sound/soc/atmel/atmel-pcm-dma.c 	if (ssc_sr & prtd->mask->ssc_error) {
prtd               65 sound/soc/atmel/atmel-pcm-dma.c 				? "underrun" : "overrun", prtd->name,
prtd               69 sound/soc/atmel/atmel-pcm-dma.c 		ssc_writex(prtd->ssc->regs, SSC_CR, prtd->mask->ssc_disable);
prtd               73 sound/soc/atmel/atmel-pcm-dma.c 		ssc_readx(prtd->ssc->regs, SSC_RHR);
prtd               74 sound/soc/atmel/atmel-pcm-dma.c 		ssc_readx(prtd->ssc->regs, SSC_SR);
prtd               82 sound/soc/atmel/atmel-pcm-dma.c 	struct atmel_pcm_dma_params *prtd;
prtd               86 sound/soc/atmel/atmel-pcm-dma.c 	prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
prtd               87 sound/soc/atmel/atmel-pcm-dma.c 	ssc = prtd->ssc;
prtd              101 sound/soc/atmel/atmel-pcm-dma.c 	prtd->dma_intr_handler = atmel_pcm_dma_irq;
prtd              153 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
prtd              154 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_pcm_dma_params *params = prtd->params;
prtd              168 sound/soc/atmel/atmel-pcm-pdc.c 		prtd->period_ptr += prtd->period_size;
prtd              169 sound/soc/atmel/atmel-pcm-pdc.c 		if (prtd->period_ptr >= prtd->dma_buffer_end)
prtd              170 sound/soc/atmel/atmel-pcm-pdc.c 			prtd->period_ptr = prtd->dma_buffer;
prtd              173 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_ptr);
prtd              175 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_size / params->pdc_xfer_size);
prtd              182 sound/soc/atmel/atmel-pcm-pdc.c 		prtd->period_ptr += prtd->period_size;
prtd              183 sound/soc/atmel/atmel-pcm-pdc.c 		if (prtd->period_ptr >= prtd->dma_buffer_end)
prtd              184 sound/soc/atmel/atmel-pcm-pdc.c 			prtd->period_ptr = prtd->dma_buffer;
prtd              187 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_ptr);
prtd              189 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_size / params->pdc_xfer_size);
prtd              203 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = runtime->private_data;
prtd              212 sound/soc/atmel/atmel-pcm-pdc.c 	prtd->params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
prtd              213 sound/soc/atmel/atmel-pcm-pdc.c 	prtd->params->dma_intr_handler = atmel_pcm_dma_irq;
prtd              215 sound/soc/atmel/atmel-pcm-pdc.c 	prtd->dma_buffer = runtime->dma_addr;
prtd              216 sound/soc/atmel/atmel-pcm-pdc.c 	prtd->dma_buffer_end = runtime->dma_addr + runtime->dma_bytes;
prtd              217 sound/soc/atmel/atmel-pcm-pdc.c 	prtd->period_size = params_period_bytes(params);
prtd              222 sound/soc/atmel/atmel-pcm-pdc.c 		prtd->params->name,
prtd              224 sound/soc/atmel/atmel-pcm-pdc.c 		prtd->period_size);
prtd              230 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
prtd              231 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_pcm_dma_params *params = prtd->params;
prtd              236 sound/soc/atmel/atmel-pcm-pdc.c 		prtd->params->dma_intr_handler = NULL;
prtd              244 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
prtd              245 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_pcm_dma_params *params = prtd->params;
prtd              258 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = rtd->private_data;
prtd              259 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_pcm_dma_params *params = prtd->params;
prtd              268 sound/soc/atmel/atmel-pcm-pdc.c 		prtd->period_ptr = prtd->dma_buffer;
prtd              271 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_ptr);
prtd              273 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_size / params->pdc_xfer_size);
prtd              275 sound/soc/atmel/atmel-pcm-pdc.c 		prtd->period_ptr += prtd->period_size;
prtd              277 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_ptr);
prtd              279 sound/soc/atmel/atmel-pcm-pdc.c 			   prtd->period_size / params->pdc_xfer_size);
prtd              284 sound/soc/atmel/atmel-pcm-pdc.c 			(unsigned long)prtd->period_ptr,
prtd              324 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = runtime->private_data;
prtd              325 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_pcm_dma_params *params = prtd->params;
prtd              330 sound/soc/atmel/atmel-pcm-pdc.c 	x = bytes_to_frames(runtime, ptr - prtd->dma_buffer);
prtd              341 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd;
prtd              352 sound/soc/atmel/atmel-pcm-pdc.c 	prtd = kzalloc(sizeof(struct atmel_runtime_data), GFP_KERNEL);
prtd              353 sound/soc/atmel/atmel-pcm-pdc.c 	if (prtd == NULL) {
prtd              357 sound/soc/atmel/atmel-pcm-pdc.c 	runtime->private_data = prtd;
prtd              365 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
prtd              367 sound/soc/atmel/atmel-pcm-pdc.c 	kfree(prtd);
prtd              176 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = priv;
prtd              177 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_substream *substream = prtd->substream;
prtd              182 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_write_async(prtd->audio_client,
prtd              183 sound/soc/qcom/qdsp6/q6asm-dai.c 				   prtd->pcm_count, 0, 0, NO_TIMESTAMP);
prtd              186 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->state = Q6ASM_STREAM_STOPPED;
prtd              189 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->pcm_irq_pos += prtd->pcm_count;
prtd              191 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (prtd->state == Q6ASM_STREAM_RUNNING)
prtd              192 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_write_async(prtd->audio_client,
prtd              193 sound/soc/qcom/qdsp6/q6asm-dai.c 					   prtd->pcm_count, 0, 0, NO_TIMESTAMP);
prtd              198 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->pcm_irq_pos += prtd->pcm_count;
prtd              200 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (prtd->state == Q6ASM_STREAM_RUNNING)
prtd              201 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_read(prtd->audio_client);
prtd              213 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              222 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (!prtd || !prtd->audio_client) {
prtd              228 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->pcm_count = snd_pcm_lib_period_bytes(substream);
prtd              229 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->pcm_irq_pos = 0;
prtd              231 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (prtd->state) {
prtd              233 sound/soc/qcom/qdsp6/q6asm-dai.c 		q6asm_cmd(prtd->audio_client, CMD_CLOSE);
prtd              235 sound/soc/qcom/qdsp6/q6asm-dai.c 					   prtd->audio_client);
prtd              240 sound/soc/qcom/qdsp6/q6asm-dai.c 	ret = q6asm_map_memory_regions(substream->stream, prtd->audio_client,
prtd              241 sound/soc/qcom/qdsp6/q6asm-dai.c 				       prtd->phys,
prtd              242 sound/soc/qcom/qdsp6/q6asm-dai.c 				       (prtd->pcm_size / prtd->periods),
prtd              243 sound/soc/qcom/qdsp6/q6asm-dai.c 				       prtd->periods);
prtd              252 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_open_write(prtd->audio_client, FORMAT_LINEAR_PCM,
prtd              253 sound/soc/qcom/qdsp6/q6asm-dai.c 				       prtd->bits_per_sample);
prtd              255 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_open_read(prtd->audio_client, FORMAT_LINEAR_PCM,
prtd              256 sound/soc/qcom/qdsp6/q6asm-dai.c 				       prtd->bits_per_sample);
prtd              261 sound/soc/qcom/qdsp6/q6asm-dai.c 		q6asm_audio_client_free(prtd->audio_client);
prtd              262 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->audio_client = NULL;
prtd              266 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->session_id = q6asm_get_session_id(prtd->audio_client);
prtd              268 sound/soc/qcom/qdsp6/q6asm-dai.c 			      prtd->session_id, substream->stream);
prtd              276 sound/soc/qcom/qdsp6/q6asm-dai.c 				prtd->audio_client, runtime->rate,
prtd              278 sound/soc/qcom/qdsp6/q6asm-dai.c 				prtd->bits_per_sample);
prtd              280 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_enc_cfg_blk_pcm_format_support(prtd->audio_client,
prtd              282 sound/soc/qcom/qdsp6/q6asm-dai.c 					prtd->bits_per_sample);
prtd              286 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_read(prtd->audio_client);
prtd              292 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->state = Q6ASM_STREAM_RUNNING;
prtd              301 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              307 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_run_nowait(prtd->audio_client, 0, 0, 0);
prtd              310 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->state = Q6ASM_STREAM_STOPPED;
prtd              311 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_cmd_nowait(prtd->audio_client, CMD_EOS);
prtd              315 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_cmd_nowait(prtd->audio_client, CMD_PAUSE);
prtd              331 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd;
prtd              345 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd = kzalloc(sizeof(struct q6asm_dai_rtd), GFP_KERNEL);
prtd              346 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (prtd == NULL)
prtd              349 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->substream = substream;
prtd              350 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->audio_client = q6asm_audio_client_alloc(dev,
prtd              351 sound/soc/qcom/qdsp6/q6asm-dai.c 				(q6asm_cb)event_handler, prtd, stream_id,
prtd              353 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (IS_ERR(prtd->audio_client)) {
prtd              355 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = PTR_ERR(prtd->audio_client);
prtd              356 sound/soc/qcom/qdsp6/q6asm-dai.c 		kfree(prtd);
prtd              400 sound/soc/qcom/qdsp6/q6asm-dai.c 	runtime->private_data = prtd;
prtd              408 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->phys = substream->dma_buffer.addr;
prtd              410 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->phys = substream->dma_buffer.addr | (pdata->sid << 32);
prtd              421 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              423 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (prtd->audio_client) {
prtd              424 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (prtd->state)
prtd              425 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_cmd(prtd->audio_client, CMD_CLOSE);
prtd              428 sound/soc/qcom/qdsp6/q6asm-dai.c 					   prtd->audio_client);
prtd              429 sound/soc/qcom/qdsp6/q6asm-dai.c 		q6asm_audio_client_free(prtd->audio_client);
prtd              430 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->audio_client = NULL;
prtd              434 sound/soc/qcom/qdsp6/q6asm-dai.c 	kfree(prtd);
prtd              442 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              444 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (prtd->pcm_irq_pos >= prtd->pcm_size)
prtd              445 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->pcm_irq_pos = 0;
prtd              447 sound/soc/qcom/qdsp6/q6asm-dai.c 	return bytes_to_frames(runtime, (prtd->pcm_irq_pos));
prtd              468 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              470 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->pcm_size = params_buffer_bytes(params);
prtd              471 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->periods = params_periods(params);
prtd              475 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->bits_per_sample = 16;
prtd              478 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->bits_per_sample = 24;
prtd              499 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = priv;
prtd              500 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_compr_stream *substream = prtd->cstream;
prtd              506 sound/soc/qcom/qdsp6/q6asm-dai.c 		spin_lock_irqsave(&prtd->lock, flags);
prtd              507 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (!prtd->bytes_sent) {
prtd              508 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_write_async(prtd->audio_client, prtd->pcm_count,
prtd              510 sound/soc/qcom/qdsp6/q6asm-dai.c 			prtd->bytes_sent += prtd->pcm_count;
prtd              513 sound/soc/qcom/qdsp6/q6asm-dai.c 		spin_unlock_irqrestore(&prtd->lock, flags);
prtd              517 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->state = Q6ASM_STREAM_STOPPED;
prtd              521 sound/soc/qcom/qdsp6/q6asm-dai.c 		spin_lock_irqsave(&prtd->lock, flags);
prtd              523 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->copied_total += prtd->pcm_count;
prtd              526 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (prtd->state != Q6ASM_STREAM_RUNNING) {
prtd              527 sound/soc/qcom/qdsp6/q6asm-dai.c 			spin_unlock_irqrestore(&prtd->lock, flags);
prtd              531 sound/soc/qcom/qdsp6/q6asm-dai.c 		avail = prtd->bytes_received - prtd->bytes_sent;
prtd              533 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (avail >= prtd->pcm_count) {
prtd              534 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_write_async(prtd->audio_client,
prtd              535 sound/soc/qcom/qdsp6/q6asm-dai.c 					   prtd->pcm_count, 0, 0, NO_TIMESTAMP);
prtd              536 sound/soc/qcom/qdsp6/q6asm-dai.c 			prtd->bytes_sent += prtd->pcm_count;
prtd              539 sound/soc/qcom/qdsp6/q6asm-dai.c 		spin_unlock_irqrestore(&prtd->lock, flags);
prtd              555 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd;
prtd              565 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd = kzalloc(sizeof(*prtd), GFP_KERNEL);
prtd              566 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (!prtd)
prtd              569 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->cstream = stream;
prtd              570 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->audio_client = q6asm_audio_client_alloc(dev,
prtd              572 sound/soc/qcom/qdsp6/q6asm-dai.c 					prtd, stream_id, LEGACY_PCM_MODE);
prtd              573 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (IS_ERR(prtd->audio_client)) {
prtd              575 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = PTR_ERR(prtd->audio_client);
prtd              582 sound/soc/qcom/qdsp6/q6asm-dai.c 				  &prtd->dma_buffer);
prtd              589 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->phys = prtd->dma_buffer.addr;
prtd              591 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->phys = prtd->dma_buffer.addr | (pdata->sid << 32);
prtd              593 sound/soc/qcom/qdsp6/q6asm-dai.c 	snd_compr_set_runtime_buffer(stream, &prtd->dma_buffer);
prtd              594 sound/soc/qcom/qdsp6/q6asm-dai.c 	spin_lock_init(&prtd->lock);
prtd              595 sound/soc/qcom/qdsp6/q6asm-dai.c 	runtime->private_data = prtd;
prtd              600 sound/soc/qcom/qdsp6/q6asm-dai.c 	q6asm_audio_client_free(prtd->audio_client);
prtd              602 sound/soc/qcom/qdsp6/q6asm-dai.c 	kfree(prtd);
prtd              610 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              613 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (prtd->audio_client) {
prtd              614 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (prtd->state)
prtd              615 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_cmd(prtd->audio_client, CMD_CLOSE);
prtd              617 sound/soc/qcom/qdsp6/q6asm-dai.c 		snd_dma_free_pages(&prtd->dma_buffer);
prtd              619 sound/soc/qcom/qdsp6/q6asm-dai.c 					   prtd->audio_client);
prtd              620 sound/soc/qcom/qdsp6/q6asm-dai.c 		q6asm_audio_client_free(prtd->audio_client);
prtd              621 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->audio_client = NULL;
prtd              624 sound/soc/qcom/qdsp6/q6asm-dai.c 	kfree(prtd);
prtd              633 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              641 sound/soc/qcom/qdsp6/q6asm-dai.c 	memcpy(&prtd->codec_param, params, sizeof(*params));
prtd              647 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (!prtd || !prtd->audio_client) {
prtd              652 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->periods = runtime->fragments;
prtd              653 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->pcm_count = runtime->fragment_size;
prtd              654 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->pcm_size = runtime->fragments * runtime->fragment_size;
prtd              655 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->bits_per_sample = 16;
prtd              657 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_open_write(prtd->audio_client, params->codec.id,
prtd              658 sound/soc/qcom/qdsp6/q6asm-dai.c 					prtd->bits_per_sample);
prtd              662 sound/soc/qcom/qdsp6/q6asm-dai.c 			q6asm_audio_client_free(prtd->audio_client);
prtd              663 sound/soc/qcom/qdsp6/q6asm-dai.c 			prtd->audio_client = NULL;
prtd              668 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->session_id = q6asm_get_session_id(prtd->audio_client);
prtd              670 sound/soc/qcom/qdsp6/q6asm-dai.c 			      prtd->session_id, dir);
prtd              676 sound/soc/qcom/qdsp6/q6asm-dai.c 	ret = q6asm_map_memory_regions(dir, prtd->audio_client, prtd->phys,
prtd              677 sound/soc/qcom/qdsp6/q6asm-dai.c 				       (prtd->pcm_size / prtd->periods),
prtd              678 sound/soc/qcom/qdsp6/q6asm-dai.c 				       prtd->periods);
prtd              685 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->state = Q6ASM_STREAM_RUNNING;
prtd              693 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              700 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_run_nowait(prtd->audio_client, 0, 0, 0);
prtd              703 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->state = Q6ASM_STREAM_STOPPED;
prtd              704 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_cmd_nowait(prtd->audio_client, CMD_EOS);
prtd              708 sound/soc/qcom/qdsp6/q6asm-dai.c 		ret = q6asm_cmd_nowait(prtd->audio_client, CMD_PAUSE);
prtd              722 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              725 sound/soc/qcom/qdsp6/q6asm-dai.c 	spin_lock_irqsave(&prtd->lock, flags);
prtd              727 sound/soc/qcom/qdsp6/q6asm-dai.c 	tstamp->copied_total = prtd->copied_total;
prtd              728 sound/soc/qcom/qdsp6/q6asm-dai.c 	tstamp->byte_offset = prtd->copied_total % prtd->pcm_size;
prtd              730 sound/soc/qcom/qdsp6/q6asm-dai.c 	spin_unlock_irqrestore(&prtd->lock, flags);
prtd              739 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              742 sound/soc/qcom/qdsp6/q6asm-dai.c 	spin_lock_irqsave(&prtd->lock, flags);
prtd              743 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->bytes_received += count;
prtd              744 sound/soc/qcom/qdsp6/q6asm-dai.c 	spin_unlock_irqrestore(&prtd->lock, flags);
prtd              753 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct q6asm_dai_rtd *prtd = runtime->private_data;
prtd              759 sound/soc/qcom/qdsp6/q6asm-dai.c 			prtd->dma_buffer.area, prtd->dma_buffer.addr,
prtd              760 sound/soc/qcom/qdsp6/q6asm-dai.c 			prtd->dma_buffer.bytes);
prtd               67 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
prtd               70 sound/soc/samsung/idma.c 	spin_lock(&prtd->lock);
prtd               71 sound/soc/samsung/idma.c 	prtd->token = (void *) substream;
prtd               72 sound/soc/samsung/idma.c 	spin_unlock(&prtd->lock);
prtd               75 sound/soc/samsung/idma.c 	val = idma.lp_tx_addr + prtd->periodsz;
prtd              102 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
prtd              104 sound/soc/samsung/idma.c 	spin_lock(&prtd->lock);
prtd              105 sound/soc/samsung/idma.c 	prtd->cb = cb;
prtd              106 sound/soc/samsung/idma.c 	spin_unlock(&prtd->lock);
prtd              134 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
prtd              136 sound/soc/samsung/idma.c 	if (prtd && (prtd->state & ST_RUNNING))
prtd              144 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
prtd              156 sound/soc/samsung/idma.c 	prtd->start = prtd->pos = runtime->dma_addr;
prtd              157 sound/soc/samsung/idma.c 	prtd->period = params_periods(params);
prtd              158 sound/soc/samsung/idma.c 	prtd->periodsz = params_period_bytes(params);
prtd              159 sound/soc/samsung/idma.c 	prtd->end = runtime->dma_addr + runtime->dma_bytes;
prtd              175 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
prtd              177 sound/soc/samsung/idma.c 	prtd->pos = prtd->start;
prtd              188 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
prtd              191 sound/soc/samsung/idma.c 	spin_lock(&prtd->lock);
prtd              197 sound/soc/samsung/idma.c 		prtd->state |= ST_RUNNING;
prtd              204 sound/soc/samsung/idma.c 		prtd->state &= ~ST_RUNNING;
prtd              213 sound/soc/samsung/idma.c 	spin_unlock(&prtd->lock);
prtd              222 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = runtime->private_data;
prtd              226 sound/soc/samsung/idma.c 	spin_lock(&prtd->lock);
prtd              229 sound/soc/samsung/idma.c 	res = src - prtd->start;
prtd              231 sound/soc/samsung/idma.c 	spin_unlock(&prtd->lock);
prtd              256 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = (struct idma_ctrl *)dev_id;
prtd              268 sound/soc/samsung/idma.c 		addr += prtd->periodsz;
prtd              269 sound/soc/samsung/idma.c 		addr %= (u32)(prtd->end - prtd->start);
prtd              274 sound/soc/samsung/idma.c 		if (prtd->cb)
prtd              275 sound/soc/samsung/idma.c 			prtd->cb(prtd->token, prtd->period);
prtd              284 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd;
prtd              289 sound/soc/samsung/idma.c 	prtd = kzalloc(sizeof(struct idma_ctrl), GFP_KERNEL);
prtd              290 sound/soc/samsung/idma.c 	if (prtd == NULL)
prtd              293 sound/soc/samsung/idma.c 	ret = request_irq(idma_irq, iis_irq, 0, "i2s", prtd);
prtd              296 sound/soc/samsung/idma.c 		kfree(prtd);
prtd              300 sound/soc/samsung/idma.c 	spin_lock_init(&prtd->lock);
prtd              302 sound/soc/samsung/idma.c 	runtime->private_data = prtd;
prtd              310 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = runtime->private_data;
prtd              312 sound/soc/samsung/idma.c 	free_irq(idma_irq, prtd);
prtd              314 sound/soc/samsung/idma.c 	if (!prtd)
prtd              317 sound/soc/samsung/idma.c 	kfree(prtd);
prtd              323 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd              324 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,
prtd              395 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd              396 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,
prtd              433 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
prtd              434 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_component *component = snd_soc_rtdcom_lookup(prtd,