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