/linux-4.4.14/tools/lib/lockdep/uinclude/linux/ |
H A D | spinlock.h | 10 static inline void arch_spin_lock(arch_spinlock_t *mutex) arch_spin_lock() argument 12 pthread_mutex_lock(mutex); arch_spin_lock() 15 static inline void arch_spin_unlock(arch_spinlock_t *mutex) arch_spin_unlock() argument 17 pthread_mutex_unlock(mutex); arch_spin_unlock() 20 static inline bool arch_spin_is_locked(arch_spinlock_t *mutex) arch_spin_is_locked() argument
|
/linux-4.4.14/include/net/netns/ |
H A D | packet.h | 8 #include <linux/mutex.h> 11 struct mutex sklist_lock;
|
/linux-4.4.14/include/asm-generic/ |
H A D | mutex.h | 4 * Pull in the generic implementation for the mutex fastpath, 8 #include <asm-generic/mutex-dec.h>
|
H A D | mutex-null.h | 2 * include/asm-generic/mutex-null.h 4 * Generic implementation of the mutex fastpath, based on NOP :-) 6 * This is used by the mutex-debugging infrastructure, but it can also
|
H A D | mutex-xchg.h | 2 * include/asm-generic/mutex-xchg.h 4 * Generic implementation of the mutex fastpath, based on xchg(). 9 * asm-generic/mutex-dec.h instead, or you could open-code an 10 * optimized version in asm/mutex.h. 56 * __mutex_fastpath_unlock - try to promote the mutex from 0 to 1 60 * try to promote the mutex from 0 to 1. if it wasn't 0, call <function> 77 * __mutex_fastpath_trylock - try to acquire the mutex, without waiting 102 * [ In the rare case of the mutex going to 1, to 0, to -1 __mutex_fastpath_trylock()
|
H A D | mutex-dec.h | 2 * include/asm-generic/mutex-dec.h 4 * Generic implementation of the mutex fastpath, based on atomic 66 * __mutex_fastpath_trylock - try to acquire the mutex, without waiting
|
/linux-4.4.14/arch/c6x/include/asm/ |
H A D | mutex.h | 4 #include <asm-generic/mutex-null.h>
|
/linux-4.4.14/include/linux/ |
H A D | mutex-debug.h | 15 #define mutex_init(mutex) \ 19 __mutex_init((mutex), #mutex, &__key); \ 22 extern void mutex_destroy(struct mutex *lock);
|
H A D | mutex.h | 25 * - only one task can hold the mutex at a time 26 * - only the owner can unlock the mutex 29 * - a mutex object must be initialized via the API 30 * - a mutex object must not be initialized via memset or copying 31 * - task may not exit with mutex held 38 * enabled. Furthermore, besides enforcing the above rules, the mutex 50 struct mutex { struct 70 * This is the control structure for tasks blocked on mutex, 82 # include <linux/mutex-debug.h> 86 * mutex_init - initialize the mutex 87 * @mutex: the mutex to be initialized 89 * Initialize the mutex to unlocked state. 91 * It is not allowed to initialize an already locked mutex. 93 # define mutex_init(mutex) \ 97 __mutex_init((mutex), #mutex, &__key); \ 99 static inline void mutex_destroy(struct mutex *lock) {} mutex_destroy() 117 struct mutex mutexname = __MUTEX_INITIALIZER(mutexname) 119 extern void __mutex_init(struct mutex *lock, const char *name, 123 * mutex_is_locked - is the mutex locked 124 * @lock: the mutex to be queried 126 * Returns 1 if the mutex is locked, 0 if unlocked. 128 static inline int mutex_is_locked(struct mutex *lock) mutex_is_locked() 134 * See kernel/locking/mutex.c for detailed documentation of these APIs. 135 * Also see Documentation/locking/mutex-design.txt. 138 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass); 139 extern void _mutex_lock_nest_lock(struct mutex *lock, struct lockdep_map *nest_lock); 141 extern int __must_check mutex_lock_interruptible_nested(struct mutex *lock, 143 extern int __must_check mutex_lock_killable_nested(struct mutex *lock, 157 extern void mutex_lock(struct mutex *lock); 158 extern int __must_check mutex_lock_interruptible(struct mutex *lock); 159 extern int __must_check mutex_lock_killable(struct mutex *lock); 171 * Returns 1 if the mutex has been acquired successfully, and 0 on contention. 173 extern int mutex_trylock(struct mutex *lock); 174 extern void mutex_unlock(struct mutex *lock); 176 extern int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock);
|
H A D | ww_mutex.h | 4 * Original mutex implementation started by Ingo Molnar: 17 #include <linux/mutex.h> 46 struct mutex base; 76 * ww_mutex_init - initialize the w/w mutex 77 * @lock: the mutex to be initialized 78 * @ww_class: the w/w class the mutex should belong to 80 * Initialize the w/w mutex to unlocked state and associate it with the given 83 * It is not allowed to initialize an already locked mutex. 102 * Context-based w/w mutex acquiring can be done in any order whatsoever within 106 * Mixing of context-based w/w mutex acquiring and single w/w mutex locking can 146 * Marks the end of the acquire phase, any further w/w mutex lock calls using 149 * Calling this function is optional, it is just useful to document w/w mutex 195 * ww_mutex_lock - acquire the w/w mutex 196 * @lock: the mutex to be acquired 199 * Lock the w/w mutex exclusively for this task. 206 * returning -EALREADY. Returns 0 if the mutex was successfully acquired. 214 * The mutex must later on be released by the same task that 215 * acquired it. The task may not exit without first unlocking the mutex. Also, 216 * kernel memory where the mutex resides must not be freed with the mutex still 217 * locked. The mutex must first be initialized (or statically defined) before it 218 * can be locked. memset()-ing the mutex to 0 is not allowed. The mutex must be 221 * A mutex acquired with this function must be released with ww_mutex_unlock. 233 * ww_mutex_lock_interruptible - acquire the w/w mutex, interruptible 234 * @lock: the mutex to be acquired 237 * Lock the w/w mutex exclusively for this task. 244 * returning -EALREADY. Returns 0 if the mutex was successfully acquired. If a 253 * The mutex must later on be released by the same task that 254 * acquired it. The task may not exit without first unlocking the mutex. Also, 255 * kernel memory where the mutex resides must not be freed with the mutex still 256 * locked. The mutex must first be initialized (or statically defined) before it 257 * can be locked. memset()-ing the mutex to 0 is not allowed. The mutex must be 260 * A mutex acquired with this function must be released with ww_mutex_unlock. 272 * ww_mutex_lock_slow - slowpath acquiring of the w/w mutex 273 * @lock: the mutex to be acquired 276 * Acquires a w/w mutex with the given context after a wound case. This function 284 * ww_mutex_lock can be used to avoid locking this contended mutex twice. 288 * contending mutex. 291 * ww_mutex_lock directly. This function here is simply to help w/w mutex 306 * ww_mutex_lock_slow_interruptible - slowpath acquiring of the w/w mutex, interruptible 307 * @lock: the mutex to be acquired 310 * Acquires a w/w mutex with the given context after a wound case. This function 320 * ww_mutex_lock can be used to avoid locking this contended mutex twice. 324 * than the contending mutex. 328 * w/w mutex locking code readability by clearly denoting the slowpath. 343 * ww_mutex_trylock - tries to acquire the w/w mutex without acquire context 344 * @lock: mutex to lock 346 * Trylocks a mutex without acquire context, so no deadlock detection is 347 * possible. Returns 1 if the mutex has been acquired successfully, 0 otherwise. 355 * ww_mutex_destroy - mark a w/w mutex unusable 356 * @lock: the mutex to be destroyed 358 * This function marks the mutex uninitialized, and any subsequent 359 * use of the mutex is forbidden. The mutex must not be locked when 368 * ww_mutex_is_locked - is the w/w mutex locked 369 * @lock: the mutex to be queried 371 * Returns 1 if the mutex is locked, 0 if unlocked.
|
H A D | kobj_map.h | 8 #include <linux/mutex.h> 17 struct kobj_map *kobj_map_init(kobj_probe_t *, struct mutex *);
|
H A D | rtmutex.h | 27 * @owner: the mutex owner 61 # define rt_mutex_init(mutex) __rt_mutex_init(mutex, __func__) 65 # define rt_mutex_init(mutex) __rt_mutex_init(mutex, NULL) 79 * rt_mutex_is_locked - is the mutex locked 80 * @lock: the mutex to be queried 82 * Returns 1 if the mutex is locked, 0 if unlocked.
|
H A D | genetlink.h | 23 * or genl mutex. Note : Please prefer genl_dereference() or rcu_dereference() 29 * genl_dereference - fetch RCU pointer when updates are prevented by genl mutex 34 * caller holds genl mutex.
|
H A D | taskstats_kern.h | 16 extern struct mutex taskstats_exit_mutex;
|
H A D | osq_lock.h | 6 * lock implementations (mutex, rwsem, etc).
|
/linux-4.4.14/arch/score/include/asm/ |
H A D | mutex.h | 4 #include <asm-generic/mutex-dec.h>
|
/linux-4.4.14/tools/lib/lockdep/tests/ |
H A D | AA.c | 1 #include <liblockdep/mutex.h>
|
H A D | ABBA.c | 1 #include <liblockdep/mutex.h>
|
H A D | unlock_balance.c | 1 #include <liblockdep/mutex.h>
|
H A D | ABBCCA.c | 1 #include <liblockdep/mutex.h>
|
H A D | ABCABC.c | 1 #include <liblockdep/mutex.h>
|
H A D | ABBCCDDA.c | 1 #include <liblockdep/mutex.h>
|
H A D | ABCDBCDA.c | 1 #include <liblockdep/mutex.h>
|
H A D | ABCDBDDA.c | 1 #include <liblockdep/mutex.h>
|
/linux-4.4.14/tools/lib/lockdep/include/liblockdep/ |
H A D | mutex.h | 8 pthread_mutex_t mutex; member in struct:liblockdep_pthread_mutex 16 .mutex = PTHREAD_MUTEX_INITIALIZER, \ 26 return pthread_mutex_init(&lock->mutex, __mutexattr); __mutex_init() 29 #define liblockdep_pthread_mutex_init(mutex, mutexattr) \ 33 __mutex_init((mutex), #mutex, &__key, (mutexattr)); \ 39 return pthread_mutex_lock(&lock->mutex); liblockdep_pthread_mutex_lock() 45 return pthread_mutex_unlock(&lock->mutex); liblockdep_pthread_mutex_unlock() 51 return pthread_mutex_trylock(&lock->mutex) == 0 ? 1 : 0; liblockdep_pthread_mutex_trylock() 56 return pthread_mutex_destroy(&lock->mutex); liblockdep_pthread_mutex_destroy()
|
/linux-4.4.14/arch/arm/include/asm/ |
H A D | mutex.h | 2 * arch/arm/include/asm/mutex.h 4 * ARM optimized mutex locking primitives 6 * Please look into asm-generic/mutex-xchg.h for a formal definition. 17 #include <asm-generic/mutex-xchg.h> 19 #include <asm-generic/mutex-dec.h>
|
/linux-4.4.14/arch/unicore32/include/asm/ |
H A D | mutex.h | 2 * linux/arch/unicore32/include/asm/mutex.h 12 * UniCore optimized mutex locking primitives 14 * Please look into asm-generic/mutex-xchg.h for a formal definition. 19 # include <asm-generic/mutex-xchg.h>
|
/linux-4.4.14/kernel/locking/ |
H A D | mutex-debug.h | 8 * This file contains mutex debugging related internal declarations, 10 * More details are in kernel/mutex-debug.c. 16 extern void debug_mutex_lock_common(struct mutex *lock, 18 extern void debug_mutex_wake_waiter(struct mutex *lock, 21 extern void debug_mutex_add_waiter(struct mutex *lock, 24 extern void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, 26 extern void debug_mutex_unlock(struct mutex *lock); 27 extern void debug_mutex_init(struct mutex *lock, const char *name, 30 static inline void mutex_set_owner(struct mutex *lock) mutex_set_owner() 35 static inline void mutex_clear_owner(struct mutex *lock) mutex_clear_owner() 42 struct mutex *l = container_of(lock, struct mutex, wait_lock); \
|
H A D | mutex.h | 8 * This file contains mutex debugging related internal prototypes, for the 20 static inline void mutex_set_owner(struct mutex *lock) mutex_set_owner() 25 static inline void mutex_clear_owner(struct mutex *lock) mutex_clear_owner() 30 static inline void mutex_set_owner(struct mutex *lock) mutex_set_owner() 34 static inline void mutex_clear_owner(struct mutex *lock) mutex_clear_owner() 46 debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) debug_mutex_lock_common()
|
H A D | mutex-debug.c | 2 * kernel/mutex-debug.c 15 #include <linux/mutex.h> 25 #include "mutex-debug.h" 30 void debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) debug_mutex_lock_common() 37 void debug_mutex_wake_waiter(struct mutex *lock, struct mutex_waiter *waiter) debug_mutex_wake_waiter() 51 void debug_mutex_add_waiter(struct mutex *lock, struct mutex_waiter *waiter, debug_mutex_add_waiter() 60 void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, mutex_remove_waiter() 72 void debug_mutex_unlock(struct mutex *lock) debug_mutex_unlock() 93 void debug_mutex_init(struct mutex *lock, const char *name, debug_mutex_init() 107 * mutex_destroy - mark a mutex unusable 108 * @lock: the mutex to be destroyed 110 * This function marks the mutex uninitialized, and any subsequent 111 * use of the mutex is forbidden. The mutex must not be locked when 114 void mutex_destroy(struct mutex *lock) mutex_destroy()
|
H A D | Makefile | 2 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o 11 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
|
H A D | mutex.c | 2 * kernel/locking/mutex.c 18 * Also see Documentation/locking/mutex-design.txt. 20 #include <linux/mutex.h> 35 # include "mutex-debug.h" 36 # include <asm-generic/mutex-null.h> 45 # include "mutex.h" 46 # include <asm/mutex.h> 50 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) __mutex_init() 67 * We split the mutex lock/unlock logic into separate fastpath and 75 * mutex_lock - acquire the mutex 76 * @lock: the mutex to be acquired 78 * Lock the mutex exclusively for this task. If the mutex is not 81 * The mutex must later on be released by the same task that 83 * may not exit without first unlocking the mutex. Also, kernel 84 * memory where the mutex resides must not be freed with 85 * the mutex still locked. The mutex must first be initialized 87 * the mutex to 0 is not allowed. 95 void __sched mutex_lock(struct mutex *lock) mutex_lock() 198 * Callers must hold the mutex wait_lock. 225 bool mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner) mutex_spin_on_owner() 252 * Initial check for entering the mutex spinning loop 254 static inline int mutex_can_spin_on_owner(struct mutex *lock) mutex_can_spin_on_owner() 268 * if lock->owner is not set, the mutex owner may have just acquired mutex_can_spin_on_owner() 269 * it and not set the owner yet or the mutex has been released. mutex_can_spin_on_owner() 277 static inline bool mutex_try_to_acquire(struct mutex *lock) mutex_try_to_acquire() 291 * Since this needs the lock owner, and this mutex implementation 298 * The mutex spinners are queued up using MCS lock so that only one 299 * spinner can compete for the mutex. However, if mutex spinning isn't 306 static bool mutex_optimistic_spin(struct mutex *lock, mutex_optimistic_spin() 315 * In order to avoid a stampede of mutex spinners trying to mutex_optimistic_spin() 316 * acquire the mutex all at once, the spinners need to take a mutex_optimistic_spin() 349 /* Try to acquire the mutex if it is unlocked. */ mutex_optimistic_spin() 387 * reschedule now, before we try-lock the mutex. This avoids getting mutex_optimistic_spin() 388 * scheduled out right after we obtained the mutex. mutex_optimistic_spin() 402 static bool mutex_optimistic_spin(struct mutex *lock, mutex_optimistic_spin() 413 * mutex_unlock - release the mutex 414 * @lock: the mutex to be released 416 * Unlock a mutex that has been locked by this task previously. 419 * of a not locked mutex is not allowed. 423 void __sched mutex_unlock(struct mutex *lock) mutex_unlock() 443 * ww_mutex_unlock - release the w/w mutex 444 * @lock: the mutex to be released 446 * Unlock a mutex that has been locked by this task previously with any of the 451 * of a unlocked mutex is not allowed. 481 __ww_mutex_lock_check_stamp(struct mutex *lock, struct ww_acquire_ctx *ctx) __ww_mutex_lock_check_stamp() 505 * Lock a mutex (possibly interruptible), slowpath: 508 __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, __mutex_lock_common() 529 * Once more, try to acquire the lock. Only try-lock the mutex if __mutex_lock_common() 615 mutex_lock_nested(struct mutex *lock, unsigned int subclass) mutex_lock_nested() 625 _mutex_lock_nest_lock(struct mutex *lock, struct lockdep_map *nest) _mutex_lock_nest_lock() 635 mutex_lock_killable_nested(struct mutex *lock, unsigned int subclass) mutex_lock_killable_nested() 644 mutex_lock_interruptible_nested(struct mutex *lock, unsigned int subclass) mutex_lock_interruptible_nested() 716 __mutex_unlock_common_slowpath(struct mutex *lock, int nested) __mutex_unlock_common_slowpath() 725 * mutex counter and wait_list. __mutex_unlock_common_slowpath() 759 struct mutex *lock = container_of(lock_count, struct mutex, count); __mutex_unlock_slowpath() 770 __mutex_lock_killable_slowpath(struct mutex *lock); 773 __mutex_lock_interruptible_slowpath(struct mutex *lock); 776 * mutex_lock_interruptible - acquire the mutex, interruptible 777 * @lock: the mutex to be acquired 779 * Lock the mutex like mutex_lock(), and return 0 if the mutex has 780 * been acquired or sleep until the mutex becomes available. If a 786 int __sched mutex_lock_interruptible(struct mutex *lock) mutex_lock_interruptible() 801 int __sched mutex_lock_killable(struct mutex *lock) mutex_lock_killable() 818 struct mutex *lock = container_of(lock_count, struct mutex, count); __mutex_lock_slowpath() 825 __mutex_lock_killable_slowpath(struct mutex *lock) __mutex_lock_killable_slowpath() 832 __mutex_lock_interruptible_slowpath(struct mutex *lock) __mutex_lock_interruptible_slowpath() 861 struct mutex *lock = container_of(lock_count, struct mutex, count); __mutex_trylock_slowpath() 865 /* No need to trylock if the mutex is locked. */ __mutex_trylock_slowpath() 887 * mutex_trylock - try to acquire the mutex, without waiting 888 * @lock: the mutex to be acquired 890 * Try to acquire the mutex atomically. Returns 1 if the mutex 898 * mutex must be released by the same task that acquired it. 900 int __sched mutex_trylock(struct mutex *lock) mutex_trylock() 952 * atomic_dec_and_mutex_lock - return holding mutex if we dec to 0 954 * @lock: the mutex to return holding if we dec to 0 958 int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock) atomic_dec_and_mutex_lock()
|
/linux-4.4.14/drivers/acpi/acpica/ |
H A D | exmutex.c | 61 * PARAMETERS: obj_desc - The mutex to be unlinked 65 * DESCRIPTION: Remove a mutex from the "AcquiredMutex" list 71 struct acpi_thread_state *thread = obj_desc->mutex.owner_thread; acpi_ex_unlink_mutex() 79 if (obj_desc->mutex.next) { acpi_ex_unlink_mutex() 80 (obj_desc->mutex.next)->mutex.prev = obj_desc->mutex.prev; acpi_ex_unlink_mutex() 83 if (obj_desc->mutex.prev) { acpi_ex_unlink_mutex() 84 (obj_desc->mutex.prev)->mutex.next = obj_desc->mutex.next; acpi_ex_unlink_mutex() 87 * Migrate the previous sync level associated with this mutex to acpi_ex_unlink_mutex() 88 * the previous mutex on the list so that it may be preserved. acpi_ex_unlink_mutex() 92 (obj_desc->mutex.prev)->mutex.original_sync_level = acpi_ex_unlink_mutex() 93 obj_desc->mutex.original_sync_level; acpi_ex_unlink_mutex() 95 thread->acquired_mutex_list = obj_desc->mutex.next; acpi_ex_unlink_mutex() 103 * PARAMETERS: obj_desc - The mutex to be linked 108 * DESCRIPTION: Add a mutex to the "AcquiredMutex" list for this walk 122 obj_desc->mutex.prev = NULL; acpi_ex_link_mutex() 123 obj_desc->mutex.next = list_head; acpi_ex_link_mutex() 128 list_head->mutex.prev = obj_desc; acpi_ex_link_mutex() 146 * DESCRIPTION: Acquire an AML mutex, low-level interface. Provides a common 174 if (obj_desc->mutex.thread_id == thread_id) { acpi_ex_acquire_mutex_object() 176 * The mutex is already owned by this thread, just increment the acpi_ex_acquire_mutex_object() 179 obj_desc->mutex.acquisition_depth++; acpi_ex_acquire_mutex_object() 183 /* Acquire the mutex, wait if necessary. Special case for Global Lock */ acpi_ex_acquire_mutex_object() 188 status = acpi_ex_system_wait_mutex(obj_desc->mutex.os_mutex, acpi_ex_acquire_mutex_object() 199 /* Acquired the mutex: update mutex object */ acpi_ex_acquire_mutex_object() 201 obj_desc->mutex.thread_id = thread_id; acpi_ex_acquire_mutex_object() 202 obj_desc->mutex.acquisition_depth = 1; acpi_ex_acquire_mutex_object() 203 obj_desc->mutex.original_sync_level = 0; acpi_ex_acquire_mutex_object() 204 obj_desc->mutex.owner_thread = NULL; /* Used only for AML Acquire() */ acpi_ex_acquire_mutex_object() 219 * DESCRIPTION: Acquire an AML mutex 241 acpi_ut_get_node_name(obj_desc->mutex.node))); acpi_ex_acquire_mutex() 247 * mutex. This mechanism provides some deadlock prevention acpi_ex_acquire_mutex() 249 if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) { acpi_ex_acquire_mutex() 252 acpi_ut_get_node_name(obj_desc->mutex.node), acpi_ex_acquire_mutex() 260 if (ACPI_SUCCESS(status) && obj_desc->mutex.acquisition_depth == 1) { acpi_ex_acquire_mutex() 264 obj_desc->mutex.owner_thread = walk_state->thread; acpi_ex_acquire_mutex() 265 obj_desc->mutex.original_sync_level = acpi_ex_acquire_mutex() 268 obj_desc->mutex.sync_level; acpi_ex_acquire_mutex() 270 /* Link the mutex to the current thread for force-unlock at method exit */ acpi_ex_acquire_mutex() 306 if (obj_desc->mutex.acquisition_depth == 0) { acpi_ex_release_mutex_object() 312 obj_desc->mutex.acquisition_depth--; acpi_ex_release_mutex_object() 313 if (obj_desc->mutex.acquisition_depth != 0) { acpi_ex_release_mutex_object() 320 if (obj_desc->mutex.owner_thread) { acpi_ex_release_mutex_object() 322 /* Unlink the mutex from the owner's list */ acpi_ex_release_mutex_object() 325 obj_desc->mutex.owner_thread = NULL; acpi_ex_release_mutex_object() 328 /* Release the mutex, special case for Global Lock */ acpi_ex_release_mutex_object() 333 acpi_os_release_mutex(obj_desc->mutex.os_mutex); acpi_ex_release_mutex_object() 336 /* Clear mutex info */ acpi_ex_release_mutex_object() 338 obj_desc->mutex.thread_id = 0; acpi_ex_release_mutex_object() 369 owner_thread = obj_desc->mutex.owner_thread; acpi_ex_release_mutex() 371 /* The mutex must have been previously acquired in order to release it */ acpi_ex_release_mutex() 376 acpi_ut_get_node_name(obj_desc->mutex.node))); acpi_ex_release_mutex() 385 acpi_ut_get_node_name(obj_desc->mutex.node))); acpi_ex_release_mutex() 398 acpi_ut_get_node_name(obj_desc->mutex.node), acpi_ex_release_mutex() 404 * The sync level of the mutex must be equal to the current sync level. In acpi_ex_release_mutex() 405 * other words, the current level means that at least one mutex at that acpi_ex_release_mutex() 406 * level is currently being held. Attempting to release a mutex of a acpi_ex_release_mutex() 407 * different level can only mean that the mutex ordering rule is being acpi_ex_release_mutex() 410 if (obj_desc->mutex.sync_level != owner_thread->current_sync_level) { acpi_ex_release_mutex() 412 "Cannot release Mutex [%4.4s], SyncLevel mismatch: mutex %u current %u", acpi_ex_release_mutex() 413 acpi_ut_get_node_name(obj_desc->mutex.node), acpi_ex_release_mutex() 414 obj_desc->mutex.sync_level, acpi_ex_release_mutex() 420 * Get the previous sync_level from the head of the acquired mutex list. acpi_ex_release_mutex() 425 owner_thread->acquired_mutex_list->mutex.original_sync_level; acpi_ex_release_mutex() 432 if (obj_desc->mutex.acquisition_depth == 0) { acpi_ex_release_mutex() 455 * method to acquire a mutex, and a different method to release it, as long as 471 next = obj_desc->mutex.next; acpi_ex_release_all_mutexes() 473 obj_desc->mutex.prev = NULL; acpi_ex_release_all_mutexes() 474 obj_desc->mutex.next = NULL; acpi_ex_release_all_mutexes() 475 obj_desc->mutex.acquisition_depth = 0; acpi_ex_release_all_mutexes() 478 "Force-releasing held mutex: %p\n", acpi_ex_release_all_mutexes() 481 /* Release the mutex, special case for Global Lock */ acpi_ex_release_all_mutexes() 489 acpi_os_release_mutex(obj_desc->mutex.os_mutex); acpi_ex_release_all_mutexes() 492 /* Mark mutex unowned */ acpi_ex_release_all_mutexes() 494 obj_desc->mutex.owner_thread = NULL; acpi_ex_release_all_mutexes() 495 obj_desc->mutex.thread_id = 0; acpi_ex_release_all_mutexes() 497 /* Update Thread sync_level (Last mutex is the important one) */ acpi_ex_release_all_mutexes() 500 obj_desc->mutex.original_sync_level; acpi_ex_release_all_mutexes()
|
H A D | utxfmutex.c | 3 * Module Name: utxfmutex - external AML mutex access functions 63 * ret_obj - Where the mutex object is returned 67 * DESCRIPTION: Get an AML mutex object. The mutex node is pointed to by 88 /* Get a the namespace node for the mutex */ acpi_ut_get_mutex_object() 106 /* Get the low-level mutex object */ acpi_ut_get_mutex_object() 127 * DESCRIPTION: Acquire an AML mutex. This is a device driver interface to 128 * AML mutex objects, and allows for transaction locking between 129 * drivers and AML code. The mutex node is pointed to by 141 /* Get the low-level mutex associated with Handle:Pathname */ acpi_acquire_mutex() 148 /* Acquire the OS mutex */ acpi_acquire_mutex() 150 status = acpi_os_acquire_mutex(mutex_obj->mutex.os_mutex, timeout); acpi_acquire_mutex() 163 * DESCRIPTION: Release an AML mutex. This is a device driver interface to 164 * AML mutex objects, and allows for transaction locking between 165 * drivers and AML code. The mutex node is pointed to by 176 /* Get the low-level mutex associated with Handle:Pathname */ acpi_release_mutex() 183 /* Release the OS mutex */ acpi_release_mutex() 185 acpi_os_release_mutex(mutex_obj->mutex.os_mutex); acpi_release_mutex()
|
H A D | utmutex.c | 3 * Module Name: utmutex - local mutex support 63 * DESCRIPTION: Create the system mutex objects. This includes mutexes, 75 /* Create each of the predefined mutex objects */ acpi_ut_mutex_initialize() 137 * DESCRIPTION: Delete all of the system mutex objects. This includes mutexes, 148 /* Delete each predefined mutex object */ acpi_ut_mutex_terminate() 178 * PARAMETERS: mutex_ID - ID of the mutex to be created 182 * DESCRIPTION: Create a mutex object. 192 if (!acpi_gbl_mutex_info[mutex_id].mutex) { acpi_ut_create_mutex() 194 acpi_os_create_mutex(&acpi_gbl_mutex_info[mutex_id].mutex); acpi_ut_create_mutex() 207 * PARAMETERS: mutex_ID - ID of the mutex to be deleted 211 * DESCRIPTION: Delete a mutex object. 220 acpi_os_delete_mutex(acpi_gbl_mutex_info[mutex_id].mutex); acpi_ut_delete_mutex() 222 acpi_gbl_mutex_info[mutex_id].mutex = NULL; acpi_ut_delete_mutex() 232 * PARAMETERS: mutex_ID - ID of the mutex to be acquired 236 * DESCRIPTION: Acquire a mutex object. 261 * the mutex ordering rule. This indicates a coding error somewhere in acpi_ut_acquire_mutex() 293 status = acpi_os_acquire_mutex(acpi_gbl_mutex_info[mutex_id].mutex, acpi_ut_acquire_mutex() 316 * PARAMETERS: mutex_ID - ID of the mutex to be released 320 * DESCRIPTION: Release a mutex object. 353 * greater than this one. If so, the thread has violated the mutex acpi_ut_release_mutex() 379 acpi_os_release_mutex(acpi_gbl_mutex_info[mutex_id].mutex); acpi_ut_release_mutex()
|
H A D | dsmethod.c | 173 * Mark the method as serialized. Later code will create a mutex for acpi_ds_detect_named_opcodes() 273 * DESCRIPTION: Create a mutex object for a serialized control method 285 /* Create the new mutex object */ acpi_ds_create_method_mutex() 294 status = acpi_os_create_mutex(&mutex_desc->mutex.os_mutex); acpi_ds_create_method_mutex() 300 mutex_desc->mutex.sync_level = method_desc->method.sync_level; acpi_ds_create_method_mutex() 301 method_desc->method.mutex = mutex_desc; acpi_ds_create_method_mutex() 346 * If this method is serialized, we need to acquire the method mutex. acpi_ds_begin_method_execution() 350 * Create a mutex for the method if it is defined to be Serialized acpi_ds_begin_method_execution() 351 * and a mutex has not already been created. We defer the mutex creation acpi_ds_begin_method_execution() 354 if (!obj_desc->method.mutex) { acpi_ds_begin_method_execution() 376 obj_desc->method.mutex->mutex.sync_level)) { acpi_ds_begin_method_execution() 386 * Obtain the method mutex if necessary. Do not acquire mutex for a acpi_ds_begin_method_execution() 390 !obj_desc->method.mutex->mutex.thread_id || acpi_ds_begin_method_execution() 392 obj_desc->method.mutex->mutex.thread_id)) { acpi_ds_begin_method_execution() 394 * Acquire the method mutex. This releases the interpreter if we acpi_ds_begin_method_execution() 398 acpi_ex_system_wait_mutex(obj_desc->method.mutex-> acpi_ds_begin_method_execution() 399 mutex.os_mutex, acpi_ds_begin_method_execution() 405 /* Update the mutex and walk info and save the original sync_level */ acpi_ds_begin_method_execution() 408 obj_desc->method.mutex->mutex. acpi_ds_begin_method_execution() 412 obj_desc->method.mutex->mutex.thread_id = acpi_ds_begin_method_execution() 417 obj_desc->method.mutex->mutex. acpi_ds_begin_method_execution() 419 obj_desc->method.mutex->mutex.sync_level; acpi_ds_begin_method_execution() 421 obj_desc->method.mutex->mutex.thread_id = acpi_ds_begin_method_execution() 428 obj_desc->method.mutex->mutex.acquisition_depth++; acpi_ds_begin_method_execution() 452 /* On error, must release the method mutex (if present) */ acpi_ds_begin_method_execution() 454 if (obj_desc->method.mutex) { acpi_ds_begin_method_execution() 455 acpi_os_release_mutex(obj_desc->method.mutex->mutex.os_mutex); acpi_ds_begin_method_execution() 505 /* Init for new method, possibly wait on method mutex */ acpi_ds_call_control_method() 715 * If method is serialized, release the mutex and restore the acpi_ds_terminate_control_method() 718 if (method_desc->method.mutex) { acpi_ds_terminate_control_method() 722 method_desc->method.mutex->mutex.acquisition_depth--; acpi_ds_terminate_control_method() 723 if (!method_desc->method.mutex->mutex.acquisition_depth) { acpi_ds_terminate_control_method() 725 method_desc->method.mutex->mutex. acpi_ds_terminate_control_method() 729 mutex->mutex.os_mutex); acpi_ds_terminate_control_method() 730 method_desc->method.mutex->mutex.thread_id = 0; acpi_ds_terminate_control_method()
|
/linux-4.4.14/sound/usb/usx2y/ |
H A D | us122l.h | 11 struct mutex mutex; member in struct:us122l
|
/linux-4.4.14/drivers/s390/char/ |
H A D | vmcp.h | 16 #include <linux/mutex.h> 29 struct mutex mutex; member in struct:vmcp_session
|
H A D | vmcp.c | 43 mutex_init(&session->mutex); vmcp_open() 67 if (mutex_lock_interruptible(&session->mutex)) vmcp_read() 70 mutex_unlock(&session->mutex); vmcp_read() 77 mutex_unlock(&session->mutex); vmcp_read() 100 if (mutex_lock_interruptible(&session->mutex)) { vmcp_write() 109 mutex_unlock(&session->mutex); vmcp_write() 116 mutex_unlock(&session->mutex); vmcp_write() 146 if (mutex_lock_interruptible(&session->mutex)) vmcp_ioctl() 151 mutex_unlock(&session->mutex); vmcp_ioctl() 162 mutex_unlock(&session->mutex); vmcp_ioctl() 166 mutex_unlock(&session->mutex); vmcp_ioctl() 169 mutex_unlock(&session->mutex); vmcp_ioctl()
|
H A D | diag_ftp.h | 6 * mutex).
|
H A D | sclp_ftp.h | 6 * mutex).
|
/linux-4.4.14/drivers/md/ |
H A D | dm-stats.h | 5 #include <linux/mutex.h> 12 struct mutex mutex; member in struct:dm_stats
|
/linux-4.4.14/drivers/oprofile/ |
H A D | event_buffer.h | 14 #include <linux/mutex.h> 35 /* mutex between sync_cpu_buffers() and the 38 extern struct mutex buffer_mutex;
|
/linux-4.4.14/tools/lib/lockdep/ |
H A D | preload.c | 7 #include "include/liblockdep/mutex.h" 40 /* pthread mutex API */ 43 extern int __pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr); 44 extern int __pthread_mutex_lock(pthread_mutex_t *mutex); 45 extern int __pthread_mutex_trylock(pthread_mutex_t *mutex); 46 extern int __pthread_mutex_unlock(pthread_mutex_t *mutex); 47 extern int __pthread_mutex_destroy(pthread_mutex_t *mutex); 55 static int (*ll_pthread_mutex_init)(pthread_mutex_t *mutex, 57 static int (*ll_pthread_mutex_lock)(pthread_mutex_t *mutex) = __pthread_mutex_lock; 58 static int (*ll_pthread_mutex_trylock)(pthread_mutex_t *mutex) = __pthread_mutex_trylock; 59 static int (*ll_pthread_mutex_unlock)(pthread_mutex_t *mutex) = __pthread_mutex_unlock; 60 static int (*ll_pthread_mutex_destroy)(pthread_mutex_t *mutex) = __pthread_mutex_destroy; 220 int pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutex_init() argument 237 r = ll_pthread_mutex_init(mutex, attr); pthread_mutex_init() 244 __get_lock(mutex); pthread_mutex_init() 249 int pthread_mutex_lock(pthread_mutex_t *mutex) pthread_mutex_lock() argument 255 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, pthread_mutex_lock() 271 r = ll_pthread_mutex_lock(mutex); pthread_mutex_lock() 273 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); pthread_mutex_lock() 278 int pthread_mutex_trylock(pthread_mutex_t *mutex) pthread_mutex_trylock() argument 284 lock_acquire(&__get_lock(mutex)->dep_map, 0, 1, 0, 1, NULL, (unsigned long)_RET_IP_); pthread_mutex_trylock() 285 r = ll_pthread_mutex_trylock(mutex); pthread_mutex_trylock() 287 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); pthread_mutex_trylock() 292 int pthread_mutex_unlock(pthread_mutex_t *mutex) pthread_mutex_unlock() argument 298 lock_release(&__get_lock(mutex)->dep_map, 0, (unsigned long)_RET_IP_); pthread_mutex_unlock() 304 r = ll_pthread_mutex_unlock(mutex); pthread_mutex_unlock() 306 lock_acquire(&__get_lock(mutex)->dep_map, 0, 0, 0, 1, NULL, (unsigned long)_RET_IP_); pthread_mutex_unlock() 311 int pthread_mutex_destroy(pthread_mutex_t *mutex) pthread_mutex_destroy() argument 320 debug_check_no_locks_freed(mutex, sizeof(*mutex)); pthread_mutex_destroy() 321 __del_lock(__get_lock(mutex)); pthread_mutex_destroy() 322 return ll_pthread_mutex_destroy(mutex); pthread_mutex_destroy() 325 /* This is the rwlock part, very similar to what happened with mutex above */ pthread_rwlock_init()
|
/linux-4.4.14/arch/x86/include/asm/ |
H A D | mmu.h | 5 #include <linux/mutex.h> 21 struct mutex lock;
|
H A D | mutex_32.h | 2 * Assembly implementation of the mutex fastpath, based on atomic 58 * __mutex_fastpath_unlock - try to promote the mutex from 0 to 1 62 * try to promote the mutex from 0 to 1. if it wasn't 0, call <fail_fn>. 89 * __mutex_fastpath_trylock - try to acquire the mutex, without waiting
|
/linux-4.4.14/fs/squashfs/ |
H A D | decompressor_single.c | 10 #include <linux/mutex.h> 26 struct mutex mutex; member in struct:squashfs_stream 46 mutex_init(&stream->mutex); squashfs_decompressor_create() 70 mutex_lock(&stream->mutex); squashfs_decompress() 73 mutex_unlock(&stream->mutex); squashfs_decompress()
|
H A D | decompressor_multi.c | 9 #include <linux/mutex.h> 43 struct mutex mutex; member in struct:squashfs_stream 58 mutex_lock(&stream->mutex); put_decomp_stream() 60 mutex_unlock(&stream->mutex); put_decomp_stream() 76 mutex_init(&stream->mutex); squashfs_decompressor_create() 135 mutex_lock(&stream->mutex); get_decomp_stream() 142 mutex_unlock(&stream->mutex); get_decomp_stream() 168 mutex_unlock(&stream->mutex); get_decomp_stream() 176 mutex_unlock(&stream->mutex); get_decomp_stream()
|
H A D | file_cache.c | 15 #include <linux/mutex.h>
|
/linux-4.4.14/net/ceph/ |
H A D | auth.c | 50 mutex_init(&ac->mutex); ceph_auth_init() 77 mutex_lock(&ac->mutex); ceph_auth_reset() 82 mutex_unlock(&ac->mutex); ceph_auth_reset() 108 mutex_lock(&ac->mutex); ceph_auth_build_hello() 136 mutex_unlock(&ac->mutex); ceph_auth_build_hello() 189 mutex_lock(&ac->mutex); ceph_handle_auth_reply() 247 mutex_unlock(&ac->mutex); ceph_handle_auth_reply() 261 mutex_lock(&ac->mutex); ceph_build_auth() 266 mutex_unlock(&ac->mutex); ceph_build_auth() 274 mutex_lock(&ac->mutex); ceph_auth_is_authenticated() 277 mutex_unlock(&ac->mutex); ceph_auth_is_authenticated() 288 mutex_lock(&ac->mutex); ceph_auth_create_authorizer() 291 mutex_unlock(&ac->mutex); ceph_auth_create_authorizer() 299 mutex_lock(&ac->mutex); ceph_auth_destroy_authorizer() 302 mutex_unlock(&ac->mutex); ceph_auth_destroy_authorizer() 312 mutex_lock(&ac->mutex); ceph_auth_update_authorizer() 315 mutex_unlock(&ac->mutex); ceph_auth_update_authorizer() 325 mutex_lock(&ac->mutex); ceph_auth_verify_authorizer_reply() 328 mutex_unlock(&ac->mutex); ceph_auth_verify_authorizer_reply() 335 mutex_lock(&ac->mutex); ceph_auth_invalidate_authorizer() 338 mutex_unlock(&ac->mutex); ceph_auth_invalidate_authorizer()
|
H A D | mon_client.c | 257 mutex_lock(&monc->mutex); handle_subscribe_ack() 267 mutex_unlock(&monc->mutex); handle_subscribe_ack() 279 mutex_lock(&monc->mutex); ceph_monc_got_mdsmap() 281 mutex_unlock(&monc->mutex); ceph_monc_got_mdsmap() 288 mutex_lock(&monc->mutex); ceph_monc_got_osdmap() 291 mutex_unlock(&monc->mutex); ceph_monc_got_osdmap() 301 mutex_lock(&monc->mutex); ceph_monc_request_next_osdmap() 306 mutex_unlock(&monc->mutex); ceph_monc_request_next_osdmap() 322 mutex_lock(&monc->mutex); ceph_monc_wait_osdmap() 324 mutex_unlock(&monc->mutex); ceph_monc_wait_osdmap() 335 mutex_lock(&monc->mutex); ceph_monc_wait_osdmap() 338 mutex_unlock(&monc->mutex); ceph_monc_wait_osdmap() 348 mutex_lock(&monc->mutex); ceph_monc_open_session() 351 mutex_unlock(&monc->mutex); ceph_monc_open_session() 379 mutex_lock(&monc->mutex); ceph_monc_handle_map() 410 mutex_unlock(&monc->mutex); ceph_monc_handle_map() 414 * do debugfs initialization without mutex to avoid ceph_monc_handle_map() 423 mutex_unlock(&monc->mutex); ceph_monc_handle_map() 503 mutex_lock(&monc->mutex); get_generic_reply() 519 mutex_unlock(&monc->mutex); get_generic_reply() 534 mutex_unlock(&monc->mutex); __do_generic_request() 538 mutex_lock(&monc->mutex); __do_generic_request() 552 mutex_lock(&monc->mutex); do_generic_request() 554 mutex_unlock(&monc->mutex); do_generic_request() 573 mutex_lock(&monc->mutex); handle_statfs_reply() 580 mutex_unlock(&monc->mutex); handle_statfs_reply() 650 mutex_lock(&monc->mutex); handle_get_version_reply() 657 mutex_unlock(&monc->mutex); handle_get_version_reply() 709 mutex_lock(&monc->mutex); ceph_monc_do_get_version() 716 mutex_unlock(&monc->mutex); ceph_monc_do_get_version() 750 mutex_lock(&monc->mutex); delayed_work() 775 mutex_unlock(&monc->mutex); delayed_work() 814 mutex_init(&monc->mutex); ceph_monc_init() 893 mutex_lock(&monc->mutex); ceph_monc_stop() 896 mutex_unlock(&monc->mutex); ceph_monc_stop() 924 mutex_lock(&monc->mutex); handle_auth_reply() 954 mutex_unlock(&monc->mutex); handle_auth_reply() 958 * do debugfs initialization without mutex to avoid handle_auth_reply() 984 mutex_lock(&monc->mutex); ceph_monc_validate_auth() 986 mutex_unlock(&monc->mutex); ceph_monc_validate_auth() 1107 mutex_lock(&monc->mutex); mon_fault() 1126 mutex_unlock(&monc->mutex); mon_fault()
|
/linux-4.4.14/drivers/gpu/drm/ |
H A D | drm_global.c | 31 #include <linux/mutex.h> 37 struct mutex mutex; member in struct:drm_global_item 50 mutex_init(&item->mutex); drm_global_init() 71 mutex_lock(&item->mutex); drm_global_item_ref() 87 mutex_unlock(&item->mutex); drm_global_item_ref() 90 mutex_unlock(&item->mutex); drm_global_item_ref() 100 mutex_lock(&item->mutex); drm_global_item_unref() 107 mutex_unlock(&item->mutex); drm_global_item_unref()
|
H A D | drm_modeset_lock.c | 38 * For basic principles of ww_mutex, see: Documentation/locking/ww-mutex-design.txt 76 mutex_lock(&config->mutex); drm_modeset_lock_all() 129 mutex_unlock(&dev->mode_config.mutex); drm_modeset_unlock_all() 159 ret = drm_modeset_lock(&crtc->mutex, ctx); drm_modeset_lock_crtc() 164 ret = drm_modeset_lock(&plane->mutex, ctx); drm_modeset_lock_crtc() 169 ret = drm_modeset_lock(&plane->crtc->mutex, ctx); drm_modeset_lock_crtc() 250 WARN_ON(!drm_modeset_is_locked(&crtc->mutex)); drm_warn_on_modeset_not_all_locked() 253 WARN_ON(!mutex_is_locked(&dev->mode_config.mutex)); drm_warn_on_modeset_not_all_locked() 312 if (!ww_mutex_trylock(&lock->mutex)) modeset_lock() 317 ret = ww_mutex_lock_slow_interruptible(&lock->mutex, &ctx->ww_ctx); modeset_lock() 319 ret = ww_mutex_lock_interruptible(&lock->mutex, &ctx->ww_ctx); modeset_lock() 321 ww_mutex_lock_slow(&lock->mutex, &ctx->ww_ctx); modeset_lock() 324 ret = ww_mutex_lock(&lock->mutex, &ctx->ww_ctx); modeset_lock() 401 ww_mutex_lock(&lock->mutex, NULL); drm_modeset_lock() 419 return ww_mutex_lock_interruptible(&lock->mutex, NULL); drm_modeset_lock_interruptible() 430 ww_mutex_unlock(&lock->mutex); drm_modeset_unlock() 444 ret = drm_modeset_lock(&crtc->mutex, ctx); drm_for_each_crtc() 450 ret = drm_modeset_lock(&plane->mutex, ctx); drm_for_each_plane()
|
/linux-4.4.14/drivers/vhost/ |
H A D | test.c | 14 #include <linux/mutex.h> 46 mutex_lock(&vq->mutex); handle_vq() 49 mutex_unlock(&vq->mutex); handle_vq() 90 mutex_unlock(&vq->mutex); handle_vq() 131 mutex_lock(&vq->mutex); vhost_test_stop_vq() 134 mutex_unlock(&vq->mutex); vhost_test_stop_vq() 177 mutex_lock(&n->dev.mutex); vhost_test_run() 192 mutex_lock(&vq->mutex); vhost_test_run() 201 mutex_unlock(&vq->mutex); vhost_test_run() 211 mutex_unlock(&n->dev.mutex); vhost_test_run() 215 mutex_unlock(&n->dev.mutex); vhost_test_run() 225 mutex_lock(&n->dev.mutex); vhost_test_reset_owner() 238 mutex_unlock(&n->dev.mutex); vhost_test_reset_owner() 246 mutex_lock(&n->dev.mutex); vhost_test_set_features() 249 mutex_unlock(&n->dev.mutex); vhost_test_set_features() 253 mutex_lock(&vq->mutex); vhost_test_set_features() 255 mutex_unlock(&vq->mutex); vhost_test_set_features() 256 mutex_unlock(&n->dev.mutex); vhost_test_set_features() 291 mutex_lock(&n->dev.mutex); vhost_test_ioctl() 296 mutex_unlock(&n->dev.mutex); vhost_test_ioctl()
|
/linux-4.4.14/drivers/media/usb/uvc/ |
H A D | uvc_queue.c | 34 * Video buffers are managed by videobuf2. The driver uses a mutex to protect 208 queue->queue.lock = &queue->mutex; uvc_queue_init() 213 mutex_init(&queue->mutex); uvc_queue_init() 223 mutex_lock(&queue->mutex); uvc_queue_release() 225 mutex_unlock(&queue->mutex); uvc_queue_release() 237 mutex_lock(&queue->mutex); uvc_request_buffers() 239 mutex_unlock(&queue->mutex); uvc_request_buffers() 248 mutex_lock(&queue->mutex); uvc_query_buffer() 250 mutex_unlock(&queue->mutex); uvc_query_buffer() 260 mutex_lock(&queue->mutex); uvc_create_buffers() 262 mutex_unlock(&queue->mutex); uvc_create_buffers() 271 mutex_lock(&queue->mutex); uvc_queue_buffer() 273 mutex_unlock(&queue->mutex); uvc_queue_buffer() 283 mutex_lock(&queue->mutex); uvc_export_buffer() 285 mutex_unlock(&queue->mutex); uvc_export_buffer() 295 mutex_lock(&queue->mutex); uvc_dequeue_buffer() 297 mutex_unlock(&queue->mutex); uvc_dequeue_buffer() 306 mutex_lock(&queue->mutex); uvc_queue_streamon() 308 mutex_unlock(&queue->mutex); uvc_queue_streamon() 317 mutex_lock(&queue->mutex); uvc_queue_streamoff() 319 mutex_unlock(&queue->mutex); uvc_queue_streamoff() 342 mutex_lock(&queue->mutex); uvc_queue_poll() 344 mutex_unlock(&queue->mutex); uvc_queue_poll() 360 mutex_lock(&queue->mutex); uvc_queue_allocated() 362 mutex_unlock(&queue->mutex); uvc_queue_allocated()
|
/linux-4.4.14/drivers/iio/light/ |
H A D | cm3323.c | 17 #include <linux/mutex.h> 52 struct mutex mutex; member in struct:cm3323_data 166 mutex_lock(&data->mutex); cm3323_read_raw() 169 mutex_unlock(&data->mutex); cm3323_read_raw() 173 mutex_unlock(&data->mutex); cm3323_read_raw() 177 mutex_lock(&data->mutex); cm3323_read_raw() 180 mutex_unlock(&data->mutex); cm3323_read_raw() 186 mutex_unlock(&data->mutex); cm3323_read_raw() 203 mutex_lock(&data->mutex); cm3323_write_raw() 205 mutex_unlock(&data->mutex); cm3323_write_raw() 235 mutex_init(&data->mutex); cm3323_probe()
|
H A D | apds9300.c | 16 #include <linux/mutex.h> 51 struct mutex mutex; member in struct:apds9300_data 245 mutex_lock(&data->mutex); apds9300_read_raw() 271 mutex_unlock(&data->mutex); apds9300_read_raw() 305 mutex_lock(&data->mutex); apds9300_write_thresh() 310 mutex_unlock(&data->mutex); apds9300_write_thresh() 332 mutex_lock(&data->mutex); apds9300_write_interrupt_config() 334 mutex_unlock(&data->mutex); apds9300_write_interrupt_config() 425 mutex_init(&data->mutex); apds9300_probe() 482 mutex_lock(&data->mutex); apds9300_suspend() 484 mutex_unlock(&data->mutex); apds9300_suspend() 495 mutex_lock(&data->mutex); apds9300_resume() 497 mutex_unlock(&data->mutex); apds9300_resume()
|
/linux-4.4.14/sound/firewire/ |
H A D | cmp.h | 4 #include <linux/mutex.h> 29 struct mutex mutex; member in struct:cmp_connection
|
H A D | iso-resources.h | 4 #include <linux/mutex.h> 21 struct mutex mutex; member in struct:fw_iso_resources
|
H A D | cmp.c | 144 mutex_init(&c->mutex); cmp_connection_init() 183 mutex_destroy(&c->mutex); cmp_connection_destroy() 284 mutex_lock(&c->mutex); cmp_connection_establish() 308 mutex_unlock(&c->mutex); cmp_connection_establish() 315 mutex_unlock(&c->mutex); cmp_connection_establish() 335 mutex_lock(&c->mutex); cmp_connection_update() 338 mutex_unlock(&c->mutex); cmp_connection_update() 356 mutex_unlock(&c->mutex); cmp_connection_update() 364 mutex_unlock(&c->mutex); cmp_connection_update() 387 mutex_lock(&c->mutex); cmp_connection_break() 390 mutex_unlock(&c->mutex); cmp_connection_break() 402 mutex_unlock(&c->mutex); cmp_connection_break()
|
H A D | iso-resources.c | 13 #include <linux/mutex.h> 30 mutex_init(&r->mutex); fw_iso_resources_init() 44 mutex_destroy(&r->mutex); fw_iso_resources_destroy() 126 mutex_lock(&r->mutex); fw_iso_resources_allocate() 132 mutex_unlock(&r->mutex); fw_iso_resources_allocate() 147 mutex_unlock(&r->mutex); fw_iso_resources_allocate() 169 mutex_lock(&r->mutex); fw_iso_resources_update() 172 mutex_unlock(&r->mutex); fw_iso_resources_update() 199 mutex_unlock(&r->mutex); fw_iso_resources_update() 216 mutex_lock(&r->mutex); fw_iso_resources_free() 229 mutex_unlock(&r->mutex); fw_iso_resources_free()
|
/linux-4.4.14/sound/firewire/tascam/ |
H A D | tascam-pcm.c | 123 mutex_lock(&tscm->mutex); pcm_capture_hw_params() 125 mutex_unlock(&tscm->mutex); pcm_capture_hw_params() 145 mutex_lock(&tscm->mutex); pcm_playback_hw_params() 147 mutex_unlock(&tscm->mutex); pcm_playback_hw_params() 159 mutex_lock(&tscm->mutex); pcm_capture_hw_free() 166 mutex_unlock(&tscm->mutex); pcm_capture_hw_free() 175 mutex_lock(&tscm->mutex); pcm_playback_hw_free() 182 mutex_unlock(&tscm->mutex); pcm_playback_hw_free() 193 mutex_lock(&tscm->mutex); pcm_capture_prepare() 199 mutex_unlock(&tscm->mutex); pcm_capture_prepare() 210 mutex_lock(&tscm->mutex); pcm_playback_prepare() 216 mutex_unlock(&tscm->mutex); pcm_playback_prepare()
|
/linux-4.4.14/drivers/leds/ |
H A D | leds-dac124s085.c | 14 #include <linux/mutex.h> 27 struct mutex mutex; member in struct:dac124s085_led 47 mutex_lock(&led->mutex); dac124s085_led_work() 51 mutex_unlock(&led->mutex); dac124s085_led_work() 86 mutex_init(&led->mutex); dac124s085_probe()
|
H A D | leds-wm831x-status.c | 27 struct mutex mutex; member in struct:wm831x_status 49 mutex_lock(&led->mutex); wm831x_status_work() 70 mutex_unlock(&led->mutex); wm831x_status_work() 174 mutex_lock(&led->mutex); wm831x_status_src_show() 182 mutex_unlock(&led->mutex); wm831x_status_src_show() 208 mutex_lock(&led->mutex); wm831x_status_src_store() 213 mutex_unlock(&led->mutex); wm831x_status_src_store() 264 mutex_init(&drvdata->mutex); wm831x_status_probe()
|
/linux-4.4.14/fs/reiserfs/ |
H A D | lock.c | 2 #include <linux/mutex.h> 11 * Now that we replace it by a mutex, we still want to keep the same 13 * We use our own lock_owner here because the owner field on a mutex 14 * is only available in SMP or mutex debugging, also we only need this field 15 * for this mutex, no need for a system wide mutex facility.
|
/linux-4.4.14/arch/powerpc/include/asm/ |
H A D | mutex.h | 2 * Optimised mutex implementation of include/asm-generic/mutex-dec.h algorithm 12 "1: lwarx %0,0,%1 # mutex trylock\n\ __mutex_cmpxchg_lock() 33 "1: lwarx %0,0,%1 # mutex lock\n\ __mutex_dec_return_lock() 52 "1: lwarx %0,0,%1 # mutex unlock\n\ __mutex_inc_return_unlock() 116 * __mutex_fastpath_trylock - try to acquire the mutex, without waiting
|
H A D | backlight.h | 13 #include <linux/mutex.h> 17 extern struct mutex pmac_backlight_mutex;
|
H A D | ps3gpu.h | 23 #include <linux/mutex.h> 42 /* mutex synchronizing GPU accesses and video mode changes */ 43 extern struct mutex ps3_gpu_mutex;
|
/linux-4.4.14/drivers/staging/android/ion/ |
H A D | ion_page_pool.c | 46 mutex_lock(&pool->mutex); ion_page_pool_add() 54 mutex_unlock(&pool->mutex); ion_page_pool_add() 82 mutex_lock(&pool->mutex); ion_page_pool_alloc() 87 mutex_unlock(&pool->mutex); ion_page_pool_alloc() 133 mutex_lock(&pool->mutex); ion_page_pool_shrink() 139 mutex_unlock(&pool->mutex); ion_page_pool_shrink() 142 mutex_unlock(&pool->mutex); ion_page_pool_shrink() 162 mutex_init(&pool->mutex); ion_page_pool_create()
|
/linux-4.4.14/net/atm/ |
H A D | resources.h | 10 #include <linux/mutex.h> 14 extern struct mutex atm_dev_mutex;
|
/linux-4.4.14/net/sunrpc/ |
H A D | netns.h | 18 struct mutex pipefs_sb_lock; 29 struct mutex gssp_lock;
|
/linux-4.4.14/sound/firewire/oxfw/ |
H A D | oxfw-midi.c | 20 mutex_lock(&oxfw->mutex); midi_capture_open() 25 mutex_unlock(&oxfw->mutex); midi_capture_open() 42 mutex_lock(&oxfw->mutex); midi_playback_open() 47 mutex_unlock(&oxfw->mutex); midi_playback_open() 59 mutex_lock(&oxfw->mutex); midi_capture_close() 64 mutex_unlock(&oxfw->mutex); midi_capture_close() 74 mutex_lock(&oxfw->mutex); midi_playback_close() 79 mutex_unlock(&oxfw->mutex); midi_playback_close()
|
H A D | oxfw-pcm.c | 242 mutex_lock(&oxfw->mutex); pcm_capture_hw_params() 244 mutex_unlock(&oxfw->mutex); pcm_capture_hw_params() 263 mutex_lock(&oxfw->mutex); pcm_playback_hw_params() 265 mutex_unlock(&oxfw->mutex); pcm_playback_hw_params() 277 mutex_lock(&oxfw->mutex); pcm_capture_hw_free() 284 mutex_unlock(&oxfw->mutex); pcm_capture_hw_free() 292 mutex_lock(&oxfw->mutex); pcm_playback_hw_free() 299 mutex_unlock(&oxfw->mutex); pcm_playback_hw_free() 310 mutex_lock(&oxfw->mutex); pcm_capture_prepare() 313 mutex_unlock(&oxfw->mutex); pcm_capture_prepare() 327 mutex_lock(&oxfw->mutex); pcm_playback_prepare() 330 mutex_unlock(&oxfw->mutex); pcm_playback_prepare()
|
/linux-4.4.14/drivers/net/wireless/ti/wlcore/ |
H A D | sysfs.c | 36 mutex_lock(&wl->mutex); wl1271_sysfs_show_bt_coex_state() 39 mutex_unlock(&wl->mutex); wl1271_sysfs_show_bt_coex_state() 59 mutex_lock(&wl->mutex); wl1271_sysfs_store_bt_coex_state() 79 mutex_unlock(&wl->mutex); wl1271_sysfs_store_bt_coex_state() 96 mutex_lock(&wl->mutex); wl1271_sysfs_show_hw_pg_ver() 101 mutex_unlock(&wl->mutex); wl1271_sysfs_show_hw_pg_ver() 118 ret = mutex_lock_interruptible(&wl->mutex); wl1271_sysfs_read_fwlog() 135 mutex_unlock(&wl->mutex); wl1271_sysfs_read_fwlog() 143 ret = mutex_lock_interruptible(&wl->mutex); wl1271_sysfs_read_fwlog() 150 mutex_unlock(&wl->mutex); wl1271_sysfs_read_fwlog() 162 mutex_unlock(&wl->mutex); wl1271_sysfs_read_fwlog()
|
H A D | vendor_cmd.c | 51 mutex_lock(&wl->mutex); wlcore_vendor_cmd_smart_config_start() 67 mutex_unlock(&wl->mutex); wlcore_vendor_cmd_smart_config_start() 83 mutex_lock(&wl->mutex); wlcore_vendor_cmd_smart_config_stop() 98 mutex_unlock(&wl->mutex); wlcore_vendor_cmd_smart_config_stop() 127 mutex_lock(&wl->mutex); wlcore_vendor_cmd_smart_config_set_group_key() 145 mutex_unlock(&wl->mutex); wlcore_vendor_cmd_smart_config_set_group_key()
|
H A D | testmode.c | 93 mutex_lock(&wl->mutex); wl1271_tm_cmd_test() 146 mutex_unlock(&wl->mutex); wl1271_tm_cmd_test() 165 mutex_lock(&wl->mutex); wl1271_tm_cmd_interrogate() 210 mutex_unlock(&wl->mutex); wl1271_tm_cmd_interrogate() 235 mutex_lock(&wl->mutex); wl1271_tm_cmd_configure() 237 mutex_unlock(&wl->mutex); wl1271_tm_cmd_configure() 257 mutex_lock(&wl->mutex); wl1271_tm_detect_fem() 276 mutex_unlock(&wl->mutex); wl1271_tm_detect_fem() 321 mutex_lock(&wl->mutex); wl12xx_tm_cmd_get_mac() 357 mutex_unlock(&wl->mutex); wl12xx_tm_cmd_get_mac()
|
H A D | debugfs.c | 63 mutex_lock(&wl->mutex); wl1271_debugfs_update_stats() 82 mutex_unlock(&wl->mutex); wl1271_debugfs_update_stats() 170 mutex_lock(&wl->mutex); \ 175 mutex_unlock(&wl->mutex); \ 221 mutex_lock(&wl->mutex); gpio_power_write() 228 mutex_unlock(&wl->mutex); gpio_power_write() 245 mutex_lock(&wl->mutex); start_recovery_write() 247 mutex_unlock(&wl->mutex); start_recovery_write() 288 mutex_lock(&wl->mutex); dynamic_ps_timeout_write() 311 mutex_unlock(&wl->mutex); 352 mutex_lock(&wl->mutex); forced_ps_write() 380 mutex_unlock(&wl->mutex); 418 mutex_lock(&wl->mutex); split_scan_timeout_write() 422 mutex_unlock(&wl->mutex); split_scan_timeout_write() 448 mutex_lock(&wl->mutex); driver_state_read() 519 mutex_unlock(&wl->mutex); 546 mutex_lock(&wl->mutex); vifs_state_read() 629 mutex_unlock(&wl->mutex); 676 mutex_lock(&wl->mutex); dtim_interval_write() 689 mutex_unlock(&wl->mutex); dtim_interval_write() 737 mutex_lock(&wl->mutex); suspend_dtim_interval_write() 746 mutex_unlock(&wl->mutex); suspend_dtim_interval_write() 792 mutex_lock(&wl->mutex); beacon_interval_write() 805 mutex_unlock(&wl->mutex); beacon_interval_write() 837 mutex_lock(&wl->mutex); rx_streaming_interval_write() 851 mutex_unlock(&wl->mutex); 892 mutex_lock(&wl->mutex); rx_streaming_always_write() 906 mutex_unlock(&wl->mutex); 941 mutex_lock(&wl->mutex); beacon_filtering_write() 953 mutex_unlock(&wl->mutex); 1012 mutex_lock(&wl->mutex); sleep_auth_write() 1033 mutex_unlock(&wl->mutex); sleep_auth_write() 1075 mutex_lock(&wl->mutex); dev_mem_read() 1108 mutex_unlock(&wl->mutex); dev_mem_read() 1162 mutex_lock(&wl->mutex); dev_mem_write() 1195 mutex_unlock(&wl->mutex); dev_mem_write()
|
/linux-4.4.14/sound/pci/oxygen/ |
H A D | xonar_dg_mixer.c | 75 mutex_lock(&chip->mutex); output_select_get() 77 mutex_unlock(&chip->mutex); output_select_get() 90 mutex_lock(&chip->mutex); output_select_put() 97 mutex_unlock(&chip->mutex); output_select_put() 121 mutex_lock(&chip->mutex); hp_stereo_volume_get() 126 mutex_unlock(&chip->mutex); hp_stereo_volume_get() 143 mutex_lock(&chip->mutex); hp_stereo_volume_put() 153 mutex_unlock(&chip->mutex); hp_stereo_volume_put() 166 mutex_lock(&chip->mutex); hp_mute_get() 169 mutex_unlock(&chip->mutex); hp_mute_get() 183 mutex_lock(&chip->mutex); hp_mute_put() 189 mutex_unlock(&chip->mutex); hp_mute_put() 225 mutex_lock(&chip->mutex); input_vol_get() 228 mutex_unlock(&chip->mutex); input_vol_get() 246 mutex_lock(&chip->mutex); input_vol_put() 259 mutex_unlock(&chip->mutex); input_vol_put() 295 mutex_lock(&chip->mutex); input_sel_get() 297 mutex_unlock(&chip->mutex); input_sel_get() 312 mutex_lock(&chip->mutex); input_sel_put() 324 mutex_unlock(&chip->mutex); input_sel_put() 354 mutex_lock(&chip->mutex); hpf_put() 363 mutex_unlock(&chip->mutex); hpf_put()
|
H A D | oxygen_mixer.c | 20 #include <linux/mutex.h> 46 mutex_lock(&chip->mutex); dac_volume_get() 49 mutex_unlock(&chip->mutex); dac_volume_get() 61 mutex_lock(&chip->mutex); dac_volume_put() 69 mutex_unlock(&chip->mutex); dac_volume_put() 78 mutex_lock(&chip->mutex); dac_mute_get() 80 mutex_unlock(&chip->mutex); dac_mute_get() 90 mutex_lock(&chip->mutex); dac_mute_put() 96 mutex_unlock(&chip->mutex); dac_mute_put() 129 mutex_lock(&chip->mutex); upmix_get() 131 mutex_unlock(&chip->mutex); upmix_get() 203 mutex_lock(&chip->mutex); upmix_put() 209 mutex_unlock(&chip->mutex); upmix_put() 218 mutex_lock(&chip->mutex); spdif_switch_get() 220 mutex_unlock(&chip->mutex); spdif_switch_get() 294 mutex_lock(&chip->mutex); spdif_switch_put() 302 mutex_unlock(&chip->mutex); spdif_switch_put() 351 mutex_lock(&chip->mutex); spdif_default_get() 353 mutex_unlock(&chip->mutex); spdif_default_get() 365 mutex_lock(&chip->mutex); spdif_default_put() 372 mutex_unlock(&chip->mutex); spdif_default_put() 391 mutex_lock(&chip->mutex); spdif_pcm_get() 393 mutex_unlock(&chip->mutex); spdif_pcm_get() 405 mutex_lock(&chip->mutex); spdif_pcm_put() 412 mutex_unlock(&chip->mutex); spdif_pcm_put() 526 mutex_lock(&chip->mutex); ac97_switch_get() 528 mutex_unlock(&chip->mutex); ac97_switch_get() 565 mutex_lock(&chip->mutex); ac97_switch_put() 594 mutex_unlock(&chip->mutex); ac97_switch_put() 619 mutex_lock(&chip->mutex); ac97_volume_get() 621 mutex_unlock(&chip->mutex); ac97_volume_get() 641 mutex_lock(&chip->mutex); ac97_volume_put() 654 mutex_unlock(&chip->mutex); ac97_volume_put() 671 mutex_lock(&chip->mutex); mic_fmic_source_get() 674 mutex_unlock(&chip->mutex); mic_fmic_source_get() 685 mutex_lock(&chip->mutex); mic_fmic_source_put() 694 mutex_unlock(&chip->mutex); mic_fmic_source_put() 714 mutex_lock(&chip->mutex); ac97_fp_rec_volume_get() 716 mutex_unlock(&chip->mutex); ac97_fp_rec_volume_get() 729 mutex_lock(&chip->mutex); ac97_fp_rec_volume_put() 737 mutex_unlock(&chip->mutex); ac97_fp_rec_volume_put()
|
/linux-4.4.14/drivers/net/wireless/zd1211rw/ |
H A D | zd_chip.c | 39 mutex_init(&chip->mutex); zd_chip_init() 46 ZD_ASSERT(!mutex_is_locked(&chip->mutex)); zd_chip_clear() 49 mutex_destroy(&chip->mutex); zd_chip_clear() 154 ZD_ASSERT(mutex_is_locked(&chip->mutex)); _zd_iowrite32v_async_locked() 203 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd_iowrite16a_locked() 272 mutex_lock(&chip->mutex); zd_ioread16() 274 mutex_unlock(&chip->mutex); zd_ioread16() 282 mutex_lock(&chip->mutex); zd_ioread32() 284 mutex_unlock(&chip->mutex); zd_ioread32() 292 mutex_lock(&chip->mutex); zd_iowrite16() 294 mutex_unlock(&chip->mutex); zd_iowrite16() 302 mutex_lock(&chip->mutex); zd_iowrite32() 304 mutex_unlock(&chip->mutex); zd_iowrite32() 313 mutex_lock(&chip->mutex); zd_ioread32v() 315 mutex_unlock(&chip->mutex); zd_ioread32v() 324 mutex_lock(&chip->mutex); zd_iowrite32a() 326 mutex_unlock(&chip->mutex); zd_iowrite32a() 335 ZD_ASSERT(mutex_is_locked(&chip->mutex)); read_pod() 395 mutex_lock(&chip->mutex); zd_write_mac_addr_common() 397 mutex_unlock(&chip->mutex); zd_write_mac_addr_common() 429 mutex_lock(&chip->mutex); zd_read_regdomain() 431 mutex_unlock(&chip->mutex); zd_read_regdomain() 448 ZD_ASSERT(mutex_is_locked(&chip->mutex)); read_values() 523 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd_chip_lock_phy_regs() 543 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd_chip_unlock_phy_regs() 583 ZD_ASSERT(mutex_is_locked(&chip->mutex)); patch_6m_band_edge() 787 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd1211_hw_init_hmac() 806 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd1211b_hw_init_hmac() 836 ZD_ASSERT(mutex_is_locked(&chip->mutex)); hw_init_hmac() 901 ZD_ASSERT(mutex_is_locked(&chip->mutex)); set_beacon_interval() 937 mutex_lock(&chip->mutex); zd_set_beacon_interval() 939 mutex_unlock(&chip->mutex); zd_set_beacon_interval() 948 ZD_ASSERT(mutex_is_locked(&chip->mutex)); hw_init() 1046 ZD_ASSERT(mutex_is_locked(&chip->mutex)); set_mandatory_rates() 1082 mutex_lock(&chip->mutex); zd_chip_enable_hwint() 1084 mutex_unlock(&chip->mutex); zd_chip_enable_hwint() 1097 mutex_lock(&chip->mutex); zd_chip_disable_hwint() 1099 mutex_unlock(&chip->mutex); zd_chip_disable_hwint() 1107 ZD_ASSERT(mutex_is_locked(&chip->mutex)); read_fw_regs_offset() 1133 mutex_lock(&chip->mutex); zd_chip_init_hw() 1195 mutex_unlock(&chip->mutex); zd_chip_init_hw() 1266 ZD_ASSERT(mutex_is_locked(&chip->mutex)); patch_cck_gain() 1278 mutex_lock(&chip->mutex); zd_chip_set_channel() 1300 mutex_unlock(&chip->mutex); zd_chip_set_channel() 1308 mutex_lock(&chip->mutex); zd_chip_get_channel() 1310 mutex_unlock(&chip->mutex); zd_chip_get_channel() 1329 mutex_lock(&chip->mutex); zd_chip_control_leds() 1367 mutex_unlock(&chip->mutex); zd_chip_control_leds() 1378 mutex_lock(&chip->mutex); zd_chip_set_basic_rates() 1380 mutex_unlock(&chip->mutex); zd_chip_set_basic_rates() 1428 mutex_lock(&chip->mutex); zd_chip_switch_radio_on() 1430 mutex_unlock(&chip->mutex); zd_chip_switch_radio_on() 1438 mutex_lock(&chip->mutex); zd_chip_switch_radio_off() 1440 mutex_unlock(&chip->mutex); zd_chip_switch_radio_off() 1448 mutex_lock(&chip->mutex); zd_chip_enable_int() 1450 mutex_unlock(&chip->mutex); zd_chip_enable_int() 1456 mutex_lock(&chip->mutex); zd_chip_disable_int() 1458 mutex_unlock(&chip->mutex); zd_chip_disable_int() 1468 mutex_lock(&chip->mutex); zd_chip_enable_rxtx() 1472 mutex_unlock(&chip->mutex); zd_chip_enable_rxtx() 1478 mutex_lock(&chip->mutex); zd_chip_disable_rxtx() 1482 mutex_unlock(&chip->mutex); zd_chip_disable_rxtx() 1511 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd_rfwrite_cr_locked() 1549 mutex_lock(&chip->mutex); zd_chip_get_tsf() 1552 mutex_unlock(&chip->mutex); zd_chip_get_tsf()
|
H A D | zd_rf.c | 76 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd_rf_init_hw() 123 ZD_ASSERT(mutex_is_locked(&zd_rf_to_chip(rf)->mutex)); zd_rf_set_channel() 141 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd_switch_radio_on() 158 ZD_ASSERT(mutex_is_locked(&chip->mutex)); zd_switch_radio_off()
|
/linux-4.4.14/fs/ncpfs/ |
H A D | ncp_fs_i.h | 20 struct mutex open_mutex;
|
/linux-4.4.14/mm/ |
H A D | cma.h | 9 struct mutex lock;
|
/linux-4.4.14/net/netlink/ |
H A D | af_netlink.h | 41 struct mutex *cb_mutex; 42 struct mutex cb_def_mutex; 48 struct mutex pg_vec_lock; 78 struct mutex *cb_mutex;
|
/linux-4.4.14/sound/aoa/core/ |
H A D | gpio-pmf.c | 78 mutex_lock(¬if->mutex); pmf_handle_notify() 81 mutex_unlock(¬if->mutex); pmf_handle_notify() 91 mutex_init(&rt->headphone_notify.mutex); pmf_gpio_init() 92 mutex_init(&rt->line_in_notify.mutex); pmf_gpio_init() 93 mutex_init(&rt->line_out_notify.mutex); pmf_gpio_init() 114 mutex_destroy(&rt->headphone_notify.mutex); pmf_gpio_exit() 115 mutex_destroy(&rt->line_in_notify.mutex); pmf_gpio_exit() 116 mutex_destroy(&rt->line_out_notify.mutex); pmf_gpio_exit() 158 mutex_lock(¬if->mutex); pmf_set_notify() 205 mutex_unlock(¬if->mutex); pmf_set_notify()
|
/linux-4.4.14/drivers/media/dvb-core/ |
H A D | dmxdev.h | 34 #include <linux/mutex.h> 85 struct mutex mutex; member in struct:dmxdev_filter 111 struct mutex mutex; member in struct:dmxdev
|
H A D | dvb_demux.c | 677 if (mutex_lock_interruptible(&demux->mutex)) dmx_ts_feed_set() 682 mutex_unlock(&demux->mutex); dmx_ts_feed_set() 688 mutex_unlock(&demux->mutex); dmx_ts_feed_set() 710 mutex_unlock(&demux->mutex); dmx_ts_feed_set() 717 mutex_unlock(&demux->mutex); dmx_ts_feed_set() 728 if (mutex_lock_interruptible(&demux->mutex)) dmx_ts_feed_start_filtering() 732 mutex_unlock(&demux->mutex); dmx_ts_feed_start_filtering() 737 mutex_unlock(&demux->mutex); dmx_ts_feed_start_filtering() 742 mutex_unlock(&demux->mutex); dmx_ts_feed_start_filtering() 750 mutex_unlock(&demux->mutex); dmx_ts_feed_start_filtering() 761 mutex_lock(&demux->mutex); dmx_ts_feed_stop_filtering() 764 mutex_unlock(&demux->mutex); dmx_ts_feed_stop_filtering() 769 mutex_unlock(&demux->mutex); dmx_ts_feed_stop_filtering() 779 mutex_unlock(&demux->mutex); dmx_ts_feed_stop_filtering() 791 if (mutex_lock_interruptible(&demux->mutex)) dvbdmx_allocate_ts_feed() 795 mutex_unlock(&demux->mutex); dvbdmx_allocate_ts_feed() 816 mutex_unlock(&demux->mutex); dvbdmx_allocate_ts_feed() 824 mutex_unlock(&demux->mutex); dvbdmx_allocate_ts_feed() 835 mutex_lock(&demux->mutex); dvbdmx_release_ts_feed() 838 mutex_unlock(&demux->mutex); dvbdmx_release_ts_feed() 856 mutex_unlock(&demux->mutex); dvbdmx_release_ts_feed() 871 if (mutex_lock_interruptible(&dvbdemux->mutex)) dmx_section_feed_allocate_filter() 876 mutex_unlock(&dvbdemux->mutex); dmx_section_feed_allocate_filter() 891 mutex_unlock(&dvbdemux->mutex); dmx_section_feed_allocate_filter() 905 if (mutex_lock_interruptible(&dvbdmx->mutex)) dmx_section_feed_set() 919 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_set() 925 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_set() 957 if (mutex_lock_interruptible(&dvbdmx->mutex)) dmx_section_feed_start_filtering() 961 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_start_filtering() 966 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_start_filtering() 976 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_start_filtering() 983 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_start_filtering() 992 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_start_filtering() 1002 mutex_lock(&dvbdmx->mutex); dmx_section_feed_stop_filtering() 1005 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_stop_filtering() 1016 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_stop_filtering() 1027 mutex_lock(&dvbdmx->mutex); dmx_section_feed_release_filter() 1030 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_release_filter() 1035 /* release dvbdmx->mutex as far as it is dmx_section_feed_release_filter() 1037 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_release_filter() 1039 mutex_lock(&dvbdmx->mutex); dmx_section_feed_release_filter() 1055 mutex_unlock(&dvbdmx->mutex); dmx_section_feed_release_filter() 1066 if (mutex_lock_interruptible(&dvbdmx->mutex)) dvbdmx_allocate_section_feed() 1070 mutex_unlock(&dvbdmx->mutex); dvbdmx_allocate_section_feed() 1095 mutex_unlock(&dvbdmx->mutex); dvbdmx_allocate_section_feed() 1105 mutex_lock(&dvbdmx->mutex); dvbdmx_release_section_feed() 1108 mutex_unlock(&dvbdmx->mutex); dvbdmx_release_section_feed() 1121 mutex_unlock(&dvbdmx->mutex); dvbdmx_release_section_feed() 1163 if (mutex_lock_interruptible(&dvbdemux->mutex)) { dvbdmx_write() 1169 mutex_unlock(&dvbdemux->mutex); dvbdmx_write() 1221 mutex_lock(&dvbdemux->mutex); dvbdmx_connect_frontend() 1224 mutex_unlock(&dvbdemux->mutex); dvbdmx_connect_frontend() 1232 mutex_lock(&dvbdemux->mutex); dvbdmx_disconnect_frontend() 1235 mutex_unlock(&dvbdemux->mutex); dvbdmx_disconnect_frontend() 1314 mutex_init(&dvbdemux->mutex); dvb_dmx_init()
|
H A D | dmxdev.c | 131 if (mutex_lock_interruptible(&dmxdev->mutex)) dvb_dvr_open() 135 mutex_unlock(&dmxdev->mutex); dvb_dvr_open() 141 mutex_unlock(&dmxdev->mutex); dvb_dvr_open() 149 mutex_unlock(&dmxdev->mutex); dvb_dvr_open() 154 mutex_unlock(&dmxdev->mutex); dvb_dvr_open() 165 mutex_unlock(&dmxdev->mutex); dvb_dvr_open() 172 mutex_unlock(&dmxdev->mutex); dvb_dvr_open() 179 mutex_unlock(&dmxdev->mutex); dvb_dvr_open() 188 mutex_lock(&dmxdev->mutex); dvb_dvr_release() 209 mutex_unlock(&dmxdev->mutex); dvb_dvr_release() 212 mutex_unlock(&dmxdev->mutex); dvb_dvr_release() 228 if (mutex_lock_interruptible(&dmxdev->mutex)) dvb_dvr_write() 232 mutex_unlock(&dmxdev->mutex); dvb_dvr_write() 236 mutex_unlock(&dmxdev->mutex); dvb_dvr_write() 734 if (mutex_lock_interruptible(&dmxdev->mutex)) dvb_demux_open() 742 mutex_unlock(&dmxdev->mutex); dvb_demux_open() 747 mutex_init(&dmxdevfilter->mutex); dvb_demux_open() 757 mutex_unlock(&dmxdev->mutex); dvb_demux_open() 764 mutex_lock(&dmxdev->mutex); dvb_dmxdev_filter_free() 765 mutex_lock(&dmxdevfilter->mutex); dvb_dmxdev_filter_free() 781 mutex_unlock(&dmxdevfilter->mutex); dvb_dmxdev_filter_free() 782 mutex_unlock(&dmxdev->mutex); dvb_dmxdev_filter_free() 942 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) dvb_demux_read() 952 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_read() 964 if (mutex_lock_interruptible(&dmxdev->mutex)) dvb_demux_do_ioctl() 969 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) { dvb_demux_do_ioctl() 970 mutex_unlock(&dmxdev->mutex); dvb_demux_do_ioctl() 977 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_do_ioctl() 981 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) { dvb_demux_do_ioctl() 982 mutex_unlock(&dmxdev->mutex); dvb_demux_do_ioctl() 986 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_do_ioctl() 990 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) { dvb_demux_do_ioctl() 991 mutex_unlock(&dmxdev->mutex); dvb_demux_do_ioctl() 995 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_do_ioctl() 999 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) { dvb_demux_do_ioctl() 1000 mutex_unlock(&dmxdev->mutex); dvb_demux_do_ioctl() 1004 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_do_ioctl() 1008 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) { dvb_demux_do_ioctl() 1009 mutex_unlock(&dmxdev->mutex); dvb_demux_do_ioctl() 1013 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_do_ioctl() 1056 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) { dvb_demux_do_ioctl() 1061 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_do_ioctl() 1065 if (mutex_lock_interruptible(&dmxdevfilter->mutex)) { dvb_demux_do_ioctl() 1070 mutex_unlock(&dmxdevfilter->mutex); dvb_demux_do_ioctl() 1077 mutex_unlock(&dmxdev->mutex); dvb_demux_do_ioctl() 1120 mutex_lock(&dmxdev->mutex); dvb_demux_release() 1123 mutex_unlock(&dmxdev->mutex); dvb_demux_release() 1126 mutex_unlock(&dmxdev->mutex); dvb_demux_release() 1159 if (mutex_lock_interruptible(&dmxdev->mutex)) dvb_dvr_do_ioctl() 1171 mutex_unlock(&dmxdev->mutex); dvb_dvr_do_ioctl() 1237 mutex_init(&dmxdev->mutex); dvb_dmxdev_init()
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
H A D | gang.c | 37 mutex_init(&gang->mutex); alloc_spu_gang() 67 mutex_lock(&gang->mutex); spu_gang_add_ctx() 71 mutex_unlock(&gang->mutex); spu_gang_add_ctx() 76 mutex_lock(&gang->mutex); spu_gang_remove_ctx() 84 mutex_unlock(&gang->mutex); spu_gang_remove_ctx()
|
/linux-4.4.14/arch/sh/include/asm/ |
H A D | mutex-llsc.h | 2 * arch/sh/include/asm/mutex-llsc.h 4 * SH-4A optimized mutex locking primitives 6 * Please look into asm-generic/mutex-xchg.h for a formal definition. 12 * Attempting to lock a mutex on SH4A is done like in ARMv6+ architecure. 79 * then the mutex remains locked.
|
/linux-4.4.14/drivers/staging/media/bcm2048/ |
H A D | radio-bcm2048.c | 46 #include <linux/mutex.h> 285 struct mutex mutex; member in struct:bcm2048_device 423 mutex_lock(&bdev->mutex); bcm2048_set_power_state() 445 mutex_unlock(&bdev->mutex); bcm2048_set_power_state() 454 mutex_lock(&bdev->mutex); bcm2048_get_power_state() 458 mutex_unlock(&bdev->mutex); bcm2048_get_power_state() 510 mutex_lock(&bdev->mutex); bcm2048_set_rds() 514 mutex_unlock(&bdev->mutex); bcm2048_set_rds() 522 mutex_lock(&bdev->mutex); bcm2048_get_rds() 526 mutex_unlock(&bdev->mutex); bcm2048_get_rds() 540 mutex_lock(&bdev->mutex); bcm2048_set_fm_automatic_stereo_mono() 550 mutex_unlock(&bdev->mutex); bcm2048_set_fm_automatic_stereo_mono() 559 mutex_lock(&bdev->mutex); bcm2048_set_fm_hi_lo_injection() 569 mutex_unlock(&bdev->mutex); bcm2048_set_fm_hi_lo_injection() 578 mutex_lock(&bdev->mutex); bcm2048_get_fm_hi_lo_injection() 582 mutex_unlock(&bdev->mutex); bcm2048_get_fm_hi_lo_injection() 600 mutex_lock(&bdev->mutex); bcm2048_set_fm_frequency() 609 mutex_unlock(&bdev->mutex); bcm2048_set_fm_frequency() 618 mutex_lock(&bdev->mutex); bcm2048_get_fm_frequency() 623 mutex_unlock(&bdev->mutex); bcm2048_get_fm_frequency() 645 mutex_lock(&bdev->mutex); bcm2048_set_fm_af_frequency() 654 mutex_unlock(&bdev->mutex); bcm2048_set_fm_af_frequency() 663 mutex_lock(&bdev->mutex); bcm2048_get_fm_af_frequency() 668 mutex_unlock(&bdev->mutex); bcm2048_get_fm_af_frequency() 689 mutex_lock(&bdev->mutex); bcm2048_set_fm_deemphasis() 700 mutex_unlock(&bdev->mutex); bcm2048_set_fm_deemphasis() 710 mutex_lock(&bdev->mutex); bcm2048_get_fm_deemphasis() 714 mutex_unlock(&bdev->mutex); bcm2048_get_fm_deemphasis() 734 mutex_lock(&bdev->mutex); bcm2048_set_region() 745 mutex_unlock(&bdev->mutex); bcm2048_set_region() 748 mutex_unlock(&bdev->mutex); bcm2048_set_region() 772 mutex_lock(&bdev->mutex); bcm2048_get_region() 774 mutex_unlock(&bdev->mutex); bcm2048_get_region() 783 mutex_lock(&bdev->mutex); bcm2048_set_mute() 797 mutex_unlock(&bdev->mutex); bcm2048_set_mute() 806 mutex_lock(&bdev->mutex); bcm2048_get_mute() 817 mutex_unlock(&bdev->mutex); bcm2048_get_mute() 825 mutex_lock(&bdev->mutex); bcm2048_set_audio_route() 835 mutex_unlock(&bdev->mutex); bcm2048_set_audio_route() 844 mutex_lock(&bdev->mutex); bcm2048_get_audio_route() 848 mutex_unlock(&bdev->mutex); bcm2048_get_audio_route() 861 mutex_lock(&bdev->mutex); bcm2048_set_dac_output() 870 mutex_unlock(&bdev->mutex); bcm2048_set_dac_output() 879 mutex_lock(&bdev->mutex); bcm2048_get_dac_output() 883 mutex_unlock(&bdev->mutex); bcm2048_get_dac_output() 897 mutex_lock(&bdev->mutex); bcm2048_set_fm_search_rssi_threshold() 906 mutex_unlock(&bdev->mutex); bcm2048_set_fm_search_rssi_threshold() 915 mutex_lock(&bdev->mutex); bcm2048_get_fm_search_rssi_threshold() 919 mutex_unlock(&bdev->mutex); bcm2048_get_fm_search_rssi_threshold() 932 mutex_lock(&bdev->mutex); bcm2048_set_fm_search_mode_direction() 942 mutex_unlock(&bdev->mutex); bcm2048_set_fm_search_mode_direction() 951 mutex_lock(&bdev->mutex); bcm2048_get_fm_search_mode_direction() 955 mutex_unlock(&bdev->mutex); bcm2048_get_fm_search_mode_direction() 974 mutex_lock(&bdev->mutex); bcm2048_set_fm_search_tune_mode() 980 * provide a race to the mutex from the workqueue handler if RDS bcm2048_set_fm_search_tune_mode() 1014 mutex_unlock(&bdev->mutex); bcm2048_set_fm_search_tune_mode() 1024 mutex_lock(&bdev->mutex); bcm2048_get_fm_search_tune_mode() 1029 mutex_unlock(&bdev->mutex); bcm2048_get_fm_search_tune_mode() 1041 mutex_lock(&bdev->mutex); bcm2048_set_rds_b_block_mask() 1048 mutex_unlock(&bdev->mutex); bcm2048_set_rds_b_block_mask() 1057 mutex_lock(&bdev->mutex); bcm2048_get_rds_b_block_mask() 1064 mutex_unlock(&bdev->mutex); bcm2048_get_rds_b_block_mask() 1077 mutex_lock(&bdev->mutex); bcm2048_set_rds_b_block_match() 1084 mutex_unlock(&bdev->mutex); bcm2048_set_rds_b_block_match() 1093 mutex_lock(&bdev->mutex); bcm2048_get_rds_b_block_match() 1100 mutex_unlock(&bdev->mutex); bcm2048_get_rds_b_block_match() 1112 mutex_lock(&bdev->mutex); bcm2048_set_rds_pi_mask() 1119 mutex_unlock(&bdev->mutex); bcm2048_set_rds_pi_mask() 1128 mutex_lock(&bdev->mutex); bcm2048_get_rds_pi_mask() 1135 mutex_unlock(&bdev->mutex); bcm2048_get_rds_pi_mask() 1147 mutex_lock(&bdev->mutex); bcm2048_set_rds_pi_match() 1154 mutex_unlock(&bdev->mutex); bcm2048_set_rds_pi_match() 1163 mutex_lock(&bdev->mutex); bcm2048_get_rds_pi_match() 1170 mutex_unlock(&bdev->mutex); bcm2048_get_rds_pi_match() 1182 mutex_lock(&bdev->mutex); bcm2048_set_fm_rds_mask() 1189 mutex_unlock(&bdev->mutex); bcm2048_set_fm_rds_mask() 1198 mutex_lock(&bdev->mutex); bcm2048_get_fm_rds_mask() 1203 mutex_unlock(&bdev->mutex); bcm2048_get_fm_rds_mask() 1216 mutex_lock(&bdev->mutex); bcm2048_get_fm_rds_flags() 1221 mutex_unlock(&bdev->mutex); bcm2048_get_fm_rds_flags() 1244 mutex_lock(&bdev->mutex); bcm2048_set_fm_best_tune_mode() 1256 mutex_unlock(&bdev->mutex); bcm2048_set_fm_best_tune_mode() 1265 mutex_lock(&bdev->mutex); bcm2048_get_fm_best_tune_mode() 1270 mutex_unlock(&bdev->mutex); bcm2048_get_fm_best_tune_mode() 1283 mutex_lock(&bdev->mutex); bcm2048_get_fm_carrier_error() 1285 mutex_unlock(&bdev->mutex); bcm2048_get_fm_carrier_error() 1298 mutex_lock(&bdev->mutex); bcm2048_get_fm_rssi() 1300 mutex_unlock(&bdev->mutex); bcm2048_get_fm_rssi() 1312 mutex_lock(&bdev->mutex); bcm2048_set_rds_wline() 1319 mutex_unlock(&bdev->mutex); bcm2048_set_rds_wline() 1328 mutex_lock(&bdev->mutex); bcm2048_get_rds_wline() 1332 mutex_unlock(&bdev->mutex); bcm2048_get_rds_wline() 1347 mutex_lock(&bdev->mutex); bcm2048_checkrev() 1351 mutex_unlock(&bdev->mutex); bcm2048_checkrev() 1367 mutex_lock(&bdev->mutex); bcm2048_get_rds_rt() 1408 mutex_unlock(&bdev->mutex); bcm2048_get_rds_rt() 1417 mutex_lock(&bdev->mutex); bcm2048_get_rds_ps() 1441 mutex_unlock(&bdev->mutex); bcm2048_get_rds_ps() 1764 mutex_lock(&bdev->mutex); bcm2048_rds_fifo_receive() 1770 mutex_unlock(&bdev->mutex); bcm2048_rds_fifo_receive() 1780 mutex_unlock(&bdev->mutex); bcm2048_rds_fifo_receive() 1790 mutex_lock(&bdev->mutex); bcm2048_get_rds_data() 1812 mutex_unlock(&bdev->mutex); bcm2048_get_rds_data() 2238 mutex_lock(&bdev->mutex); bcm2048_fops_read() 2265 mutex_unlock(&bdev->mutex); bcm2048_fops_read() 2610 mutex_init(&bdev->mutex); bcm2048_i2c_driver_probe()
|
/linux-4.4.14/drivers/pwm/ |
H A D | pwm-twl-led.c | 61 struct mutex mutex; member in struct:twl_pwmled_chip 109 mutex_lock(&twl->mutex); twl4030_pwmled_enable() 123 mutex_unlock(&twl->mutex); twl4030_pwmled_enable() 134 mutex_lock(&twl->mutex); twl4030_pwmled_disable() 148 mutex_unlock(&twl->mutex); twl4030_pwmled_disable() 174 mutex_lock(&twl->mutex); twl6030_pwmled_enable() 190 mutex_unlock(&twl->mutex); twl6030_pwmled_enable() 201 mutex_lock(&twl->mutex); twl6030_pwmled_disable() 217 mutex_unlock(&twl->mutex); twl6030_pwmled_disable() 226 mutex_lock(&twl->mutex); twl6030_pwmled_request() 242 mutex_unlock(&twl->mutex); twl6030_pwmled_request() 252 mutex_lock(&twl->mutex); twl6030_pwmled_free() 268 mutex_unlock(&twl->mutex); twl6030_pwmled_free() 308 mutex_init(&twl->mutex); twl_pwmled_probe()
|
H A D | pwm-twl.c | 61 struct mutex mutex; member in struct:twl_pwm_chip 111 mutex_lock(&twl->mutex); twl4030_pwm_enable() 131 mutex_unlock(&twl->mutex); twl4030_pwm_enable() 141 mutex_lock(&twl->mutex); twl4030_pwm_disable() 161 mutex_unlock(&twl->mutex); twl4030_pwm_disable() 178 mutex_lock(&twl->mutex); twl4030_pwm_request() 198 mutex_unlock(&twl->mutex); twl4030_pwm_request() 213 mutex_lock(&twl->mutex); twl4030_pwm_free() 229 mutex_unlock(&twl->mutex); twl4030_pwm_free() 238 mutex_lock(&twl->mutex); twl6030_pwm_enable() 251 mutex_unlock(&twl->mutex); twl6030_pwm_enable() 261 mutex_lock(&twl->mutex); twl6030_pwm_disable() 274 mutex_unlock(&twl->mutex); twl6030_pwm_disable() 312 mutex_init(&twl->mutex); twl_pwm_probe()
|
/linux-4.4.14/drivers/gpu/ipu-v3/ |
H A D | ipu-dp.c | 73 struct mutex mutex; member in struct:ipu_dp_priv 94 mutex_lock(&priv->mutex); ipu_dp_set_global_alpha() 117 mutex_unlock(&priv->mutex); ipu_dp_set_global_alpha() 183 mutex_lock(&priv->mutex); ipu_dp_setup_channel() 212 mutex_unlock(&priv->mutex); ipu_dp_setup_channel() 222 mutex_lock(&priv->mutex); ipu_dp_enable() 229 mutex_unlock(&priv->mutex); ipu_dp_enable() 244 mutex_lock(&priv->mutex); ipu_dp_enable_channel() 252 mutex_unlock(&priv->mutex); ipu_dp_enable_channel() 267 mutex_lock(&priv->mutex); ipu_dp_disable_channel() 283 mutex_unlock(&priv->mutex); ipu_dp_disable_channel() 291 mutex_lock(&priv->mutex); ipu_dp_disable() 301 mutex_unlock(&priv->mutex); ipu_dp_disable() 350 mutex_init(&priv->mutex); ipu_dp_init()
|
H A D | ipu-dmfc.c | 119 struct mutex mutex; member in struct:ipu_dmfc_priv 128 mutex_lock(&priv->mutex); ipu_dmfc_enable_channel() 135 mutex_unlock(&priv->mutex); ipu_dmfc_enable_channel() 159 mutex_lock(&priv->mutex); ipu_dmfc_disable_channel() 171 mutex_unlock(&priv->mutex); ipu_dmfc_disable_channel() 274 mutex_lock(&priv->mutex); ipu_dmfc_free_bandwidth() 304 mutex_unlock(&priv->mutex); ipu_dmfc_free_bandwidth() 321 mutex_lock(&priv->mutex); ipu_dmfc_alloc_bandwidth() 347 mutex_unlock(&priv->mutex); ipu_dmfc_alloc_bandwidth() 405 mutex_init(&priv->mutex); ipu_dmfc_init()
|
H A D | ipu-dc.c | 113 struct mutex mutex; member in struct:ipu_dc_priv 245 mutex_lock(&priv->mutex); ipu_dc_enable() 252 mutex_unlock(&priv->mutex); ipu_dc_enable() 317 mutex_lock(&priv->mutex); ipu_dc_disable() 326 mutex_unlock(&priv->mutex); ipu_dc_disable() 365 mutex_lock(&priv->mutex); ipu_dc_get() 368 mutex_unlock(&priv->mutex); ipu_dc_get() 374 mutex_unlock(&priv->mutex); ipu_dc_get() 384 mutex_lock(&priv->mutex); ipu_dc_put() 386 mutex_unlock(&priv->mutex); ipu_dc_put() 402 mutex_init(&priv->mutex); ipu_dc_init()
|
/linux-4.4.14/drivers/mtd/lpddr/ |
H A D | lpddr_cmds.c | 102 mutex_init(&chip->mutex); lpddr_cmdset() 138 mutex_unlock(&chip->mutex); wait_for_ready() 153 mutex_lock(&chip->mutex); wait_for_ready() 160 mutex_unlock(&chip->mutex); wait_for_ready() 163 mutex_lock(&chip->mutex); wait_for_ready() 224 ret = mutex_trylock(&contender->mutex); get_chip() 228 mutex_unlock(&chip->mutex); get_chip() 230 mutex_lock(&chip->mutex); get_chip() 233 mutex_unlock(&contender->mutex); get_chip() 237 mutex_unlock(&contender->mutex); get_chip() 246 mutex_unlock(&contender->mutex); get_chip() 249 mutex_unlock(&contender->mutex); get_chip() 259 mutex_unlock(&chip->mutex); get_chip() 262 mutex_lock(&chip->mutex); get_chip() 326 mutex_unlock(&chip->mutex); chip_ready() 329 mutex_lock(&chip->mutex); chip_ready() 345 mutex_lock(&loaner->mutex); put_chip() 347 mutex_unlock(&chip->mutex); put_chip() 349 mutex_lock(&chip->mutex); put_chip() 350 mutex_unlock(&loaner->mutex); put_chip() 402 mutex_lock(&chip->mutex); do_write_buffer() 405 mutex_unlock(&chip->mutex); do_write_buffer() 466 mutex_unlock(&chip->mutex); do_write_buffer() 478 mutex_lock(&chip->mutex); do_erase_oneblock() 481 mutex_unlock(&chip->mutex); do_erase_oneblock() 493 mutex_unlock(&chip->mutex); do_erase_oneblock() 506 mutex_lock(&chip->mutex); lpddr_read() 509 mutex_unlock(&chip->mutex); lpddr_read() 517 mutex_unlock(&chip->mutex); lpddr_read() 555 mutex_lock(&chip->mutex); lpddr_point() 557 mutex_unlock(&chip->mutex); lpddr_point() 597 mutex_lock(&chip->mutex); lpddr_unpoint() 609 mutex_unlock(&chip->mutex); lpddr_unpoint() 712 mutex_lock(&chip->mutex); do_xxlock() 715 mutex_unlock(&chip->mutex); do_xxlock() 735 mutex_unlock(&chip->mutex); do_xxlock()
|
/linux-4.4.14/drivers/iio/adc/ |
H A D | xilinx-xadc.h | 14 #include <linux/mutex.h> 67 struct mutex mutex; member in struct:xadc 88 lockdep_assert_held(&xadc->mutex); _xadc_read_adc_reg() 95 lockdep_assert_held(&xadc->mutex); _xadc_write_adc_reg() 104 mutex_lock(&xadc->mutex); xadc_read_adc_reg() 106 mutex_unlock(&xadc->mutex); xadc_read_adc_reg() 115 mutex_lock(&xadc->mutex); xadc_write_adc_reg() 117 mutex_unlock(&xadc->mutex); xadc_write_adc_reg()
|
/linux-4.4.14/drivers/input/misc/ |
H A D | regulator-haptic.c | 29 struct mutex mutex; member in struct:regulator_haptic 89 mutex_lock(&haptic->mutex); regulator_haptic_work() 94 mutex_unlock(&haptic->mutex); regulator_haptic_work() 159 mutex_init(&haptic->mutex); regulator_haptic_probe() 213 error = mutex_lock_interruptible(&haptic->mutex); regulator_haptic_suspend() 221 mutex_unlock(&haptic->mutex); regulator_haptic_suspend() 232 mutex_lock(&haptic->mutex); regulator_haptic_resume() 240 mutex_unlock(&haptic->mutex); regulator_haptic_resume()
|
H A D | ad714x.h | 40 struct mutex mutex; member in struct:ad714x_chip
|
H A D | adxl34x.c | 193 struct mutex mutex; /* reentrant protection for struct */ member in struct:adxl34x 201 bool disabled; /* P: mutex */ 202 bool opened; /* P: mutex */ 203 bool suspended; /* P: mutex */ 244 mutex_lock(&ac->mutex); adxl34x_get_triple() 253 mutex_unlock(&ac->mutex); adxl34x_get_triple() 417 mutex_lock(&ac->mutex); adxl34x_suspend() 424 mutex_unlock(&ac->mutex); adxl34x_suspend() 430 mutex_lock(&ac->mutex); adxl34x_resume() 437 mutex_unlock(&ac->mutex); adxl34x_resume() 461 mutex_lock(&ac->mutex); adxl34x_disable_store() 475 mutex_unlock(&ac->mutex); adxl34x_disable_store() 488 mutex_lock(&ac->mutex); adxl34x_calibrate_show() 493 mutex_unlock(&ac->mutex); adxl34x_calibrate_show() 509 mutex_lock(&ac->mutex); adxl34x_calibrate_store() 522 mutex_unlock(&ac->mutex); adxl34x_calibrate_store() 550 mutex_lock(&ac->mutex); adxl34x_rate_store() 557 mutex_unlock(&ac->mutex); adxl34x_rate_store() 585 mutex_lock(&ac->mutex); adxl34x_autosleep_store() 595 mutex_unlock(&ac->mutex); adxl34x_autosleep_store() 609 mutex_lock(&ac->mutex); adxl34x_position_show() 612 mutex_unlock(&ac->mutex); adxl34x_position_show() 635 mutex_lock(&ac->mutex); adxl34x_write_store() 637 mutex_unlock(&ac->mutex); adxl34x_write_store() 665 mutex_lock(&ac->mutex); adxl34x_input_open() 672 mutex_unlock(&ac->mutex); adxl34x_input_open() 681 mutex_lock(&ac->mutex); adxl34x_input_close() 688 mutex_unlock(&ac->mutex); adxl34x_input_close() 731 mutex_init(&ac->mutex); adxl34x_probe()
|
H A D | cma3000_d0x.c | 79 struct mutex mutex; member in struct:cma3000_accl_data 231 mutex_lock(&data->mutex); cma3000_open() 238 mutex_unlock(&data->mutex); cma3000_open() 247 mutex_lock(&data->mutex); cma3000_close() 254 mutex_unlock(&data->mutex); cma3000_close() 259 mutex_lock(&data->mutex); cma3000_suspend() 266 mutex_unlock(&data->mutex); cma3000_suspend() 273 mutex_lock(&data->mutex); cma3000_resume() 280 mutex_unlock(&data->mutex); cma3000_resume() 318 mutex_init(&data->mutex); cma3000_init()
|
/linux-4.4.14/drivers/tty/ |
H A D | tty_audit.c | 18 struct mutex mutex; /* Protects all data below */ member in struct:tty_audit_buf 37 mutex_init(&buf->mutex); tty_audit_buf_alloc() 92 * the current task. @buf->mutex must be locked. 121 mutex_lock(&buf->mutex); tty_audit_exit() 123 mutex_unlock(&buf->mutex); tty_audit_exit() 158 mutex_lock(&buf->mutex); tty_audit_tiocsti() 161 mutex_unlock(&buf->mutex); tty_audit_tiocsti() 204 mutex_lock(&buf->mutex); tty_audit_push_current() 206 mutex_unlock(&buf->mutex); tty_audit_push_current() 293 mutex_lock(&buf->mutex); tty_audit_add_data() 316 mutex_unlock(&buf->mutex); tty_audit_add_data() 345 mutex_lock(&buf->mutex); tty_audit_push() 348 mutex_unlock(&buf->mutex); tty_audit_push()
|
H A D | tty_mutex.c | 7 /* Legacy tty mutex glue */ 10 * Getting the big tty mutex.
|
/linux-4.4.14/drivers/staging/fsl-mc/include/ |
H A D | mc-private.h | 15 #include <linux/mutex.h> 63 * @mutex: mutex to serialize access to the pool's free list 71 struct mutex mutex; /* serializes access to free_list */ member in struct:fsl_mc_resource_pool 87 struct mutex scan_mutex; /* serializes bus scanning */
|
/linux-4.4.14/drivers/uwb/ |
H A D | lc-dev.c | 51 if (mutex_lock_interruptible(&rc->notifs_chain.mutex)) uwb_notifs_register() 54 mutex_unlock(&rc->notifs_chain.mutex); uwb_notifs_register() 64 if (mutex_lock_interruptible(&rc->notifs_chain.mutex)) uwb_notifs_deregister() 67 mutex_unlock(&rc->notifs_chain.mutex); uwb_notifs_deregister() 81 if (mutex_lock_interruptible(&rc->notifs_chain.mutex)) uwb_notify() 88 mutex_unlock(&rc->notifs_chain.mutex); uwb_notify() 110 mutex_init(&uwb_dev->mutex); uwb_dev_init() 155 mutex_lock(&bce->mutex); uwb_dev_BPST_show() 159 mutex_unlock(&bce->mutex); uwb_dev_BPST_show() 190 mutex_lock(&bce->mutex); uwb_dev_LQE_show() 192 mutex_unlock(&bce->mutex); uwb_dev_LQE_show() 204 mutex_lock(&bce->mutex); uwb_dev_LQE_store() 206 mutex_unlock(&bce->mutex); uwb_dev_LQE_store() 218 mutex_lock(&bce->mutex); uwb_dev_RSSI_show() 220 mutex_unlock(&bce->mutex); uwb_dev_RSSI_show() 232 mutex_lock(&bce->mutex); uwb_dev_RSSI_store() 234 mutex_unlock(&bce->mutex); uwb_dev_RSSI_store() 302 mutex_lock(&uwb_dev->mutex); uwb_dev_add() 309 mutex_unlock(&uwb_dev->mutex); uwb_dev_add() 316 mutex_lock(&uwb_dev->mutex); uwb_dev_rm() 318 mutex_unlock(&uwb_dev->mutex); uwb_dev_rm() 384 * NOTE: uwb_bcn_cache.mutex is held! 408 * NOTE: uwb_beca.mutex is held, bce->mutex is held
|
H A D | radio.c | 104 mutex_lock(&rc->uwb_dev.mutex); uwb_radio_start() 112 mutex_unlock(&rc->uwb_dev.mutex); uwb_radio_start() 127 mutex_lock(&rc->uwb_dev.mutex); uwb_radio_stop() 135 mutex_unlock(&rc->uwb_dev.mutex); uwb_radio_stop() 149 mutex_lock(&rc->uwb_dev.mutex); uwb_radio_force_channel() 154 mutex_unlock(&rc->uwb_dev.mutex); uwb_radio_force_channel() 181 mutex_lock(&rc->uwb_dev.mutex); uwb_radio_reset_state() 194 mutex_unlock(&rc->uwb_dev.mutex); uwb_radio_reset_state()
|
H A D | pal.c | 63 mutex_lock(&rc->uwb_dev.mutex); uwb_pal_register() 65 mutex_unlock(&rc->uwb_dev.mutex); uwb_pal_register() 113 mutex_lock(&rc->uwb_dev.mutex); uwb_pal_unregister() 115 mutex_unlock(&rc->uwb_dev.mutex); uwb_pal_unregister()
|
/linux-4.4.14/drivers/isdn/gigaset/ |
H A D | interface.c | 127 if (mutex_lock_interruptible(&cs->mutex)) { if_open() 140 mutex_unlock(&cs->mutex); if_open() 155 mutex_lock(&cs->mutex); if_close() 164 mutex_unlock(&cs->mutex); if_close() 180 if (mutex_lock_interruptible(&cs->mutex)) if_ioctl() 231 mutex_unlock(&cs->mutex); if_ioctl() 243 if (mutex_lock_interruptible(&cs->mutex)) if_tiocmget() 248 mutex_unlock(&cs->mutex); if_tiocmget() 263 if (mutex_lock_interruptible(&cs->mutex)) if_tiocmset() 275 mutex_unlock(&cs->mutex); if_tiocmset() 288 if (mutex_lock_interruptible(&cs->mutex)) if_write() 321 mutex_unlock(&cs->mutex); if_write() 332 if (mutex_lock_interruptible(&cs->mutex)) if_write_room() 344 mutex_unlock(&cs->mutex); if_write_room() 356 mutex_lock(&cs->mutex); if_chars_in_buffer() 365 mutex_unlock(&cs->mutex); if_chars_in_buffer() 376 mutex_lock(&cs->mutex); if_throttle() 383 mutex_unlock(&cs->mutex); if_throttle() 392 mutex_lock(&cs->mutex); if_unthrottle() 399 mutex_unlock(&cs->mutex); if_unthrottle() 412 mutex_lock(&cs->mutex); if_set_termios() 468 mutex_unlock(&cs->mutex); if_set_termios() 506 mutex_lock(&cs->mutex); gigaset_if_init() 516 mutex_unlock(&cs->mutex); gigaset_if_init()
|
H A D | proc.c | 40 if (mutex_lock_interruptible(&cs->mutex)) set_cidmode() 47 mutex_unlock(&cs->mutex); set_cidmode() 54 mutex_unlock(&cs->mutex); set_cidmode()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | pad.c | 39 mutex_lock(&pad->mutex); nvkm_i2c_pad_mode() 42 mutex_unlock(&pad->mutex); nvkm_i2c_pad_mode() 51 mutex_unlock(&pad->mutex); nvkm_i2c_pad_release() 58 mutex_lock(&pad->mutex); nvkm_i2c_pad_acquire() 61 mutex_unlock(&pad->mutex); nvkm_i2c_pad_acquire() 103 mutex_init(&pad->mutex); nvkm_i2c_pad_ctor()
|
/linux-4.4.14/drivers/w1/slaves/ |
H A D | w1_ds2413.c | 48 dev_dbg(&sl->dev, "mutex locked"); state_read() 59 dev_dbg(&sl->dev, "mutex unlocked"); state_read() 81 dev_dbg(&sl->dev, "locking mutex for write_output"); output_write() 83 dev_dbg(&sl->dev, "mutex locked"); output_write() 100 dev_dbg(&sl->dev, "mutex unlocked, retries:%d", retries); output_write() 109 dev_dbg(&sl->dev, "mutex unlocked in error, retries:%d", retries); output_write()
|
/linux-4.4.14/sound/soc/intel/common/ |
H A D | sst-firmware.c | 373 mutex_lock(&dsp->mutex); sst_fw_new() 375 mutex_unlock(&dsp->mutex); sst_fw_new() 416 mutex_lock(&dsp->mutex); sst_fw_unload() 440 mutex_unlock(&dsp->mutex); sst_fw_unload() 449 mutex_lock(&dsp->mutex); sst_fw_free() 451 mutex_unlock(&dsp->mutex); sst_fw_free() 465 mutex_lock(&dsp->mutex); sst_fw_free_all() 473 mutex_unlock(&dsp->mutex); sst_fw_free_all() 499 mutex_lock(&dsp->mutex); sst_module_new() 501 mutex_unlock(&dsp->mutex); sst_module_new() 512 mutex_lock(&dsp->mutex); sst_module_free() 514 mutex_unlock(&dsp->mutex); sst_module_free() 535 mutex_lock(&dsp->mutex); sst_module_runtime_new() 537 mutex_unlock(&dsp->mutex); sst_module_runtime_new() 547 mutex_lock(&dsp->mutex); sst_module_runtime_free() 549 mutex_unlock(&dsp->mutex); sst_module_runtime_free() 671 mutex_lock(&dsp->mutex); sst_alloc_blocks() 685 mutex_unlock(&dsp->mutex); sst_alloc_blocks() 692 mutex_lock(&dsp->mutex); sst_free_blocks() 694 mutex_unlock(&dsp->mutex); sst_free_blocks() 796 mutex_lock(&dsp->mutex); sst_module_alloc_blocks() 804 mutex_unlock(&dsp->mutex); sst_module_alloc_blocks() 829 mutex_unlock(&dsp->mutex); sst_module_alloc_blocks() 834 mutex_unlock(&dsp->mutex); sst_module_alloc_blocks() 844 mutex_lock(&dsp->mutex); sst_module_free_blocks() 846 mutex_unlock(&dsp->mutex); sst_module_free_blocks() 866 mutex_lock(&dsp->mutex); sst_module_runtime_alloc_blocks() 890 mutex_unlock(&dsp->mutex); sst_module_runtime_alloc_blocks() 902 mutex_unlock(&dsp->mutex); sst_module_runtime_alloc_blocks() 907 mutex_unlock(&dsp->mutex); sst_module_runtime_alloc_blocks() 916 mutex_lock(&dsp->mutex); sst_module_runtime_free_blocks() 918 mutex_unlock(&dsp->mutex); sst_module_runtime_free_blocks() 942 mutex_lock(&dsp->mutex); sst_module_runtime_save() 964 mutex_unlock(&dsp->mutex); sst_module_runtime_save() 980 mutex_lock(&dsp->mutex); sst_module_runtime_restore() 1010 mutex_unlock(&dsp->mutex); sst_module_runtime_restore() 1034 mutex_lock(&dsp->mutex); sst_mem_block_register() 1036 mutex_unlock(&dsp->mutex); sst_mem_block_register() 1047 mutex_lock(&dsp->mutex); sst_mem_block_unregister_all() 1061 mutex_unlock(&dsp->mutex); sst_mem_block_unregister_all() 1072 mutex_lock(&dsp->mutex); sst_block_alloc_scratch() 1088 mutex_unlock(&dsp->mutex); sst_block_alloc_scratch() 1118 mutex_unlock(&dsp->mutex); sst_block_alloc_scratch() 1125 mutex_unlock(&dsp->mutex); sst_block_alloc_scratch() 1131 mutex_unlock(&dsp->mutex); sst_block_alloc_scratch() 1139 mutex_lock(&dsp->mutex); sst_block_free_scratch() 1141 mutex_unlock(&dsp->mutex); sst_block_free_scratch() 1150 mutex_lock(&dsp->mutex); sst_module_get_from_id() 1154 mutex_unlock(&dsp->mutex); sst_module_get_from_id() 1159 mutex_unlock(&dsp->mutex); sst_module_get_from_id() 1170 mutex_lock(&dsp->mutex); sst_module_runtime_get_from_id() 1174 mutex_unlock(&dsp->mutex); sst_module_runtime_get_from_id() 1179 mutex_unlock(&dsp->mutex); sst_module_runtime_get_from_id()
|
/linux-4.4.14/drivers/mtd/chips/ |
H A D | cfi_cmdset_0020.c | 266 mutex_lock(&chip->mutex); do_read_onechip() 298 mutex_unlock(&chip->mutex); do_read_onechip() 304 mutex_unlock(&chip->mutex); do_read_onechip() 306 mutex_lock(&chip->mutex); do_read_onechip() 337 mutex_unlock(&chip->mutex); do_read_onechip() 343 mutex_unlock(&chip->mutex); do_read_onechip() 353 mutex_unlock(&chip->mutex); do_read_onechip() 378 mutex_unlock(&chip->mutex); do_read_onechip() 445 mutex_lock(&chip->mutex); do_write_buffer() 470 mutex_unlock(&chip->mutex); do_write_buffer() 477 mutex_unlock(&chip->mutex); do_write_buffer() 486 mutex_unlock(&chip->mutex); do_write_buffer() 503 mutex_unlock(&chip->mutex); do_write_buffer() 505 mutex_lock(&chip->mutex); do_write_buffer() 512 mutex_unlock(&chip->mutex); do_write_buffer() 532 mutex_unlock(&chip->mutex); do_write_buffer() 534 mutex_lock(&chip->mutex); do_write_buffer() 543 mutex_unlock(&chip->mutex); do_write_buffer() 547 mutex_lock(&chip->mutex); do_write_buffer() 563 mutex_unlock(&chip->mutex); do_write_buffer() 569 mutex_unlock(&chip->mutex); do_write_buffer() 572 mutex_lock(&chip->mutex); do_write_buffer() 596 mutex_unlock(&chip->mutex); do_write_buffer() 600 mutex_unlock(&chip->mutex); do_write_buffer() 747 mutex_lock(&chip->mutex); do_erase_oneblock() 764 mutex_unlock(&chip->mutex); do_erase_oneblock() 770 mutex_unlock(&chip->mutex); do_erase_oneblock() 779 mutex_unlock(&chip->mutex); do_erase_oneblock() 795 mutex_unlock(&chip->mutex); do_erase_oneblock() 797 mutex_lock(&chip->mutex); do_erase_oneblock() 808 mutex_unlock(&chip->mutex); do_erase_oneblock() 812 mutex_lock(&chip->mutex); do_erase_oneblock() 826 mutex_unlock(&chip->mutex); do_erase_oneblock() 831 mutex_unlock(&chip->mutex); do_erase_oneblock() 833 mutex_lock(&chip->mutex); do_erase_oneblock() 876 mutex_unlock(&chip->mutex); do_erase_oneblock() 885 mutex_unlock(&chip->mutex); do_erase_oneblock() 987 mutex_lock(&chip->mutex); cfi_staa_sync() 1001 mutex_unlock(&chip->mutex); cfi_staa_sync() 1009 mutex_unlock(&chip->mutex); cfi_staa_sync() 1022 mutex_lock(&chip->mutex); cfi_staa_sync() 1028 mutex_unlock(&chip->mutex); cfi_staa_sync() 1046 mutex_lock(&chip->mutex); do_lock_oneblock() 1063 mutex_unlock(&chip->mutex); do_lock_oneblock() 1069 mutex_unlock(&chip->mutex); do_lock_oneblock() 1078 mutex_unlock(&chip->mutex); do_lock_oneblock() 1090 mutex_unlock(&chip->mutex); do_lock_oneblock() 1092 mutex_lock(&chip->mutex); do_lock_oneblock() 1110 mutex_unlock(&chip->mutex); do_lock_oneblock() 1115 mutex_unlock(&chip->mutex); do_lock_oneblock() 1117 mutex_lock(&chip->mutex); do_lock_oneblock() 1124 mutex_unlock(&chip->mutex); do_lock_oneblock() 1192 mutex_lock(&chip->mutex); do_unlock_oneblock() 1209 mutex_unlock(&chip->mutex); do_unlock_oneblock() 1215 mutex_unlock(&chip->mutex); do_unlock_oneblock() 1224 mutex_unlock(&chip->mutex); do_unlock_oneblock() 1236 mutex_unlock(&chip->mutex); do_unlock_oneblock() 1238 mutex_lock(&chip->mutex); do_unlock_oneblock() 1256 mutex_unlock(&chip->mutex); do_unlock_oneblock() 1261 mutex_unlock(&chip->mutex); do_unlock_oneblock() 1263 mutex_lock(&chip->mutex); do_unlock_oneblock() 1270 mutex_unlock(&chip->mutex); do_unlock_oneblock() 1323 mutex_lock(&chip->mutex); cfi_staa_suspend() 1343 mutex_unlock(&chip->mutex); cfi_staa_suspend() 1352 mutex_lock(&chip->mutex); cfi_staa_suspend() 1361 mutex_unlock(&chip->mutex); cfi_staa_suspend() 1379 mutex_lock(&chip->mutex); cfi_staa_resume() 1388 mutex_unlock(&chip->mutex); cfi_staa_resume()
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
H A D | dyna_pci10xx.c | 37 #include <linux/mutex.h> 54 struct mutex mutex; member in struct:dyna_pci10xx_private 86 mutex_lock(&devpriv->mutex); dyna_pci10xx_insn_read_ai() 104 mutex_unlock(&devpriv->mutex); dyna_pci10xx_insn_read_ai() 123 mutex_lock(&devpriv->mutex); dyna_pci10xx_insn_write_ao() 130 mutex_unlock(&devpriv->mutex); dyna_pci10xx_insn_write_ao() 143 mutex_lock(&devpriv->mutex); dyna_pci10xx_di_insn_bits() 151 mutex_unlock(&devpriv->mutex); dyna_pci10xx_di_insn_bits() 162 mutex_lock(&devpriv->mutex); dyna_pci10xx_do_insn_bits() 170 mutex_unlock(&devpriv->mutex); dyna_pci10xx_do_insn_bits() 193 mutex_init(&devpriv->mutex); dyna_pci10xx_auto_attach() 249 mutex_destroy(&devpriv->mutex); dyna_pci10xx_detach()
|
/linux-4.4.14/drivers/nfc/s3fwrn5/ |
H A D | i2c.c | 43 struct mutex mutex; member in struct:s3fwrn5_i2c_phy 53 mutex_lock(&phy->mutex); s3fwrn5_i2c_set_wake() 56 mutex_unlock(&phy->mutex); s3fwrn5_i2c_set_wake() 63 mutex_lock(&phy->mutex); s3fwrn5_i2c_set_mode() 84 mutex_unlock(&phy->mutex); s3fwrn5_i2c_set_mode() 92 mutex_lock(&phy->mutex); s3fwrn5_i2c_get_mode() 96 mutex_unlock(&phy->mutex); s3fwrn5_i2c_get_mode() 106 mutex_lock(&phy->mutex); s3fwrn5_i2c_write() 117 mutex_unlock(&phy->mutex); s3fwrn5_i2c_write() 185 mutex_lock(&phy->mutex); s3fwrn5_i2c_irq_thread_fn() 201 mutex_unlock(&phy->mutex); s3fwrn5_i2c_irq_thread_fn() 235 mutex_init(&phy->mutex); s3fwrn5_i2c_probe()
|
/linux-4.4.14/drivers/iio/accel/ |
H A D | mma9551.c | 56 struct mutex mutex; member in struct:mma9551_data 126 mutex_lock(&data->mutex); mma9551_read_raw() 128 mutex_unlock(&data->mutex); mma9551_read_raw() 136 mutex_lock(&data->mutex); mma9551_read_raw() 139 mutex_unlock(&data->mutex); mma9551_read_raw() 244 mutex_lock(&data->mutex); mma9551_write_event_config() 247 mutex_unlock(&data->mutex); mma9551_write_event_config() 268 mutex_lock(&data->mutex); mma9551_write_event_value() 274 mutex_unlock(&data->mutex); mma9551_write_event_value() 294 mutex_lock(&data->mutex); mma9551_read_event_value() 298 mutex_unlock(&data->mutex); mma9551_read_event_value() 352 mutex_lock(&data->mutex); mma9551_event_handler() 397 mutex_unlock(&data->mutex); mma9551_event_handler() 485 mutex_init(&data->mutex); mma9551_probe() 533 mutex_lock(&data->mutex); mma9551_remove() 535 mutex_unlock(&data->mutex); mma9551_remove() 547 mutex_lock(&data->mutex); mma9551_runtime_suspend() 549 mutex_unlock(&data->mutex); mma9551_runtime_suspend() 581 mutex_lock(&data->mutex); mma9551_suspend() 583 mutex_unlock(&data->mutex); mma9551_suspend() 594 mutex_lock(&data->mutex); mma9551_resume() 596 mutex_unlock(&data->mutex); mma9551_resume()
|
H A D | bmc150-accel-core.c | 196 struct mutex mutex; member in struct:bmc150_accel_data 529 mutex_lock(&data->mutex); bmc150_accel_get_temp() 534 mutex_unlock(&data->mutex); bmc150_accel_get_temp() 539 mutex_unlock(&data->mutex); bmc150_accel_get_temp() 552 mutex_lock(&data->mutex); bmc150_accel_get_axis() 555 mutex_unlock(&data->mutex); bmc150_accel_get_axis() 564 mutex_unlock(&data->mutex); bmc150_accel_get_axis() 570 mutex_unlock(&data->mutex); bmc150_accel_get_axis() 629 mutex_lock(&data->mutex); bmc150_accel_read_raw() 631 mutex_unlock(&data->mutex); bmc150_accel_read_raw() 647 mutex_lock(&data->mutex); bmc150_accel_write_raw() 649 mutex_unlock(&data->mutex); bmc150_accel_write_raw() 655 mutex_lock(&data->mutex); bmc150_accel_write_raw() 657 mutex_unlock(&data->mutex); bmc150_accel_write_raw() 738 mutex_lock(&data->mutex); bmc150_accel_write_event_config() 743 mutex_unlock(&data->mutex); bmc150_accel_write_event_config() 748 mutex_unlock(&data->mutex); bmc150_accel_write_event_config() 775 mutex_lock(&data->mutex); bmc150_accel_get_fifo_watermark() 777 mutex_unlock(&data->mutex); bmc150_accel_get_fifo_watermark() 790 mutex_lock(&data->mutex); bmc150_accel_get_fifo_state() 792 mutex_unlock(&data->mutex); bmc150_accel_get_fifo_state() 820 mutex_lock(&data->mutex); bmc150_accel_set_watermark() 822 mutex_unlock(&data->mutex); bmc150_accel_set_watermark() 951 mutex_lock(&data->mutex); bmc150_accel_fifo_flush() 953 mutex_unlock(&data->mutex); bmc150_accel_fifo_flush() 1116 mutex_lock(&data->mutex); bmc150_accel_trigger_handler() 1123 mutex_unlock(&data->mutex); bmc150_accel_trigger_handler() 1128 mutex_unlock(&data->mutex); bmc150_accel_trigger_handler() 1148 mutex_lock(&data->mutex); bmc150_accel_trig_try_reen() 1153 mutex_unlock(&data->mutex); bmc150_accel_trig_try_reen() 1170 mutex_lock(&data->mutex); bmc150_accel_trigger_set_state() 1173 mutex_unlock(&data->mutex); bmc150_accel_trigger_set_state() 1180 mutex_unlock(&data->mutex); bmc150_accel_trigger_set_state() 1187 mutex_unlock(&data->mutex); bmc150_accel_trigger_set_state() 1193 mutex_unlock(&data->mutex); bmc150_accel_trigger_set_state() 1259 mutex_lock(&data->mutex); bmc150_accel_irq_thread_handler() 1286 mutex_unlock(&data->mutex); bmc150_accel_irq_thread_handler() 1423 mutex_lock(&data->mutex); bmc150_accel_buffer_postenable() 1443 mutex_unlock(&data->mutex); bmc150_accel_buffer_postenable() 1455 mutex_lock(&data->mutex); bmc150_accel_buffer_predisable() 1466 mutex_unlock(&data->mutex); bmc150_accel_buffer_predisable() 1572 mutex_init(&data->mutex); bmc150_accel_core_probe() 1669 mutex_lock(&data->mutex); bmc150_accel_core_remove() 1671 mutex_unlock(&data->mutex); bmc150_accel_core_remove() 1683 mutex_lock(&data->mutex); bmc150_accel_suspend() 1685 mutex_unlock(&data->mutex); bmc150_accel_suspend() 1695 mutex_lock(&data->mutex); bmc150_accel_resume() 1699 mutex_unlock(&data->mutex); bmc150_accel_resume()
|
H A D | mma9553.c | 188 struct mutex mutex; member in struct:mma9553_data 464 mutex_lock(&data->mutex); mma9553_read_status_word() 467 mutex_unlock(&data->mutex); mma9553_read_status_word() 543 mutex_lock(&data->mutex); mma9553_read_raw() 546 mutex_unlock(&data->mutex); mma9553_read_raw() 625 mutex_lock(&data->mutex); mma9553_write_raw() 628 mutex_unlock(&data->mutex); mma9553_write_raw() 632 mutex_unlock(&data->mutex); mma9553_write_raw() 639 mutex_lock(&data->mutex); mma9553_write_raw() 644 mutex_unlock(&data->mutex); mma9553_write_raw() 649 mutex_lock(&data->mutex); mma9553_write_raw() 654 mutex_unlock(&data->mutex); mma9553_write_raw() 667 mutex_lock(&data->mutex); mma9553_write_raw() 671 mutex_unlock(&data->mutex); mma9553_write_raw() 681 mutex_lock(&data->mutex); mma9553_write_raw() 685 mutex_unlock(&data->mutex); mma9553_write_raw() 704 mutex_lock(&data->mutex); mma9553_write_raw() 709 mutex_unlock(&data->mutex); mma9553_write_raw() 750 mutex_lock(&data->mutex); mma9553_write_event_config() 761 mutex_unlock(&data->mutex); mma9553_write_event_config() 771 mutex_unlock(&data->mutex); mma9553_write_event_config() 831 mutex_lock(&data->mutex); mma9553_write_event_value() 836 mutex_unlock(&data->mutex); mma9553_write_event_value() 847 mutex_lock(&data->mutex); mma9553_write_event_value() 852 mutex_unlock(&data->mutex); mma9553_write_event_value() 886 mutex_lock(&data->mutex); mma9553_set_calibgender_mode() 890 mutex_unlock(&data->mutex); mma9553_set_calibgender_mode() 1023 mutex_lock(&data->mutex); mma9553_event_handler() 1026 mutex_unlock(&data->mutex); mma9553_event_handler() 1070 mutex_unlock(&data->mutex); mma9553_event_handler() 1109 mutex_init(&data->mutex); mma9553_probe() 1172 mutex_lock(&data->mutex); mma9553_remove() 1174 mutex_unlock(&data->mutex); mma9553_remove() 1186 mutex_lock(&data->mutex); mma9553_runtime_suspend() 1188 mutex_unlock(&data->mutex); mma9553_runtime_suspend() 1220 mutex_lock(&data->mutex); mma9553_suspend() 1222 mutex_unlock(&data->mutex); mma9553_suspend() 1233 mutex_lock(&data->mutex); mma9553_resume() 1235 mutex_unlock(&data->mutex); mma9553_resume()
|
/linux-4.4.14/drivers/staging/iio/meter/ |
H A D | ade7759.h | 42 * @buf_lock: mutex to protect tx and rx 48 struct mutex buf_lock;
|
/linux-4.4.14/drivers/staging/media/omap4iss/ |
H A D | iss_csiphy.h | 31 struct mutex mutex; /* serialize csiphy configuration */ member in struct:iss_csiphy
|
H A D | iss_csiphy.c | 28 * Called with phy->mutex taken. 91 * Called with phy->mutex taken. 214 mutex_lock(&csi2->phy->mutex); omap4iss_csiphy_config() 217 mutex_unlock(&csi2->phy->mutex); omap4iss_csiphy_config() 226 mutex_lock(&phy->mutex); omap4iss_csiphy_acquire() 242 mutex_unlock(&phy->mutex); omap4iss_csiphy_acquire() 248 mutex_lock(&phy->mutex); omap4iss_csiphy_release() 253 mutex_unlock(&phy->mutex); omap4iss_csiphy_release() 270 mutex_init(&phy1->mutex); omap4iss_csiphy_init() 278 mutex_init(&phy2->mutex); omap4iss_csiphy_init()
|
/linux-4.4.14/drivers/isdn/capi/ |
H A D | kcapi.h | 34 extern struct mutex capi_drivers_lock; 37 extern struct mutex capi_controller_lock;
|
/linux-4.4.14/drivers/macintosh/ams/ |
H A D | ams.h | 4 #include <linux/mutex.h> 22 struct mutex lock;
|
/linux-4.4.14/drivers/iio/magnetometer/ |
H A D | bmc150_magn.c | 143 struct mutex mutex; member in struct:bmc150_magn_data 470 mutex_lock(&data->mutex); bmc150_magn_read_raw() 474 mutex_unlock(&data->mutex); bmc150_magn_read_raw() 481 mutex_unlock(&data->mutex); bmc150_magn_read_raw() 488 mutex_unlock(&data->mutex); bmc150_magn_read_raw() 492 mutex_unlock(&data->mutex); bmc150_magn_read_raw() 544 mutex_lock(&data->mutex); bmc150_magn_write_raw() 546 mutex_unlock(&data->mutex); bmc150_magn_write_raw() 554 mutex_lock(&data->mutex); bmc150_magn_write_raw() 557 mutex_unlock(&data->mutex); bmc150_magn_write_raw() 565 mutex_unlock(&data->mutex); bmc150_magn_write_raw() 570 mutex_lock(&data->mutex); bmc150_magn_write_raw() 573 mutex_unlock(&data->mutex); bmc150_magn_write_raw() 581 mutex_unlock(&data->mutex); bmc150_magn_write_raw() 665 mutex_lock(&data->mutex); bmc150_magn_trigger_handler() 674 mutex_unlock(&data->mutex); bmc150_magn_trigger_handler() 768 mutex_lock(&data->mutex); bmc150_magn_trig_try_reen() 770 mutex_unlock(&data->mutex); bmc150_magn_trig_try_reen() 782 mutex_lock(&data->mutex); bmc150_magn_data_rdy_trigger_set_state() 799 mutex_unlock(&data->mutex); bmc150_magn_data_rdy_trigger_set_state() 804 mutex_unlock(&data->mutex); bmc150_magn_data_rdy_trigger_set_state() 869 mutex_init(&data->mutex); bmc150_magn_probe() 983 mutex_lock(&data->mutex); bmc150_magn_remove() 985 mutex_unlock(&data->mutex); bmc150_magn_remove() 997 mutex_lock(&data->mutex); bmc150_magn_runtime_suspend() 1000 mutex_unlock(&data->mutex); bmc150_magn_runtime_suspend() 1009 * Should be called with data->mutex held. 1028 mutex_lock(&data->mutex); bmc150_magn_suspend() 1031 mutex_unlock(&data->mutex); bmc150_magn_suspend() 1042 mutex_lock(&data->mutex); bmc150_magn_resume() 1045 mutex_unlock(&data->mutex); bmc150_magn_resume()
|
/linux-4.4.14/drivers/iio/pressure/ |
H A D | ms5611.h | 17 #include <linux/mutex.h> 44 struct mutex lock;
|
/linux-4.4.14/drivers/gpu/host1x/ |
H A D | channel.h | 33 struct mutex reflock; 34 struct mutex submitlock;
|
/linux-4.4.14/drivers/media/platform/omap3isp/ |
H A D | ispcsiphy.h | 27 struct mutex mutex; /* serialize csiphy configuration */ member in struct:isp_csiphy
|
/linux-4.4.14/drivers/mfd/ |
H A D | mc13xxx.h | 12 #include <linux/mutex.h> 42 struct mutex lock;
|
H A D | retu-mfd.c | 23 #include <linux/mutex.h> 44 struct mutex mutex; member in struct:retu_dev 148 mutex_lock(&rdev->mutex); retu_read() 150 mutex_unlock(&rdev->mutex); retu_read() 160 mutex_lock(&rdev->mutex); retu_write() 162 mutex_unlock(&rdev->mutex); retu_write() 173 mutex_lock(&retu_pm_power_off->mutex); retu_power_off() 186 mutex_unlock(&retu_pm_power_off->mutex); retu_power_off() 246 mutex_init(&rdev->mutex); retu_probe()
|
/linux-4.4.14/drivers/net/wireless/b43legacy/ |
H A D | sysfs.c | 85 mutex_lock(&wldev->wl->mutex); b43legacy_attr_interfmode_show() 104 mutex_unlock(&wldev->wl->mutex); b43legacy_attr_interfmode_show() 139 mutex_lock(&wldev->wl->mutex); b43legacy_attr_interfmode_store() 148 mutex_unlock(&wldev->wl->mutex); b43legacy_attr_interfmode_store() 167 mutex_lock(&wldev->wl->mutex); b43legacy_attr_preamble_show() 176 mutex_unlock(&wldev->wl->mutex); b43legacy_attr_preamble_show() 195 mutex_lock(&wldev->wl->mutex); b43legacy_attr_preamble_store() 201 mutex_unlock(&wldev->wl->mutex); b43legacy_attr_preamble_store()
|
H A D | rfkill.c | 60 mutex_lock(&wl->mutex); b43legacy_rfkill_poll() 63 mutex_unlock(&wl->mutex); b43legacy_rfkill_poll() 90 mutex_unlock(&wl->mutex); b43legacy_rfkill_poll()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | subdev.h | 10 struct mutex mutex; member in struct:nvkm_subdev
|
H A D | tegra.h | 22 struct mutex mutex; member in struct:nvkm_device_tegra::__anon4315
|
/linux-4.4.14/arch/x86/um/asm/ |
H A D | mm_context.h | 11 #include <linux/mutex.h> 30 struct mutex lock;
|
/linux-4.4.14/include/media/ |
H A D | videobuf-dvb.h | 17 struct mutex lock; 37 struct mutex lock;
|
H A D | videobuf-dma-contig.h | 27 struct mutex *ext_lock);
|
/linux-4.4.14/drivers/ide/ |
H A D | ide-disk_ioctl.c | 4 #include <linux/mutex.h>
|
/linux-4.4.14/drivers/hid/ |
H A D | hid-roccat-lua.h | 26 struct mutex lua_lock;
|
/linux-4.4.14/drivers/media/platform/s5p-tv/ |
H A D | mixer_drv.c | 54 mutex_lock(&mdev->mutex); mxr_get_mbus_fmt() 59 mutex_unlock(&mdev->mutex); mxr_get_mbus_fmt() 64 mutex_lock(&mdev->mutex); mxr_streamer_get() 92 mutex_unlock(&mdev->mutex); mxr_streamer_get() 99 mutex_lock(&mdev->mutex); mxr_streamer_put() 115 mutex_unlock(&mdev->mutex); mxr_streamer_put() 121 mutex_lock(&mdev->mutex); mxr_output_get() 127 mutex_unlock(&mdev->mutex); mxr_output_get() 132 mutex_lock(&mdev->mutex); mxr_output_put() 140 mutex_unlock(&mdev->mutex); mxr_output_put() 360 mutex_lock(&mdev->mutex); mxr_runtime_resume() 381 mutex_unlock(&mdev->mutex); mxr_runtime_resume() 389 mutex_unlock(&mdev->mutex); mxr_runtime_resume() 399 mutex_lock(&mdev->mutex); mxr_runtime_suspend() 404 mutex_unlock(&mdev->mutex); mxr_runtime_suspend() 436 mutex_init(&mdev->mutex); mxr_probe()
|
/linux-4.4.14/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-dvb.h | 26 struct mutex lock;
|
H A D | pvrusb2-ioread.c | 27 #include <linux/mutex.h> 50 struct mutex mutex; member in struct:pvr2_ioread 58 mutex_init(&cp->mutex); pvr2_ioread_init() 208 mutex_lock(&cp->mutex); pvr2_ioread_setup() 228 mutex_unlock(&cp->mutex); pvr2_ioread_setup() 240 mutex_unlock(&cp->mutex); pvr2_ioread_setup() 250 mutex_lock(&cp->mutex); pvr2_ioread_set_enabled() 258 mutex_unlock(&cp->mutex); pvr2_ioread_set_enabled() 322 mutex_lock(&cp->mutex); pvr2_ioread_filter() 371 mutex_unlock(&cp->mutex); pvr2_ioread_filter() 431 mutex_lock(&cp->mutex); pvr2_ioread_read() 491 mutex_unlock(&cp->mutex); pvr2_ioread_read()
|
H A D | pvrusb2-context.h | 22 #include <linux/mutex.h> 48 struct mutex mutex; member in struct:pvr2_context
|
/linux-4.4.14/kernel/ |
H A D | kexec_internal.h | 15 extern struct mutex kexec_mutex;
|
/linux-4.4.14/arch/sparc/kernel/ |
H A D | jump_label.c | 3 #include <linux/mutex.h>
|
/linux-4.4.14/sound/firewire/dice/ |
H A D | dice-midi.c | 19 mutex_lock(&dice->mutex); midi_open() 24 mutex_unlock(&dice->mutex); midi_open() 36 mutex_lock(&dice->mutex); midi_close() 41 mutex_unlock(&dice->mutex); midi_close()
|
H A D | dice-pcm.c | 241 mutex_lock(&dice->mutex); capture_hw_params() 243 mutex_unlock(&dice->mutex); capture_hw_params() 262 mutex_lock(&dice->mutex); playback_hw_params() 264 mutex_unlock(&dice->mutex); playback_hw_params() 276 mutex_lock(&dice->mutex); capture_hw_free() 283 mutex_unlock(&dice->mutex); capture_hw_free() 292 mutex_lock(&dice->mutex); playback_hw_free() 299 mutex_unlock(&dice->mutex); playback_hw_free() 309 mutex_lock(&dice->mutex); capture_prepare() 311 mutex_unlock(&dice->mutex); capture_prepare() 322 mutex_lock(&dice->mutex); playback_prepare() 324 mutex_unlock(&dice->mutex); playback_prepare()
|
/linux-4.4.14/sound/pci/lx6464es/ |
H A D | lx6464es.h | 74 struct mutex lock; /* interrupt lock */ 75 struct mutex setup_mutex; /* mutex used in hw_params, open 86 struct mutex msg_lock; /* message lock */
|
/linux-4.4.14/drivers/iio/common/ms_sensors/ |
H A D | ms_sensors_i2c.h | 15 #include <linux/mutex.h> 27 struct mutex lock; 41 struct mutex lock;
|
/linux-4.4.14/drivers/misc/ |
H A D | apds9802als.c | 29 #include <linux/mutex.h> 41 struct mutex mutex; member in struct:als_data 88 mutex_lock(&data->mutex); als_lux0_input_data_show() 109 mutex_unlock(&data->mutex); als_lux0_input_data_show() 115 mutex_unlock(&data->mutex); als_lux0_input_data_show() 143 mutex_lock(&data->mutex); als_sensing_range_store() 161 mutex_unlock(&data->mutex); als_sensing_range_store() 166 mutex_unlock(&data->mutex); als_sensing_range_store() 176 mutex_lock(&data->mutex); als_set_power_state() 186 mutex_unlock(&data->mutex); als_set_power_state() 246 mutex_init(&data->mutex); apds9802als_probe()
|
H A D | bh1770glc.c | 29 #include <linux/mutex.h> 140 struct mutex mutex; /* avoid parallel access */ member in struct:bh1770_chip 193 * interrupt control functions are called while keeping chip->mutex 215 /* chip->mutex is always kept here */ bh1770_lux_rate() 286 * versions. Chip->mutex is kept when this is called. 316 /* chip->mutex is kept when this is called */ bh1770_lux_update_thresholds() 396 * Chip on / off functions are called while keeping mutex except probe 441 /* chip->mutex is kept when this is called */ bh1770_prox_mode_control() 464 /* chip->mutex is kept when this is called */ bh1770_prox_read_result() 579 mutex_lock(&chip->mutex); bh1770_prox_work() 581 mutex_unlock(&chip->mutex); bh1770_prox_work() 591 mutex_lock(&chip->mutex); bh1770_irq() 628 mutex_unlock(&chip->mutex); bh1770_irq() 631 * Can't cancel work while keeping mutex since the work uses the bh1770_irq() 632 * same mutex. bh1770_irq() 658 mutex_lock(&chip->mutex); bh1770_power_state_store() 685 mutex_unlock(&chip->mutex); bh1770_power_state_store() 711 mutex_lock(&chip->mutex); bh1770_lux_result_show() 713 mutex_unlock(&chip->mutex); bh1770_lux_result_show() 736 mutex_lock(&chip->mutex); bh1770_prox_enable_store() 752 mutex_unlock(&chip->mutex); bh1770_prox_enable_store() 762 mutex_lock(&chip->mutex); bh1770_prox_enable_show() 764 mutex_unlock(&chip->mutex); bh1770_prox_enable_show() 774 mutex_lock(&chip->mutex); bh1770_prox_result_show() 779 mutex_unlock(&chip->mutex); bh1770_prox_result_show() 836 mutex_lock(&chip->mutex); bh1770_set_prox_rate_above() 838 mutex_unlock(&chip->mutex); bh1770_set_prox_rate_above() 854 mutex_lock(&chip->mutex); bh1770_set_prox_rate_below() 856 mutex_unlock(&chip->mutex); bh1770_set_prox_rate_below() 882 mutex_lock(&chip->mutex); bh1770_set_prox_thres() 885 mutex_unlock(&chip->mutex); bh1770_set_prox_thres() 965 mutex_lock(&chip->mutex); bh1770_lux_calib_show() 967 mutex_unlock(&chip->mutex); bh1770_lux_calib_show() 985 mutex_lock(&chip->mutex); bh1770_lux_calib_store() 991 mutex_unlock(&chip->mutex); bh1770_lux_calib_store() 999 mutex_unlock(&chip->mutex); bh1770_lux_calib_store() 1038 mutex_lock(&chip->mutex); bh1770_set_lux_rate() 1041 mutex_unlock(&chip->mutex); bh1770_set_lux_rate() 1076 mutex_lock(&chip->mutex); bh1770_set_lux_thresh() 1086 mutex_unlock(&chip->mutex); bh1770_set_lux_thresh() 1195 mutex_init(&chip->mutex); bh1770_probe()
|
/linux-4.4.14/drivers/net/wireless/b43/ |
H A D | rfkill.c | 43 mutex_lock(&wl->mutex); b43_rfkill_poll() 46 mutex_unlock(&wl->mutex); b43_rfkill_poll() 69 mutex_unlock(&wl->mutex); b43_rfkill_poll()
|
H A D | sysfs.c | 60 mutex_lock(&wldev->wl->mutex); b43_attr_interfmode_show() 63 mutex_unlock(&wldev->wl->mutex); b43_attr_interfmode_show() 87 mutex_unlock(&wldev->wl->mutex); b43_attr_interfmode_show() 121 mutex_lock(&wldev->wl->mutex); b43_attr_interfmode_store() 133 mutex_unlock(&wldev->wl->mutex); b43_attr_interfmode_store()
|
/linux-4.4.14/fs/jffs2/ |
H A D | jffs2_fs_i.h | 18 #include <linux/mutex.h> 21 /* We need an internal mutex similar to inode->i_mutex. 27 struct mutex sem;
|
/linux-4.4.14/sound/firewire/digi00x/ |
H A D | digi00x-pcm.c | 182 mutex_lock(&dg00x->mutex); pcm_capture_hw_params() 184 mutex_unlock(&dg00x->mutex); pcm_capture_hw_params() 204 mutex_lock(&dg00x->mutex); pcm_playback_hw_params() 206 mutex_unlock(&dg00x->mutex); pcm_playback_hw_params() 218 mutex_lock(&dg00x->mutex); pcm_capture_hw_free() 225 mutex_unlock(&dg00x->mutex); pcm_capture_hw_free() 234 mutex_lock(&dg00x->mutex); pcm_playback_hw_free() 241 mutex_unlock(&dg00x->mutex); pcm_playback_hw_free() 252 mutex_lock(&dg00x->mutex); pcm_capture_prepare() 258 mutex_unlock(&dg00x->mutex); pcm_capture_prepare() 269 mutex_lock(&dg00x->mutex); pcm_playback_prepare() 277 mutex_unlock(&dg00x->mutex); pcm_playback_prepare()
|
/linux-4.4.14/drivers/input/touchscreen/ |
H A D | ad7879.c | 115 struct mutex mutex; member in struct:ad7879 118 bool disabled; /* P: input->mutex */ 119 bool suspended; /* P: input->mutex */ 271 /* protected by input->mutex */ ad7879_open() 282 /* protected by input->mutex */ ad7879_close() 291 mutex_lock(&ts->input->mutex); ad7879_suspend() 298 mutex_unlock(&ts->input->mutex); ad7879_suspend() 307 mutex_lock(&ts->input->mutex); ad7879_resume() 314 mutex_unlock(&ts->input->mutex); ad7879_resume() 324 mutex_lock(&ts->input->mutex); ad7879_toggle() 339 mutex_unlock(&ts->input->mutex); ad7879_toggle() 385 mutex_lock(&ts->mutex); ad7879_gpio_direction_input() 388 mutex_unlock(&ts->mutex); ad7879_gpio_direction_input() 399 mutex_lock(&ts->mutex); ad7879_gpio_direction_output() 408 mutex_unlock(&ts->mutex); ad7879_gpio_direction_output() 418 mutex_lock(&ts->mutex); ad7879_gpio_get_value() 420 mutex_unlock(&ts->mutex); ad7879_gpio_get_value() 430 mutex_lock(&ts->mutex); ad7879_gpio_set_value() 437 mutex_unlock(&ts->mutex); ad7879_gpio_set_value() 445 mutex_init(&ts->mutex); ad7879_gpio_add()
|
H A D | tsc200x-core.c | 92 struct mutex mutex; member in struct:tsc200x 238 /* must be called with ts->mutex held */ __tsc200x_disable() 251 /* must be called with ts->mutex held */ __tsc200x_enable() 275 mutex_lock(&ts->mutex); tsc200x_selftest_show() 337 mutex_unlock(&ts->mutex); tsc200x_selftest_show() 375 if (!mutex_trylock(&ts->mutex)) { tsc200x_esd_work() 377 * If the mutex is taken, it means that disable or enable is in tsc200x_esd_work() 415 mutex_unlock(&ts->mutex); tsc200x_esd_work() 427 mutex_lock(&ts->mutex); tsc200x_open() 434 mutex_unlock(&ts->mutex); tsc200x_open() 443 mutex_lock(&ts->mutex); tsc200x_close() 450 mutex_unlock(&ts->mutex); tsc200x_close() 540 mutex_init(&ts->mutex); tsc200x_probe() 632 mutex_lock(&ts->mutex); tsc200x_suspend() 639 mutex_unlock(&ts->mutex); tsc200x_suspend() 648 mutex_lock(&ts->mutex); tsc200x_resume() 655 mutex_unlock(&ts->mutex); tsc200x_resume()
|
H A D | eeti_ts.c | 50 struct mutex mutex; member in struct:eeti_ts_priv 75 mutex_lock(&priv->mutex); eeti_ts_read() 114 mutex_unlock(&priv->mutex); eeti_ts_read() 179 mutex_init(&priv->mutex); eeti_ts_probe() 273 mutex_lock(&input_dev->mutex); eeti_ts_suspend() 278 mutex_unlock(&input_dev->mutex); eeti_ts_suspend() 295 mutex_lock(&input_dev->mutex); eeti_ts_resume() 300 mutex_unlock(&input_dev->mutex); eeti_ts_resume()
|
/linux-4.4.14/drivers/iio/proximity/ |
H A D | sx9500.c | 86 struct mutex mutex; member in struct:sx9500_data 316 mutex_lock(&data->mutex); sx9500_read_proximity() 326 mutex_unlock(&data->mutex); sx9500_read_proximity() 333 mutex_lock(&data->mutex); sx9500_read_proximity() 359 mutex_unlock(&data->mutex); sx9500_read_proximity() 371 mutex_lock(&data->mutex); sx9500_read_samp_freq() 373 mutex_unlock(&data->mutex); sx9500_read_samp_freq() 421 mutex_lock(&data->mutex); sx9500_set_samp_freq() 427 mutex_unlock(&data->mutex); sx9500_set_samp_freq() 463 * mutex. sx9500_irq_handler() 507 mutex_lock(&data->mutex); sx9500_irq_thread_handler() 522 mutex_unlock(&data->mutex); sx9500_irq_thread_handler() 554 mutex_lock(&data->mutex); sx9500_write_event_config() 581 mutex_unlock(&data->mutex); sx9500_write_event_config() 590 mutex_lock(&data->mutex); sx9500_update_scan_mode() 593 mutex_unlock(&data->mutex); sx9500_update_scan_mode() 630 mutex_lock(&data->mutex); sx9500_set_trigger_state() 642 mutex_unlock(&data->mutex); sx9500_set_trigger_state() 659 mutex_lock(&data->mutex); sx9500_trigger_handler() 675 mutex_unlock(&data->mutex); sx9500_trigger_handler() 687 mutex_lock(&data->mutex); sx9500_buffer_preenable() 701 mutex_unlock(&data->mutex); sx9500_buffer_preenable() 713 mutex_lock(&data->mutex); sx9500_buffer_predisable() 727 mutex_unlock(&data->mutex); sx9500_buffer_predisable() 898 mutex_init(&data->mutex); sx9500_probe() 986 mutex_lock(&data->mutex); sx9500_suspend() 999 mutex_unlock(&data->mutex); sx9500_suspend() 1009 mutex_lock(&data->mutex); sx9500_resume() 1012 mutex_unlock(&data->mutex); sx9500_resume()
|
/linux-4.4.14/sound/soc/fsl/ |
H A D | mpc5200_psc_ac97.c | 39 mutex_lock(&psc_dma->mutex); psc_ac97_read() 46 mutex_unlock(&psc_dma->mutex); psc_ac97_read() 62 mutex_unlock(&psc_dma->mutex); psc_ac97_read() 69 mutex_unlock(&psc_dma->mutex); psc_ac97_read() 74 mutex_unlock(&psc_dma->mutex); psc_ac97_read() 83 mutex_lock(&psc_dma->mutex); psc_ac97_write() 97 mutex_unlock(&psc_dma->mutex); psc_ac97_write() 104 mutex_lock(&psc_dma->mutex); psc_ac97_warm_reset() 110 mutex_unlock(&psc_dma->mutex); psc_ac97_warm_reset() 117 mutex_lock(&psc_dma->mutex); psc_ac97_cold_reset() 128 mutex_unlock(&psc_dma->mutex); psc_ac97_cold_reset()
|
/linux-4.4.14/drivers/media/i2c/smiapp/ |
H A D | smiapp.h | 22 #include <linux/mutex.h> 181 * "mutex" is used to serialise access to all fields here 182 * except v4l2_ctrls at the end of the struct. "mutex" is also 187 struct mutex mutex; member in struct:smiapp_sensor 190 * activities. Acquiring "mutex" at that time isn't necessary 193 struct mutex power_mutex;
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
H A D | iceland_dpm.c | 83 mutex_lock(&adev->pm.mutex); iceland_dpm_hw_init() 101 mutex_unlock(&adev->pm.mutex); iceland_dpm_hw_init() 106 mutex_unlock(&adev->pm.mutex); iceland_dpm_hw_init() 114 mutex_lock(&adev->pm.mutex); iceland_dpm_hw_fini() 120 mutex_unlock(&adev->pm.mutex); iceland_dpm_hw_fini() 134 mutex_lock(&adev->pm.mutex); iceland_dpm_resume() 143 mutex_unlock(&adev->pm.mutex); iceland_dpm_resume()
|
H A D | amdgpu_pm.c | 38 mutex_lock(&adev->pm.mutex); amdgpu_pm_acpi_event_handler() 45 mutex_unlock(&adev->pm.mutex); amdgpu_pm_acpi_event_handler() 70 mutex_lock(&adev->pm.mutex); amdgpu_set_dpm_state() 78 mutex_unlock(&adev->pm.mutex); amdgpu_set_dpm_state() 82 mutex_unlock(&adev->pm.mutex); amdgpu_set_dpm_state() 115 mutex_lock(&adev->pm.mutex); amdgpu_set_dpm_forced_performance_level() 136 mutex_unlock(&adev->pm.mutex); amdgpu_set_dpm_forced_performance_level() 370 mutex_lock(&adev->pm.mutex); amdgpu_dpm_thermal_work_handler() 376 mutex_unlock(&adev->pm.mutex); amdgpu_dpm_thermal_work_handler() 640 mutex_lock(&adev->pm.mutex); amdgpu_dpm_enable_uvd() 643 mutex_unlock(&adev->pm.mutex); amdgpu_dpm_enable_uvd() 646 mutex_lock(&adev->pm.mutex); amdgpu_dpm_enable_uvd() 649 mutex_unlock(&adev->pm.mutex); amdgpu_dpm_enable_uvd() 651 mutex_lock(&adev->pm.mutex); amdgpu_dpm_enable_uvd() 653 mutex_unlock(&adev->pm.mutex); amdgpu_dpm_enable_uvd() 663 mutex_lock(&adev->pm.mutex); amdgpu_dpm_enable_vce() 667 mutex_unlock(&adev->pm.mutex); amdgpu_dpm_enable_vce() 670 mutex_lock(&adev->pm.mutex); amdgpu_dpm_enable_vce() 674 mutex_unlock(&adev->pm.mutex); amdgpu_dpm_enable_vce() 676 mutex_lock(&adev->pm.mutex); amdgpu_dpm_enable_vce() 678 mutex_unlock(&adev->pm.mutex); amdgpu_dpm_enable_vce() 752 mutex_lock(&adev->pm.mutex); amdgpu_pm_compute_clocks() 776 mutex_unlock(&adev->pm.mutex); amdgpu_pm_compute_clocks() 792 mutex_lock(&adev->pm.mutex); amdgpu_debugfs_pm_info() 797 mutex_unlock(&adev->pm.mutex); amdgpu_debugfs_pm_info()
|
/linux-4.4.14/sound/aoa/codecs/ |
H A D | onyx.c | 60 /* mutex serializes concurrent access to the device 63 struct mutex mutex; member in struct:onyx 125 mutex_lock(&onyx->mutex); onyx_snd_vol_get() 128 mutex_unlock(&onyx->mutex); onyx_snd_vol_get() 149 mutex_lock(&onyx->mutex); onyx_snd_vol_put() 155 mutex_unlock(&onyx->mutex); onyx_snd_vol_put() 165 mutex_unlock(&onyx->mutex); onyx_snd_vol_put() 201 mutex_lock(&onyx->mutex); onyx_snd_inputgain_get() 203 mutex_unlock(&onyx->mutex); onyx_snd_inputgain_get() 220 mutex_lock(&onyx->mutex); onyx_snd_inputgain_put() 227 mutex_unlock(&onyx->mutex); onyx_snd_inputgain_put() 255 mutex_lock(&onyx->mutex); onyx_snd_capture_source_get() 257 mutex_unlock(&onyx->mutex); onyx_snd_capture_source_get() 268 mutex_lock(&onyx->mutex); onyx_set_capture_source() 274 mutex_unlock(&onyx->mutex); onyx_set_capture_source() 315 mutex_lock(&onyx->mutex); onyx_snd_mute_get() 317 mutex_unlock(&onyx->mutex); onyx_snd_mute_get() 332 mutex_lock(&onyx->mutex); onyx_snd_mute_put() 346 mutex_unlock(&onyx->mutex); onyx_snd_mute_put() 376 mutex_lock(&onyx->mutex); onyx_snd_single_bit_get() 378 mutex_unlock(&onyx->mutex); onyx_snd_single_bit_get() 397 mutex_lock(&onyx->mutex); onyx_snd_single_bit_put() 411 mutex_unlock(&onyx->mutex); onyx_snd_single_bit_put() 493 mutex_lock(&onyx->mutex); onyx_spdif_get() 505 mutex_unlock(&onyx->mutex); onyx_spdif_get() 516 mutex_lock(&onyx->mutex); onyx_spdif_put() 531 mutex_unlock(&onyx->mutex); onyx_spdif_put() 676 mutex_lock(&onyx->mutex); onyx_usable() 683 mutex_unlock(&onyx->mutex); onyx_usable() 701 mutex_lock(&onyx->mutex); onyx_prepare() 739 mutex_unlock(&onyx->mutex); onyx_prepare() 749 mutex_lock(&onyx->mutex); onyx_open() 751 mutex_unlock(&onyx->mutex); onyx_open() 761 mutex_lock(&onyx->mutex); onyx_close() 765 mutex_unlock(&onyx->mutex); onyx_close() 775 mutex_lock(&onyx->mutex); onyx_switch_clock() 787 mutex_unlock(&onyx->mutex); onyx_switch_clock() 800 mutex_lock(&onyx->mutex); onyx_suspend() 807 mutex_unlock(&onyx->mutex); onyx_suspend() 818 mutex_lock(&onyx->mutex); onyx_resume() 838 mutex_unlock(&onyx->mutex); onyx_resume() 1006 mutex_init(&onyx->mutex); onyx_i2c_probe()
|
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/ |
H A D | main.c | 25 mutex_lock(&dev->mutex); mt7601u_start() 36 mutex_unlock(&dev->mutex); mt7601u_start() 44 mutex_lock(&dev->mutex); mt7601u_stop() 50 mutex_unlock(&dev->mutex); mt7601u_stop() 92 mutex_lock(&dev->mutex); mt7601u_config() 100 mutex_unlock(&dev->mutex); mt7601u_config() 118 mutex_lock(&dev->mutex); mt76_configure_filter() 136 mutex_unlock(&dev->mutex); mt76_configure_filter() 145 mutex_lock(&dev->mutex); mt7601u_bss_info_changed() 189 mutex_unlock(&dev->mutex); mt7601u_bss_info_changed() 224 mutex_lock(&dev->mutex); mt7601u_sta_add() 240 mutex_unlock(&dev->mutex); mt7601u_sta_add() 253 mutex_lock(&dev->mutex); mt7601u_sta_remove() 259 mutex_unlock(&dev->mutex); mt7601u_sta_remove()
|
/linux-4.4.14/drivers/tty/serial/ |
H A D | tilegx.c | 51 /* UART access mutex. */ 52 struct mutex mutex; member in struct:tile_uart_port 215 if (!mutex_trylock(&tile_uart->mutex)) tilegx_tx_empty() 221 mutex_unlock(&tile_uart->mutex); tilegx_tx_empty() 265 if (!mutex_trylock(&tile_uart->mutex)) tilegx_start_tx() 277 mutex_unlock(&tile_uart->mutex); tilegx_start_tx() 292 mutex_unlock(&tile_uart->mutex); tilegx_start_tx() 307 if (!mutex_trylock(&tile_uart->mutex)) tilegx_stop_rx() 314 mutex_unlock(&tile_uart->mutex); tilegx_stop_rx() 337 if (mutex_lock_interruptible(&tile_uart->mutex)) tilegx_startup() 383 mutex_unlock(&tile_uart->mutex); tilegx_startup() 394 mutex_unlock(&tile_uart->mutex); tilegx_startup() 412 if (mutex_lock_interruptible(&tile_uart->mutex)) tilegx_shutdown() 435 mutex_unlock(&tile_uart->mutex); tilegx_shutdown() 462 if (!mutex_trylock(&tile_uart->mutex)) tilegx_set_termios() 470 mutex_unlock(&tile_uart->mutex); tilegx_set_termios() 513 mutex_unlock(&tile_uart->mutex); tilegx_set_termios() 639 mutex_init(&tile_uart_ports[i].mutex); tilegx_init_ports()
|
/linux-4.4.14/drivers/rtc/ |
H A D | rtc-ds1374.c | 75 /* The mutex protects alarm operations, and prevents a race 79 struct mutex mutex; member in struct:ds1374 199 mutex_lock(&ds1374->mutex); ds1374_read_alarm() 222 mutex_unlock(&ds1374->mutex); ds1374_read_alarm() 256 mutex_lock(&ds1374->mutex); ds1374_set_alarm() 282 mutex_unlock(&ds1374->mutex); ds1374_set_alarm() 303 mutex_lock(&ds1374->mutex); ds1374_work() 327 mutex_unlock(&ds1374->mutex); ds1374_work() 337 mutex_lock(&ds1374->mutex); ds1374_alarm_irq_enable() 352 mutex_unlock(&ds1374->mutex); ds1374_alarm_irq_enable() 462 mutex_lock(&ds1374->mutex); ds1374_wdt_open() 464 mutex_unlock(&ds1374->mutex); ds1374_wdt_open() 471 mutex_unlock(&ds1374->mutex); ds1374_wdt_open() 565 mutex_lock(&ds1374->mutex); ds1374_wdt_unlocked_ioctl() 567 mutex_unlock(&ds1374->mutex); ds1374_wdt_unlocked_ioctl() 623 mutex_init(&ds1374->mutex); ds1374_probe() 673 mutex_lock(&ds1374->mutex); ds1374_remove() 675 mutex_unlock(&ds1374->mutex); ds1374_remove()
|
/linux-4.4.14/arch/blackfin/mm/ |
H A D | sram-alloc.c | 92 /* mutex initialize */ l1sram_init() 148 /* mutex initialize */ l1_data_sram_init() 183 /* mutex initialize */ l1_inst_sram_init() 248 /* mutex initialize */ l2_sram_init() 445 /* add mutex operation */ l1_data_A_sram_alloc() 451 /* add mutex operation */ l1_data_A_sram_alloc() 472 /* add mutex operation */ l1_data_A_sram_free() 478 /* add mutex operation */ l1_data_A_sram_free() 496 /* add mutex operation */ l1_data_B_sram_alloc() 502 /* add mutex operation */ l1_data_B_sram_alloc() 523 /* add mutex operation */ l1_data_B_sram_free() 529 /* add mutex operation */ l1_data_B_sram_free() 579 /* add mutex operation */ l1_inst_sram_alloc() 585 /* add mutex operation */ l1_inst_sram_alloc() 606 /* add mutex operation */ l1_inst_sram_free() 612 /* add mutex operation */ l1_inst_sram_free() 630 /* add mutex operation */ l1sram_alloc() 636 /* add mutex operation */ l1sram_alloc() 650 /* add mutex operation */ l1sram_alloc_max() 656 /* add mutex operation */ l1sram_alloc_max() 670 /* add mutex operation */ l1sram_free() 676 /* add mutex operation */ l1sram_free() 688 /* add mutex operation */ l2_sram_alloc() 694 /* add mutex operation */ l2_sram_alloc() 724 /* add mutex operation */ l2_sram_free() 730 /* add mutex operation */ l2_sram_free()
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_overlay.c | 54 struct mutex mutex; member in struct:vmw_overlay 373 mutex_lock(&overlay->mutex); vmw_overlay_stop_all() 384 mutex_unlock(&overlay->mutex); vmw_overlay_stop_all() 404 mutex_lock(&overlay->mutex); vmw_overlay_resume_all() 418 mutex_unlock(&overlay->mutex); vmw_overlay_resume_all() 438 mutex_lock(&overlay->mutex); vmw_overlay_pause_all() 448 mutex_unlock(&overlay->mutex); vmw_overlay_pause_all() 480 mutex_lock(&overlay->mutex); vmw_overlay_ioctl() 496 mutex_unlock(&overlay->mutex); vmw_overlay_ioctl() 518 mutex_lock(&overlay->mutex); vmw_overlay_num_free_overlays() 524 mutex_unlock(&overlay->mutex); vmw_overlay_num_free_overlays() 537 mutex_lock(&overlay->mutex); vmw_overlay_claim() 546 mutex_unlock(&overlay->mutex); vmw_overlay_claim() 550 mutex_unlock(&overlay->mutex); vmw_overlay_claim() 563 mutex_lock(&overlay->mutex); vmw_overlay_unref() 569 mutex_unlock(&overlay->mutex); vmw_overlay_unref() 585 mutex_init(&overlay->mutex); vmw_overlay_init()
|
/linux-4.4.14/drivers/iio/gyro/ |
H A D | bmg160_core.c | 104 struct mutex mutex; member in struct:bmg160_data 428 mutex_lock(&data->mutex); bmg160_get_temp() 431 mutex_unlock(&data->mutex); bmg160_get_temp() 439 mutex_unlock(&data->mutex); bmg160_get_temp() 445 mutex_unlock(&data->mutex); bmg160_get_temp() 457 mutex_lock(&data->mutex); bmg160_get_axis() 460 mutex_unlock(&data->mutex); bmg160_get_axis() 469 mutex_unlock(&data->mutex); bmg160_get_axis() 475 mutex_unlock(&data->mutex); bmg160_get_axis() 533 mutex_lock(&data->mutex); bmg160_read_raw() 535 mutex_unlock(&data->mutex); bmg160_read_raw() 551 mutex_lock(&data->mutex); bmg160_write_raw() 561 mutex_unlock(&data->mutex); bmg160_write_raw() 567 mutex_unlock(&data->mutex); bmg160_write_raw() 571 mutex_unlock(&data->mutex); bmg160_write_raw() 577 mutex_lock(&data->mutex); bmg160_write_raw() 581 mutex_unlock(&data->mutex); bmg160_write_raw() 587 mutex_unlock(&data->mutex); bmg160_write_raw() 591 mutex_unlock(&data->mutex); bmg160_write_raw() 667 mutex_lock(&data->mutex); bmg160_write_event_config() 671 mutex_unlock(&data->mutex); bmg160_write_event_config() 685 mutex_unlock(&data->mutex); bmg160_write_event_config() 692 mutex_unlock(&data->mutex); bmg160_write_event_config() 697 mutex_unlock(&data->mutex); bmg160_write_event_config() 775 mutex_lock(&data->mutex); bmg160_trigger_handler() 781 mutex_unlock(&data->mutex); bmg160_trigger_handler() 786 mutex_unlock(&data->mutex); bmg160_trigger_handler() 825 mutex_lock(&data->mutex); bmg160_data_rdy_trigger_set_state() 829 mutex_unlock(&data->mutex); bmg160_data_rdy_trigger_set_state() 839 mutex_unlock(&data->mutex); bmg160_data_rdy_trigger_set_state() 848 mutex_unlock(&data->mutex); bmg160_data_rdy_trigger_set_state() 856 mutex_unlock(&data->mutex); bmg160_data_rdy_trigger_set_state() 1014 mutex_init(&data->mutex); bmg160_core_probe() 1129 mutex_lock(&data->mutex); bmg160_core_remove() 1131 mutex_unlock(&data->mutex); bmg160_core_remove() 1141 mutex_lock(&data->mutex); bmg160_suspend() 1143 mutex_unlock(&data->mutex); bmg160_suspend() 1153 mutex_lock(&data->mutex); bmg160_resume() 1157 mutex_unlock(&data->mutex); bmg160_resume()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process.c | 23 #include <linux/mutex.h> 95 * take kfd processes mutex before starting of process creation kfd_create_process() 169 mutex_lock(&p->mutex); kfd_process_wq_release() 189 mutex_unlock(&p->mutex); kfd_process_wq_release() 191 mutex_destroy(&p->mutex); kfd_process_wq_release() 239 mutex_lock(&p->mutex); kfd_process_notifier_release() 253 mutex_unlock(&p->mutex); kfd_process_notifier_release() 288 mutex_init(&process->mutex); create_process() 415 mutex_lock(&p->mutex); kfd_unbind_process_from_device() 425 mutex_unlock(&p->mutex); kfd_unbind_process_from_device() 442 mutex_unlock(&p->mutex); kfd_unbind_process_from_device() 465 /* This returns with process->mutex locked. */ kfd_lookup_process_by_pasid() 475 mutex_lock(&p->mutex); hash_for_each_rcu()
|
/linux-4.4.14/fs/ceph/ |
H A D | mds_client.c | 389 * called under mdsc->mutex 423 * called under mdsc->mutex. 497 * called under mdsc->mutex 513 * should be last request ref, or hold mdsc->mutex 548 * changed between the dir mutex being dropped and ceph_mdsc_release_request() 567 * called under mdsc->mutex. 615 * Called under mdsc->mutex. 692 * Called under mdsc->mutex. 927 * called under mdsc->mutex 954 * called under mdsc->mutex 981 mutex_lock(&mdsc->mutex); ceph_mdsc_open_export_target_session() 983 mutex_unlock(&mdsc->mutex); ceph_mdsc_open_export_target_session() 1012 mutex_lock(&mdsc->mutex); ceph_mdsc_open_export_target_sessions() 1014 mutex_unlock(&mdsc->mutex); ceph_mdsc_open_export_target_sessions() 1049 mutex_lock(&mdsc->mutex); cleanup_session_requests() 1067 mutex_unlock(&mdsc->mutex); cleanup_session_requests() 1533 mutex_lock(&mdsc->mutex); wait_caps_flush() 1543 mutex_unlock(&mdsc->mutex); wait_caps_flush() 1572 mutex_lock(&mdsc->mutex); wait_caps_flush() 1574 mutex_unlock(&mdsc->mutex); wait_caps_flush() 1734 * called under mdsc->mutex. 1912 * called under mdsc->mutex 2041 * called under mdsc->mutex if error, under no mutex if 2054 * called under mdsc->mutex 2225 * called under mdsc->mutex 2274 mutex_lock(&mdsc->mutex); ceph_mdsc_submit_request() 2277 mutex_unlock(&mdsc->mutex); ceph_mdsc_submit_request() 2302 mutex_lock(&mdsc->mutex); ceph_mdsc_do_request() 2312 mutex_unlock(&mdsc->mutex); ceph_mdsc_do_request() 2328 mutex_lock(&mdsc->mutex); ceph_mdsc_do_request() 2339 * rely on locks (dir mutex) held by our caller. ceph_mdsc_do_request() 2354 mutex_unlock(&mdsc->mutex); ceph_mdsc_do_request() 2379 * We take the session mutex and parse and process the reply immediately. 2402 mutex_lock(&mdsc->mutex); handle_reply() 2406 mutex_unlock(&mdsc->mutex); handle_reply() 2416 mutex_unlock(&mdsc->mutex); handle_reply() 2425 mutex_unlock(&mdsc->mutex); handle_reply() 2431 mutex_unlock(&mdsc->mutex); handle_reply() 2451 mutex_unlock(&mdsc->mutex); handle_reply() 2458 mutex_unlock(&mdsc->mutex); handle_reply() 2484 mutex_unlock(&mdsc->mutex); handle_reply() 2503 mutex_unlock(&mdsc->mutex); handle_reply() 2547 mutex_lock(&mdsc->mutex); handle_reply() 2558 mutex_unlock(&mdsc->mutex); handle_reply() 2590 mutex_lock(&mdsc->mutex); handle_forward() 2616 mutex_unlock(&mdsc->mutex); handle_forward() 2642 mutex_lock(&mdsc->mutex); handle_session() 2647 mutex_unlock(&mdsc->mutex); handle_session() 2718 mutex_lock(&mdsc->mutex); handle_session() 2722 mutex_unlock(&mdsc->mutex); handle_session() 2735 * called under session->mutex. 2746 mutex_lock(&mdsc->mutex); replay_unsafe_requests() 2777 mutex_unlock(&mdsc->mutex); replay_unsafe_requests() 2906 * called with mdsc->mutex held. 3025 mutex_lock(&mdsc->mutex); send_mds_reconnect() 3027 mutex_unlock(&mdsc->mutex); send_mds_reconnect() 3048 * called under mdsc->mutex. 3086 mutex_unlock(&mdsc->mutex); check_new_map() 3088 mutex_lock(&mdsc->mutex); check_new_map() 3102 mutex_unlock(&mdsc->mutex); check_new_map() 3104 mutex_lock(&mdsc->mutex); check_new_map() 3344 mutex_lock(&mdsc->mutex); drop_leases() 3349 mutex_unlock(&mdsc->mutex); drop_leases() 3353 mutex_lock(&mdsc->mutex); drop_leases() 3355 mutex_unlock(&mdsc->mutex); drop_leases() 3381 mutex_lock(&mdsc->mutex); delayed_work() 3410 mutex_unlock(&mdsc->mutex); delayed_work() 3423 mutex_lock(&mdsc->mutex); delayed_work() 3425 mutex_unlock(&mdsc->mutex); delayed_work() 3440 mutex_init(&mdsc->mutex); ceph_mdsc_init() 3496 mutex_lock(&mdsc->mutex); wait_requests() 3498 mutex_unlock(&mdsc->mutex); wait_requests() 3505 mutex_lock(&mdsc->mutex); wait_requests() 3512 mutex_unlock(&mdsc->mutex); wait_requests() 3544 mutex_lock(&mdsc->mutex); wait_unsafe_requests() 3561 mutex_unlock(&mdsc->mutex); wait_unsafe_requests() 3565 mutex_lock(&mdsc->mutex); wait_unsafe_requests() 3578 mutex_unlock(&mdsc->mutex); wait_unsafe_requests() 3590 mutex_lock(&mdsc->mutex); ceph_mdsc_sync() 3592 mutex_unlock(&mdsc->mutex); ceph_mdsc_sync() 3632 mutex_lock(&mdsc->mutex); ceph_mdsc_close_sessions() 3637 mutex_unlock(&mdsc->mutex); ceph_mdsc_close_sessions() 3642 mutex_lock(&mdsc->mutex); ceph_mdsc_close_sessions() 3644 mutex_unlock(&mdsc->mutex); ceph_mdsc_close_sessions() 3651 mutex_lock(&mdsc->mutex); ceph_mdsc_close_sessions() 3656 mutex_unlock(&mdsc->mutex); ceph_mdsc_close_sessions() 3661 mutex_lock(&mdsc->mutex); ceph_mdsc_close_sessions() 3665 mutex_unlock(&mdsc->mutex); ceph_mdsc_close_sessions() 3681 mutex_lock(&mdsc->mutex); ceph_mdsc_force_umount() 3686 mutex_unlock(&mdsc->mutex); ceph_mdsc_force_umount() 3695 mutex_lock(&mdsc->mutex); ceph_mdsc_force_umount() 3699 mutex_unlock(&mdsc->mutex); ceph_mdsc_force_umount() 3752 mutex_lock(&mdsc->mutex); ceph_mdsc_handle_map() 3756 mutex_unlock(&mdsc->mutex); ceph_mdsc_handle_map() 3779 mutex_unlock(&mdsc->mutex); ceph_mdsc_handle_map() 3784 mutex_unlock(&mdsc->mutex); ceph_mdsc_handle_map() 3829 mutex_lock(&mdsc->mutex); dispatch() 3831 mutex_unlock(&mdsc->mutex); dispatch() 3834 mutex_unlock(&mdsc->mutex); dispatch()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
H A D | rh.c | 91 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked. 94 * case, maybe we should move the mutex locking from 129 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked. 132 * mutex--the only race condition we can find is some bit 172 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked 204 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked. 229 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked. 244 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked. 265 mutex_lock(&wusbhc->mutex); wusbhc_rh_set_port_feat() 267 mutex_unlock(&wusbhc->mutex); wusbhc_rh_set_port_feat() 288 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked. 299 mutex_lock(&wusbhc->mutex); wusbhc_rh_clear_port_feat() 329 mutex_unlock(&wusbhc->mutex); wusbhc_rh_clear_port_feat() 337 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked. 347 mutex_lock(&wusbhc->mutex); wusbhc_rh_get_port_status() 350 mutex_unlock(&wusbhc->mutex); wusbhc_rh_get_port_status() 358 * @wusbhc is assumed referenced and @wusbhc->mutex unlocked.
|
/linux-4.4.14/drivers/usb/host/whci/ |
H A D | wusb.c | 110 mutex_lock(&whc->mutex); whc_dev_info_set() 118 mutex_unlock(&whc->mutex); whc_dev_info_set() 178 mutex_lock(&whc->mutex); whc_set_ptk() 192 mutex_unlock(&whc->mutex); whc_set_ptk() 208 mutex_lock(&whc->mutex); whc_set_gtk() 212 mutex_unlock(&whc->mutex); whc_set_gtk()
|
/linux-4.4.14/drivers/scsi/cxlflash/ |
H A D | superpipe.h | 54 struct mutex mutex; member in struct:glun_info 107 struct mutex mutex; /* Context protection */ member in struct:ctx_info 116 struct mutex mutex; member in struct:cxlflash_global
|
H A D | lunmgt.c | 69 mutex_init(&gli->mutex); create_global() 126 * This routine assumes the caller holds the global mutex. 180 mutex_lock(&global.mutex); cxlflash_term_local_luns() 185 mutex_unlock(&global.mutex); cxlflash_term_local_luns() 194 mutex_init(&global.mutex); cxlflash_list_init() 205 mutex_lock(&global.mutex); cxlflash_term_global_luns() 211 mutex_unlock(&global.mutex); cxlflash_term_global_luns() 233 mutex_lock(&global.mutex); cxlflash_manage_lun() 266 mutex_unlock(&global.mutex); cxlflash_manage_lun()
|
/linux-4.4.14/drivers/iio/dac/ |
H A D | m62332.c | 35 struct mutex mutex; member in struct:m62332_data 55 mutex_lock(&data->mutex); m62332_set_value() 74 mutex_unlock(&data->mutex); m62332_set_value() 79 mutex_unlock(&data->mutex); m62332_set_value() 211 mutex_init(&data->mutex); m62332_probe()
|
/linux-4.4.14/drivers/gpio/ |
H A D | gpiolib-sysfs.c | 2 #include <linux/mutex.h> 21 struct mutex mutex; member in struct:gpiod_data 63 mutex_lock(&data->mutex); direction_show() 70 mutex_unlock(&data->mutex); direction_show() 82 mutex_lock(&data->mutex); direction_store() 93 mutex_unlock(&data->mutex); direction_store() 106 mutex_lock(&data->mutex); value_show() 110 mutex_unlock(&data->mutex); value_show() 122 mutex_lock(&data->mutex); value_store() 136 mutex_unlock(&data->mutex); value_store() 151 /* Caller holds gpiod-data mutex. */ gpio_sysfs_request_irq() 205 * Caller holds gpiod-data mutex (unless called after class-device 236 mutex_lock(&data->mutex); edge_show() 245 mutex_unlock(&data->mutex); edge_show() 268 mutex_lock(&data->mutex); edge_store() 285 mutex_unlock(&data->mutex); edge_store() 291 /* Caller holds gpiod-data mutex. */ gpio_sysfs_set_active_low() 324 mutex_lock(&data->mutex); active_low_show() 329 mutex_unlock(&data->mutex); active_low_show() 341 mutex_lock(&data->mutex); active_low_store() 347 mutex_unlock(&data->mutex); active_low_store() 598 mutex_init(&data->mutex); gpiod_export() 792 * gpiochip_sysfs_register() acquires a mutex. This is unsafe gpiolib_sysfs_init()
|
H A D | gpio-twl4030.c | 68 struct mutex mutex; member in struct:gpio_twl4030_priv 211 mutex_lock(&priv->mutex); twl_request() 270 mutex_unlock(&priv->mutex); twl_request() 278 mutex_lock(&priv->mutex); twl_free() 291 mutex_unlock(&priv->mutex); twl_free() 299 mutex_lock(&priv->mutex); twl_direction_in() 308 mutex_unlock(&priv->mutex); twl_direction_in() 319 mutex_lock(&priv->mutex); twl_get() 332 mutex_unlock(&priv->mutex); twl_get() 340 mutex_lock(&priv->mutex); twl_set() 351 mutex_unlock(&priv->mutex); twl_set() 359 mutex_lock(&priv->mutex); twl_direction_out() 363 mutex_unlock(&priv->mutex); twl_direction_out() 373 mutex_unlock(&priv->mutex); twl_direction_out() 514 mutex_init(&priv->mutex); gpio_twl4030_probe()
|
/linux-4.4.14/drivers/vme/ |
H A D | vme_bridge.h | 15 * protect master routines with a spinlock rather than a mutex. 30 struct mutex mtx; 57 struct mutex mtx; 63 struct mutex mtx; 74 struct mutex mtx; 127 struct mutex irq_mtx;
|
/linux-4.4.14/drivers/net/wireless/p54/ |
H A D | p54spi.h | 25 #include <linux/mutex.h> 113 struct mutex mutex; member in struct:p54s_priv
|
/linux-4.4.14/sound/aoa/ |
H A D | aoa-gpio.h | 12 #include <linux/mutex.h> 68 struct mutex mutex; member in struct:gpio_notification
|
/linux-4.4.14/sound/aoa/soundbus/i2sbus/ |
H A D | i2sbus.h | 12 #include <linux/mutex.h> 89 /* mutex for high-level consistency */ 90 struct mutex lock;
|
/linux-4.4.14/include/sound/ |
H A D | util_mem.h | 4 #include <linux/mutex.h> 45 struct mutex block_mutex; /* lock */ 57 /* functions without mutex */
|
/linux-4.4.14/drivers/usb/gadget/function/ |
H A D | u_ecm.h | 32 struct mutex lock;
|
H A D | u_eem.h | 32 struct mutex lock;
|
H A D | u_gether.h | 32 struct mutex lock;
|
H A D | u_midi.h | 35 struct mutex lock;
|
H A D | u_ncm.h | 32 struct mutex lock;
|
H A D | u_printer.h | 33 struct mutex lock;
|
H A D | u_uac2.h | 38 struct mutex lock;
|
/linux-4.4.14/drivers/usb/phy/ |
H A D | phy-isp1301.c | 14 #include <linux/mutex.h> 23 struct mutex mutex; member in struct:isp1301 103 mutex_init(&isp->mutex); isp1301_probe()
|
/linux-4.4.14/drivers/mtd/ |
H A D | mtdcore.h | 6 extern struct mutex mtd_table_mutex;
|
/linux-4.4.14/drivers/gpu/drm/sti/ |
H A D | sti_drv.h | 31 struct mutex lock;
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | i2c.h | 37 struct mutex mutex; member in struct:nvkm_i2c_bus 56 struct mutex mutex; member in struct:nvkm_i2c_aux
|
/linux-4.4.14/drivers/char/xillybus/ |
H A D | xillybus.h | 23 #include <linux/mutex.h> 64 struct mutex wr_mutex; 81 struct mutex rd_mutex; 105 struct mutex register_mutex;
|
/linux-4.4.14/fs/nfs/ |
H A D | netns.h | 22 struct mutex bl_mutex;
|
/linux-4.4.14/include/linux/spi/ |
H A D | max7301.h | 11 struct mutex lock;
|
/linux-4.4.14/include/linux/mtd/ |
H A D | flashchip.h | 29 #include <linux/mutex.h> 89 struct mutex mutex; member in struct:flchip 106 struct mutex lock;
|
/linux-4.4.14/arch/arm/mach-omap1/ |
H A D | pm_bus.c | 18 #include <linux/mutex.h>
|