Lines Matching refs:grp_clks
97 for (i = ARRAY_SIZE(gpu->grp_clks) - 1; i > 0; i--) { in enable_clk()
98 if (gpu->grp_clks[i]) { in enable_clk()
99 clk_prepare(gpu->grp_clks[i]); in enable_clk()
100 rate_clk = gpu->grp_clks[i]; in enable_clk()
107 for (i = ARRAY_SIZE(gpu->grp_clks) - 1; i > 0; i--) in enable_clk()
108 if (gpu->grp_clks[i]) in enable_clk()
109 clk_enable(gpu->grp_clks[i]); in enable_clk()
120 for (i = ARRAY_SIZE(gpu->grp_clks) - 1; i > 0; i--) { in disable_clk()
121 if (gpu->grp_clks[i]) { in disable_clk()
122 clk_disable(gpu->grp_clks[i]); in disable_clk()
123 rate_clk = gpu->grp_clks[i]; in disable_clk()
130 for (i = ARRAY_SIZE(gpu->grp_clks) - 1; i > 0; i--) in disable_clk()
131 if (gpu->grp_clks[i]) in disable_clk()
132 clk_unprepare(gpu->grp_clks[i]); in disable_clk()
598 BUG_ON(ARRAY_SIZE(clk_names) != ARRAY_SIZE(gpu->grp_clks)); in msm_gpu_init()
624 gpu->grp_clks[i] = devm_clk_get(&pdev->dev, clk_names[i]); in msm_gpu_init()
625 DBG("grp_clks[%s]: %p", clk_names[i], gpu->grp_clks[i]); in msm_gpu_init()
626 if (IS_ERR(gpu->grp_clks[i])) in msm_gpu_init()
627 gpu->grp_clks[i] = NULL; in msm_gpu_init()