Lines Matching refs:states

116 	struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];  member
148 struct acpi_processor_px states[ACPI_PROCESSOR_MAX_PERFORMANCE]; member
165 struct acpi_processor_tx states[ACPI_PROCESSOR_MAX_THROTTLING]; member
377 pr->power.states[pr->power.state].promotion.count = 0; in acpi_processor_power_activate()
378 pr->power.states[pr->power.state].demotion.count = 0; in acpi_processor_power_activate()
421 cx = &(pr->power.states[pr->power.state]); in acpi_processor_idle()
494 inb(pr->power.states[ACPI_STATE_C2].address); in acpi_processor_idle()
511 inb(pr->power.states[ACPI_STATE_C3].address); in acpi_processor_idle()
629 if (pr->power.states[ACPI_STATE_C2].valid) { in acpi_processor_set_power_policy()
630 pr->power.states[ACPI_STATE_C1].promotion.threshold.count = 10; in acpi_processor_set_power_policy()
631 pr->power.states[ACPI_STATE_C1].promotion.threshold.ticks = in acpi_processor_set_power_policy()
632 pr->power.states[ACPI_STATE_C2].latency_ticks; in acpi_processor_set_power_policy()
633 pr->power.states[ACPI_STATE_C1].promotion.state = ACPI_STATE_C2; in acpi_processor_set_power_policy()
635 pr->power.states[ACPI_STATE_C2].demotion.threshold.count = 1; in acpi_processor_set_power_policy()
636 pr->power.states[ACPI_STATE_C2].demotion.threshold.ticks = in acpi_processor_set_power_policy()
637 pr->power.states[ACPI_STATE_C2].latency_ticks; in acpi_processor_set_power_policy()
638 pr->power.states[ACPI_STATE_C2].demotion.state = ACPI_STATE_C1; in acpi_processor_set_power_policy()
649 if ((pr->power.states[ACPI_STATE_C2].valid) && in acpi_processor_set_power_policy()
650 (pr->power.states[ACPI_STATE_C3].valid)) { in acpi_processor_set_power_policy()
651 pr->power.states[ACPI_STATE_C2].promotion.threshold.count = 4; in acpi_processor_set_power_policy()
652 pr->power.states[ACPI_STATE_C2].promotion.threshold.ticks = in acpi_processor_set_power_policy()
653 pr->power.states[ACPI_STATE_C3].latency_ticks; in acpi_processor_set_power_policy()
654 pr->power.states[ACPI_STATE_C2].promotion.threshold.bm = 0x0F; in acpi_processor_set_power_policy()
655 pr->power.states[ACPI_STATE_C2].promotion.state = ACPI_STATE_C3; in acpi_processor_set_power_policy()
657 pr->power.states[ACPI_STATE_C3].demotion.threshold.count = 1; in acpi_processor_set_power_policy()
658 pr->power.states[ACPI_STATE_C3].demotion.threshold.ticks = in acpi_processor_set_power_policy()
659 pr->power.states[ACPI_STATE_C3].latency_ticks; in acpi_processor_set_power_policy()
660 pr->power.states[ACPI_STATE_C3].demotion.threshold.bm = 0x0F; in acpi_processor_set_power_policy()
661 pr->power.states[ACPI_STATE_C3].demotion.state = ACPI_STATE_C2; in acpi_processor_set_power_policy()
681 pr->power.states[ACPI_STATE_C2].address, in acpi_processor_get_power_info()
682 pr->power.states[ACPI_STATE_C3].address)); in acpi_processor_get_power_info()
691 pr->power.states[ACPI_STATE_C0].valid = 1; in acpi_processor_get_power_info()
700 pr->power.states[ACPI_STATE_C1].valid = 1; in acpi_processor_get_power_info()
709 if (pr->power.states[ACPI_STATE_C2].address) { in acpi_processor_get_power_info()
711 pr->power.states[ACPI_STATE_C2].latency = acpi_fadt.plvl2_lat; in acpi_processor_get_power_info()
731 pr->power.states[ACPI_STATE_C2].valid = 1; in acpi_processor_get_power_info()
732 pr->power.states[ACPI_STATE_C2].latency_ticks = in acpi_processor_get_power_info()
743 if (pr->power.states[ACPI_STATE_C3].address) { in acpi_processor_get_power_info()
745 pr->power.states[ACPI_STATE_C3].latency = acpi_fadt.plvl3_lat; in acpi_processor_get_power_info()
788 pr->power.states[ACPI_STATE_C3].valid = 1; in acpi_processor_get_power_info()
789 pr->power.states[ACPI_STATE_C3].latency_ticks = in acpi_processor_get_power_info()
812 if (pr->power.states[ACPI_STATE_C2].valid in acpi_processor_get_power_info()
813 || pr->power.states[ACPI_STATE_C3].valid) in acpi_processor_get_power_info()
990 struct acpi_processor_px *px = &(pr->performance.states[i]); in acpi_processor_get_performance_states()
1106 value = (u32) pr->performance.states[state].control; in acpi_processor_set_performance()
1131 (u32) pr->performance.states[state].status, port)); in acpi_processor_set_performance()
1140 if (value == (u32) pr->performance.states[state].status) in acpi_processor_set_performance()
1145 if (value != (u32) pr->performance.states[state].status) { in acpi_processor_set_performance()
1250 state, pr->throttling.states[state].performance)); in acpi_processor_get_throttling()
1325 (pr->throttling.states[state].performance?pr->throttling.states[state].performance/10:0))); in acpi_processor_set_throttling()
1389 pr->throttling.states[i].performance = step * i; in acpi_processor_get_throttling_info()
1390 pr->throttling.states[i].power = step * i; in acpi_processor_get_throttling_info()
1696 if (!pr->power.states[i].valid) { in acpi_processor_read_power()
1701 if (pr->power.states[i].promotion.state) in acpi_processor_read_power()
1703 pr->power.states[i].promotion.state); in acpi_processor_read_power()
1707 if (pr->power.states[i].demotion.state) in acpi_processor_read_power()
1709 pr->power.states[i].demotion.state); in acpi_processor_read_power()
1714 pr->power.states[i].latency, in acpi_processor_read_power()
1715 pr->power.states[i].usage); in acpi_processor_read_power()
1765 (u32) pr->performance.states[i].core_frequency, in acpi_processor_read_performance()
1766 (u32) pr->performance.states[i].power, in acpi_processor_read_performance()
1767 (u32) pr->performance.states[i].transition_latency); in acpi_processor_read_performance()
1854 (pr->throttling.states[i].performance?pr->throttling.states[i].performance/10:0)); in acpi_processor_read_throttling()
2179 pr->power.states[ACPI_STATE_C2].address = in acpi_processor_get_info()
2181 pr->power.states[ACPI_STATE_C3].address = in acpi_processor_get_info()
2291 if (pr->power.states[i].valid) in acpi_processor_add()