Lines Matching defs:mutex
8 #include <linux/mutex.h>
47 * @mutex: Protects clock enable/disable
55 struct mutex mutex; /* protects clock enable/disable */
203 * under protection of the mutex, and if appropriate the IPA clock
218 /* Otherwise get the mutex and check again */
219 mutex_lock(&clock->mutex);
221 /* A reference might have been added before we got the mutex. */
234 mutex_unlock(&clock->mutex);
238 * last reference, disable the IPA clock under protection of the mutex.
245 if (!refcount_dec_and_mutex_lock(&clock->count, &clock->mutex))
250 mutex_unlock(&clock->mutex);
290 mutex_init(&clock->mutex);
309 mutex_destroy(&clock->mutex);