Lines Matching refs:pinfo

196 				    struct powercap_info *pinfo, u32 domain)  in scmi_powercap_domain_attributes_get()  argument
201 struct scmi_powercap_info *dom_info = pinfo->powercaps + domain; in scmi_powercap_domain_attributes_get()
217 if (pinfo->notify_cap_cmd) in scmi_powercap_domain_attributes_get()
220 if (pinfo->notify_measurements_cmd) in scmi_powercap_domain_attributes_get()
274 (dom_info->parent_id >= pinfo->num_domains || in scmi_powercap_domain_attributes_get()
965 struct powercap_info *pinfo; in scmi_powercap_protocol_init() local
974 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_powercap_protocol_init()
975 if (!pinfo) in scmi_powercap_protocol_init()
978 ret = scmi_powercap_attributes_get(ph, pinfo); in scmi_powercap_protocol_init()
982 pinfo->powercaps = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_powercap_protocol_init()
983 sizeof(*pinfo->powercaps), in scmi_powercap_protocol_init()
985 if (!pinfo->powercaps) in scmi_powercap_protocol_init()
988 pinfo->states = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_powercap_protocol_init()
989 sizeof(*pinfo->states), GFP_KERNEL); in scmi_powercap_protocol_init()
990 if (!pinfo->states) in scmi_powercap_protocol_init()
999 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_powercap_protocol_init()
1000 ret = scmi_powercap_domain_attributes_get(ph, pinfo, domain); in scmi_powercap_protocol_init()
1004 if (pinfo->powercaps[domain].fastchannels) in scmi_powercap_protocol_init()
1006 &pinfo->powercaps[domain].fc_info); in scmi_powercap_protocol_init()
1011 &pinfo->powercaps[domain], in scmi_powercap_protocol_init()
1012 &pinfo->states[domain].last_pcap); in scmi_powercap_protocol_init()
1016 pinfo->states[domain].enabled = in scmi_powercap_protocol_init()
1017 !!pinfo->states[domain].last_pcap; in scmi_powercap_protocol_init()
1021 pinfo->version = version; in scmi_powercap_protocol_init()
1022 return ph->set_priv(ph, pinfo, version); in scmi_powercap_protocol_init()