Lines Matching defs:lpi_state
904 struct acpi_lpi_state *lpi_state;
931 lpi_state = kcalloc(pkg_count, sizeof(*lpi_state), GFP_KERNEL);
932 if (!lpi_state) {
938 info->entries = lpi_state;
941 for (loop = 3; state_idx <= pkg_count; loop++, state_idx++, lpi_state++) {
959 lpi_state->address = reg->address;
960 lpi_state->entry_method =
964 lpi_state->entry_method = ACPI_CSTATE_INTEGER;
965 lpi_state->address = obj->integer.value;
974 strscpy(lpi_state->desc, obj->string.pointer,
977 lpi_state->index = state_idx;
978 if (obj_get_integer(pkg_elem + 0, &lpi_state->min_residency)) {
980 lpi_state->min_residency = 10;
983 if (obj_get_integer(pkg_elem + 1, &lpi_state->wake_latency)) {
985 lpi_state->wake_latency = 10;
988 if (obj_get_integer(pkg_elem + 2, &lpi_state->flags))
989 lpi_state->flags = 0;
991 if (obj_get_integer(pkg_elem + 3, &lpi_state->arch_flags))
992 lpi_state->arch_flags = 0;
994 if (obj_get_integer(pkg_elem + 4, &lpi_state->res_cnt_freq))
995 lpi_state->res_cnt_freq = 1;
997 if (obj_get_integer(pkg_elem + 5, &lpi_state->enable_parent_state))
998 lpi_state->enable_parent_state = 0;