Lines Matching defs:cstate
665 cpu_acpi_verify_cstate(cpu_acpi_cstate_t *cstate)
667 uint32_t addrspaceid = cstate->cs_addrspace_id;
672 ":C%d, type: %d\n", cstate->cs_type, addrspaceid);
685 cpu_acpi_cstate_t *cstate, *p;
743 cstate = (cpu_acpi_cstate_t *)CPU_ACPI_CSTATES(handle);
744 p = cstate;
754 cstate->cs_addrspace_id = reg->AddressSpaceId;
755 cstate->cs_address = reg->Address;
757 cstate->cs_type = element->Integer.Value;
759 cstate->cs_latency = element->Integer.Value;
761 cstate->cs_power = element->Integer.Value;
763 if (cpu_acpi_verify_cstate(cstate)) {
769 if (cstate == p) {
770 cstate++;
771 } else if (p->cs_type == cstate->cs_type) {
776 * 2) ACPI Spec allows the same cstate entry with
780 (void) memcpy(p, cstate, sizeof (cpu_acpi_cstate_t));
784 * cstate structure
786 p = cstate++;
799 cstate = (cpu_acpi_cstate_t *)CPU_ACPI_CSTATES(handle);
800 if (cstate[0].cs_type != CPU_ACPI_C1) {
802 "C1: %d for CPU %d", (int)cstate->cs_type, handle->cs_id);