Lines Matching refs:dev

220 	adata = dev_get_drvdata(component->dev);  in acp3x_dma_open()
233 dev_err(component->dev, "set integer constraint failed\n"); in acp3x_dma_open()
258 adata = dev_get_drvdata(component->dev); in acp3x_dma_hw_params()
317 struct device *parent = component->dev->parent; in acp3x_dma_new()
332 adata = dev_get_drvdata(component->dev); in acp3x_dma_close()
376 if (!pdev->dev.platform_data) { in acp3x_audio_probe()
377 dev_err(&pdev->dev, "platform_data not retrieved\n"); in acp3x_audio_probe()
380 irqflags = *((unsigned int *)(pdev->dev.platform_data)); in acp3x_audio_probe()
384 dev_err(&pdev->dev, "IORESOURCE_MEM FAILED\n"); in acp3x_audio_probe()
388 adata = devm_kzalloc(&pdev->dev, sizeof(*adata), GFP_KERNEL); in acp3x_audio_probe()
392 adata->acp3x_base = devm_ioremap(&pdev->dev, res->start, in acp3x_audio_probe()
402 dev_set_drvdata(&pdev->dev, adata); in acp3x_audio_probe()
403 status = devm_snd_soc_register_component(&pdev->dev, in acp3x_audio_probe()
407 dev_err(&pdev->dev, "Fail to register acp i2s component\n"); in acp3x_audio_probe()
410 status = devm_request_irq(&pdev->dev, adata->i2s_irq, i2s_irq_handler, in acp3x_audio_probe()
413 dev_err(&pdev->dev, "ACP3x I2S IRQ request failed\n"); in acp3x_audio_probe()
417 pm_runtime_set_autosuspend_delay(&pdev->dev, 2000); in acp3x_audio_probe()
418 pm_runtime_use_autosuspend(&pdev->dev); in acp3x_audio_probe()
419 pm_runtime_mark_last_busy(&pdev->dev); in acp3x_audio_probe()
420 pm_runtime_set_active(&pdev->dev); in acp3x_audio_probe()
421 pm_runtime_enable(&pdev->dev); in acp3x_audio_probe()
427 pm_runtime_disable(&pdev->dev); in acp3x_audio_remove()
430 static int acp3x_resume(struct device *dev) in acp3x_resume() argument
437 adata = dev_get_drvdata(dev); in acp3x_resume()
483 static int acp3x_pcm_runtime_suspend(struct device *dev) in acp3x_pcm_runtime_suspend() argument
487 adata = dev_get_drvdata(dev); in acp3x_pcm_runtime_suspend()
494 static int acp3x_pcm_runtime_resume(struct device *dev) in acp3x_pcm_runtime_resume() argument
498 adata = dev_get_drvdata(dev); in acp3x_pcm_runtime_resume()