Lines Matching refs:domain_num
37 int psc_wait(u32 domain_num) in psc_wait() argument
54 ptstat = ptstat & (1 << domain_num); in psc_wait()
70 u32 domain_num; in psc_get_domain_num() local
73 domain_num = __raw_readl(KS2_PSC_BASE + PSC_REG_MDCFG(mod_num)); in psc_get_domain_num()
74 domain_num = PSC_REG_MDCFG_GET_PD(domain_num); in psc_get_domain_num()
76 return domain_num; in psc_get_domain_num()
95 u32 domain_num; in psc_set_state() local
107 domain_num = PSC_REG_MDCFG_GET_PD(v); in psc_set_state()
111 if (psc_wait(domain_num) != 0) in psc_set_state()
123 pdctl = __raw_readl(KS2_PSC_BASE + PSC_REG_PDCTL(domain_num)); in psc_set_state()
126 __raw_writel(pdctl, KS2_PSC_BASE + PSC_REG_PDCTL(domain_num)); in psc_set_state()
137 ptcmd |= (u32)(1<<domain_num); in psc_set_state()
141 return psc_wait(domain_num); in psc_set_state()
219 int psc_disable_domain(u32 domain_num) in psc_disable_domain() argument
224 pdctl = __raw_readl(KS2_PSC_BASE + PSC_REG_PDCTL(domain_num)); in psc_disable_domain()
227 __raw_writel(pdctl, KS2_PSC_BASE + PSC_REG_PDCTL(domain_num)); in psc_disable_domain()
230 ptcmd |= (u32)(1 << domain_num); in psc_disable_domain()
233 return psc_wait(domain_num); in psc_disable_domain()
250 int domain_num = psc_get_domain_num(mod_num); in psc_module_keep_in_reset_enabled() local
254 psc_wait(domain_num); in psc_module_keep_in_reset_enabled()
261 psc_wait(domain_num); in psc_module_keep_in_reset_enabled()
272 ptcmd |= (u32)(1 << domain_num); in psc_module_keep_in_reset_enabled()
274 psc_wait(domain_num); in psc_module_keep_in_reset_enabled()
307 int domain_num = psc_get_domain_num(mod_num); in psc_module_release_from_reset() local
311 psc_wait(domain_num); in psc_module_release_from_reset()
318 psc_wait(domain_num); in psc_module_release_from_reset()