Lines Matching defs:cstate
61 static void acpi_cpu_cstate(cpu_acpi_cstate_t *cstate);
67 * the flag of HPET Timer use in deep cstate.
102 cpu_acpi_cstate_t *cstate = ksp->ks_private;
108 if (cstate->cs_addrspace_id == ACPI_ADR_SPACE_FIXED_HARDWARE) {
111 } else if (cstate->cs_addrspace_id == ACPI_ADR_SPACE_SYSTEM_IO) {
119 cpu_idle_kstat.cs_latency.value.ui32 = cstate->cs_latency;
120 cpu_idle_kstat.cs_power.value.ui32 = cstate->cs_power;
332 acpi_cpu_cstate(cpu_acpi_cstate_t *cstate)
339 uint8_t type = cstate->cs_addrspace_id;
340 uint32_t cs_type = cstate->cs_type;
508 i86_mwait(cstate->cs_address, 1);
522 cstate->cs_address, &value, 8);
569 cs_data = mach_state->ms_cstate.cma_state.cstate;
646 * Validate that this processor supports deep cstate and if so,
655 cpu_acpi_cstate_t *cstate;
673 cstate = (cpu_acpi_cstate_t *)CPU_ACPI_CSTATES(handle);
678 (void) snprintf(name, KSTAT_STRLEN - 1, "c%d", cstate->cs_type);
680 * Allocate, initialize and install cstate kstat
682 cstate->cs_ksp = kstat_create("cstate", cp->cpu_id,
688 if (cstate->cs_ksp == NULL) {
691 cstate->cs_ksp->ks_data = &cpu_idle_kstat;
692 cstate->cs_ksp->ks_lock = &cpu_idle_mutex;
693 cstate->cs_ksp->ks_update = cpu_idle_kstat_update;
694 cstate->cs_ksp->ks_data_size += MAXNAMELEN;
695 cstate->cs_ksp->ks_private = cstate;
696 kstat_install(cstate->cs_ksp);
698 cstate++;
740 cpu_acpi_cstate_t *cstate;
749 cstate = (cpu_acpi_cstate_t *)CPU_ACPI_CSTATES(handle);
750 if (cstate) {
754 if (cstate->cs_ksp != NULL)
755 kstat_delete(cstate->cs_ksp);
756 cstate++;
795 cpu_acpi_cstate_t *cstate;
819 cstate = (cpu_acpi_cstate_t *)CPU_ACPI_CSTATES(handle);
820 if (cstate) {
824 if (cstate->cs_ksp != NULL)
825 kstat_delete(cstate->cs_ksp);
826 cstate++;
962 * re-evaluate cstate object