• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/acpi/acpica/

Lines Matching defs:state

3  * Module Name: utstate - state object support procedures
54 * PARAMETERS: Object - Object to be added to the new state
56 * state_list - List the state will be added to
60 * DESCRIPTION: Create a new state and push it
69 union acpi_generic_state *state;
73 state =
75 if (!state) {
79 acpi_ut_push_generic_state(state_list, state);
87 * PARAMETERS: list_head - Head of the state stack
92 * DESCRIPTION: Push a state object onto a state stack
98 union acpi_generic_state *state)
102 /* Push the state object onto the front of the list (stack) */
104 state->common.next = *list_head;
105 *list_head = state;
114 * PARAMETERS: list_head - Head of the state stack
116 * RETURN: The popped state object
118 * DESCRIPTION: Pop a state object from a state stack
125 union acpi_generic_state *state;
129 /* Remove the state object at the head of the list (stack) */
131 state = *list_head;
132 if (state) {
136 *list_head = state->common.next;
139 return_PTR(state);
148 * RETURN: The new state object. NULL on failure.
150 * DESCRIPTION: Create a generic state object. Attempt to obtain one from
151 * the global state cache; If none available, create a new one.
157 union acpi_generic_state *state;
161 state = acpi_os_acquire_object(acpi_gbl_state_cache);
162 if (state) {
165 memset(state, 0, sizeof(union acpi_generic_state));
166 state->common.descriptor_type = ACPI_DESC_TYPE_STATE;
169 return (state);
180 * DESCRIPTION: Create a "Thread State" - a flavor of the generic state used
187 union acpi_generic_state *state;
191 /* Create the generic state object */
193 state = acpi_ut_create_generic_state();
194 if (!state) {
200 state->common.descriptor_type = ACPI_DESC_TYPE_STATE_THREAD;
201 state->thread.thread_id = acpi_os_get_thread_id();
205 if (!state->thread.thread_id) {
207 state->thread.thread_id = (acpi_thread_id) 1;
210 return_PTR((struct acpi_thread_state *)state);
217 * PARAMETERS: Object - Initial Object to be installed in the state
220 * RETURN: New state object, null on failure
222 * DESCRIPTION: Create an "Update State" - a flavor of the generic state used
231 union acpi_generic_state *state;
235 /* Create the generic state object */
237 state = acpi_ut_create_generic_state();
238 if (!state) {
244 state->common.descriptor_type = ACPI_DESC_TYPE_STATE_UPDATE;
245 state->update.object = object;
246 state->update.value = action;
248 return_PTR(state);
255 * PARAMETERS: Object - Initial Object to be installed in the state
258 * RETURN: New state object, null on failure
268 union acpi_generic_state *state;
272 /* Create the generic state object */
274 state = acpi_ut_create_generic_state();
275 if (!state) {
281 state->common.descriptor_type = ACPI_DESC_TYPE_STATE_PACKAGE;
282 state->pkg.source_object = (union acpi_operand_object *)internal_object;
283 state->pkg.dest_object = external_object;
284 state->pkg.index = index;
285 state->pkg.num_packages = 1;
287 return_PTR(state);
296 * RETURN: New state object, null on failure
298 * DESCRIPTION: Create a "Control State" - a flavor of the generic state used
305 union acpi_generic_state *state;
309 /* Create the generic state object */
311 state = acpi_ut_create_generic_state();
312 if (!state) {
318 state->common.descriptor_type = ACPI_DESC_TYPE_STATE_CONTROL;
319 state->common.state = ACPI_CONTROL_CONDITIONAL_EXECUTING;
321 return_PTR(state);
328 * PARAMETERS: State - The state object to be deleted
332 * DESCRIPTION: Release a state object to the state cache. NULL state objects
337 void acpi_ut_delete_generic_state(union acpi_generic_state *state)
341 /* Ignore null state */
343 if (state) {
344 (void)acpi_os_release_object(acpi_gbl_state_cache, state);