Lines Matching refs:ahub
21 struct tegra_ahub *ahub = snd_soc_component_get_drvdata(cmpnt); in tegra_ahub_get_value_enum() local
29 for (i = 0; i < ahub->soc_data->reg_count; i++) { in tegra_ahub_get_value_enum()
34 reg_val &= ahub->soc_data->mask[i]; in tegra_ahub_get_value_enum()
58 struct tegra_ahub *ahub = snd_soc_component_get_drvdata(cmpnt); in tegra_ahub_put_value_enum() local
81 for (i = 0; i < ahub->soc_data->reg_count; i++) { in tegra_ahub_put_value_enum()
84 update[i].mask = ahub->soc_data->mask[i]; in tegra_ahub_put_value_enum()
569 struct tegra_ahub *ahub = dev_get_drvdata(dev); in tegra_ahub_runtime_suspend() local
571 regcache_cache_only(ahub->regmap, true); in tegra_ahub_runtime_suspend()
572 regcache_mark_dirty(ahub->regmap); in tegra_ahub_runtime_suspend()
574 clk_disable_unprepare(ahub->clk); in tegra_ahub_runtime_suspend()
581 struct tegra_ahub *ahub = dev_get_drvdata(dev); in tegra_ahub_runtime_resume() local
584 err = clk_prepare_enable(ahub->clk); in tegra_ahub_runtime_resume()
590 regcache_cache_only(ahub->regmap, false); in tegra_ahub_runtime_resume()
591 regcache_sync(ahub->regmap); in tegra_ahub_runtime_resume()
598 struct tegra_ahub *ahub; in tegra_ahub_probe() local
602 ahub = devm_kzalloc(&pdev->dev, sizeof(*ahub), GFP_KERNEL); in tegra_ahub_probe()
603 if (!ahub) in tegra_ahub_probe()
606 ahub->soc_data = of_device_get_match_data(&pdev->dev); in tegra_ahub_probe()
608 platform_set_drvdata(pdev, ahub); in tegra_ahub_probe()
610 ahub->clk = devm_clk_get(&pdev->dev, "ahub"); in tegra_ahub_probe()
611 if (IS_ERR(ahub->clk)) { in tegra_ahub_probe()
613 return PTR_ERR(ahub->clk); in tegra_ahub_probe()
620 ahub->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra_ahub_probe()
621 ahub->soc_data->regmap_config); in tegra_ahub_probe()
622 if (IS_ERR(ahub->regmap)) { in tegra_ahub_probe()
624 return PTR_ERR(ahub->regmap); in tegra_ahub_probe()
627 regcache_cache_only(ahub->regmap, true); in tegra_ahub_probe()
630 ahub->soc_data->cmpnt_drv, in tegra_ahub_probe()
631 ahub->soc_data->dai_drv, in tegra_ahub_probe()
632 ahub->soc_data->num_dais); in tegra_ahub_probe()