Home
last modified time | relevance | path

Searched refs:pwrc_domain (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/pmdomain/amlogic/
Dmeson-ee-pwrc.c73 bool (*is_powered_off)(struct meson_ee_pwrc_domain *pwrc_domain);
257 static bool pwrc_ee_is_powered_off(struct meson_ee_pwrc_domain *pwrc_domain);
333 static bool pwrc_ee_is_powered_off(struct meson_ee_pwrc_domain *pwrc_domain) in pwrc_ee_is_powered_off() argument
337 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_is_powered_off()
338 pwrc_domain->desc.top_pd->sleep_reg, &reg); in pwrc_ee_is_powered_off()
340 return (reg & pwrc_domain->desc.top_pd->sleep_mask); in pwrc_ee_is_powered_off()
345 struct meson_ee_pwrc_domain *pwrc_domain = in meson_ee_pwrc_off() local
349 if (pwrc_domain->desc.top_pd) in meson_ee_pwrc_off()
350 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
351 pwrc_domain->desc.top_pd->sleep_reg, in meson_ee_pwrc_off()
[all …]
Dmeson-secure-pwrc.c39 bool (*is_off)(struct meson_secure_pwrc_domain *pwrc_domain);
47 static bool pwrc_secure_is_off(struct meson_secure_pwrc_domain *pwrc_domain) in pwrc_secure_is_off() argument
51 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off()
52 pwrc_domain->index, 0, 0, 0, 0) < 0) in pwrc_secure_is_off()
61 struct meson_secure_pwrc_domain *pwrc_domain = in meson_secure_pwrc_off() local
64 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off()
65 pwrc_domain->index, PWRC_OFF, 0, 0, 0) < 0) { in meson_secure_pwrc_off()
76 struct meson_secure_pwrc_domain *pwrc_domain = in meson_secure_pwrc_on() local
79 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on()
80 pwrc_domain->index, PWRC_ON, 0, 0, 0) < 0) { in meson_secure_pwrc_on()