Lines Matching full:cpc
9 * information from a per CPU table called CPC. This table is described in
101 /* Check if a CPC register is in PCC */
102 #define CPC_IN_PCC(cpc) ((cpc)->type == ACPI_TYPE_BUFFER && \ argument
103 (cpc)->cpc_entry.reg.space_id == \
106 /* Check if a CPC register is in FFH */
107 #define CPC_IN_FFH(cpc) ((cpc)->type == ACPI_TYPE_BUFFER && \ argument
108 (cpc)->cpc_entry.reg.space_id == \
111 /* Check if a CPC register is in SystemMemory */
112 #define CPC_IN_SYSTEM_MEMORY(cpc) ((cpc)->type == ACPI_TYPE_BUFFER && \ argument
113 (cpc)->cpc_entry.reg.space_id == \
116 /* Check if a CPC register is in SystemIo */
117 #define CPC_IN_SYSTEM_IO(cpc) ((cpc)->type == ACPI_TYPE_BUFFER && \ argument
118 (cpc)->cpc_entry.reg.space_id == \
128 /* Evaluates to True if an optional cpc field is supported */
129 #define CPC_SUPPORTED(cpc) ((cpc)->type == ACPI_TYPE_INTEGER ? \ argument
130 !!(cpc)->cpc_entry.int_value : \
131 !IS_NULL_REG(&(cpc)->cpc_entry.reg))
177 /* Shift and apply the mask for CPC reads/writes */
644 * An example CPC table looks like the following.
781 * the CPC table entries. The same PCC index in acpi_cppc_processor_probe()
884 pr_debug("Parsed CPC struct for CPU: %d\n", pr->id); in acpi_cppc_processor_probe()
893 /* Plug PSD data into this CPU's CPC descriptor. */ in acpi_cppc_processor_probe()
926 * acpi_cppc_processor_exit - Cleanup CPC structs.
1122 pr_debug("No CPC descriptor for CPU:%d\n", cpu); in cpc_write()
1184 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf()
1287 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf_caps()
1418 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_perf_ctrs()
1494 pr_debug("No CPC descriptor for CPU:%d\n", cpu); in cppc_set_epp_perf()
1522 /* after writing CPC, transfer the ownership of PCC to platform */ in cppc_set_epp_perf()
1549 pr_debug("No CPC descriptor for CPU:%d\n", cpunum); in cppc_get_auto_sel_caps()
1600 pr_debug("No CPC descriptor for CPU:%d\n", cpu); in cppc_set_auto_sel()
1621 /* after writing CPC, transfer the ownership of PCC to platform */ in cppc_set_auto_sel()
1650 pr_debug("No CPC descriptor for CPU:%d\n", cpu); in cppc_set_enable()
1668 /* after writing CPC, transfer the ownership of PCC to platfrom */ in cppc_set_enable()
1694 pr_debug("No CPC descriptor for CPU:%d\n", cpu); in cppc_set_perf()
1703 * This is Phase-I where we want to write to CPC registers in cppc_set_perf()