Lines Matching full:clk_main
46 struct clk *clk_main; member
84 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_apply()
91 err = clk_prepare_enable(mdp->clk_main); in mtk_disp_pwm_apply()
93 dev_err(pwmchip_parent(chip), "Can't enable mdp->clk_main: %pe\n", in mtk_disp_pwm_apply()
102 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_apply()
117 rate = clk_get_rate(mdp->clk_main); in mtk_disp_pwm_apply()
123 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_apply()
181 err = clk_prepare_enable(mdp->clk_main); in mtk_disp_pwm_get_state()
183 dev_err(pwmchip_parent(chip), "Can't enable mdp->clk_main: %pe\n", ERR_PTR(err)); in mtk_disp_pwm_get_state()
190 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_get_state()
204 rate = clk_get_rate(mdp->clk_main); in mtk_disp_pwm_get_state()
221 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_get_state()
248 mdp->clk_main = devm_clk_get(&pdev->dev, "main"); in mtk_disp_pwm_probe()
249 if (IS_ERR(mdp->clk_main)) in mtk_disp_pwm_probe()
250 return dev_err_probe(&pdev->dev, PTR_ERR(mdp->clk_main), in mtk_disp_pwm_probe()