Lines Matching refs:clocks
424 struct tegra_bpmp_clk_info *clocks;
437 clocks = kcalloc(max_id + 1, sizeof(*clocks), GFP_KERNEL);
438 if (!clocks)
442 struct tegra_bpmp_clk_info *info = &clocks[count];
469 *clocksp = clocks;
475 tegra_bpmp_clk_id_to_index(const struct tegra_bpmp_clk_info *clocks,
481 if (clocks[i].id == id)
488 tegra_bpmp_clk_find(const struct tegra_bpmp_clk_info *clocks,
493 i = tegra_bpmp_clk_id_to_index(clocks, num_clocks, id);
496 return &clocks[i];
504 const struct tegra_bpmp_clk_info *clocks,
570 parent = tegra_bpmp_clk_find(clocks, num_clocks,
602 if (bpmp->clocks[i]) {
622 * bpmp->clocks[i] to avoid re-attempting the
627 bpmp->clocks[i] = clk;
638 bpmp->clocks = devm_kcalloc(bpmp->dev, count, sizeof(struct tegra_bpmp_clk), GFP_KERNEL);
639 if (!bpmp->clocks)
654 clk_hw_unregister(&bpmp->clocks[i]->hw);
664 struct tegra_bpmp_clk *clk = bpmp->clocks[i];
678 struct tegra_bpmp_clk_info *clocks;
682 err = tegra_bpmp_probe_clocks(bpmp, &clocks);
688 dev_dbg(bpmp->dev, "%u clocks probed\n", count);
690 err = tegra_bpmp_register_clocks(bpmp, clocks, count);
703 kfree(clocks);