Lines Matching refs:mutex
128 struct mutex mutex;
135 struct usb_request *ep0req; /* P: mutex */
136 struct completion ep0req_completion; /* P: mutex */
137 int ep0req_status; /* P: mutex */
150 * happens only in ep0 read which is P: mutex
152 * happens only in ep0 i/o which is P: mutex
233 /* Called with ffs->mutex held; take over ownerrship of data. */
290 struct usb_request *req; /* P: epfile->mutex */
297 int status; /* P: epfile->mutex */
302 struct mutex mutex;
330 static int ffs_mutex_lock(struct mutex *mutex, unsigned nonblock)
401 /* Acquire mutex */
402 ret = ffs_mutex_lock(&ffs->mutex, file->f_flags & O_NONBLOCK);
445 mutex_unlock(&ffs->mutex);
505 * mutex. */
525 mutex_unlock(&ffs->mutex);
534 /* We are holding ffs->ev.waitq.lock and ffs->mutex and we need
559 mutex_unlock(&ffs->mutex);
580 /* Acquire mutex */
581 ret = ffs_mutex_lock(&ffs->mutex, file->f_flags & O_NONBLOCK);
663 mutex_unlock(&ffs->mutex);
757 mutex_unlock(&epfile->mutex);
802 ret = ffs_mutex_lock(&epfile->mutex,
811 /* While we were acquiring mutex endpoint got disabled
848 mutex_unlock(&epfile->mutex);
1277 BUG_ON(mutex_is_locked(&ffs->mutex) ||
1311 mutex_init(&ffs->mutex);
1431 mutex_init(&epfile->mutex);
1454 BUG_ON(mutex_is_locked(&epfile->mutex) ||
2397 static int ffs_mutex_lock(struct mutex *mutex, unsigned nonblock)
2400 ? likely(mutex_trylock(mutex)) ? 0 : -EAGAIN
2401 : mutex_lock_interruptible(mutex);