Lines Matching refs:dev
78 dev_err(dai->dev, "failed to stop AMX, err = %d\n", err); in tegra210_amx_startup()
95 dev_err(dai->dev, "failed to reset AMX, err = %d\n", err); in tegra210_amx_startup()
102 static int __maybe_unused tegra210_amx_runtime_suspend(struct device *dev) in tegra210_amx_runtime_suspend() argument
104 struct tegra210_amx *amx = dev_get_drvdata(dev); in tegra210_amx_runtime_suspend()
112 static int __maybe_unused tegra210_amx_runtime_resume(struct device *dev) in tegra210_amx_runtime_resume() argument
114 struct tegra210_amx *amx = dev_get_drvdata(dev); in tegra210_amx_runtime_resume()
426 static bool tegra210_amx_wr_reg(struct device *dev, unsigned int reg) in tegra210_amx_wr_reg() argument
439 static bool tegra194_amx_wr_reg(struct device *dev, unsigned int reg) in tegra194_amx_wr_reg() argument
445 return tegra210_amx_wr_reg(dev, reg); in tegra194_amx_wr_reg()
449 static bool tegra210_amx_rd_reg(struct device *dev, unsigned int reg) in tegra210_amx_rd_reg() argument
459 static bool tegra194_amx_rd_reg(struct device *dev, unsigned int reg) in tegra194_amx_rd_reg() argument
465 return tegra210_amx_rd_reg(dev, reg); in tegra194_amx_rd_reg()
469 static bool tegra210_amx_volatile_reg(struct device *dev, unsigned int reg) in tegra210_amx_volatile_reg() argument
535 struct device *dev = &pdev->dev; in tegra210_amx_platform_probe() local
542 match = of_match_device(tegra210_amx_of_match, dev); in tegra210_amx_platform_probe()
546 amx = devm_kzalloc(dev, sizeof(*amx), GFP_KERNEL); in tegra210_amx_platform_probe()
552 dev_set_drvdata(dev, amx); in tegra210_amx_platform_probe()
558 amx->regmap = devm_regmap_init_mmio(dev, regs, in tegra210_amx_platform_probe()
561 dev_err(dev, "regmap init failed\n"); in tegra210_amx_platform_probe()
567 err = devm_snd_soc_register_component(dev, &tegra210_amx_cmpnt, in tegra210_amx_platform_probe()
571 dev_err(dev, "can't register AMX component, err: %d\n", err); in tegra210_amx_platform_probe()
575 pm_runtime_enable(dev); in tegra210_amx_platform_probe()
582 pm_runtime_disable(&pdev->dev); in tegra210_amx_platform_remove()