Lines Matching refs:clki

4448 	struct ufs_clk_info *clki;
4455 list_for_each_entry(clki, head, list) {
4456 if (!IS_ERR_OR_NULL(clki->clk)) {
4457 if (skip_ref_clk && !strcmp(clki->name, "ref_clk"))
4460 if (on && !clki->enabled) {
4461 ret = clk_prepare_enable(clki->clk);
4464 __func__, clki->name, ret);
4467 } else if (!on && clki->enabled) {
4468 clk_disable_unprepare(clki->clk);
4470 clki->enabled = on;
4472 clki->name, on ? "en" : "dis");
4480 list_for_each_entry(clki, head, list) {
4481 if (!IS_ERR_OR_NULL(clki->clk) && clki->enabled)
4482 clk_disable_unprepare(clki->clk);
4500 struct ufs_clk_info *clki;
4507 list_for_each_entry(clki, head, list) {
4508 if (!clki->name)
4511 clki->clk = devm_clk_get(dev, clki->name);
4512 if (IS_ERR(clki->clk)) {
4513 ret = PTR_ERR(clki->clk);
4515 __func__, clki->name, ret);
4519 if (clki->max_freq) {
4520 ret = clk_set_rate(clki->clk, clki->max_freq);
4523 __func__, clki->name,
4524 clki->max_freq, ret);
4527 clki->curr_freq = clki->max_freq;
4530 clki->name, clk_get_rate(clki->clk));
5327 struct ufs_clk_info *clki;
5333 list_for_each_entry(clki, head, list) {
5334 if (!IS_ERR_OR_NULL(clki->clk)) {
5335 if (scale_up && clki->max_freq) {
5336 if (clki->curr_freq == clki->max_freq)
5338 ret = clk_set_rate(clki->clk, clki->max_freq);
5341 __func__, clki->name,
5342 clki->max_freq, ret);
5345 clki->curr_freq = clki->max_freq;
5347 } else if (!scale_up && clki->min_freq) {
5348 if (clki->curr_freq == clki->min_freq)
5350 ret = clk_set_rate(clki->clk, clki->min_freq);
5353 __func__, clki->name,
5354 clki->min_freq, ret);
5357 clki->curr_freq = clki->min_freq;
5361 clki->name, clk_get_rate(clki->clk));