Lines Matching refs:pc
367 const struct scmi_powercap_info *pc,
380 msg->domain = cpu_to_le32(pc->id);
382 cpu_to_le32(FIELD_PREP(CAP_SET_ASYNC, pc->async_powercap_cap_set) |
386 if (!pc->async_powercap_cap_set || ignore_dresp) {
394 if (le32_to_cpu(resp->domain) == pc->id)
397 pc->id,
413 const struct scmi_powercap_info *pc;
415 pc = scmi_powercap_dom_info_get(ph, domain_id);
416 if (!pc || !pc->powercap_cap_config)
420 (power_cap < pc->min_power_cap || power_cap > pc->max_power_cap))
423 if (pc->fc_info && pc->fc_info[POWERCAP_FC_CAP].set_addr) {
424 struct scmi_fc_info *fci = &pc->fc_info[POWERCAP_FC_CAP];
432 ret = scmi_powercap_xfer_cap_set(ph, pc, power_cap,
534 const struct scmi_powercap_info *pc;
536 pc = scmi_powercap_dom_info_get(ph, domain_id);
537 if (!pc || !pc->powercap_pai_config || !pai ||
538 pai < pc->min_pai || pai > pc->max_pai)
541 if (pc->fc_info && pc->fc_info[POWERCAP_FC_PAI].set_addr) {
542 struct scmi_fc_info *fci = &pc->fc_info[POWERCAP_FC_PAI];
561 const struct scmi_powercap_info *pc;
563 pc = scmi_powercap_dom_info_get(ph, domain_id);
564 if (!pc || !pc->powercap_monitoring || !pai || !average_power)