Lines Matching refs:sdw_data
254 struct sdw_dma_dev_data *sdw_data; in acp63_sdw_dma_hw_params() local
263 sdw_data = dev_get_drvdata(component->dev); in acp63_sdw_dma_hw_params()
270 sdw_data->sdw0_dma_stream[stream_id] = substream; in acp63_sdw_dma_hw_params()
279 sdw_data->sdw1_dma_stream[stream_id] = substream; in acp63_sdw_dma_hw_params()
291 acp63_config_dma(stream, sdw_data->acp_base, stream_id); in acp63_sdw_dma_hw_params()
292 ret = acp63_configure_sdw_ringbuffer(sdw_data->acp_base, stream_id, size, in acp63_sdw_dma_hw_params()
298 ext_intr_ctrl = readl(sdw_data->acp_base + acp_ext_intr_cntl_reg); in acp63_sdw_dma_hw_params()
300 writel(ext_intr_ctrl, sdw_data->acp_base + acp_ext_intr_cntl_reg); in acp63_sdw_dma_hw_params()
301 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp63_sdw_dma_hw_params()
334 struct sdw_dma_dev_data *sdw_data; in acp63_sdw_dma_pointer() local
339 sdw_data = dev_get_drvdata(comp->dev); in acp63_sdw_dma_pointer()
343 bytescount = acp63_sdw_get_byte_count(stream, sdw_data->acp_base); in acp63_sdw_dma_pointer()
363 struct sdw_dma_dev_data *sdw_data; in acp63_sdw_dma_close() local
366 sdw_data = dev_get_drvdata(component->dev); in acp63_sdw_dma_close()
372 sdw_data->sdw0_dma_stream[stream->stream_id] = NULL; in acp63_sdw_dma_close()
375 sdw_data->sdw1_dma_stream[stream->stream_id] = NULL; in acp63_sdw_dma_close()
417 struct sdw_dma_dev_data *sdw_data; in acp63_sdw_dma_trigger() local
420 sdw_data = dev_get_drvdata(comp->dev); in acp63_sdw_dma_trigger()
425 ret = acp63_sdw_dma_enable(substream, sdw_data->acp_base, true); in acp63_sdw_dma_trigger()
430 ret = acp63_sdw_dma_enable(substream, sdw_data->acp_base, false); in acp63_sdw_dma_trigger()
453 struct sdw_dma_dev_data *sdw_data; in acp63_sdw_platform_probe() local
466 sdw_data = devm_kzalloc(&pdev->dev, sizeof(*sdw_data), GFP_KERNEL); in acp63_sdw_platform_probe()
467 if (!sdw_data) in acp63_sdw_platform_probe()
470 sdw_data->acp_base = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in acp63_sdw_platform_probe()
471 if (!sdw_data->acp_base) in acp63_sdw_platform_probe()
474 sdw_data->acp_lock = &acp_data->acp_lock; in acp63_sdw_platform_probe()
475 dev_set_drvdata(&pdev->dev, sdw_data); in acp63_sdw_platform_probe()
496 static int acp_restore_sdw_dma_config(struct sdw_dma_dev_data *sdw_data) in acp_restore_sdw_dma_config() argument
513 substream = sdw_data->sdw0_dma_stream[index]; in acp_restore_sdw_dma_config()
517 substream = sdw_data->sdw1_dma_stream[index]; in acp_restore_sdw_dma_config()
527 acp63_config_dma(stream, sdw_data->acp_base, index); in acp_restore_sdw_dma_config()
528 ret = acp63_configure_sdw_ringbuffer(sdw_data->acp_base, index, in acp_restore_sdw_dma_config()
532 writel(period_bytes, sdw_data->acp_base + water_mark_size_reg); in acp_restore_sdw_dma_config()
536 acp63_enable_disable_sdw_dma_interrupts(sdw_data->acp_base, true); in acp_restore_sdw_dma_config()
542 struct sdw_dma_dev_data *sdw_data; in acp63_sdw_pcm_resume() local
544 sdw_data = dev_get_drvdata(dev); in acp63_sdw_pcm_resume()
545 return acp_restore_sdw_dma_config(sdw_data); in acp63_sdw_pcm_resume()