Lines Matching full:rpmhpd

19 #define domain_to_rpmhpd(domain) container_of(domain, struct rpmhpd, pd)
24 * struct rpmhpd - top level RPMh power domain resource data structure
43 struct rpmhpd { struct
47 struct rpmhpd *peer; argument
60 struct rpmhpd **rpmhpds; argument
68 static struct rpmhpd sdm845_ebi = {
73 static struct rpmhpd sdm845_lmx = {
78 static struct rpmhpd sdm845_lcx = {
83 static struct rpmhpd sdm845_gfx = {
88 static struct rpmhpd sdm845_mss = {
93 static struct rpmhpd sdm845_mx_ao;
94 static struct rpmhpd sdm845_mx = {
100 static struct rpmhpd sdm845_mx_ao = {
107 static struct rpmhpd sdm845_cx_ao;
108 static struct rpmhpd sdm845_cx = {
115 static struct rpmhpd sdm845_cx_ao = {
123 static struct rpmhpd *sdm845_rpmhpds[] = {
142 static struct rpmhpd sm8150_mmcx_ao;
143 static struct rpmhpd sm8150_mmcx = {
149 static struct rpmhpd sm8150_mmcx_ao = {
156 static struct rpmhpd *sm8150_rpmhpds[] = {
175 static struct rpmhpd *sm8250_rpmhpds[] = {
194 static struct rpmhpd *sc7180_rpmhpds[] = {
211 { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
212 { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
213 { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
214 { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
219 static int rpmhpd_send_corner(struct rpmhpd *pd, int state, in rpmhpd_send_corner()
237 static void to_active_sleep(struct rpmhpd *pd, unsigned int corner, in to_active_sleep()
257 static int rpmhpd_aggregate_corner(struct rpmhpd *pd, unsigned int corner) in rpmhpd_aggregate_corner()
260 struct rpmhpd *peer = pd->peer; in rpmhpd_aggregate_corner()
299 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_power_on()
317 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_power_off()
334 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_set_performance_state()
373 static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd) in rpmhpd_update_level_mapping() argument
378 buf = cmd_db_read_aux_data(rpmhpd->res_name, &rpmhpd->level_count); in rpmhpd_update_level_mapping()
383 rpmhpd->level_count >>= 1; in rpmhpd_update_level_mapping()
385 if (rpmhpd->level_count > RPMH_ARC_MAX_LEVELS) in rpmhpd_update_level_mapping()
388 for (i = 0; i < rpmhpd->level_count; i++) { in rpmhpd_update_level_mapping()
389 rpmhpd->level[i] = buf[i]; in rpmhpd_update_level_mapping()
392 if (!rpmhpd->level[rpmhpd->enable_corner] && rpmhpd->level[i]) in rpmhpd_update_level_mapping()
393 rpmhpd->enable_corner = i; in rpmhpd_update_level_mapping()
399 if (i > 0 && rpmhpd->level[i] == 0) { in rpmhpd_update_level_mapping()
400 rpmhpd->level_count = i; in rpmhpd_update_level_mapping()
403 pr_debug("%s: ARC hlvl=%2d --> vlvl=%4u\n", rpmhpd->res_name, i, in rpmhpd_update_level_mapping()
404 rpmhpd->level[i]); in rpmhpd_update_level_mapping()
416 struct rpmhpd **rpmhpds; in rpmhpd_probe()
484 .name = "qcom-rpmhpd",