Lines Matching defs:clock
104 * @clock_roles: clock role names for the found clocks
314 struct clk *clock;
322 /* Does the clock alias already exist? */
323 clock = of_clk_get_by_name(np, n);
324 if (!IS_ERR(clock)) {
325 clk_put(clock);
334 clock = devm_get_clk_from_child(ddata->dev, child, name);
335 if (IS_ERR(clock))
336 return PTR_ERR(clock);
349 cl->clk = clock;
352 clk_put(clock);
401 dev_err(ddata->dev, "clock %s not added\n", name);
407 dev_err(ddata->dev, "clock get error for %s: %li\n",
415 dev_err(ddata->dev, "clock prepare error for %s: %i\n",
438 of_property_for_each_string(np, "clock-names", prop, name) {
496 struct clk *clock;
503 clock = ddata->clocks[i];
506 if (IS_ERR_OR_NULL(clock))
509 error = clk_enable(clock);
518 clock = ddata->clocks[i];
521 if (IS_ERR_OR_NULL(clock))
524 clk_disable(clock);
532 struct clk *clock;
539 clock = ddata->clocks[i];
540 if (IS_ERR_OR_NULL(clock))
543 clk_disable(clock);
549 struct clk *clock;
556 clock = ddata->clocks[i];
559 if (IS_ERR_OR_NULL(clock))
562 error = clk_enable(clock);
571 clock = ddata->clocks[i];
572 if (IS_ERR_OR_NULL(clock))
575 clk_disable(clock);
583 struct clk *clock;
590 clock = ddata->clocks[i];
593 if (IS_ERR_OR_NULL(clock))
596 clk_disable(clock);
1842 /* Clear DSS_CONTROL to switch DSS clock sources to PRCM if not */
2284 * to get the clock rate for device internal configuration etc.
2326 dev_err(ddata->dev, "could not add child clock %s: %i\n",
2954 * One time decrement of clock usage counts if left on from init.