clkdm              48 arch/arm/mach-omap2/clockdomain.c 	struct clockdomain *clkdm, *temp_clkdm;
clkdm              53 arch/arm/mach-omap2/clockdomain.c 	clkdm = NULL;
clkdm              57 arch/arm/mach-omap2/clockdomain.c 			clkdm = temp_clkdm;
clkdm              62 arch/arm/mach-omap2/clockdomain.c 	return clkdm;
clkdm              73 arch/arm/mach-omap2/clockdomain.c static int _clkdm_register(struct clockdomain *clkdm)
clkdm              77 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm || !clkdm->name)
clkdm              80 arch/arm/mach-omap2/clockdomain.c 	pwrdm = pwrdm_lookup(clkdm->pwrdm.name);
clkdm              83 arch/arm/mach-omap2/clockdomain.c 			clkdm->name, clkdm->pwrdm.name);
clkdm              86 arch/arm/mach-omap2/clockdomain.c 	clkdm->pwrdm.ptr = pwrdm;
clkdm              89 arch/arm/mach-omap2/clockdomain.c 	if (_clkdm_lookup(clkdm->name))
clkdm              92 arch/arm/mach-omap2/clockdomain.c 	list_add(&clkdm->node, &clkdm_list);
clkdm              94 arch/arm/mach-omap2/clockdomain.c 	pwrdm_add_clkdm(pwrdm, clkdm);
clkdm              96 arch/arm/mach-omap2/clockdomain.c 	pr_debug("clockdomain: registered %s\n", clkdm->name);
clkdm             102 arch/arm/mach-omap2/clockdomain.c static struct clkdm_dep *_clkdm_deps_lookup(struct clockdomain *clkdm,
clkdm             107 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm || !deps)
clkdm             111 arch/arm/mach-omap2/clockdomain.c 		if (!cd->clkdm && cd->clkdm_name)
clkdm             112 arch/arm/mach-omap2/clockdomain.c 			cd->clkdm = _clkdm_lookup(cd->clkdm_name);
clkdm             114 arch/arm/mach-omap2/clockdomain.c 		if (cd->clkdm == clkdm)
clkdm             142 arch/arm/mach-omap2/clockdomain.c 	struct clockdomain *clkdm;
clkdm             147 arch/arm/mach-omap2/clockdomain.c 	clkdm = clkdm_lookup(autodep->clkdm.name);
clkdm             148 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm) {
clkdm             150 arch/arm/mach-omap2/clockdomain.c 			 autodep->clkdm.name);
clkdm             151 arch/arm/mach-omap2/clockdomain.c 		clkdm = ERR_PTR(-ENOENT);
clkdm             153 arch/arm/mach-omap2/clockdomain.c 	autodep->clkdm.ptr = clkdm;
clkdm             165 arch/arm/mach-omap2/clockdomain.c static void _resolve_clkdm_deps(struct clockdomain *clkdm,
clkdm             171 arch/arm/mach-omap2/clockdomain.c 		if (cd->clkdm)
clkdm             173 arch/arm/mach-omap2/clockdomain.c 		cd->clkdm = _clkdm_lookup(cd->clkdm_name);
clkdm             175 arch/arm/mach-omap2/clockdomain.c 		WARN(!cd->clkdm, "clockdomain: %s: could not find clkdm %s while resolving dependencies - should never happen",
clkdm             176 arch/arm/mach-omap2/clockdomain.c 		     clkdm->name, cd->clkdm_name);
clkdm             447 arch/arm/mach-omap2/clockdomain.c 	for (a = autodeps; a->clkdm.ptr; a++)
clkdm             479 arch/arm/mach-omap2/clockdomain.c 	struct clockdomain *clkdm;
clkdm             485 arch/arm/mach-omap2/clockdomain.c 	list_for_each_entry(clkdm, &clkdm_list, node) {
clkdm             486 arch/arm/mach-omap2/clockdomain.c 		clkdm_deny_idle(clkdm);
clkdm             488 arch/arm/mach-omap2/clockdomain.c 		_resolve_clkdm_deps(clkdm, clkdm->wkdep_srcs);
clkdm             489 arch/arm/mach-omap2/clockdomain.c 		clkdm_clear_all_wkdeps(clkdm);
clkdm             491 arch/arm/mach-omap2/clockdomain.c 		_resolve_clkdm_deps(clkdm, clkdm->sleepdep_srcs);
clkdm             492 arch/arm/mach-omap2/clockdomain.c 		clkdm_clear_all_sleepdeps(clkdm);
clkdm             513 arch/arm/mach-omap2/clockdomain.c 	struct clockdomain *clkdm, *temp_clkdm;
clkdm             518 arch/arm/mach-omap2/clockdomain.c 	clkdm = NULL;
clkdm             522 arch/arm/mach-omap2/clockdomain.c 			clkdm = temp_clkdm;
clkdm             527 arch/arm/mach-omap2/clockdomain.c 	return clkdm;
clkdm             544 arch/arm/mach-omap2/clockdomain.c int clkdm_for_each(int (*fn)(struct clockdomain *clkdm, void *user),
clkdm             547 arch/arm/mach-omap2/clockdomain.c 	struct clockdomain *clkdm;
clkdm             553 arch/arm/mach-omap2/clockdomain.c 	list_for_each_entry(clkdm, &clkdm_list, node) {
clkdm             554 arch/arm/mach-omap2/clockdomain.c 		ret = (*fn)(clkdm, user);
clkdm             570 arch/arm/mach-omap2/clockdomain.c struct powerdomain *clkdm_get_pwrdm(struct clockdomain *clkdm)
clkdm             572 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm             575 arch/arm/mach-omap2/clockdomain.c 	return clkdm->pwrdm.ptr;
clkdm             605 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(cd->clkdm->pwrdm.ptr);
clkdm             607 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(cd->clkdm->pwrdm.ptr);
clkdm             634 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(cd->clkdm->pwrdm.ptr);
clkdm             636 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(cd->clkdm->pwrdm.ptr);
clkdm             690 arch/arm/mach-omap2/clockdomain.c int clkdm_clear_all_wkdeps(struct clockdomain *clkdm)
clkdm             692 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm             698 arch/arm/mach-omap2/clockdomain.c 	return arch_clkdm->clkdm_clear_all_wkdeps(clkdm);
clkdm             725 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(cd->clkdm->pwrdm.ptr);
clkdm             727 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(cd->clkdm->pwrdm.ptr);
clkdm             756 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(cd->clkdm->pwrdm.ptr);
clkdm             758 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(cd->clkdm->pwrdm.ptr);
clkdm             814 arch/arm/mach-omap2/clockdomain.c int clkdm_clear_all_sleepdeps(struct clockdomain *clkdm)
clkdm             816 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm             822 arch/arm/mach-omap2/clockdomain.c 	return arch_clkdm->clkdm_clear_all_sleepdeps(clkdm);
clkdm             834 arch/arm/mach-omap2/clockdomain.c int clkdm_sleep_nolock(struct clockdomain *clkdm)
clkdm             838 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm             841 arch/arm/mach-omap2/clockdomain.c 	if (!(clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) {
clkdm             843 arch/arm/mach-omap2/clockdomain.c 			 clkdm->name);
clkdm             850 arch/arm/mach-omap2/clockdomain.c 	pr_debug("clockdomain: forcing sleep on %s\n", clkdm->name);
clkdm             852 arch/arm/mach-omap2/clockdomain.c 	clkdm->_flags &= ~_CLKDM_FLAG_HWSUP_ENABLED;
clkdm             853 arch/arm/mach-omap2/clockdomain.c 	ret = arch_clkdm->clkdm_sleep(clkdm);
clkdm             854 arch/arm/mach-omap2/clockdomain.c 	ret |= pwrdm_state_switch_nolock(clkdm->pwrdm.ptr);
clkdm             868 arch/arm/mach-omap2/clockdomain.c int clkdm_sleep(struct clockdomain *clkdm)
clkdm             872 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(clkdm->pwrdm.ptr);
clkdm             873 arch/arm/mach-omap2/clockdomain.c 	ret = clkdm_sleep_nolock(clkdm);
clkdm             874 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm             888 arch/arm/mach-omap2/clockdomain.c int clkdm_wakeup_nolock(struct clockdomain *clkdm)
clkdm             892 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm             895 arch/arm/mach-omap2/clockdomain.c 	if (!(clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)) {
clkdm             897 arch/arm/mach-omap2/clockdomain.c 			 clkdm->name);
clkdm             904 arch/arm/mach-omap2/clockdomain.c 	pr_debug("clockdomain: forcing wakeup on %s\n", clkdm->name);
clkdm             906 arch/arm/mach-omap2/clockdomain.c 	clkdm->_flags &= ~_CLKDM_FLAG_HWSUP_ENABLED;
clkdm             907 arch/arm/mach-omap2/clockdomain.c 	ret = arch_clkdm->clkdm_wakeup(clkdm);
clkdm             908 arch/arm/mach-omap2/clockdomain.c 	ret |= pwrdm_state_switch_nolock(clkdm->pwrdm.ptr);
clkdm             922 arch/arm/mach-omap2/clockdomain.c int clkdm_wakeup(struct clockdomain *clkdm)
clkdm             926 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(clkdm->pwrdm.ptr);
clkdm             927 arch/arm/mach-omap2/clockdomain.c 	ret = clkdm_wakeup_nolock(clkdm);
clkdm             928 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm             944 arch/arm/mach-omap2/clockdomain.c void clkdm_allow_idle_nolock(struct clockdomain *clkdm)
clkdm             946 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm             949 arch/arm/mach-omap2/clockdomain.c 	if (!WARN_ON(!clkdm->forcewake_count))
clkdm             950 arch/arm/mach-omap2/clockdomain.c 		clkdm->forcewake_count--;
clkdm             952 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->forcewake_count)
clkdm             955 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm->usecount && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP))
clkdm             956 arch/arm/mach-omap2/clockdomain.c 		clkdm_sleep_nolock(clkdm);
clkdm             958 arch/arm/mach-omap2/clockdomain.c 	if (!(clkdm->flags & CLKDM_CAN_ENABLE_AUTO))
clkdm             961 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->flags & CLKDM_MISSING_IDLE_REPORTING)
clkdm             968 arch/arm/mach-omap2/clockdomain.c 		 clkdm->name);
clkdm             970 arch/arm/mach-omap2/clockdomain.c 	clkdm->_flags |= _CLKDM_FLAG_HWSUP_ENABLED;
clkdm             971 arch/arm/mach-omap2/clockdomain.c 	arch_clkdm->clkdm_allow_idle(clkdm);
clkdm             972 arch/arm/mach-omap2/clockdomain.c 	pwrdm_state_switch_nolock(clkdm->pwrdm.ptr);
clkdm             985 arch/arm/mach-omap2/clockdomain.c void clkdm_allow_idle(struct clockdomain *clkdm)
clkdm             987 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(clkdm->pwrdm.ptr);
clkdm             988 arch/arm/mach-omap2/clockdomain.c 	clkdm_allow_idle_nolock(clkdm);
clkdm             989 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1002 arch/arm/mach-omap2/clockdomain.c void clkdm_deny_idle_nolock(struct clockdomain *clkdm)
clkdm            1004 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm            1007 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->forcewake_count++)
clkdm            1010 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)
clkdm            1011 arch/arm/mach-omap2/clockdomain.c 		clkdm_wakeup_nolock(clkdm);
clkdm            1013 arch/arm/mach-omap2/clockdomain.c 	if (!(clkdm->flags & CLKDM_CAN_DISABLE_AUTO))
clkdm            1016 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->flags & CLKDM_MISSING_IDLE_REPORTING)
clkdm            1023 arch/arm/mach-omap2/clockdomain.c 		 clkdm->name);
clkdm            1025 arch/arm/mach-omap2/clockdomain.c 	clkdm->_flags &= ~_CLKDM_FLAG_HWSUP_ENABLED;
clkdm            1026 arch/arm/mach-omap2/clockdomain.c 	arch_clkdm->clkdm_deny_idle(clkdm);
clkdm            1027 arch/arm/mach-omap2/clockdomain.c 	pwrdm_state_switch_nolock(clkdm->pwrdm.ptr);
clkdm            1039 arch/arm/mach-omap2/clockdomain.c void clkdm_deny_idle(struct clockdomain *clkdm)
clkdm            1041 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(clkdm->pwrdm.ptr);
clkdm            1042 arch/arm/mach-omap2/clockdomain.c 	clkdm_deny_idle_nolock(clkdm);
clkdm            1043 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1057 arch/arm/mach-omap2/clockdomain.c bool clkdm_in_hwsup(struct clockdomain *clkdm)
clkdm            1061 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm            1064 arch/arm/mach-omap2/clockdomain.c 	ret = (clkdm->_flags & _CLKDM_FLAG_HWSUP_ENABLED) ? true : false;
clkdm            1078 arch/arm/mach-omap2/clockdomain.c bool clkdm_missing_idle_reporting(struct clockdomain *clkdm)
clkdm            1080 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm)
clkdm            1083 arch/arm/mach-omap2/clockdomain.c 	return (clkdm->flags & CLKDM_MISSING_IDLE_REPORTING) ? true : false;
clkdm            1099 arch/arm/mach-omap2/clockdomain.c void clkdm_add_autodeps(struct clockdomain *clkdm)
clkdm            1103 arch/arm/mach-omap2/clockdomain.c 	if (!autodeps || clkdm->flags & CLKDM_NO_AUTODEPS)
clkdm            1106 arch/arm/mach-omap2/clockdomain.c 	for (autodep = autodeps; autodep->clkdm.ptr; autodep++) {
clkdm            1107 arch/arm/mach-omap2/clockdomain.c 		if (IS_ERR(autodep->clkdm.ptr))
clkdm            1111 arch/arm/mach-omap2/clockdomain.c 			 clkdm->name, autodep->clkdm.ptr->name);
clkdm            1113 arch/arm/mach-omap2/clockdomain.c 		_clkdm_add_sleepdep(clkdm, autodep->clkdm.ptr);
clkdm            1114 arch/arm/mach-omap2/clockdomain.c 		_clkdm_add_wkdep(clkdm, autodep->clkdm.ptr);
clkdm            1129 arch/arm/mach-omap2/clockdomain.c void clkdm_del_autodeps(struct clockdomain *clkdm)
clkdm            1133 arch/arm/mach-omap2/clockdomain.c 	if (!autodeps || clkdm->flags & CLKDM_NO_AUTODEPS)
clkdm            1136 arch/arm/mach-omap2/clockdomain.c 	for (autodep = autodeps; autodep->clkdm.ptr; autodep++) {
clkdm            1137 arch/arm/mach-omap2/clockdomain.c 		if (IS_ERR(autodep->clkdm.ptr))
clkdm            1141 arch/arm/mach-omap2/clockdomain.c 			 clkdm->name, autodep->clkdm.ptr->name);
clkdm            1143 arch/arm/mach-omap2/clockdomain.c 		_clkdm_del_sleepdep(clkdm, autodep->clkdm.ptr);
clkdm            1144 arch/arm/mach-omap2/clockdomain.c 		_clkdm_del_wkdep(clkdm, autodep->clkdm.ptr);
clkdm            1150 arch/arm/mach-omap2/clockdomain.c static int _clkdm_clk_hwmod_enable(struct clockdomain *clkdm)
clkdm            1152 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm || !arch_clkdm || !arch_clkdm->clkdm_clk_enable)
clkdm            1155 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(clkdm->pwrdm.ptr);
clkdm            1162 arch/arm/mach-omap2/clockdomain.c 	clkdm->usecount++;
clkdm            1163 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->usecount > 1 && autodeps) {
clkdm            1164 arch/arm/mach-omap2/clockdomain.c 		pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1168 arch/arm/mach-omap2/clockdomain.c 	arch_clkdm->clkdm_clk_enable(clkdm);
clkdm            1169 arch/arm/mach-omap2/clockdomain.c 	pwrdm_state_switch_nolock(clkdm->pwrdm.ptr);
clkdm            1170 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1172 arch/arm/mach-omap2/clockdomain.c 	pr_debug("clockdomain: %s: enabled\n", clkdm->name);
clkdm            1191 arch/arm/mach-omap2/clockdomain.c int clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk)
clkdm            1201 arch/arm/mach-omap2/clockdomain.c 	return _clkdm_clk_hwmod_enable(clkdm);
clkdm            1217 arch/arm/mach-omap2/clockdomain.c int clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk)
clkdm            1219 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm || !clk || !arch_clkdm || !arch_clkdm->clkdm_clk_disable)
clkdm            1222 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(clkdm->pwrdm.ptr);
clkdm            1225 arch/arm/mach-omap2/clockdomain.c 	if ((__clk_get_enable_count(clk) == 0) && clkdm->usecount == 0)
clkdm            1228 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->usecount == 0) {
clkdm            1229 arch/arm/mach-omap2/clockdomain.c 		pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1234 arch/arm/mach-omap2/clockdomain.c 	clkdm->usecount--;
clkdm            1235 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->usecount > 0) {
clkdm            1236 arch/arm/mach-omap2/clockdomain.c 		pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1240 arch/arm/mach-omap2/clockdomain.c 	arch_clkdm->clkdm_clk_disable(clkdm);
clkdm            1241 arch/arm/mach-omap2/clockdomain.c 	pwrdm_state_switch_nolock(clkdm->pwrdm.ptr);
clkdm            1243 arch/arm/mach-omap2/clockdomain.c 	pr_debug("clockdomain: %s: disabled\n", clkdm->name);
clkdm            1246 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1266 arch/arm/mach-omap2/clockdomain.c int clkdm_hwmod_enable(struct clockdomain *clkdm, struct omap_hwmod *oh)
clkdm            1280 arch/arm/mach-omap2/clockdomain.c 	return _clkdm_clk_hwmod_enable(clkdm);
clkdm            1297 arch/arm/mach-omap2/clockdomain.c int clkdm_hwmod_disable(struct clockdomain *clkdm, struct omap_hwmod *oh)
clkdm            1308 arch/arm/mach-omap2/clockdomain.c 	if (!clkdm || !oh || !arch_clkdm || !arch_clkdm->clkdm_clk_disable)
clkdm            1311 arch/arm/mach-omap2/clockdomain.c 	pwrdm_lock(clkdm->pwrdm.ptr);
clkdm            1313 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->usecount == 0) {
clkdm            1314 arch/arm/mach-omap2/clockdomain.c 		pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1319 arch/arm/mach-omap2/clockdomain.c 	clkdm->usecount--;
clkdm            1320 arch/arm/mach-omap2/clockdomain.c 	if (clkdm->usecount > 0) {
clkdm            1321 arch/arm/mach-omap2/clockdomain.c 		pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1325 arch/arm/mach-omap2/clockdomain.c 	arch_clkdm->clkdm_clk_disable(clkdm);
clkdm            1326 arch/arm/mach-omap2/clockdomain.c 	pwrdm_state_switch_nolock(clkdm->pwrdm.ptr);
clkdm            1327 arch/arm/mach-omap2/clockdomain.c 	pwrdm_unlock(clkdm->pwrdm.ptr);
clkdm            1329 arch/arm/mach-omap2/clockdomain.c 	pr_debug("clockdomain: %s: disabled\n", clkdm->name);
clkdm            1340 arch/arm/mach-omap2/clockdomain.c static int _clkdm_save_context(struct clockdomain *clkdm, void *ununsed)
clkdm            1345 arch/arm/mach-omap2/clockdomain.c 	return arch_clkdm->clkdm_save_context(clkdm);
clkdm            1353 arch/arm/mach-omap2/clockdomain.c static int _clkdm_restore_context(struct clockdomain *clkdm, void *ununsed)
clkdm            1358 arch/arm/mach-omap2/clockdomain.c 	return arch_clkdm->clkdm_restore_context(clkdm);
clkdm              72 arch/arm/mach-omap2/clockdomain.h 	} clkdm;
clkdm              89 arch/arm/mach-omap2/clockdomain.h 	struct clockdomain *clkdm;
clkdm             167 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_clear_all_wkdeps)(struct clockdomain *clkdm);
clkdm             171 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_clear_all_sleepdeps)(struct clockdomain *clkdm);
clkdm             172 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_sleep)(struct clockdomain *clkdm);
clkdm             173 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_wakeup)(struct clockdomain *clkdm);
clkdm             174 arch/arm/mach-omap2/clockdomain.h 	void	(*clkdm_allow_idle)(struct clockdomain *clkdm);
clkdm             175 arch/arm/mach-omap2/clockdomain.h 	void	(*clkdm_deny_idle)(struct clockdomain *clkdm);
clkdm             176 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_clk_enable)(struct clockdomain *clkdm);
clkdm             177 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_clk_disable)(struct clockdomain *clkdm);
clkdm             178 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_save_context)(struct clockdomain *clkdm);
clkdm             179 arch/arm/mach-omap2/clockdomain.h 	int	(*clkdm_restore_context)(struct clockdomain *clkdm);
clkdm             189 arch/arm/mach-omap2/clockdomain.h int clkdm_for_each(int (*fn)(struct clockdomain *clkdm, void *user),
clkdm             191 arch/arm/mach-omap2/clockdomain.h struct powerdomain *clkdm_get_pwrdm(struct clockdomain *clkdm);
clkdm             196 arch/arm/mach-omap2/clockdomain.h int clkdm_clear_all_wkdeps(struct clockdomain *clkdm);
clkdm             200 arch/arm/mach-omap2/clockdomain.h int clkdm_clear_all_sleepdeps(struct clockdomain *clkdm);
clkdm             202 arch/arm/mach-omap2/clockdomain.h void clkdm_allow_idle_nolock(struct clockdomain *clkdm);
clkdm             203 arch/arm/mach-omap2/clockdomain.h void clkdm_allow_idle(struct clockdomain *clkdm);
clkdm             204 arch/arm/mach-omap2/clockdomain.h void clkdm_deny_idle_nolock(struct clockdomain *clkdm);
clkdm             205 arch/arm/mach-omap2/clockdomain.h void clkdm_deny_idle(struct clockdomain *clkdm);
clkdm             206 arch/arm/mach-omap2/clockdomain.h bool clkdm_in_hwsup(struct clockdomain *clkdm);
clkdm             207 arch/arm/mach-omap2/clockdomain.h bool clkdm_missing_idle_reporting(struct clockdomain *clkdm);
clkdm             209 arch/arm/mach-omap2/clockdomain.h int clkdm_wakeup_nolock(struct clockdomain *clkdm);
clkdm             210 arch/arm/mach-omap2/clockdomain.h int clkdm_wakeup(struct clockdomain *clkdm);
clkdm             211 arch/arm/mach-omap2/clockdomain.h int clkdm_sleep_nolock(struct clockdomain *clkdm);
clkdm             212 arch/arm/mach-omap2/clockdomain.h int clkdm_sleep(struct clockdomain *clkdm);
clkdm             214 arch/arm/mach-omap2/clockdomain.h int clkdm_clk_enable(struct clockdomain *clkdm, struct clk *clk);
clkdm             215 arch/arm/mach-omap2/clockdomain.h int clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk);
clkdm             216 arch/arm/mach-omap2/clockdomain.h int clkdm_hwmod_enable(struct clockdomain *clkdm, struct omap_hwmod *oh);
clkdm             217 arch/arm/mach-omap2/clockdomain.h int clkdm_hwmod_disable(struct clockdomain *clkdm, struct omap_hwmod *oh);
clkdm             233 arch/arm/mach-omap2/clockdomain.h extern void clkdm_add_autodeps(struct clockdomain *clkdm);
clkdm             234 arch/arm/mach-omap2/clockdomain.h extern void clkdm_del_autodeps(struct clockdomain *clkdm);
clkdm             431 arch/arm/mach-omap2/clockdomains3xxx_data.c 		.clkdm = { .name = "mpu_clkdm" },
clkdm             434 arch/arm/mach-omap2/clockdomains3xxx_data.c 		.clkdm = { .name = "iva2_clkdm" },
clkdm             437 arch/arm/mach-omap2/clockdomains3xxx_data.c 		.clkdm = { .name = NULL },
clkdm             443 arch/arm/mach-omap2/clockdomains3xxx_data.c 		.clkdm = { .name = "mpu_clkdm" },
clkdm             446 arch/arm/mach-omap2/clockdomains3xxx_data.c 		.clkdm = { .name = NULL },
clkdm             268 arch/arm/mach-omap2/cm2xxx.c static void omap2xxx_clkdm_allow_idle(struct clockdomain *clkdm)
clkdm             270 arch/arm/mach-omap2/cm2xxx.c 	omap2xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             271 arch/arm/mach-omap2/cm2xxx.c 				       clkdm->clktrctrl_mask);
clkdm             274 arch/arm/mach-omap2/cm2xxx.c static void omap2xxx_clkdm_deny_idle(struct clockdomain *clkdm)
clkdm             276 arch/arm/mach-omap2/cm2xxx.c 	omap2xxx_cm_clkdm_disable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             277 arch/arm/mach-omap2/cm2xxx.c 					clkdm->clktrctrl_mask);
clkdm             280 arch/arm/mach-omap2/cm2xxx.c static int omap2xxx_clkdm_clk_enable(struct clockdomain *clkdm)
clkdm             284 arch/arm/mach-omap2/cm2xxx.c 	if (!clkdm->clktrctrl_mask)
clkdm             287 arch/arm/mach-omap2/cm2xxx.c 	hwsup = omap2xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             288 arch/arm/mach-omap2/cm2xxx.c 					      clkdm->clktrctrl_mask);
clkdm             289 arch/arm/mach-omap2/cm2xxx.c 	if (!hwsup && clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)
clkdm             290 arch/arm/mach-omap2/cm2xxx.c 		omap2xxx_clkdm_wakeup(clkdm);
clkdm             295 arch/arm/mach-omap2/cm2xxx.c static int omap2xxx_clkdm_clk_disable(struct clockdomain *clkdm)
clkdm             299 arch/arm/mach-omap2/cm2xxx.c 	if (!clkdm->clktrctrl_mask)
clkdm             302 arch/arm/mach-omap2/cm2xxx.c 	hwsup = omap2xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             303 arch/arm/mach-omap2/cm2xxx.c 					      clkdm->clktrctrl_mask);
clkdm             305 arch/arm/mach-omap2/cm2xxx.c 	if (!hwsup && clkdm->flags & CLKDM_CAN_FORCE_SLEEP)
clkdm             306 arch/arm/mach-omap2/cm2xxx.c 		omap2xxx_clkdm_sleep(clkdm);
clkdm             305 arch/arm/mach-omap2/cm33xx.c static int am33xx_clkdm_sleep(struct clockdomain *clkdm)
clkdm             307 arch/arm/mach-omap2/cm33xx.c 	am33xx_cm_clkdm_force_sleep(clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             311 arch/arm/mach-omap2/cm33xx.c static int am33xx_clkdm_wakeup(struct clockdomain *clkdm)
clkdm             313 arch/arm/mach-omap2/cm33xx.c 	am33xx_cm_clkdm_force_wakeup(clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             317 arch/arm/mach-omap2/cm33xx.c static void am33xx_clkdm_allow_idle(struct clockdomain *clkdm)
clkdm             319 arch/arm/mach-omap2/cm33xx.c 	am33xx_cm_clkdm_enable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             322 arch/arm/mach-omap2/cm33xx.c static void am33xx_clkdm_deny_idle(struct clockdomain *clkdm)
clkdm             324 arch/arm/mach-omap2/cm33xx.c 	am33xx_cm_clkdm_disable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             327 arch/arm/mach-omap2/cm33xx.c static int am33xx_clkdm_clk_enable(struct clockdomain *clkdm)
clkdm             329 arch/arm/mach-omap2/cm33xx.c 	if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)
clkdm             330 arch/arm/mach-omap2/cm33xx.c 		return am33xx_clkdm_wakeup(clkdm);
clkdm             335 arch/arm/mach-omap2/cm33xx.c static int am33xx_clkdm_clk_disable(struct clockdomain *clkdm)
clkdm             339 arch/arm/mach-omap2/cm33xx.c 	hwsup = am33xx_cm_is_clkdm_in_hwsup(clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             341 arch/arm/mach-omap2/cm33xx.c 	if (!hwsup && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP))
clkdm             342 arch/arm/mach-omap2/cm33xx.c 		am33xx_clkdm_sleep(clkdm);
clkdm             358 arch/arm/mach-omap2/cm33xx.c static int am33xx_clkdm_save_context(struct clockdomain *clkdm)
clkdm             360 arch/arm/mach-omap2/cm33xx.c 	clkdm->context = am33xx_cm_read_reg_bits(clkdm->cm_inst,
clkdm             361 arch/arm/mach-omap2/cm33xx.c 						 clkdm->clkdm_offs,
clkdm             373 arch/arm/mach-omap2/cm33xx.c static int am33xx_clkdm_restore_context(struct clockdomain *clkdm)
clkdm             375 arch/arm/mach-omap2/cm33xx.c 	switch (clkdm->context) {
clkdm             377 arch/arm/mach-omap2/cm33xx.c 		am33xx_clkdm_deny_idle(clkdm);
clkdm             380 arch/arm/mach-omap2/cm33xx.c 		am33xx_clkdm_sleep(clkdm);
clkdm             383 arch/arm/mach-omap2/cm33xx.c 		am33xx_clkdm_wakeup(clkdm);
clkdm             386 arch/arm/mach-omap2/cm33xx.c 		am33xx_clkdm_allow_idle(clkdm);
clkdm             172 arch/arm/mach-omap2/cm3xxx.c static int omap3xxx_clkdm_clear_all_sleepdeps(struct clockdomain *clkdm)
clkdm             177 arch/arm/mach-omap2/cm3xxx.c 	for (cd = clkdm->sleepdep_srcs; cd && cd->clkdm_name; cd++) {
clkdm             178 arch/arm/mach-omap2/cm3xxx.c 		if (!cd->clkdm)
clkdm             181 arch/arm/mach-omap2/cm3xxx.c 		mask |= 1 << cd->clkdm->dep_bit;
clkdm             184 arch/arm/mach-omap2/cm3xxx.c 	omap2_cm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs,
clkdm             189 arch/arm/mach-omap2/cm3xxx.c static int omap3xxx_clkdm_sleep(struct clockdomain *clkdm)
clkdm             191 arch/arm/mach-omap2/cm3xxx.c 	omap3xxx_cm_clkdm_force_sleep(clkdm->pwrdm.ptr->prcm_offs,
clkdm             192 arch/arm/mach-omap2/cm3xxx.c 				      clkdm->clktrctrl_mask);
clkdm             196 arch/arm/mach-omap2/cm3xxx.c static int omap3xxx_clkdm_wakeup(struct clockdomain *clkdm)
clkdm             198 arch/arm/mach-omap2/cm3xxx.c 	omap3xxx_cm_clkdm_force_wakeup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             199 arch/arm/mach-omap2/cm3xxx.c 				       clkdm->clktrctrl_mask);
clkdm             203 arch/arm/mach-omap2/cm3xxx.c static void omap3xxx_clkdm_allow_idle(struct clockdomain *clkdm)
clkdm             205 arch/arm/mach-omap2/cm3xxx.c 	if (clkdm->usecount > 0)
clkdm             206 arch/arm/mach-omap2/cm3xxx.c 		clkdm_add_autodeps(clkdm);
clkdm             208 arch/arm/mach-omap2/cm3xxx.c 	omap3xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             209 arch/arm/mach-omap2/cm3xxx.c 				       clkdm->clktrctrl_mask);
clkdm             212 arch/arm/mach-omap2/cm3xxx.c static void omap3xxx_clkdm_deny_idle(struct clockdomain *clkdm)
clkdm             214 arch/arm/mach-omap2/cm3xxx.c 	omap3xxx_cm_clkdm_disable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             215 arch/arm/mach-omap2/cm3xxx.c 					clkdm->clktrctrl_mask);
clkdm             217 arch/arm/mach-omap2/cm3xxx.c 	if (clkdm->usecount > 0)
clkdm             218 arch/arm/mach-omap2/cm3xxx.c 		clkdm_del_autodeps(clkdm);
clkdm             221 arch/arm/mach-omap2/cm3xxx.c static int omap3xxx_clkdm_clk_enable(struct clockdomain *clkdm)
clkdm             225 arch/arm/mach-omap2/cm3xxx.c 	if (!clkdm->clktrctrl_mask)
clkdm             233 arch/arm/mach-omap2/cm3xxx.c 	if ((clkdm->flags & CLKDM_MISSING_IDLE_REPORTING) &&
clkdm             234 arch/arm/mach-omap2/cm3xxx.c 	    (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)) {
clkdm             235 arch/arm/mach-omap2/cm3xxx.c 		omap3xxx_clkdm_wakeup(clkdm);
clkdm             239 arch/arm/mach-omap2/cm3xxx.c 	hwsup = omap3xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             240 arch/arm/mach-omap2/cm3xxx.c 					      clkdm->clktrctrl_mask);
clkdm             244 arch/arm/mach-omap2/cm3xxx.c 		omap3xxx_cm_clkdm_disable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             245 arch/arm/mach-omap2/cm3xxx.c 						clkdm->clktrctrl_mask);
clkdm             246 arch/arm/mach-omap2/cm3xxx.c 		clkdm_add_autodeps(clkdm);
clkdm             247 arch/arm/mach-omap2/cm3xxx.c 		omap3xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             248 arch/arm/mach-omap2/cm3xxx.c 					       clkdm->clktrctrl_mask);
clkdm             250 arch/arm/mach-omap2/cm3xxx.c 		if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)
clkdm             251 arch/arm/mach-omap2/cm3xxx.c 			omap3xxx_clkdm_wakeup(clkdm);
clkdm             257 arch/arm/mach-omap2/cm3xxx.c static int omap3xxx_clkdm_clk_disable(struct clockdomain *clkdm)
clkdm             261 arch/arm/mach-omap2/cm3xxx.c 	if (!clkdm->clktrctrl_mask)
clkdm             269 arch/arm/mach-omap2/cm3xxx.c 	if (clkdm->flags & CLKDM_MISSING_IDLE_REPORTING &&
clkdm             270 arch/arm/mach-omap2/cm3xxx.c 	    !(clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) {
clkdm             271 arch/arm/mach-omap2/cm3xxx.c 		omap3xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             272 arch/arm/mach-omap2/cm3xxx.c 					       clkdm->clktrctrl_mask);
clkdm             276 arch/arm/mach-omap2/cm3xxx.c 	hwsup = omap3xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             277 arch/arm/mach-omap2/cm3xxx.c 					      clkdm->clktrctrl_mask);
clkdm             281 arch/arm/mach-omap2/cm3xxx.c 		omap3xxx_cm_clkdm_disable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             282 arch/arm/mach-omap2/cm3xxx.c 						clkdm->clktrctrl_mask);
clkdm             283 arch/arm/mach-omap2/cm3xxx.c 		clkdm_del_autodeps(clkdm);
clkdm             284 arch/arm/mach-omap2/cm3xxx.c 		omap3xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs,
clkdm             285 arch/arm/mach-omap2/cm3xxx.c 					       clkdm->clktrctrl_mask);
clkdm             287 arch/arm/mach-omap2/cm3xxx.c 		if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP)
clkdm             288 arch/arm/mach-omap2/cm3xxx.c 			omap3xxx_clkdm_sleep(clkdm);
clkdm             380 arch/arm/mach-omap2/cminst44xx.c static int omap4_clkdm_clear_all_wkup_sleep_deps(struct clockdomain *clkdm)
clkdm             385 arch/arm/mach-omap2/cminst44xx.c 	if (!clkdm->prcm_partition)
clkdm             388 arch/arm/mach-omap2/cminst44xx.c 	for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) {
clkdm             389 arch/arm/mach-omap2/cminst44xx.c 		if (!cd->clkdm)
clkdm             392 arch/arm/mach-omap2/cminst44xx.c 		mask |= 1 << cd->clkdm->dep_bit;
clkdm             396 arch/arm/mach-omap2/cminst44xx.c 	omap4_cminst_clear_inst_reg_bits(mask, clkdm->prcm_partition,
clkdm             397 arch/arm/mach-omap2/cminst44xx.c 					 clkdm->cm_inst, clkdm->clkdm_offs +
clkdm             402 arch/arm/mach-omap2/cminst44xx.c static int omap4_clkdm_sleep(struct clockdomain *clkdm)
clkdm             404 arch/arm/mach-omap2/cminst44xx.c 	if (clkdm->flags & CLKDM_CAN_HWSUP)
clkdm             405 arch/arm/mach-omap2/cminst44xx.c 		omap4_cminst_clkdm_enable_hwsup(clkdm->prcm_partition,
clkdm             406 arch/arm/mach-omap2/cminst44xx.c 						clkdm->cm_inst,
clkdm             407 arch/arm/mach-omap2/cminst44xx.c 						clkdm->clkdm_offs);
clkdm             408 arch/arm/mach-omap2/cminst44xx.c 	else if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP)
clkdm             409 arch/arm/mach-omap2/cminst44xx.c 		omap4_cminst_clkdm_force_sleep(clkdm->prcm_partition,
clkdm             410 arch/arm/mach-omap2/cminst44xx.c 					       clkdm->cm_inst,
clkdm             411 arch/arm/mach-omap2/cminst44xx.c 					       clkdm->clkdm_offs);
clkdm             418 arch/arm/mach-omap2/cminst44xx.c static int omap4_clkdm_wakeup(struct clockdomain *clkdm)
clkdm             420 arch/arm/mach-omap2/cminst44xx.c 	omap4_cminst_clkdm_force_wakeup(clkdm->prcm_partition,
clkdm             421 arch/arm/mach-omap2/cminst44xx.c 					clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             425 arch/arm/mach-omap2/cminst44xx.c static void omap4_clkdm_allow_idle(struct clockdomain *clkdm)
clkdm             427 arch/arm/mach-omap2/cminst44xx.c 	omap4_cminst_clkdm_enable_hwsup(clkdm->prcm_partition,
clkdm             428 arch/arm/mach-omap2/cminst44xx.c 					clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             431 arch/arm/mach-omap2/cminst44xx.c static void omap4_clkdm_deny_idle(struct clockdomain *clkdm)
clkdm             433 arch/arm/mach-omap2/cminst44xx.c 	if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)
clkdm             434 arch/arm/mach-omap2/cminst44xx.c 		omap4_clkdm_wakeup(clkdm);
clkdm             436 arch/arm/mach-omap2/cminst44xx.c 		omap4_cminst_clkdm_disable_hwsup(clkdm->prcm_partition,
clkdm             437 arch/arm/mach-omap2/cminst44xx.c 						 clkdm->cm_inst,
clkdm             438 arch/arm/mach-omap2/cminst44xx.c 						 clkdm->clkdm_offs);
clkdm             441 arch/arm/mach-omap2/cminst44xx.c static int omap4_clkdm_clk_enable(struct clockdomain *clkdm)
clkdm             443 arch/arm/mach-omap2/cminst44xx.c 	if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP)
clkdm             444 arch/arm/mach-omap2/cminst44xx.c 		return omap4_clkdm_wakeup(clkdm);
clkdm             449 arch/arm/mach-omap2/cminst44xx.c static int omap4_clkdm_clk_disable(struct clockdomain *clkdm)
clkdm             453 arch/arm/mach-omap2/cminst44xx.c 	if (!clkdm->prcm_partition)
clkdm             461 arch/arm/mach-omap2/cminst44xx.c 	if (clkdm->flags & CLKDM_MISSING_IDLE_REPORTING &&
clkdm             462 arch/arm/mach-omap2/cminst44xx.c 	    !(clkdm->flags & CLKDM_CAN_FORCE_SLEEP)) {
clkdm             463 arch/arm/mach-omap2/cminst44xx.c 		omap4_clkdm_allow_idle(clkdm);
clkdm             467 arch/arm/mach-omap2/cminst44xx.c 	hwsup = omap4_cminst_is_clkdm_in_hwsup(clkdm->prcm_partition,
clkdm             468 arch/arm/mach-omap2/cminst44xx.c 					clkdm->cm_inst, clkdm->clkdm_offs);
clkdm             470 arch/arm/mach-omap2/cminst44xx.c 	if (!hwsup && (clkdm->flags & CLKDM_CAN_FORCE_SLEEP))
clkdm             471 arch/arm/mach-omap2/cminst44xx.c 		omap4_clkdm_sleep(clkdm);
clkdm             487 arch/arm/mach-omap2/cminst44xx.c static int omap4_clkdm_save_context(struct clockdomain *clkdm)
clkdm             489 arch/arm/mach-omap2/cminst44xx.c 	clkdm->context = omap4_cminst_read_inst_reg(clkdm->prcm_partition,
clkdm             490 arch/arm/mach-omap2/cminst44xx.c 						    clkdm->cm_inst,
clkdm             491 arch/arm/mach-omap2/cminst44xx.c 						    clkdm->clkdm_offs +
clkdm             493 arch/arm/mach-omap2/cminst44xx.c 	clkdm->context &= OMAP4430_MODULEMODE_MASK;
clkdm             503 arch/arm/mach-omap2/cminst44xx.c static int omap4_clkdm_restore_context(struct clockdomain *clkdm)
clkdm             505 arch/arm/mach-omap2/cminst44xx.c 	switch (clkdm->context) {
clkdm             507 arch/arm/mach-omap2/cminst44xx.c 		omap4_clkdm_deny_idle(clkdm);
clkdm             510 arch/arm/mach-omap2/cminst44xx.c 		omap4_clkdm_sleep(clkdm);
clkdm             513 arch/arm/mach-omap2/cminst44xx.c 		omap4_clkdm_wakeup(clkdm);
clkdm             516 arch/arm/mach-omap2/cminst44xx.c 		omap4_clkdm_allow_idle(clkdm);
clkdm             663 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm) {
clkdm             664 arch/arm/mach-omap2/omap_hwmod.c 		return oh->clkdm;
clkdm             669 arch/arm/mach-omap2/omap_hwmod.c 		return clk->clkdm;
clkdm             689 arch/arm/mach-omap2/omap_hwmod.c 	struct clockdomain *clkdm, *init_clkdm;
clkdm             691 arch/arm/mach-omap2/omap_hwmod.c 	clkdm = _get_clkdm(oh);
clkdm             694 arch/arm/mach-omap2/omap_hwmod.c 	if (!clkdm || !init_clkdm)
clkdm             697 arch/arm/mach-omap2/omap_hwmod.c 	if (clkdm && clkdm->flags & CLKDM_NO_AUTODEPS)
clkdm             700 arch/arm/mach-omap2/omap_hwmod.c 	return clkdm_add_sleepdep(clkdm, init_clkdm);
clkdm             718 arch/arm/mach-omap2/omap_hwmod.c 	struct clockdomain *clkdm, *init_clkdm;
clkdm             720 arch/arm/mach-omap2/omap_hwmod.c 	clkdm = _get_clkdm(oh);
clkdm             723 arch/arm/mach-omap2/omap_hwmod.c 	if (!clkdm || !init_clkdm)
clkdm             726 arch/arm/mach-omap2/omap_hwmod.c 	if (clkdm && clkdm->flags & CLKDM_NO_AUTODEPS)
clkdm             729 arch/arm/mach-omap2/omap_hwmod.c 	return clkdm_del_sleepdep(clkdm, init_clkdm);
clkdm             797 arch/arm/mach-omap2/omap_hwmod.c 	return omap_cm_xlate_clkctrl(oh->clkdm->prcm_partition,
clkdm             798 arch/arm/mach-omap2/omap_hwmod.c 				     oh->clkdm->cm_inst,
clkdm            1098 arch/arm/mach-omap2/omap_hwmod.c 	if (!oh->clkdm || !oh->prcm.omap4.modulemode ||
clkdm            1106 arch/arm/mach-omap2/omap_hwmod.c 			      oh->clkdm->prcm_partition,
clkdm            1107 arch/arm/mach-omap2/omap_hwmod.c 			      oh->clkdm->cm_inst, oh->prcm.omap4.clkctrl_offs);
clkdm            1124 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->_int_flags & _HWMOD_NO_MPU_PORT || !oh->clkdm)
clkdm            1136 arch/arm/mach-omap2/omap_hwmod.c 	return omap_cm_wait_module_idle(oh->clkdm->prcm_partition,
clkdm            1137 arch/arm/mach-omap2/omap_hwmod.c 					oh->clkdm->cm_inst,
clkdm            1207 arch/arm/mach-omap2/omap_hwmod.c 	struct clockdomain *clkdm;
clkdm            1227 arch/arm/mach-omap2/omap_hwmod.c 	clkdm = _get_clkdm(oh);
clkdm            1245 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_act = (clkdm && clkdm->flags & CLKDM_ACTIVE_WITH_MPU);
clkdm            1413 arch/arm/mach-omap2/omap_hwmod.c 	oh->clkdm = clkdm_lookup(oh->clkdm_name);
clkdm            1414 arch/arm/mach-omap2/omap_hwmod.c 	if (!oh->clkdm) {
clkdm            1551 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm) {
clkdm            1557 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_deny_idle(oh->clkdm);
clkdm            1558 arch/arm/mach-omap2/omap_hwmod.c 		ret = clkdm_hwmod_enable(oh->clkdm, oh);
clkdm            1561 arch/arm/mach-omap2/omap_hwmod.c 			     oh->name, oh->clkdm->name, ret);
clkdm            1579 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm) {
clkdm            1584 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_allow_idle(oh->clkdm);
clkdm            1586 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_hwmod_disable(oh->clkdm, oh);
clkdm            1683 arch/arm/mach-omap2/omap_hwmod.c 	if (!oh->clkdm || !oh->prcm.omap4.modulemode ||
clkdm            1696 arch/arm/mach-omap2/omap_hwmod.c 	omap_cm_module_disable(oh->clkdm->prcm_partition, oh->clkdm->cm_inst,
clkdm            1866 arch/arm/mach-omap2/omap_hwmod.c 	if (!prm_was_any_context_lost_old(oh->clkdm->pwrdm.ptr->prcm_partition,
clkdm            1867 arch/arm/mach-omap2/omap_hwmod.c 					  oh->clkdm->pwrdm.ptr->prcm_offs,
clkdm            1872 arch/arm/mach-omap2/omap_hwmod.c 	prm_clear_context_loss_flags_old(oh->clkdm->pwrdm.ptr->prcm_partition,
clkdm            1873 arch/arm/mach-omap2/omap_hwmod.c 					 oh->clkdm->pwrdm.ptr->prcm_offs,
clkdm            1950 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm) {
clkdm            1956 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_deny_idle(oh->clkdm);
clkdm            1957 arch/arm/mach-omap2/omap_hwmod.c 		r = clkdm_hwmod_enable(oh->clkdm, oh);
clkdm            1960 arch/arm/mach-omap2/omap_hwmod.c 			     oh->name, oh->clkdm->name, r);
clkdm            1976 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm && !(oh->flags & HWMOD_CLKDM_NOAUTO))
clkdm            1977 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_allow_idle(oh->clkdm);
clkdm            1996 arch/arm/mach-omap2/omap_hwmod.c 		if (oh->clkdm)
clkdm            1997 arch/arm/mach-omap2/omap_hwmod.c 			clkdm_hwmod_disable(oh->clkdm, oh);
clkdm            2038 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm && !(oh->flags & HWMOD_CLKDM_NOAUTO))
clkdm            2039 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_deny_idle(oh->clkdm);
clkdm            2053 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm) {
clkdm            2054 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_allow_idle(oh->clkdm);
clkdm            2055 arch/arm/mach-omap2/omap_hwmod.c 		clkdm_hwmod_disable(oh->clkdm, oh);
clkdm            2116 arch/arm/mach-omap2/omap_hwmod.c 		if (oh->clkdm)
clkdm            2117 arch/arm/mach-omap2/omap_hwmod.c 			clkdm_hwmod_disable(oh->clkdm, oh);
clkdm            2776 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->flags & HWMOD_NO_IDLEST || !oh->clkdm)
clkdm            2790 arch/arm/mach-omap2/omap_hwmod.c 	return omap_cm_wait_module_ready(oh->clkdm->prcm_partition,
clkdm            2791 arch/arm/mach-omap2/omap_hwmod.c 					 oh->clkdm->cm_inst,
clkdm            2865 arch/arm/mach-omap2/omap_hwmod.c 	if (!oh->clkdm)
clkdm            2869 arch/arm/mach-omap2/omap_hwmod.c 					 oh->clkdm->pwrdm.ptr->prcm_partition,
clkdm            2870 arch/arm/mach-omap2/omap_hwmod.c 					 oh->clkdm->pwrdm.ptr->prcm_offs,
clkdm            2889 arch/arm/mach-omap2/omap_hwmod.c 	if (!oh->clkdm)
clkdm            2896 arch/arm/mach-omap2/omap_hwmod.c 					   oh->clkdm->pwrdm.ptr->prcm_partition,
clkdm            2897 arch/arm/mach-omap2/omap_hwmod.c 					   oh->clkdm->pwrdm.ptr->prcm_offs,
clkdm            2918 arch/arm/mach-omap2/omap_hwmod.c 	if (!oh->clkdm)
clkdm            2922 arch/arm/mach-omap2/omap_hwmod.c 					      oh->clkdm->pwrdm.ptr->
clkdm            2924 arch/arm/mach-omap2/omap_hwmod.c 					      oh->clkdm->pwrdm.ptr->prcm_offs,
clkdm            2962 arch/arm/mach-omap2/omap_hwmod.c 					   oh->clkdm->pwrdm.ptr->prcm_partition,
clkdm            2963 arch/arm/mach-omap2/omap_hwmod.c 					   oh->clkdm->pwrdm.ptr->prcm_offs,
clkdm            3457 arch/arm/mach-omap2/omap_hwmod.c 				      struct clockdomain *clkdm,
clkdm            3519 arch/arm/mach-omap2/omap_hwmod.c 	if (clkdm)
clkdm            3520 arch/arm/mach-omap2/omap_hwmod.c 		oh->clkdm = clkdm;
clkdm            3667 arch/arm/mach-omap2/omap_hwmod.c 					  cookie->clkdm, rev_offs,
clkdm            3816 arch/arm/mach-omap2/omap_hwmod.c 	struct clockdomain *clkdm;
clkdm            3822 arch/arm/mach-omap2/omap_hwmod.c 	if (oh->clkdm)
clkdm            3823 arch/arm/mach-omap2/omap_hwmod.c 		return oh->clkdm->pwrdm.ptr;
clkdm            3835 arch/arm/mach-omap2/omap_hwmod.c 	clkdm = clk->clkdm;
clkdm            3836 arch/arm/mach-omap2/omap_hwmod.c 	if (!clkdm)
clkdm            3839 arch/arm/mach-omap2/omap_hwmod.c 	return clkdm->pwrdm.ptr;
clkdm             590 arch/arm/mach-omap2/omap_hwmod.h 	struct clockdomain		*clkdm;
clkdm             361 arch/arm/mach-omap2/pdata-quirks.c 	struct clockdomain *clkdm = NULL;
clkdm             369 arch/arm/mach-omap2/pdata-quirks.c 		clkdm = clkdm_lookup(hwclk->clkdm_name);
clkdm             371 arch/arm/mach-omap2/pdata-quirks.c 	return clkdm;
clkdm             393 arch/arm/mach-omap2/pdata-quirks.c 		cookie->clkdm = ti_sysc_find_one_clockdomain(fck);
clkdm             394 arch/arm/mach-omap2/pdata-quirks.c 	if (cookie->clkdm)
clkdm             397 arch/arm/mach-omap2/pdata-quirks.c 		cookie->clkdm = ti_sysc_find_one_clockdomain(ick);
clkdm             398 arch/arm/mach-omap2/pdata-quirks.c 	if (cookie->clkdm)
clkdm             407 arch/arm/mach-omap2/pdata-quirks.c 	if (cookie->clkdm)
clkdm             408 arch/arm/mach-omap2/pdata-quirks.c 		clkdm_deny_idle(cookie->clkdm);
clkdm             414 arch/arm/mach-omap2/pdata-quirks.c 	if (cookie->clkdm)
clkdm             415 arch/arm/mach-omap2/pdata-quirks.c 		clkdm_allow_idle(cookie->clkdm);
clkdm              69 arch/arm/mach-omap2/pm-debug.c static int clkdm_dbg_show_counter(struct clockdomain *clkdm, void *user)
clkdm              73 arch/arm/mach-omap2/pm-debug.c 	if (strcmp(clkdm->name, "emu_clkdm") == 0 ||
clkdm              74 arch/arm/mach-omap2/pm-debug.c 		strcmp(clkdm->name, "wkup_clkdm") == 0 ||
clkdm              75 arch/arm/mach-omap2/pm-debug.c 		strncmp(clkdm->name, "dpll", 4) == 0)
clkdm              78 arch/arm/mach-omap2/pm-debug.c 	seq_printf(s, "%s->%s (%d)\n", clkdm->name, clkdm->pwrdm.ptr->name,
clkdm              79 arch/arm/mach-omap2/pm-debug.c 		   clkdm->usecount);
clkdm              71 arch/arm/mach-omap2/pm.c int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused)
clkdm              73 arch/arm/mach-omap2/pm.c 	clkdm_allow_idle(clkdm);
clkdm              33 arch/arm/mach-omap2/pm.h extern int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused);
clkdm             465 arch/arm/mach-omap2/powerdomain.c int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm)
clkdm             470 arch/arm/mach-omap2/powerdomain.c 	if (!pwrdm || !clkdm)
clkdm             474 arch/arm/mach-omap2/powerdomain.c 		 pwrdm->name, clkdm->name);
clkdm             480 arch/arm/mach-omap2/powerdomain.c 		if (pwrdm->pwrdm_clkdms[i] == clkdm) {
clkdm             489 arch/arm/mach-omap2/powerdomain.c 			 pwrdm->name, clkdm->name);
clkdm             495 arch/arm/mach-omap2/powerdomain.c 	pwrdm->pwrdm_clkdms[i] = clkdm;
clkdm             214 arch/arm/mach-omap2/powerdomain.h int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm);
clkdm             133 arch/arm/mach-omap2/prm2xxx.c int omap2xxx_clkdm_sleep(struct clockdomain *clkdm)
clkdm             136 arch/arm/mach-omap2/prm2xxx.c 				   clkdm->pwrdm.ptr->prcm_offs,
clkdm             141 arch/arm/mach-omap2/prm2xxx.c int omap2xxx_clkdm_wakeup(struct clockdomain *clkdm)
clkdm             144 arch/arm/mach-omap2/prm2xxx.c 				     clkdm->pwrdm.ptr->prcm_offs,
clkdm             121 arch/arm/mach-omap2/prm2xxx.h extern int omap2xxx_clkdm_sleep(struct clockdomain *clkdm);
clkdm             122 arch/arm/mach-omap2/prm2xxx.h extern int omap2xxx_clkdm_wakeup(struct clockdomain *clkdm);
clkdm             219 arch/arm/mach-omap2/prm2xxx_3xxx.c int omap2_clkdm_clear_all_wkdeps(struct clockdomain *clkdm)
clkdm             224 arch/arm/mach-omap2/prm2xxx_3xxx.c 	for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) {
clkdm             225 arch/arm/mach-omap2/prm2xxx_3xxx.c 		if (!cd->clkdm)
clkdm             229 arch/arm/mach-omap2/prm2xxx_3xxx.c 		mask |= 1 << cd->clkdm->dep_bit;
clkdm             233 arch/arm/mach-omap2/prm2xxx_3xxx.c 	omap2_prm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs,
clkdm             125 arch/arm/mach-omap2/prm2xxx_3xxx.h extern int omap2_clkdm_clear_all_wkdeps(struct clockdomain *clkdm);
clkdm             141 drivers/clk/ti/clkctrl.c 	if (clk->clkdm) {
clkdm             142 drivers/clk/ti/clkctrl.c 		ret = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk);
clkdm             204 drivers/clk/ti/clkctrl.c 	if (clk->clkdm)
clkdm             205 drivers/clk/ti/clkctrl.c 		ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk);
clkdm             216 drivers/clk/ti/clkt_dflt.c 	if (clkdm_control && clk->clkdm) {
clkdm             217 drivers/clk/ti/clkt_dflt.c 		ret = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk);
clkdm             267 drivers/clk/ti/clkt_dflt.c 	    clk->clkdm)
clkdm             268 drivers/clk/ti/clkt_dflt.c 		ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk);
clkdm              49 drivers/clk/ti/clockdomain.c 	if (unlikely(!clk->clkdm)) {
clkdm              61 drivers/clk/ti/clockdomain.c 	ret = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk);
clkdm              83 drivers/clk/ti/clockdomain.c 	if (unlikely(!clk->clkdm)) {
clkdm              95 drivers/clk/ti/clockdomain.c 	ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk);
clkdm             109 drivers/clk/ti/clockdomain.c 	struct clockdomain *clkdm;
clkdm             117 drivers/clk/ti/clockdomain.c 	clkdm = ti_clk_ll_ops->clkdm_lookup(clk->clkdm_name);
clkdm             118 drivers/clk/ti/clockdomain.c 	if (clkdm) {
clkdm             121 drivers/clk/ti/clockdomain.c 		clk->clkdm = clkdm;
clkdm             447 drivers/clk/ti/dpll3xxx.c 	if (clk->clkdm) {
clkdm             448 drivers/clk/ti/dpll3xxx.c 		r = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk);
clkdm             483 drivers/clk/ti/dpll3xxx.c 	if (clk->clkdm)
clkdm             484 drivers/clk/ti/dpll3xxx.c 		ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk);
clkdm             160 include/linux/clk/ti.h 	struct clockdomain	*clkdm;
clkdm             234 include/linux/clk/ti.h 	int	(*clkdm_clk_enable)(struct clockdomain *clkdm, struct clk *clk);
clkdm             235 include/linux/clk/ti.h 	int	(*clkdm_clk_disable)(struct clockdomain *clkdm,
clkdm              24 include/linux/platform_data/ti-sysc.h 	void *clkdm;