Lines Matching refs:pd_state
131 static int pmu_power_domain_ctr(uint32_t pd, uint32_t pd_state) in pmu_power_domain_ctr() argument
139 BITS_WITH_WMASK(pd_state, 0x1, pd)); in pmu_power_domain_ctr()
142 while ((pmu_power_domain_st(pd) != pd_state) && (loop < PD_CTR_LOOP)) { in pmu_power_domain_ctr()
147 if (pmu_power_domain_st(pd) != pd_state) { in pmu_power_domain_ctr()
148 WARN("%s: %d, %d, error!\n", __func__, pd, pd_state); in pmu_power_domain_ctr()
264 static int pmu_set_power_domain(uint32_t pd_id, uint32_t pd_state) in pmu_set_power_domain() argument
268 if (pmu_power_domain_st(pd_id) == pd_state) in pmu_set_power_domain()
271 if (pd_state == pmu_pd_on) in pmu_set_power_domain()
272 pmu_power_domain_ctr(pd_id, pd_state); in pmu_set_power_domain()
274 state = (pd_state == pmu_pd_off) ? bus_idle : bus_active; in pmu_set_power_domain()
308 if (pd_state == pmu_pd_off) in pmu_set_power_domain()
309 pmu_power_domain_ctr(pd_id, pd_state); in pmu_set_power_domain()