Lines Matching refs:dev

140 		dev_err(&micfil->pdev->dev,
170 static int fsl_micfil_reset(struct device *dev)
172 struct fsl_micfil *micfil = dev_get_drvdata(dev);
180 dev_err(dev, "failed to clear MDIS bit %d\n", ret);
189 dev_err(dev, "failed to reset MICFIL: %d\n", ret);
218 struct device *dev = &micfil->pdev->dev;
225 dev_warn(dev, "failed to set rate (%u): %d\n",
239 dev_err(dai->dev, "micfil dai priv_data not set\n");
250 struct device *dev = &micfil->pdev->dev;
257 ret = fsl_micfil_reset(dev);
259 dev_err(dev, "failed to soft reset\n");
273 dev_err(dev, "failed to update DISEL bits\n");
282 dev_err(dev, "failed to enable the module\n");
295 dev_err(dev, "failed to enable the module\n");
303 dev_err(dev, "failed to update DISEL bits\n");
313 static int fsl_set_clock_params(struct device *dev, unsigned int rate)
315 struct fsl_micfil *micfil = dev_get_drvdata(dev);
321 dev_err(dev, "failed to set mclk[%lu] to rate %u\n",
329 dev_err(dev, "failed to set CICOSR in reg 0x%X\n",
340 dev_err(dev, "failed to set CLKDIV in reg 0x%X\n",
353 struct device *dev = &micfil->pdev->dev;
360 dev_err(dev, "failed to disable the module\n");
368 dev_err(dev, "failed to enable channels %d, reg 0x%X\n", ret,
373 ret = fsl_set_clock_params(dev, rate);
375 dev_err(dev, "Failed to set clock parameters [%d]\n", ret);
388 struct device *dev = &micfil->pdev->dev;
397 dev_err(dev, "failed to set mclk[%lu] to rate %u\n",
412 struct fsl_micfil *micfil = dev_get_drvdata(cpu_dai->dev);
413 struct device *dev = cpu_dai->dev;
422 dev_err(dev, "failed to set quality mode bits, reg 0x%X\n",
441 dev_err(dev, "failed to set FIFOWMK\n");
496 static bool fsl_micfil_readable_reg(struct device *dev, unsigned int reg)
528 static bool fsl_micfil_writeable_reg(struct device *dev, unsigned int reg)
551 static bool fsl_micfil_volatile_reg(struct device *dev, unsigned int reg)
606 dev_dbg(&pdev->dev,
620 dev_dbg(&pdev->dev,
625 dev_dbg(&pdev->dev,
642 dev_dbg(&pdev->dev, "isr: Decimation Filter is running\n");
645 dev_dbg(&pdev->dev, "isr: FIR Filter Data ready\n");
648 dev_dbg(&pdev->dev, "isr: ipg_clk_app is too low\n");
658 struct device_node *np = pdev->dev.of_node;
666 micfil = devm_kzalloc(&pdev->dev, sizeof(*micfil), GFP_KERNEL);
673 of_id = of_match_device(fsl_micfil_dt_ids, &pdev->dev);
682 micfil->mclk = devm_clk_get(&pdev->dev, "ipg_clk_app");
684 dev_err(&pdev->dev, "failed to get core clock: %ld\n",
691 regs = devm_ioremap_resource(&pdev->dev, res);
695 micfil->regmap = devm_regmap_init_mmio_clk(&pdev->dev,
700 dev_err(&pdev->dev, "failed to init MICFIL regmap: %ld\n",
714 dev_err(&pdev->dev, "dataline setting error, Mask is 0x%X\n",
722 dev_err(&pdev->dev, "GET IRQ: %d\n", micfil->irq[i]);
731 ret = devm_request_irq(&pdev->dev, micfil->irq[0],
735 dev_err(&pdev->dev, "failed to claim mic interface irq %u\n",
741 ret = devm_request_irq(&pdev->dev, micfil->irq[1],
745 dev_err(&pdev->dev, "failed to claim mic interface error irq %u\n",
757 pm_runtime_enable(&pdev->dev);
759 ret = devm_snd_soc_register_component(&pdev->dev, &fsl_micfil_component,
762 dev_err(&pdev->dev, "failed to register component %s\n",
767 ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
769 dev_err(&pdev->dev, "failed to pcm register\n");
774 static int __maybe_unused fsl_micfil_runtime_suspend(struct device *dev)
776 struct fsl_micfil *micfil = dev_get_drvdata(dev);
785 static int __maybe_unused fsl_micfil_runtime_resume(struct device *dev)
787 struct fsl_micfil *micfil = dev_get_drvdata(dev);
801 static int __maybe_unused fsl_micfil_suspend(struct device *dev)
803 pm_runtime_force_suspend(dev);
808 static int __maybe_unused fsl_micfil_resume(struct device *dev)
810 pm_runtime_force_resume(dev);