Lines Matching full:pai
85 __le32 pai; member
104 __le32 pai; member
249 "Platform reported inconsistent PAI config for domain %d - %s\n", in scmi_powercap_domain_attributes_get()
468 u32 domain_id, u32 *pai) in scmi_powercap_xfer_pai_get() argument
481 *pai = get_unaligned_le32(t->rx.buf); in scmi_powercap_xfer_pai_get()
489 u32 domain_id, u32 *pai) in scmi_powercap_pai_get() argument
494 if (!pai || domain_id >= pi->num_domains) in scmi_powercap_pai_get()
499 *pai = ioread32(dom->fc_info[POWERCAP_FC_PAI].get_addr); in scmi_powercap_pai_get()
501 domain_id, *pai, 0); in scmi_powercap_pai_get()
505 return scmi_powercap_xfer_pai_get(ph, domain_id, pai); in scmi_powercap_pai_get()
509 u32 domain_id, u32 pai) in scmi_powercap_xfer_pai_set() argument
523 msg->value = cpu_to_le32(pai); in scmi_powercap_xfer_pai_set()
532 u32 domain_id, u32 pai) in scmi_powercap_pai_set() argument
537 if (!pc || !pc->powercap_pai_config || !pai || in scmi_powercap_pai_set()
538 pai < pc->min_pai || pai > pc->max_pai) in scmi_powercap_pai_set()
545 domain_id, pai, 0); in scmi_powercap_pai_set()
546 iowrite32(pai, fci->set_addr); in scmi_powercap_pai_set()
551 return scmi_powercap_xfer_pai_set(ph, domain_id, pai); in scmi_powercap_pai_set()
556 u32 *pai) in scmi_powercap_measurements_get() argument
564 if (!pc || !pc->powercap_monitoring || !pai || !average_power) in scmi_powercap_measurements_get()
577 *pai = le32_to_cpu(resp->pai); in scmi_powercap_measurements_get()
890 r->pai = le32_to_cpu(p->pai); in scmi_powercap_fill_custom_report()