Lines Matching refs:soc
88 struct tegra_dfll_soc_data *soc; in tegra124_dfll_fcpu_probe() local
100 soc = devm_kzalloc(&pdev->dev, sizeof(*soc), GFP_KERNEL); in tegra124_dfll_fcpu_probe()
101 if (!soc) in tegra124_dfll_fcpu_probe()
104 soc->dev = get_cpu_device(0); in tegra124_dfll_fcpu_probe()
105 if (!soc->dev) { in tegra124_dfll_fcpu_probe()
110 soc->max_freq = cpu_max_freq_table[speedo_id]; in tegra124_dfll_fcpu_probe()
112 soc->cvb = tegra_cvb_add_opp_table(soc->dev, tegra124_cpu_cvb_tables, in tegra124_dfll_fcpu_probe()
115 soc->max_freq); in tegra124_dfll_fcpu_probe()
116 if (IS_ERR(soc->cvb)) { in tegra124_dfll_fcpu_probe()
118 PTR_ERR(soc->cvb)); in tegra124_dfll_fcpu_probe()
119 return PTR_ERR(soc->cvb); in tegra124_dfll_fcpu_probe()
122 err = tegra_dfll_register(pdev, soc); in tegra124_dfll_fcpu_probe()
124 tegra_cvb_remove_opp_table(soc->dev, soc->cvb, soc->max_freq); in tegra124_dfll_fcpu_probe()
128 platform_set_drvdata(pdev, soc); in tegra124_dfll_fcpu_probe()
135 struct tegra_dfll_soc_data *soc = platform_get_drvdata(pdev); in tegra124_dfll_fcpu_remove() local
142 tegra_cvb_remove_opp_table(soc->dev, soc->cvb, soc->max_freq); in tegra124_dfll_fcpu_remove()