Lines Matching defs:clock
104 * @clock_roles: clock role names for the found clocks
317 struct clk *clock;
325 /* Does the clock alias already exist? */
326 clock = of_clk_get_by_name(np, n);
327 if (!IS_ERR(clock)) {
328 clk_put(clock);
337 clock = devm_get_clk_from_child(ddata->dev, child, name);
338 if (IS_ERR(clock))
339 return PTR_ERR(clock);
352 cl->clk = clock;
355 clk_put(clock);
404 dev_err(ddata->dev, "clock %s not added\n", name);
410 dev_err(ddata->dev, "clock get error for %s: %li\n",
418 dev_err(ddata->dev, "clock prepare error for %s: %i\n",
441 of_property_for_each_string(np, "clock-names", prop, name) {
499 struct clk *clock;
506 clock = ddata->clocks[i];
509 if (IS_ERR_OR_NULL(clock))
512 error = clk_enable(clock);
521 clock = ddata->clocks[i];
524 if (IS_ERR_OR_NULL(clock))
527 clk_disable(clock);
535 struct clk *clock;
542 clock = ddata->clocks[i];
543 if (IS_ERR_OR_NULL(clock))
546 clk_disable(clock);
552 struct clk *clock;
559 clock = ddata->clocks[i];
562 if (IS_ERR_OR_NULL(clock))
565 error = clk_enable(clock);
574 clock = ddata->clocks[i];
575 if (IS_ERR_OR_NULL(clock))
578 clk_disable(clock);
586 struct clk *clock;
593 clock = ddata->clocks[i];
596 if (IS_ERR_OR_NULL(clock))
599 clk_disable(clock);
1886 /* Clear DSS_CONTROL to switch DSS clock sources to PRCM if not */
2351 * to get the clock rate for device internal configuration etc.
2393 dev_err(ddata->dev, "could not add child clock %s: %i\n",
3019 * One time decrement of clock usage counts if left on from init.