Lines Matching refs:cx
126 struct acpi_processor_cx *cx) in lapic_timer_check_state() argument
144 if (cx->type >= type) in lapic_timer_check_state()
166 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
168 return cx - pr->power.states >= pr->power.timer_broadcast_on_state; in lapic_timer_needs_broadcast()
178 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
311 struct acpi_processor_cx *cx) in acpi_processor_power_verify_c3() argument
317 if (!cx->address) in acpi_processor_power_verify_c3()
376 cx->valid = 1; in acpi_processor_power_verify_c3()
421 struct acpi_processor_cx *cx = &pr->power.states[i]; in acpi_processor_power_verify() local
423 switch (cx->type) { in acpi_processor_power_verify()
425 cx->valid = 1; in acpi_processor_power_verify()
429 if (!cx->address) in acpi_processor_power_verify()
431 cx->valid = 1; in acpi_processor_power_verify()
435 acpi_processor_power_verify_c3(pr, cx); in acpi_processor_power_verify()
438 if (!cx->valid) in acpi_processor_power_verify()
440 if (cx->type >= last_type && cx->latency < last_latency) in acpi_processor_power_verify()
442 last_latency = cx->latency; in acpi_processor_power_verify()
443 last_type = cx->type; in acpi_processor_power_verify()
445 lapic_timer_check_state(i, pr, cx); in acpi_processor_power_verify()
446 tsc_check_state(cx->type); in acpi_processor_power_verify()
565 static void __cpuidle acpi_idle_do_entry(struct acpi_processor_cx *cx) in acpi_idle_do_entry() argument
569 if (cx->entry_method == ACPI_CSTATE_FFH) { in acpi_idle_do_entry()
571 acpi_processor_ffh_cstate_enter(cx); in acpi_idle_do_entry()
572 } else if (cx->entry_method == ACPI_CSTATE_HALT) { in acpi_idle_do_entry()
575 io_idle(cx->address); in acpi_idle_do_entry()
588 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_play_dead() local
594 if (cx->entry_method == ACPI_CSTATE_HALT) in acpi_idle_play_dead()
596 else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) { in acpi_idle_play_dead()
597 io_idle(cx->address); in acpi_idle_play_dead()
624 struct acpi_processor_cx *cx, in acpi_idle_enter_bm() argument
644 if (!cx->bm_sts_skip && acpi_idle_bm_check()) { in acpi_idle_enter_bm()
648 cx = this_cpu_read(acpi_cstate[index]); in acpi_idle_enter_bm()
650 cx = &safe_cx; in acpi_idle_enter_bm()
666 acpi_idle_do_entry(cx); in acpi_idle_enter_bm()
686 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter() local
693 if (cx->type != ACPI_STATE_C1) { in acpi_idle_enter()
694 if (cx->type == ACPI_STATE_C3 && pr->flags.bm_check) in acpi_idle_enter()
695 return acpi_idle_enter_bm(drv, pr, cx, index); in acpi_idle_enter()
700 cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter()
704 if (cx->type == ACPI_STATE_C3) in acpi_idle_enter()
707 acpi_idle_do_entry(cx); in acpi_idle_enter()
715 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter_s2idle() local
717 if (cx->type == ACPI_STATE_C3) { in acpi_idle_enter_s2idle()
724 u8 bm_sts_skip = cx->bm_sts_skip; in acpi_idle_enter_s2idle()
727 cx->bm_sts_skip = 1; in acpi_idle_enter_s2idle()
728 acpi_idle_enter_bm(drv, pr, cx, index); in acpi_idle_enter_s2idle()
729 cx->bm_sts_skip = bm_sts_skip; in acpi_idle_enter_s2idle()
736 acpi_idle_do_entry(cx); in acpi_idle_enter_s2idle()
745 struct acpi_processor_cx *cx; in acpi_processor_setup_cpuidle_cx() local
753 cx = &pr->power.states[i]; in acpi_processor_setup_cpuidle_cx()
755 if (!cx->valid) in acpi_processor_setup_cpuidle_cx()
758 per_cpu(acpi_cstate[count], dev->cpu) = cx; in acpi_processor_setup_cpuidle_cx()
760 if (lapic_timer_needs_broadcast(pr, cx)) in acpi_processor_setup_cpuidle_cx()
763 if (cx->type == ACPI_STATE_C3) { in acpi_processor_setup_cpuidle_cx()
783 struct acpi_processor_cx *cx; in acpi_processor_setup_cstates() local
798 cx = &pr->power.states[i]; in acpi_processor_setup_cstates()
800 if (!cx->valid) in acpi_processor_setup_cstates()
805 strscpy(state->desc, cx->desc, CPUIDLE_DESC_LEN); in acpi_processor_setup_cstates()
806 state->exit_latency = cx->latency; in acpi_processor_setup_cstates()
807 state->target_residency = cx->latency * latency_factor; in acpi_processor_setup_cstates()
811 if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 || in acpi_processor_setup_cstates()
812 cx->type == ACPI_STATE_C3) { in acpi_processor_setup_cstates()
814 if (cx->type != ACPI_STATE_C3) in acpi_processor_setup_cstates()
824 if (cx->type != ACPI_STATE_C1 && !acpi_idle_fallback_to_c1(pr)) in acpi_processor_setup_cstates()