Lines Matching refs:rpmhpd

19 #define domain_to_rpmhpd(domain) container_of(domain, struct rpmhpd, pd)
45 struct rpmhpd { struct
49 struct rpmhpd *peer; argument
64 struct rpmhpd **rpmhpds; argument
72 static struct rpmhpd cx_ao;
73 static struct rpmhpd mx;
74 static struct rpmhpd mx_ao;
75 static struct rpmhpd cx = {
81 static struct rpmhpd cx_ao = {
88 static struct rpmhpd cx_ao_w_mx_parent;
89 static struct rpmhpd cx_w_mx_parent = {
96 static struct rpmhpd cx_ao_w_mx_parent = {
104 static struct rpmhpd ebi = {
109 static struct rpmhpd gfx = {
114 static struct rpmhpd lcx = {
119 static struct rpmhpd lmx = {
124 static struct rpmhpd mmcx_ao;
125 static struct rpmhpd mmcx = {
131 static struct rpmhpd mmcx_ao = {
138 static struct rpmhpd mmcx_ao_w_cx_parent;
139 static struct rpmhpd mmcx_w_cx_parent = {
146 static struct rpmhpd mmcx_ao_w_cx_parent = {
154 static struct rpmhpd mss = {
159 static struct rpmhpd mx_ao;
160 static struct rpmhpd mx = {
166 static struct rpmhpd mx_ao = {
173 static struct rpmhpd mxc_ao;
174 static struct rpmhpd mxc = {
181 static struct rpmhpd mxc_ao = {
189 static struct rpmhpd nsp = {
194 static struct rpmhpd nsp0 = {
199 static struct rpmhpd nsp1 = {
204 static struct rpmhpd qphy = {
210 static struct rpmhpd *sa8540p_rpmhpds[] = {
229 static struct rpmhpd *sa8775p_rpmhpds[] = {
252 static struct rpmhpd *sdm670_rpmhpds[] = {
269 static struct rpmhpd *sdm845_rpmhpds[] = {
287 static struct rpmhpd *sdx55_rpmhpds[] = {
299 static struct rpmhpd *sdx65_rpmhpds[] = {
314 static struct rpmhpd *sdx75_rpmhpds[] = {
329 static struct rpmhpd *sm6350_rpmhpds[] = {
344 static struct rpmhpd *sm8150_rpmhpds[] = {
363 static struct rpmhpd *sa8155p_rpmhpds[] = {
379 static struct rpmhpd *sm8250_rpmhpds[] = {
398 static struct rpmhpd *sm8350_rpmhpds[] = {
420 static struct rpmhpd *sm8450_rpmhpds[] = {
442 static struct rpmhpd *sm8550_rpmhpds[] = {
465 static struct rpmhpd *qdu1000_rpmhpds[] = {
478 static struct rpmhpd *sc7180_rpmhpds[] = {
495 static struct rpmhpd *sc7280_rpmhpds[] = {
513 static struct rpmhpd *sc8180x_rpmhpds[] = {
533 static struct rpmhpd *sc8280xp_rpmhpds[] = {
577 static int rpmhpd_send_corner(struct rpmhpd *pd, int state, in rpmhpd_send_corner()
595 static void to_active_sleep(struct rpmhpd *pd, unsigned int corner, in to_active_sleep()
615 static int rpmhpd_aggregate_corner(struct rpmhpd *pd, unsigned int corner) in rpmhpd_aggregate_corner()
618 struct rpmhpd *peer = pd->peer; in rpmhpd_aggregate_corner()
666 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_power_on()
684 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_power_off()
701 struct rpmhpd *pd = domain_to_rpmhpd(domain); in rpmhpd_set_performance_state()
740 static int rpmhpd_update_level_mapping(struct rpmhpd *rpmhpd) in rpmhpd_update_level_mapping() argument
745 buf = cmd_db_read_aux_data(rpmhpd->res_name, &rpmhpd->level_count); in rpmhpd_update_level_mapping()
750 rpmhpd->level_count >>= 1; in rpmhpd_update_level_mapping()
752 if (rpmhpd->level_count > RPMH_ARC_MAX_LEVELS) in rpmhpd_update_level_mapping()
755 for (i = 0; i < rpmhpd->level_count; i++) { in rpmhpd_update_level_mapping()
756 if (rpmhpd->skip_retention_level && buf[i] == RPMH_REGULATOR_LEVEL_RETENTION) in rpmhpd_update_level_mapping()
759 rpmhpd->level[i] = buf[i]; in rpmhpd_update_level_mapping()
762 if (!rpmhpd->level[rpmhpd->enable_corner] && rpmhpd->level[i]) in rpmhpd_update_level_mapping()
763 rpmhpd->enable_corner = i; in rpmhpd_update_level_mapping()
769 if (i > 0 && rpmhpd->level[i] == 0) { in rpmhpd_update_level_mapping()
770 rpmhpd->level_count = i; in rpmhpd_update_level_mapping()
773 pr_debug("%s: ARC hlvl=%2d --> vlvl=%4u\n", rpmhpd->res_name, i, in rpmhpd_update_level_mapping()
774 rpmhpd->level[i]); in rpmhpd_update_level_mapping()
786 struct rpmhpd **rpmhpds; in rpmhpd_probe()
853 struct rpmhpd **rpmhpds = desc->rpmhpds; in rpmhpd_sync_state()
855 struct rpmhpd *pd; in rpmhpd_sync_state()