Lines Matching refs:power_cap
77 __le32 power_cap; member
100 __le32 power_cap; member
296 u32 domain_id, u32 *power_cap) in scmi_powercap_xfer_cap_get() argument
309 *power_cap = get_unaligned_le32(t->rx.buf); in scmi_powercap_xfer_cap_get()
317 u32 domain_id, u32 *power_cap) in scmi_powercap_cap_get() argument
322 if (!power_cap || domain_id >= pi->num_domains) in scmi_powercap_cap_get()
327 *power_cap = ioread32(dom->fc_info[POWERCAP_FC_CAP].get_addr); in scmi_powercap_cap_get()
329 domain_id, *power_cap, 0); in scmi_powercap_cap_get()
333 return scmi_powercap_xfer_cap_get(ph, domain_id, power_cap); in scmi_powercap_cap_get()
338 u32 power_cap, bool ignore_dresp) in scmi_powercap_xfer_cap_set() argument
354 msg->value = cpu_to_le32(power_cap); in scmi_powercap_xfer_cap_set()
368 get_unaligned_le32(&resp->power_cap)); in scmi_powercap_xfer_cap_set()
379 u32 domain_id, u32 power_cap, in scmi_powercap_cap_set() argument
385 if (!pc || !pc->powercap_cap_config || !power_cap || in scmi_powercap_cap_set()
386 power_cap < pc->min_power_cap || in scmi_powercap_cap_set()
387 power_cap > pc->max_power_cap) in scmi_powercap_cap_set()
393 iowrite32(power_cap, fci->set_addr); in scmi_powercap_cap_set()
396 domain_id, power_cap, 0); in scmi_powercap_cap_set()
400 return scmi_powercap_xfer_cap_set(ph, pc, power_cap, ignore_dresp); in scmi_powercap_cap_set()
734 r->power_cap = le32_to_cpu(p->power_cap); in scmi_powercap_fill_custom_report()