Home
last modified time | relevance | path

Searched refs:ops_lock (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/rtc/
H A Dinterface.c114 err = mutex_lock_interruptible(&rtc->ops_lock); in rtc_read_time()
119 mutex_unlock(&rtc->ops_lock); in rtc_read_time()
151 err = mutex_lock_interruptible(&rtc->ops_lock); in rtc_set_time()
163 mutex_unlock(&rtc->ops_lock); in rtc_set_time()
183 err = mutex_lock_interruptible(&rtc->ops_lock); in rtc_read_alarm_internal()
206 mutex_unlock(&rtc->ops_lock); in rtc_read_alarm_internal()
391 err = mutex_lock_interruptible(&rtc->ops_lock); in rtc_read_alarm()
403 mutex_unlock(&rtc->ops_lock); in rtc_read_alarm()
468 err = mutex_lock_interruptible(&rtc->ops_lock); in rtc_set_alarm()
487 mutex_unlock(&rtc->ops_lock); in rtc_set_alarm()
[all …]
H A Ddev.c214 err = mutex_lock_interruptible(&rtc->ops_lock); in rtc_dev_ioctl()
258 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
269 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
321 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
332 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
348 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
352 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
356 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
360 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
371 mutex_unlock(&rtc->ops_lock); in rtc_dev_ioctl()
[all …]
H A Dclass.c31 mutex_lock(&rtc->ops_lock); in rtc_device_release()
34 mutex_unlock(&rtc->ops_lock); in rtc_device_release()
39 mutex_destroy(&rtc->ops_lock); in rtc_device_release()
231 mutex_init(&rtc->ops_lock); in rtc_allocate_device()
345 mutex_lock(&rtc->ops_lock); in devm_rtc_unregister_device()
354 mutex_unlock(&rtc->ops_lock); in devm_rtc_unregister_device()
H A Drtc-isl12026.c300 ret = mutex_lock_interruptible(&priv->rtc->ops_lock); in isl12026_nvm_read()
310 mutex_unlock(&priv->rtc->ops_lock); in isl12026_nvm_read()
341 ret = mutex_lock_interruptible(&priv->rtc->ops_lock); in isl12026_nvm_write()
373 mutex_unlock(&priv->rtc->ops_lock); in isl12026_nvm_write()
H A Drtc-ds1307.c695 struct mutex *lock = &ds1307->rtc->ops_lock; in mcp794xx_irq()
1162 struct mutex *lock = &ds1307->rtc->ops_lock; in ds1307_irq()
1430 struct mutex *lock = &ds1307->rtc->ops_lock; in ds1337_write_control()
1540 struct mutex *lock = &ds1307->rtc->ops_lock; in ds3231_clk_32khz_control()
H A Drtc-ds1685.c844 struct mutex *rtc_mutex = &rtc->dev->ops_lock; in ds1685_nvram_read()
911 struct mutex *rtc_mutex = &rtc->dev->ops_lock; in ds1685_nvram_write()
/linux/drivers/video/backlight/
H A Dlcd.c53 guard(mutex)(&ld->ops_lock); in fb_notifier_callback()
105 mutex_lock(&ld->ops_lock); in lcd_power_show()
110 mutex_unlock(&ld->ops_lock); in lcd_power_show()
128 mutex_lock(&ld->ops_lock); in lcd_power_store()
134 mutex_unlock(&ld->ops_lock); in lcd_power_store()
146 mutex_lock(&ld->ops_lock); in contrast_show()
149 mutex_unlock(&ld->ops_lock); in contrast_show()
167 mutex_lock(&ld->ops_lock); in contrast_store()
173 mutex_unlock(&ld->ops_lock); in contrast_store()
231 mutex_init(&new_ld->ops_lock); in lcd_device_register()
[all …]
H A Dbacklight.c110 mutex_lock(&bd->ops_lock); in fb_notifier_callback()
134 mutex_unlock(&bd->ops_lock); in fb_notifier_callback()
202 mutex_lock(&bd->ops_lock); in bl_power_store()
217 mutex_unlock(&bd->ops_lock); in bl_power_store()
236 mutex_lock(&bd->ops_lock); in backlight_device_set_brightness()
246 mutex_unlock(&bd->ops_lock); in backlight_device_set_brightness()
295 mutex_lock(&bd->ops_lock); in actual_brightness_show()
303 mutex_unlock(&bd->ops_lock); in actual_brightness_show()
326 mutex_lock(&bd->ops_lock); in backlight_suspend()
331 mutex_unlock(&bd->ops_lock); in backlight_suspend()
[all …]
/linux/fs/dlm/
H A Dplock.c19 static DEFINE_SPINLOCK(ops_lock);
94 spin_lock(&ops_lock); in send_op()
96 spin_unlock(&ops_lock); in send_op()
176 spin_lock(&ops_lock); in dlm_posix_lock()
181 spin_unlock(&ops_lock); in dlm_posix_lock()
184 spin_unlock(&ops_lock); in dlm_posix_lock()
194 spin_lock(&ops_lock); in dlm_posix_lock()
196 spin_unlock(&ops_lock); in dlm_posix_lock()
390 spin_lock(&ops_lock); in dlm_posix_cancel()
396 spin_unlock(&ops_lock); in dlm_posix_cancel()
[all …]
/linux/samples/vfio-mdev/
H A Dmbochs.c179 struct mutex ops_lock; member
257 WARN_ON(!mutex_is_locked(&mdev_state->ops_lock)); in mbochs_check_framebuffer()
449 mutex_lock(&mdev_state->ops_lock); in mdev_access()
502 mutex_unlock(&mdev_state->ops_lock); in mdev_access()
547 mutex_init(&mdev_state->ops_lock); in mbochs_init_dev()
733 WARN_ON(!mutex_is_locked(&mdev_state->ops_lock)); in __mbochs_get_page()
754 mutex_lock(&mdev_state->ops_lock); in mbochs_get_page()
756 mutex_unlock(&mdev_state->ops_lock); in mbochs_get_page()
766 WARN_ON(!mutex_is_locked(&mdev_state->ops_lock)); in mbochs_put_pages()
919 mutex_lock(&mdev_state->ops_lock); in mbochs_release_dmabuf()
[all …]
H A Dmdpy.c101 struct mutex ops_lock; member
178 mutex_lock(&mdev_state->ops_lock); in mdev_access()
207 mutex_unlock(&mdev_state->ops_lock); in mdev_access()
245 mutex_init(&mdev_state->ops_lock); in mdpy_init_dev()
H A Dmtty.c159 struct mutex ops_lock; member
233 lockdep_assert_held(&mdev_state->ops_lock); in mtty_trigger_interrupt()
717 mutex_lock(&mdev_state->ops_lock); in mdev_access()
772 mutex_unlock(&mdev_state->ops_lock); in mdev_access()
1341 mutex_init(&mdev_state->ops_lock); in mtty_init_dev()
1562 mutex_lock(&mdev_state->ops_lock); in mtty_set_irqs()
1716 mutex_unlock(&mdev_state->ops_lock); in mtty_set_irqs()
1731 mutex_lock(&mdev_state->ops_lock); in mtty_get_region_info()
1757 mutex_unlock(&mdev_state->ops_lock); in mtty_get_region_info()
/linux/include/linux/
H A Drtc.h94 struct mutex ops_lock; member
167 #define rtc_lock(d) mutex_lock(&d->ops_lock)
168 #define rtc_unlock(d) mutex_unlock(&d->ops_lock)
H A Dlcd.h77 struct mutex ops_lock; member
H A Dbacklight.h270 struct mutex ops_lock; member