Lines Matching defs:thread
21 struct acpi_thread_state *thread);
37 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread;
39 if (!thread) {
61 thread->acquired_mutex_list = obj_desc->mutex.next;
70 * thread - Current executing thread object
80 struct acpi_thread_state *thread)
84 list_head = thread->acquired_mutex_list;
99 thread->acquired_mutex_list = obj_desc;
108 * thread_id - Current thread state
113 * path that supports multiple acquires by the same thread.
138 /* Support for multiple acquires by the owning thread */
142 * The mutex is already owned by this thread, just increment the
203 /* Must have a valid thread state struct */
205 if (!walk_state->thread) {
207 "Cannot acquire Mutex [%4.4s], null thread info",
216 if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) {
221 walk_state->thread->current_sync_level));
229 walk_state->thread->current_sync_level,
231 walk_state->thread));
235 walk_state->thread->thread_id);
241 obj_desc->mutex.owner_thread = walk_state->thread;
243 walk_state->thread->current_sync_level;
244 walk_state->thread->current_sync_level =
247 /* Link the mutex to the current thread for force-unlock at method exit */
249 acpi_ex_link_mutex(obj_desc, walk_state->thread);
255 walk_state->thread->current_sync_level,
271 * previous multiple acquires) by the same thread.
363 /* Must have a valid thread ID */
365 if (!walk_state->thread) {
367 "Cannot release Mutex [%4.4s], null thread info",
373 * The Mutex is owned, but this thread must be the owner.
374 * Special case for Global Lock, any thread can release
376 if ((owner_thread->thread_id != walk_state->thread->thread_id) &&
379 "Thread %u cannot release Mutex [%4.4s] acquired by thread %u",
380 (u32)walk_state->thread->thread_id,
399 walk_state->thread->current_sync_level));
415 walk_state->thread->current_sync_level,
418 walk_state->thread));
436 walk_state->thread->current_sync_level,
447 * PARAMETERS: thread - Current executing thread object
451 * DESCRIPTION: Release all mutexes held by this thread
453 * NOTE: This function is called as the thread is exiting the interpreter.
455 * only when the parent thread actually exits the interpreter. This allows one
461 void acpi_ex_release_all_mutexes(struct acpi_thread_state *thread)
463 union acpi_operand_object *next = thread->acquired_mutex_list;
491 thread->current_sync_level =