Lines Matching full:cx

125 				   struct acpi_processor_cx *cx)  in lapic_timer_check_state()  argument
143 if (cx->type >= type) in lapic_timer_check_state()
165 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
167 return cx - pr->power.states >= pr->power.timer_broadcast_on_state; in lapic_timer_needs_broadcast()
177 struct acpi_processor_cx *cx) in lapic_timer_needs_broadcast() argument
310 struct acpi_processor_cx *cx) in acpi_processor_power_verify_c3() argument
316 if (!cx->address) in acpi_processor_power_verify_c3()
375 cx->valid = 1; in acpi_processor_power_verify_c3()
419 struct acpi_processor_cx *cx = &pr->power.states[i]; in acpi_processor_power_verify() local
421 switch (cx->type) { in acpi_processor_power_verify()
423 cx->valid = 1; in acpi_processor_power_verify()
427 if (!cx->address) in acpi_processor_power_verify()
429 cx->valid = 1; in acpi_processor_power_verify()
433 acpi_processor_power_verify_c3(pr, cx); in acpi_processor_power_verify()
436 if (!cx->valid) in acpi_processor_power_verify()
438 if (cx->type >= last_type && cx->latency < last_latency) in acpi_processor_power_verify()
440 last_latency = cx->latency; in acpi_processor_power_verify()
441 last_type = cx->type; in acpi_processor_power_verify()
443 lapic_timer_check_state(i, pr, cx); in acpi_processor_power_verify()
444 tsc_check_state(cx->type); in acpi_processor_power_verify()
556 * @cx: cstate data
560 static void __cpuidle acpi_idle_do_entry(struct acpi_processor_cx *cx) in acpi_idle_do_entry() argument
564 if (cx->entry_method == ACPI_CSTATE_FFH) { in acpi_idle_do_entry()
566 acpi_processor_ffh_cstate_enter(cx); in acpi_idle_do_entry()
567 } else if (cx->entry_method == ACPI_CSTATE_HALT) { in acpi_idle_do_entry()
570 io_idle(cx->address); in acpi_idle_do_entry()
583 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_play_dead() local
589 if (cx->entry_method == ACPI_CSTATE_HALT) in acpi_idle_play_dead()
591 else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) { in acpi_idle_play_dead()
592 io_idle(cx->address); in acpi_idle_play_dead()
614 * @cx: Target state context
619 struct acpi_processor_cx *cx, in acpi_idle_enter_bm() argument
639 if (!cx->bm_sts_skip && acpi_idle_bm_check()) { in acpi_idle_enter_bm()
643 cx = this_cpu_read(acpi_cstate[index]); in acpi_idle_enter_bm()
645 cx = &safe_cx; in acpi_idle_enter_bm()
661 acpi_idle_do_entry(cx); in acpi_idle_enter_bm()
681 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter() local
688 if (cx->type != ACPI_STATE_C1) { in acpi_idle_enter()
689 if (cx->type == ACPI_STATE_C3 && pr->flags.bm_check) in acpi_idle_enter()
690 return acpi_idle_enter_bm(drv, pr, cx, index); in acpi_idle_enter()
695 cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter()
699 if (cx->type == ACPI_STATE_C3) in acpi_idle_enter()
702 acpi_idle_do_entry(cx); in acpi_idle_enter()
710 struct acpi_processor_cx *cx = per_cpu(acpi_cstate[index], dev->cpu); in acpi_idle_enter_s2idle() local
712 if (cx->type == ACPI_STATE_C3) { in acpi_idle_enter_s2idle()
719 u8 bm_sts_skip = cx->bm_sts_skip; in acpi_idle_enter_s2idle()
722 cx->bm_sts_skip = 1; in acpi_idle_enter_s2idle()
723 acpi_idle_enter_bm(drv, pr, cx, index); in acpi_idle_enter_s2idle()
724 cx->bm_sts_skip = bm_sts_skip; in acpi_idle_enter_s2idle()
731 acpi_idle_do_entry(cx); in acpi_idle_enter_s2idle()
740 struct acpi_processor_cx *cx; in acpi_processor_setup_cpuidle_cx() local
748 cx = &pr->power.states[i]; in acpi_processor_setup_cpuidle_cx()
750 if (!cx->valid) in acpi_processor_setup_cpuidle_cx()
753 per_cpu(acpi_cstate[count], dev->cpu) = cx; in acpi_processor_setup_cpuidle_cx()
755 if (lapic_timer_needs_broadcast(pr, cx)) in acpi_processor_setup_cpuidle_cx()
758 if (cx->type == ACPI_STATE_C3) { in acpi_processor_setup_cpuidle_cx()
778 struct acpi_processor_cx *cx; in acpi_processor_setup_cstates() local
793 cx = &pr->power.states[i]; in acpi_processor_setup_cstates()
795 if (!cx->valid) in acpi_processor_setup_cstates()
800 strscpy(state->desc, cx->desc, CPUIDLE_DESC_LEN); in acpi_processor_setup_cstates()
801 state->exit_latency = cx->latency; in acpi_processor_setup_cstates()
802 state->target_residency = cx->latency * latency_factor; in acpi_processor_setup_cstates()
806 if (cx->type == ACPI_STATE_C1 || cx->type == ACPI_STATE_C2 || in acpi_processor_setup_cstates()
807 cx->type == ACPI_STATE_C3) { in acpi_processor_setup_cstates()
809 if (cx->type != ACPI_STATE_C3) in acpi_processor_setup_cstates()
819 if (cx->type != ACPI_STATE_C1 && !acpi_idle_fallback_to_c1(pr)) in acpi_processor_setup_cstates()