Lines Matching full:rpmhpd

18 #include <dt-bindings/power/qcom,rpmhpd.h>
20 #define domain_to_rpmhpd(domain) container_of(domain, struct rpmhpd, pd)
25 * struct rpmhpd - top level RPMh power domain resource data structure
43 * @state_synced: Indicator that sync_state has been invoked for the rpmhpd resource
46 struct rpmhpd { struct
50 struct rpmhpd *peer; argument
65 struct rpmhpd **rpmhpds; argument
73 static struct rpmhpd cx_ao;
74 static struct rpmhpd mx;
75 static struct rpmhpd mx_ao;
76 static struct rpmhpd cx = {
82 static struct rpmhpd cx_ao = {
89 static struct rpmhpd cx_ao_w_mx_parent;
90 static struct rpmhpd cx_w_mx_parent = {
97 static struct rpmhpd cx_ao_w_mx_parent = {
105 static struct rpmhpd ebi = {
110 static struct rpmhpd gfx = {
115 static struct rpmhpd lcx = {
120 static struct rpmhpd lmx = {
125 static struct rpmhpd mmcx_ao;
126 static struct rpmhpd mmcx = {
132 static struct rpmhpd mmcx_ao = {
139 static struct rpmhpd mmcx_ao_w_cx_parent;
140 static struct rpmhpd mmcx_w_cx_parent = {
147 static struct rpmhpd mmcx_ao_w_cx_parent = {
155 static struct rpmhpd mss = {
160 static struct rpmhpd mx_ao;
161 static struct rpmhpd mx = {
167 static struct rpmhpd mx_ao = {
174 static struct rpmhpd mxc_ao;
175 static struct rpmhpd mxc = {
182 static struct rpmhpd mxc_ao = {
190 static struct rpmhpd nsp = {
195 static struct rpmhpd nsp0 = {
200 static struct rpmhpd nsp1 = {
205 static struct rpmhpd nsp2 = {
210 static struct rpmhpd qphy = {
215 static struct rpmhpd gmxc = {
221 static struct rpmhpd *sa8540p_rpmhpds[] = {
240 static struct rpmhpd *sa8775p_rpmhpds[] = {
263 static struct rpmhpd *sar2130p_rpmhpds[] = {
287 static struct rpmhpd *sdm670_rpmhpds[] = {
304 static struct rpmhpd *sdm845_rpmhpds[] = {
322 static struct rpmhpd *sdx55_rpmhpds[] = {
334 static struct rpmhpd *sdx65_rpmhpds[] = {
349 static struct rpmhpd *sdx75_rpmhpds[] = {
364 static struct rpmhpd *sm6350_rpmhpds[] = {
379 static struct rpmhpd *sm7150_rpmhpds[] = {
396 static struct rpmhpd *sm8150_rpmhpds[] = {
415 static struct rpmhpd *sa8155p_rpmhpds[] = {
431 static struct rpmhpd *sm8250_rpmhpds[] = {
450 static struct rpmhpd *sm8350_rpmhpds[] = {
472 static struct rpmhpd *sm8450_rpmhpds[] = {
494 static struct rpmhpd *sm8550_rpmhpds[] = {
517 static struct rpmhpd *sm8650_rpmhpds[] = {
541 static struct rpmhpd *sm8750_rpmhpds[] = {
566 static struct rpmhpd *qdu1000_rpmhpds[] = {
579 static struct rpmhpd *sc7180_rpmhpds[] = {
596 static struct rpmhpd *sc7280_rpmhpds[] = {
614 static struct rpmhpd *sc8180x_rpmhpds[] = {
634 static struct rpmhpd *sc8280xp_rpmhpds[] = {
655 static struct rpmhpd *x1e80100_rpmhpds[] = {
677 static struct rpmhpd *qcs8300_rpmhpds[] = {
700 static struct rpmhpd *qcs615_rpmhpds[] = {
711 { .compatible = "qcom,qcs615-rpmhpd", .data = &qcs615_desc },
712 { .compatible = "qcom,qcs8300-rpmhpd", .data = &qcs8300_desc },
713 { .compatible = "qcom,qdu1000-rpmhpd", .data = &qdu1000_desc },
714 { .compatible = "qcom,sa8155p-rpmhpd", .data = &sa8155p_desc },
715 { .compatible = "qcom,sa8540p-rpmhpd", .data = &sa8540p_desc },
716 { .compatible = "qcom,sa8775p-rpmhpd", .data = &sa8775p_desc },
717 { .compatible = "qcom,sar2130p-rpmhpd", .data = &sar2130p_desc},
718 { .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
719 { .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc },
720 { .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc },
721 { .compatible = "qcom,sc8280xp-rpmhpd", .data = &sc8280xp_desc },
722 { .compatible = "qcom,sdm670-rpmhpd", .data = &sdm670_desc },
723 { .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
724 { .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
725 { .compatible = "qcom,sdx65-rpmhpd", .data = &sdx65_desc},
726 { .compatible = "qcom,sdx75-rpmhpd", .data = &sdx75_desc},
727 { .compatible = "qcom,sm6350-rpmhpd", .data = &sm6350_desc },
728 { .compatible = "qcom,sm7150-rpmhpd", .data = &sm7150_desc },
729 { .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
730 { .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
731 { .compatible = "qcom,sm8350-rpmhpd", .data = &sm8350_desc },
732 { .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc },
733 { .compatible = "qcom,sm8550-rpmhpd", .data = &sm8550_desc },
734 { .compatible = "qcom,sm8650-rpmhpd", .data = &sm8650_desc },
735 { .compatible = "qcom,sm8750-rpmhpd", .data = &sm8750_desc },
736 { .compatible = "qcom,x1e80100-rpmhpd", .data = &x1e80100_desc },
741 static int rpmhpd_send_corner(struct rpmhpd *pd, int state, in rpmhpd_send_corner()
759 static void to_active_sleep(struct rpmhpd *pd, unsigned int corner, in to_active_sleep()
779 static int rpmhpd_aggregate_corner(struct rpmhpd *pd, unsigned int corner) in rpmhpd_aggregate_corner()
782 struct rpmhpd *peer = pd->peer; in rpmhpd_aggregate_corner()
830 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_power_on()
848 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_power_off()
865 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_set_performance_state()
896 static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd) in rpmhpd_update_level_mapping() argument
901 buf = cmd_db_read_aux_data(rpmhpd->res_name, &rpmhpd->level_count); in rpmhpd_update_level_mapping()
906 rpmhpd->level_count >>= 1; in rpmhpd_update_level_mapping()
908 if (rpmhpd->level_count > RPMH_ARC_MAX_LEVELS) in rpmhpd_update_level_mapping()
911 for (i = 0; i < rpmhpd->level_count; i++) { in rpmhpd_update_level_mapping()
912 if (rpmhpd->skip_retention_level && buf[i] == RPMH_REGULATOR_LEVEL_RETENTION) in rpmhpd_update_level_mapping()
915 rpmhpd->level[i] = buf[i]; in rpmhpd_update_level_mapping()
918 if (!rpmhpd->level[rpmhpd->enable_corner] && rpmhpd->level[i]) in rpmhpd_update_level_mapping()
919 rpmhpd->enable_corner = i; in rpmhpd_update_level_mapping()
925 if (i > 0 && rpmhpd->level[i] == 0) { in rpmhpd_update_level_mapping()
926 rpmhpd->level_count = i; in rpmhpd_update_level_mapping()
929 pr_debug("%s: ARC hlvl=%2d --> vlvl=%4u\n", rpmhpd->res_name, i, in rpmhpd_update_level_mapping()
930 rpmhpd->level[i]); in rpmhpd_update_level_mapping()
942 struct rpmhpd **rpmhpds; in rpmhpd_probe()
1008 struct rpmhpd **rpmhpds = desc->rpmhpds; in rpmhpd_sync_state()
1010 struct rpmhpd *pd; in rpmhpd_sync_state()
1035 .name = "qcom-rpmhpd",