Lines Matching refs:dom_info
146 struct perf_dom_info *dom_info; member
191 u32 domain, struct perf_dom_info *dom_info, in scmi_perf_domain_attributes_get() argument
211 dom_info->set_limits = SUPPORTS_SET_LIMITS(flags); in scmi_perf_domain_attributes_get()
212 dom_info->set_perf = SUPPORTS_SET_PERF_LVL(flags); in scmi_perf_domain_attributes_get()
213 dom_info->perf_limit_notify = SUPPORTS_PERF_LIMIT_NOTIFY(flags); in scmi_perf_domain_attributes_get()
214 dom_info->perf_level_notify = SUPPORTS_PERF_LEVEL_NOTIFY(flags); in scmi_perf_domain_attributes_get()
215 dom_info->perf_fastchannels = SUPPORTS_PERF_FASTCHANNELS(flags); in scmi_perf_domain_attributes_get()
216 dom_info->sustained_freq_khz = in scmi_perf_domain_attributes_get()
218 dom_info->sustained_perf_level = in scmi_perf_domain_attributes_get()
220 if (!dom_info->sustained_freq_khz || in scmi_perf_domain_attributes_get()
221 !dom_info->sustained_perf_level) in scmi_perf_domain_attributes_get()
223 dom_info->mult_factor = 1000; in scmi_perf_domain_attributes_get()
225 dom_info->mult_factor = in scmi_perf_domain_attributes_get()
226 (dom_info->sustained_freq_khz * 1000) / in scmi_perf_domain_attributes_get()
227 dom_info->sustained_perf_level; in scmi_perf_domain_attributes_get()
228 strscpy(dom_info->name, attr->name, SCMI_SHORT_NAME_MAX_SIZE); in scmi_perf_domain_attributes_get()
240 dom_info->name, SCMI_MAX_STR_SIZE); in scmi_perf_domain_attributes_get()
363 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_perf_limits_set()
412 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_perf_limits_get()
453 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_perf_level_set()
494 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_perf_level_get()
583 dom = pi->dom_info + domain; in scmi_dvfs_device_opps_add()
613 dom = pi->dom_info + domain; in scmi_dvfs_transition_latency_get()
622 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_dvfs_freq_set()
633 struct perf_dom_info *dom = pi->dom_info + domain; in scmi_dvfs_freq_get()
652 dom = pi->dom_info + domain; in scmi_dvfs_est_power_get()
676 dom = pi->dom_info + scmi_dev_domain_id(dev); in scmi_fast_switch_possible()
826 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_perf_protocol_init()
827 sizeof(*pinfo->dom_info), GFP_KERNEL); in scmi_perf_protocol_init()
828 if (!pinfo->dom_info) in scmi_perf_protocol_init()
832 struct perf_dom_info *dom = pinfo->dom_info + domain; in scmi_perf_protocol_init()