Lines Matching refs:pdctl
200 uint32_t pdctl; in ti_psc_pd_get() local
223 pdctl = psc_read(dev, psc_reg(PSC_PDCTL_BASE, idx)); in ti_psc_pd_get()
225 if ((pdctl & PDCTL_STATE_MASK) != PDCTL_STATE_ON) { in ti_psc_pd_get()
227 pdctl &= ~PDCTL_STATE_MASK; in ti_psc_pd_get()
228 pdctl |= PDCTL_STATE_ON; in ti_psc_pd_get()
231 psc_write(dev, pdctl, psc_reg(PSC_PDCTL_BASE, idx)); in ti_psc_pd_get()
264 uint32_t pdctl; in ti_psc_pd_put() local
282 pdctl = psc_read(dev, psc_reg(PSC_PDCTL_BASE, idx)); in ti_psc_pd_put()
283 if ((pdctl & PDCTL_STATE_MASK) != PDCTL_STATE_OFF) { in ti_psc_pd_put()
285 pdctl &= ~PDCTL_STATE_MASK; in ti_psc_pd_put()
286 pdctl |= PDCTL_STATE_OFF; in ti_psc_pd_put()
288 psc_write(dev, pdctl, psc_reg(PSC_PDCTL_BASE, idx)); in ti_psc_pd_put()