• Home
  • Raw
  • Download

Lines Matching full:pwrc

23 	struct meson_secure_pwrc *pwrc;  member
48 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off()
61 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off()
76 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on()
125 struct meson_secure_pwrc *pwrc; in meson_secure_pwrc_probe() local
140 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_secure_pwrc_probe()
141 if (!pwrc) { in meson_secure_pwrc_probe()
146 pwrc->fw = meson_sm_get(sm_np); in meson_secure_pwrc_probe()
148 if (!pwrc->fw) in meson_secure_pwrc_probe()
151 pwrc->xlate.domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
152 sizeof(*pwrc->xlate.domains), in meson_secure_pwrc_probe()
154 if (!pwrc->xlate.domains) in meson_secure_pwrc_probe()
157 pwrc->domains = devm_kcalloc(&pdev->dev, match->count, in meson_secure_pwrc_probe()
158 sizeof(*pwrc->domains), GFP_KERNEL); in meson_secure_pwrc_probe()
159 if (!pwrc->domains) in meson_secure_pwrc_probe()
162 pwrc->xlate.num_domains = match->count; in meson_secure_pwrc_probe()
163 platform_set_drvdata(pdev, pwrc); in meson_secure_pwrc_probe()
166 struct meson_secure_pwrc_domain *dom = &pwrc->domains[i]; in meson_secure_pwrc_probe()
171 dom->pwrc = pwrc; in meson_secure_pwrc_probe()
180 pwrc->xlate.domains[i] = &dom->base; in meson_secure_pwrc_probe()
183 return of_genpd_add_provider_onecell(pdev->dev.of_node, &pwrc->xlate); in meson_secure_pwrc_probe()
193 .compatible = "amlogic,meson-a1-pwrc",