Lines Matching defs:clkdm
283 * @clkdm: struct clockdomain * to associate with a powerdomain
285 * Associate the clockdomain @clkdm with a powerdomain @pwrdm. This
290 int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm)
295 if (!pwrdm || !clkdm)
299 "%s\n", clkdm->name, pwrdm->name);
305 if (pwrdm->pwrdm_clkdms[i] == clkdm) {
314 "pwrdm %s clkdm %s\n", pwrdm->name, clkdm->name);
320 pwrdm->pwrdm_clkdms[i] = clkdm;
331 * @clkdm: struct clockdomain * to associate with a powerdomain
333 * Dissociate the clockdomain @clkdm from the powerdomain
335 * if @clkdm was not associated with the powerdomain, or 0 upon
338 int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm)
343 if (!pwrdm || !clkdm)
347 "%s\n", clkdm->name, pwrdm->name);
350 if (pwrdm->pwrdm_clkdms[i] == clkdm)
354 pr_debug("powerdomain: clkdm %s not associated with pwrdm "
355 "%s ?!\n", clkdm->name, pwrdm->name);
369 * pwrdm_for_each_clkdm - call function on each clkdm in a pwrdm
382 struct clockdomain *clkdm))
1041 int pwrdm_clkdm_state_switch(struct clockdomain *clkdm)
1043 if (clkdm != NULL && clkdm->pwrdm.ptr != NULL) {
1044 pwrdm_wait_transition(clkdm->pwrdm.ptr);
1045 return pwrdm_state_switch(clkdm->pwrdm.ptr);