Lines Matching refs:clocks
401 struct tegra_bpmp_clk_info *clocks;
414 clocks = kcalloc(max_id + 1, sizeof(*clocks), GFP_KERNEL);
415 if (!clocks)
419 struct tegra_bpmp_clk_info *info = &clocks[count];
446 *clocksp = clocks;
452 tegra_bpmp_clk_find(const struct tegra_bpmp_clk_info *clocks,
458 if (clocks[i].id == id)
459 return &clocks[i];
467 const struct tegra_bpmp_clk_info *clocks,
519 parent = tegra_bpmp_clk_find(clocks, num_clocks,
551 bpmp->clocks = devm_kcalloc(bpmp->dev, count, sizeof(clk), GFP_KERNEL);
552 if (!bpmp->clocks)
566 bpmp->clocks[i] = clk;
577 clk_hw_unregister(&bpmp->clocks[i]->hw);
587 struct tegra_bpmp_clk *clk = bpmp->clocks[i];
601 struct tegra_bpmp_clk_info *clocks;
605 err = tegra_bpmp_probe_clocks(bpmp, &clocks);
611 dev_dbg(bpmp->dev, "%u clocks probed\n", count);
613 err = tegra_bpmp_register_clocks(bpmp, clocks, count);
626 kfree(clocks);