Lines Matching defs:state
147 * PARAMETERS: object - Object to be added to the new state
149 * state_list - List the state will be added to
153 * DESCRIPTION: Create a new state and push it
162 union acpi_generic_state *state;
172 state = acpi_ut_create_update_state(object, action);
173 if (!state) {
177 acpi_ut_push_generic_state(state_list, state);
203 union acpi_generic_state *state;
209 state = acpi_ut_create_pkg_state(source_object, target_object, 0);
210 if (!state) {
214 while (state) {
218 this_index = state->pkg.index;
220 state->pkg.source_object->package.elements[this_index];
221 state->pkg.this_target_obj =
222 &state->pkg.source_object->package.elements[this_index];
238 this_source_obj, state, context);
243 state->pkg.index++;
244 while (state->pkg.index >=
245 state->pkg.source_object->package.count) {
251 * Delete this state and pop the previous state (package).
253 acpi_ut_delete_generic_state(state);
254 state = acpi_ut_pop_generic_state(&state_list);
258 if (!state) {
271 state->pkg.index++;
278 this_source_obj, state, context);
284 * Push the current state and create a new one
287 acpi_ut_push_generic_state(&state_list, state);
288 state =
290 state->pkg.this_target_obj,
292 if (!state) {
297 state =
300 acpi_ut_delete_generic_state(state);