Lines Matching refs:dev
34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev()
58 dev_err(rtd->dev, in snd_dmaengine_pcm_prepare_slave_config()
109 dev_err(rtd->dev, in dmaengine_pcm_set_runtime_hwparams()
183 dev_err(rtd->dev, in dmaengine_pcm_compat_request_channel()
200 static bool dmaengine_pcm_can_report_residue(struct device *dev, in dmaengine_pcm_can_report_residue() argument
208 dev_warn(dev, "Failed to get DMA channel capabilities, falling back to period counting: %d\n", in dmaengine_pcm_can_report_residue()
224 struct device *dev = component->dev; in dmaengine_pcm_new() local
245 pcm->chan[i] = dma_request_slave_channel(dev, in dmaengine_pcm_new()
254 dev_err(component->dev, in dmaengine_pcm_new()
265 if (!dmaengine_pcm_can_report_residue(dev, pcm->chan[i])) in dmaengine_pcm_new()
358 struct device *dev, const struct snd_dmaengine_pcm_config *config) in dmaengine_pcm_request_chan_of() argument
364 if ((pcm->flags & SND_DMAENGINE_PCM_FLAG_NO_DT) || (!dev->of_node && in dmaengine_pcm_request_chan_of()
375 dev_warn(dev, "DMA channels sourced from device %s", in dmaengine_pcm_request_chan_of()
377 dev = config->dma_dev; in dmaengine_pcm_request_chan_of()
387 chan = dma_request_chan(dev, name); in dmaengine_pcm_request_chan_of()
433 int snd_dmaengine_pcm_register(struct device *dev, in snd_dmaengine_pcm_register() argument
452 ret = dmaengine_pcm_request_chan_of(pcm, dev, config); in snd_dmaengine_pcm_register()
461 ret = snd_soc_component_initialize(&pcm->component, driver, dev); in snd_dmaengine_pcm_register()
485 void snd_dmaengine_pcm_unregister(struct device *dev) in snd_dmaengine_pcm_unregister() argument
490 component = snd_soc_lookup_component(dev, SND_DMAENGINE_PCM_DRV_NAME); in snd_dmaengine_pcm_unregister()
496 snd_soc_unregister_component_by_driver(dev, component->driver); in snd_dmaengine_pcm_unregister()