Lines Matching refs:pwrc_domain

265 	struct meson_ee_pwrc_domain_desc *pwrc_domain;  in pwrc_ee_get_power()  local
268 pwrc_domain = &priv->data->domains[power_domain->id]; in pwrc_ee_get_power()
271 pwrc_domain->top_pd->sleep_reg, &reg); in pwrc_ee_get_power()
273 return (reg & pwrc_domain->top_pd->sleep_mask); in pwrc_ee_get_power()
289 struct meson_ee_pwrc_domain_desc *pwrc_domain; in meson_ee_pwrc_off() local
292 pwrc_domain = &priv->data->domains[power_domain->id]; in meson_ee_pwrc_off()
294 if (pwrc_domain->top_pd) in meson_ee_pwrc_off()
296 pwrc_domain->top_pd->sleep_reg, in meson_ee_pwrc_off()
297 pwrc_domain->top_pd->sleep_mask, in meson_ee_pwrc_off()
298 pwrc_domain->top_pd->sleep_mask); in meson_ee_pwrc_off()
301 for (i = 0 ; i < pwrc_domain->mem_pd_count ; ++i) in meson_ee_pwrc_off()
303 pwrc_domain->mem_pd[i].reg, in meson_ee_pwrc_off()
304 pwrc_domain->mem_pd[i].mask, in meson_ee_pwrc_off()
305 pwrc_domain->mem_pd[i].mask); in meson_ee_pwrc_off()
309 if (pwrc_domain->top_pd) in meson_ee_pwrc_off()
311 pwrc_domain->top_pd->iso_reg, in meson_ee_pwrc_off()
312 pwrc_domain->top_pd->iso_mask, in meson_ee_pwrc_off()
313 pwrc_domain->top_pd->iso_mask); in meson_ee_pwrc_off()
315 if (pwrc_domain->clk_names_count) { in meson_ee_pwrc_off()
326 struct meson_ee_pwrc_domain_desc *pwrc_domain; in meson_ee_pwrc_on() local
329 pwrc_domain = &priv->data->domains[power_domain->id]; in meson_ee_pwrc_on()
331 if (pwrc_domain->top_pd) in meson_ee_pwrc_on()
333 pwrc_domain->top_pd->sleep_reg, in meson_ee_pwrc_on()
334 pwrc_domain->top_pd->sleep_mask, 0); in meson_ee_pwrc_on()
337 for (i = 0 ; i < pwrc_domain->mem_pd_count ; ++i) in meson_ee_pwrc_on()
339 pwrc_domain->mem_pd[i].reg, in meson_ee_pwrc_on()
340 pwrc_domain->mem_pd[i].mask, 0); in meson_ee_pwrc_on()
344 if (pwrc_domain->reset_names_count) { in meson_ee_pwrc_on()
350 if (pwrc_domain->top_pd) in meson_ee_pwrc_on()
352 pwrc_domain->top_pd->iso_reg, in meson_ee_pwrc_on()
353 pwrc_domain->top_pd->iso_mask, 0); in meson_ee_pwrc_on()
355 if (pwrc_domain->reset_names_count) { in meson_ee_pwrc_on()
361 if (pwrc_domain->clk_names_count) in meson_ee_pwrc_on()