Lines Matching defs:cx

156 				   struct acpi_processor_cx *cx)
174 if (cx->type >= type)
197 struct acpi_processor_cx *cx,
200 int state = cx - pr->power.states;
217 struct acpi_processor_cx *cx,
400 struct acpi_processor_cx cx;
402 memset(&cx, 0, sizeof(cx));
427 cx.type = obj->integer.value;
432 if (i == 1 && cx.type != ACPI_STATE_C1)
435 cx.address = reg->address;
436 cx.index = current_count + 1;
438 cx.entry_method = ACPI_CSTATE_SYSTEMIO;
441 (pr->id, &cx, reg) == 0) {
442 cx.entry_method = ACPI_CSTATE_FFH;
443 } else if (cx.type == ACPI_STATE_C1) {
450 cx.entry_method = ACPI_CSTATE_HALT;
451 snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI HLT");
455 if (cx.type == ACPI_STATE_C1 &&
467 cx.entry_method = ACPI_CSTATE_HALT;
468 snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI HLT");
471 snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI IOPORT 0x%x",
472 cx.address);
475 if (cx.type == ACPI_STATE_C1) {
476 cx.valid = 1;
483 cx.latency = obj->integer.value;
489 cx.power = obj->integer.value;
492 memcpy(&(pr->power.states[current_count]), &cx, sizeof(cx));
522 struct acpi_processor_cx *cx)
528 if (!cx->address)
587 cx->valid = 1;
589 cx->latency_ticks = cx->latency;
611 struct acpi_processor_cx *cx = &pr->power.states[i];
613 switch (cx->type) {
615 cx->valid = 1;
619 if (!cx->address)
621 cx->valid = 1;
622 cx->latency_ticks = cx->latency; /* Normalize latency */
626 acpi_processor_power_verify_c3(pr, cx);
629 if (!cx->valid)
632 lapic_timer_check_state(i, pr, cx);
633 tsc_check_state(cx->type);
708 * @cx: cstate data
712 static inline void acpi_idle_do_entry(struct acpi_processor_cx *cx)
716 if (cx->entry_method == ACPI_CSTATE_FFH) {
718 acpi_processor_ffh_cstate_enter(cx);
719 } else if (cx->entry_method == ACPI_CSTATE_HALT) {
723 inb(cx->address);
747 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage);
757 lapic_timer_state_broadcast(pr, cx, 1);
759 acpi_idle_do_entry(cx);
767 cx->usage++;
768 lapic_timer_state_broadcast(pr, cx, 0);
782 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage);
788 if (cx->entry_method == ACPI_CSTATE_HALT)
790 else if (cx->entry_method == ACPI_CSTATE_SYSTEMIO) {
791 inb(cx->address);
813 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage);
826 if (cx->entry_method != ACPI_CSTATE_FFH) {
845 lapic_timer_state_broadcast(pr, cx, 1);
847 if (cx->type == ACPI_STATE_C3)
853 acpi_idle_do_entry(cx);
866 if (cx->entry_method != ACPI_CSTATE_FFH)
869 cx->usage++;
871 lapic_timer_state_broadcast(pr, cx, 0);
872 cx->time += idle_time;
892 struct acpi_processor_cx *cx = cpuidle_get_statedata(state_usage);
904 if (!cx->bm_sts_skip && acpi_idle_bm_check()) {
918 if (cx->entry_method != ACPI_CSTATE_FFH) {
941 lapic_timer_state_broadcast(pr, cx, 1);
965 acpi_idle_do_entry(cx);
986 if (cx->entry_method != ACPI_CSTATE_FFH)
989 cx->usage++;
991 lapic_timer_state_broadcast(pr, cx, 0);
992 cx->time += idle_time;
1010 struct acpi_processor_cx *cx;
1027 cx = &pr->power.states[i];
1030 if (!cx->valid)
1034 if ((cx->type != ACPI_STATE_C1) && (num_online_cpus() > 1) &&
1040 cpuidle_set_statedata(state_usage, cx);
1064 struct acpi_processor_cx *cx;
1084 cx = &pr->power.states[i];
1086 if (!cx->valid)
1090 if ((cx->type != ACPI_STATE_C1) && (num_online_cpus() > 1) &&
1098 strncpy(state->desc, cx->desc, CPUIDLE_DESC_LEN);
1099 state->exit_latency = cx->latency;
1100 state->target_residency = cx->latency * latency_factor;
1103 switch (cx->type) {
1105 if (cx->entry_method == ACPI_CSTATE_FFH)