Lines Matching full: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()
423 struct acpi_processor_cx *cx = &pr->power.states[i]; in acpi_processor_power_verify() local
425 switch (cx->type) { in acpi_processor_power_verify()
427 cx->valid = 1; in acpi_processor_power_verify()
431 if (!cx->address) in acpi_processor_power_verify()
433 cx->valid = 1; in acpi_processor_power_verify()
437 acpi_processor_power_verify_c3(pr, cx); in acpi_processor_power_verify()
440 if (!cx->valid) in acpi_processor_power_verify()
442 if (cx->type >= last_type && cx->latency < last_latency) in acpi_processor_power_verify()
444 last_latency = cx->latency; in acpi_processor_power_verify()
445 last_type = cx->type; in acpi_processor_power_verify()
447 lapic_timer_check_state(i, pr, cx); in acpi_processor_power_verify()
448 tsc_check_state(cx->type); in acpi_processor_power_verify()
560 * @cx: cstate data
564 static void __cpuidle acpi_idle_do_entry(struct acpi_processor_cx *cx) in acpi_idle_do_entry() argument
568 if (cx->entry_method == ACPI_CSTATE_FFH) { in acpi_idle_do_entry()
570 acpi_processor_ffh_cstate_enter(cx); in acpi_idle_do_entry()
571 } else if (cx->entry_method == ACPI_CSTATE_HALT) { in acpi_idle_do_entry()
575 inb(cx->address); in acpi_idle_do_entry()
589 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_play_dead() local
595 if (cx->entry_method == ACPI_CSTATE_HALT) in acpi_idle_play_dead()
597 else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) { in acpi_idle_play_dead()
598 inb(cx->address); in acpi_idle_play_dead()
625 * @cx: Target state context
630 struct acpi_processor_cx *cx, in acpi_idle_enter_bm() argument
648 if (!cx->bm_sts_skip && acpi_idle_bm_check()) { in acpi_idle_enter_bm()
652 cx = this_cpu_read(acpi_cstate[index]); in acpi_idle_enter_bm()
654 cx = &safe_cx; in acpi_idle_enter_bm()
670 acpi_idle_do_entry(cx); in acpi_idle_enter_bm()
688 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter() local
695 if (cx->type != ACPI_STATE_C1) { in acpi_idle_enter()
696 if (cx->type == ACPI_STATE_C3 && pr->flags.bm_check) in acpi_idle_enter()
697 return acpi_idle_enter_bm(drv, pr, cx, index); in acpi_idle_enter()
702 cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter()
706 if (cx->type == ACPI_STATE_C3) in acpi_idle_enter()
709 acpi_idle_do_entry(cx); in acpi_idle_enter()
717 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter_s2idle() local
719 if (cx->type == ACPI_STATE_C3) { in acpi_idle_enter_s2idle()
726 u8 bm_sts_skip = cx->bm_sts_skip; in acpi_idle_enter_s2idle()
729 cx->bm_sts_skip = 1; in acpi_idle_enter_s2idle()
730 acpi_idle_enter_bm(drv, pr, cx, index); in acpi_idle_enter_s2idle()
731 cx->bm_sts_skip = bm_sts_skip; in acpi_idle_enter_s2idle()
738 acpi_idle_do_entry(cx); in acpi_idle_enter_s2idle()
747 struct acpi_processor_cx *cx; in acpi_processor_setup_cpuidle_cx() local
755 cx = &pr->power.states[i]; in acpi_processor_setup_cpuidle_cx()
757 if (!cx->valid) in acpi_processor_setup_cpuidle_cx()
760 per_cpu(acpi_cstate[count], dev->cpu) = cx; in acpi_processor_setup_cpuidle_cx()
762 if (lapic_timer_needs_broadcast(pr, cx)) in acpi_processor_setup_cpuidle_cx()
765 if (cx->type == ACPI_STATE_C3) { in acpi_processor_setup_cpuidle_cx()
785 struct acpi_processor_cx *cx; in acpi_processor_setup_cstates() local
800 cx = &pr->power.states[i]; in acpi_processor_setup_cstates()
802 if (!cx->valid) in acpi_processor_setup_cstates()
807 strscpy(state->desc, cx->desc, CPUIDLE_DESC_LEN); in acpi_processor_setup_cstates()
808 state->exit_latency = cx->latency; in acpi_processor_setup_cstates()
809 state->target_residency = cx->latency * latency_factor; in acpi_processor_setup_cstates()
813 if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 || in acpi_processor_setup_cstates()
814 cx->type == ACPI_STATE_C3) { in acpi_processor_setup_cstates()
816 if (cx->type != ACPI_STATE_C3) in acpi_processor_setup_cstates()
826 if (cx->type != ACPI_STATE_C1 && !acpi_idle_fallback_to_c1(pr)) in acpi_processor_setup_cstates()