Searched refs:pwrc_domain (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/drivers/soc/amlogic/ |
D | meson-ee-pwrc.c | 71 bool (*is_powered_off)(struct meson_ee_pwrc_domain *pwrc_domain); 243 static bool pwrc_ee_is_powered_off(struct meson_ee_pwrc_domain *pwrc_domain); 317 static bool pwrc_ee_is_powered_off(struct meson_ee_pwrc_domain *pwrc_domain) in pwrc_ee_is_powered_off() argument 321 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_is_powered_off() 322 pwrc_domain->desc.top_pd->sleep_reg, ®); in pwrc_ee_is_powered_off() 324 return (reg & pwrc_domain->desc.top_pd->sleep_mask); in pwrc_ee_is_powered_off() 329 struct meson_ee_pwrc_domain *pwrc_domain = in meson_ee_pwrc_off() local 333 if (pwrc_domain->desc.top_pd) in meson_ee_pwrc_off() 334 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off() 335 pwrc_domain->desc.top_pd->sleep_reg, in meson_ee_pwrc_off() [all …]
|
D | meson-secure-pwrc.c | 38 bool (*is_off)(struct meson_secure_pwrc_domain *pwrc_domain); 46 static bool pwrc_secure_is_off(struct meson_secure_pwrc_domain *pwrc_domain) in pwrc_secure_is_off() argument 50 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off() 51 pwrc_domain->index, 0, 0, 0, 0) < 0) in pwrc_secure_is_off() 60 struct meson_secure_pwrc_domain *pwrc_domain = in meson_secure_pwrc_off() local 63 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off() 64 pwrc_domain->index, PWRC_OFF, 0, 0, 0) < 0) { in meson_secure_pwrc_off() 75 struct meson_secure_pwrc_domain *pwrc_domain = in meson_secure_pwrc_on() local 78 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on() 79 pwrc_domain->index, PWRC_ON, 0, 0, 0) < 0) { in meson_secure_pwrc_on()
|