Lines Matching refs:power_domain
86 zx_status_t AmlSCPI::ScpiGetDvfsIdx(uint8_t power_domain, uint16_t* idx) { in ScpiGetDvfsIdx() argument
92 if (!idx || power_domain >= MAX_DVFS_DOMAINS) { in ScpiGetDvfsIdx()
97 &power_domain, sizeof(power_domain), in ScpiGetDvfsIdx()
109 zx_status_t AmlSCPI::ScpiSetDvfsIdx(uint8_t power_domain, uint16_t idx) { in ScpiSetDvfsIdx() argument
111 uint8_t power_domain; in ScpiSetDvfsIdx() member
115 if (power_domain >= MAX_DVFS_DOMAINS) { in ScpiSetDvfsIdx()
119 aml_dvfs_idx_info.power_domain = power_domain; in ScpiSetDvfsIdx()
122 SCPI_INFO("OPP index for cluster %d to %d\n", power_domain, idx); in ScpiSetDvfsIdx()
128 zx_status_t AmlSCPI::ScpiGetDvfsInfo(uint8_t power_domain, scpi_opp_t* out_opps) { in ScpiGetDvfsInfo() argument
138 if (!out_opps || power_domain >= MAX_DVFS_DOMAINS) { in ScpiGetDvfsInfo()
145 if (scpi_opp[power_domain]) { in ScpiGetDvfsInfo()
146 memcpy(out_opps, scpi_opp[power_domain], sizeof(scpi_opp_t)); in ScpiGetDvfsInfo()
151 &power_domain, sizeof(power_domain), in ScpiGetDvfsInfo()
166 zxlogf(INFO, "Cluster %u details\n", power_domain); in ScpiGetDvfsInfo()
178 scpi_opp[power_domain] = static_cast<scpi_opp_t*>(calloc(1, sizeof(scpi_opp_t))); in ScpiGetDvfsInfo()
179 if (!scpi_opp[power_domain]) { in ScpiGetDvfsInfo()
184 memcpy(scpi_opp[power_domain], out_opps, sizeof(scpi_opp_t)); in ScpiGetDvfsInfo()