Lines Matching refs:user_lock
19 struct mutex user_lock; member
47 mutex_lock(&buf->user_lock); in iio_request_update_kfifo()
57 mutex_unlock(&buf->user_lock); in iio_request_update_kfifo()
106 if (mutex_lock_interruptible(&kf->user_lock)) in iio_read_kfifo()
113 mutex_unlock(&kf->user_lock); in iio_read_kfifo()
125 mutex_lock(&kf->user_lock); in iio_kfifo_buf_data_available()
127 mutex_unlock(&kf->user_lock); in iio_kfifo_buf_data_available()
136 mutex_destroy(&kf->user_lock); in iio_kfifo_buffer_release()
146 mutex_lock(&kf->user_lock); in iio_kfifo_buf_space_available()
148 mutex_unlock(&kf->user_lock); in iio_kfifo_buf_space_available()
176 mutex_lock(&kf->user_lock); in iio_kfifo_write()
181 mutex_unlock(&kf->user_lock); in iio_kfifo_write()
215 mutex_init(&kf->user_lock); in iio_kfifo_allocate()