Lines Matching refs:cx

67 acpi_cst_md_cx_setup(struct acpi_cst_cx *cx)  in acpi_cst_md_cx_setup()  argument
78 if (cx->type == ACPI_STATE_C1 && in acpi_cst_md_cx_setup()
79 cx->gas.SpaceId == ACPI_ADR_SPACE_FIXED_HARDWARE) in acpi_cst_md_cx_setup()
81 if (cx->gas.SpaceId != ACPI_ADR_SPACE_SYSTEM_IO && in acpi_cst_md_cx_setup()
82 cx->gas.SpaceId != ACPI_ADR_SPACE_SYSTEM_MEMORY) { in acpi_cst_md_cx_setup()
83 kprintf("C%d: invalid SpaceId %d\n", cx->type, in acpi_cst_md_cx_setup()
84 cx->gas.SpaceId); in acpi_cst_md_cx_setup()
90 switch (cx->gas.SpaceId) { in acpi_cst_md_cx_setup()
96 error = acpi_cst_cx_mwait_setup(cx); in acpi_cst_md_cx_setup()
102 kprintf("C%d: invalid SpaceId %d\n", cx->type, cx->gas.SpaceId); in acpi_cst_md_cx_setup()
106 if (cx->type >= ACPI_STATE_C3) { in acpi_cst_md_cx_setup()
115 cx->preamble = ACPI_CST_CX_PREAMBLE_NONE; in acpi_cst_md_cx_setup()
121 cx->preamble = ACPI_CST_CX_PREAMBLE_BM_ARB; in acpi_cst_md_cx_setup()
128 acpi_cst_cx_mwait_setup(struct acpi_cst_cx *cx) in acpi_cst_cx_mwait_setup() argument
135 "Address(arg0) 0x%jx, AccessWidth(arg1) 0x%x\n", cx->type, in acpi_cst_cx_mwait_setup()
136 cx->gas.BitWidth, cx->gas.BitOffset, in acpi_cst_cx_mwait_setup()
137 (uintmax_t)cx->gas.Address, cx->gas.AccessWidth); in acpi_cst_cx_mwait_setup()
140 if (cx->type == ACPI_STATE_C1) { in acpi_cst_cx_mwait_setup()
146 if (cx->gas.BitOffset != ACPI_GAS_INTEL_CLASS_CX_NATIVE) in acpi_cst_cx_mwait_setup()
155 eax_hint = cx->gas.Address & ACPI_GAS_INTEL_ARG0_MWAIT_HINTMASK; in acpi_cst_cx_mwait_setup()
157 kprintf("C%d -> cpu specific C%d sub state %d\n", cx->type, in acpi_cst_cx_mwait_setup()
162 kprintf("C%d: invalid mwait hint 0x%08x\n", cx->type, eax_hint); in acpi_cst_cx_mwait_setup()
167 cx->md_arg0 = eax_hint; in acpi_cst_cx_mwait_setup()
168 cx->enter = acpi_cst_cx_mwait_enter; in acpi_cst_cx_mwait_setup()
172 if ((cx->gas.AccessWidth & ACPI_GAS_INTEL_ARG1_BM_STS) == 0 && in acpi_cst_cx_mwait_setup()
175 if (cx->type >= ACPI_STATE_C3) in acpi_cst_cx_mwait_setup()
176 cx->flags &= ~ACPI_CST_CX_FLAG_BM_STS; in acpi_cst_cx_mwait_setup()
179 if (cx->type < ACPI_STATE_C3 && MWAIT_EAX_TO_CX(eax_hint) >= 3) { in acpi_cst_cx_mwait_setup()
196 acpi_cst_cx_mwait_enter(const struct acpi_cst_cx *cx) in acpi_cst_cx_mwait_enter() argument
203 cpu_mmw_pause_int(&gd->gd_reqflags, reqflags, cx->md_arg0, in acpi_cst_cx_mwait_enter()