Lines Matching refs:pinfo
246 struct scmi_power_info *pinfo = ph->get_priv(ph); in scmi_power_notify_supported() local
249 src_id >= pinfo->num_domains) in scmi_power_notify_supported()
252 dom = pinfo->dom_info + src_id; in scmi_power_notify_supported()
292 struct scmi_power_info *pinfo = ph->get_priv(ph); in scmi_power_get_num_sources() local
294 if (!pinfo) in scmi_power_get_num_sources()
297 return pinfo->num_domains; in scmi_power_get_num_sources()
327 struct scmi_power_info *pinfo; in scmi_power_protocol_init() local
336 pinfo = devm_kzalloc(ph->dev, sizeof(*pinfo), GFP_KERNEL); in scmi_power_protocol_init()
337 if (!pinfo) in scmi_power_protocol_init()
340 ret = scmi_power_attributes_get(ph, pinfo); in scmi_power_protocol_init()
344 pinfo->dom_info = devm_kcalloc(ph->dev, pinfo->num_domains, in scmi_power_protocol_init()
345 sizeof(*pinfo->dom_info), GFP_KERNEL); in scmi_power_protocol_init()
346 if (!pinfo->dom_info) in scmi_power_protocol_init()
349 for (domain = 0; domain < pinfo->num_domains; domain++) { in scmi_power_protocol_init()
350 struct power_dom_info *dom = pinfo->dom_info + domain; in scmi_power_protocol_init()
353 pinfo->notify_state_change_cmd); in scmi_power_protocol_init()
356 pinfo->version = version; in scmi_power_protocol_init()
358 return ph->set_priv(ph, pinfo, version); in scmi_power_protocol_init()