Searched refs:pm_mutex (Results 1 – 13 of 13) sorted by relevance
124 struct mutex pm_mutex; member537 mutex_lock(&dev->pm_mutex); in cm109_input_open()556 mutex_unlock(&dev->pm_mutex); in cm109_input_open()568 mutex_lock(&dev->pm_mutex); in cm109_input_close()578 mutex_unlock(&dev->pm_mutex); in cm109_input_close()688 mutex_init(&dev->pm_mutex); in cm109_usb_probe()801 mutex_lock(&dev->pm_mutex); in cm109_usb_suspend()803 mutex_unlock(&dev->pm_mutex); in cm109_usb_suspend()814 mutex_lock(&dev->pm_mutex); in cm109_usb_resume()816 mutex_unlock(&dev->pm_mutex); in cm109_usb_resume()[all …]
251 struct mutex pm_mutex; /* serialize access to open/suspend */ member792 mutex_lock(&dev->pm_mutex); in bcm5974_open()798 mutex_unlock(&dev->pm_mutex); in bcm5974_open()810 mutex_lock(&dev->pm_mutex); in bcm5974_close()815 mutex_unlock(&dev->pm_mutex); in bcm5974_close()824 mutex_lock(&dev->pm_mutex); in bcm5974_suspend()829 mutex_unlock(&dev->pm_mutex); in bcm5974_suspend()839 mutex_lock(&dev->pm_mutex); in bcm5974_resume()844 mutex_unlock(&dev->pm_mutex); in bcm5974_resume()873 mutex_init(&dev->pm_mutex); in bcm5974_probe()
372 extern struct mutex pm_mutex;402 mutex_lock(&pm_mutex); in lock_system_sleep()423 mutex_unlock(&pm_mutex); in unlock_system_sleep()
479 if (!mutex_trylock(&pm_mutex)) in enter_state()509 mutex_unlock(&pm_mutex); in enter_state()
212 if (!mutex_trylock(&pm_mutex)) in snapshot_ioctl()390 mutex_unlock(&pm_mutex); in snapshot_ioctl()
759 mutex_lock_nested(&pm_mutex, SINGLE_DEPTH_NESTING); in software_resume()860 mutex_unlock(&pm_mutex); in software_resume()
21 DEFINE_MUTEX(pm_mutex);
206 First of all, grabbing the 'pm_mutex' lock to mutually exclude a piece of code212 However, if that is not feasible, and grabbing 'pm_mutex' is deemed necessary,213 it is strongly discouraged to directly call mutex_[un]lock(&pm_mutex) since215 successfully acquired the 'pm_mutex' lock, and hence that other entity failed222 "frozen enough" as it is blocked on 'pm_mutex', which will be released225 mutex_[un]lock(&pm_mutex). That would prevent freezing failures.
35 Acquire pm_mutex lock99 * Release pm_mutex lock.102 It is to be noted here that the pm_mutex lock is acquired at the very
50 The hibernation and suspend notifiers are called with pm_mutex held. They are
4250 mutex_lock(&cp->pm_mutex); in cas_open()4305 mutex_unlock(&cp->pm_mutex); in cas_open()4314 mutex_unlock(&cp->pm_mutex); in cas_open()4327 mutex_lock(&cp->pm_mutex); in cas_close()4344 mutex_unlock(&cp->pm_mutex); in cas_close()4786 mutex_lock(&cp->pm_mutex); in cas_ioctl()4812 mutex_unlock(&cp->pm_mutex); in cas_ioctl()5041 mutex_init(&cp->pm_mutex); in cas_init_one()5147 mutex_lock(&cp->pm_mutex); in cas_init_one()5150 mutex_unlock(&cp->pm_mutex); in cas_init_one()[all …]
2770 struct mutex pm_mutex; /* open/close/suspend/resume */ member
141 WARN_ON(!mutex_is_locked(&pm_mutex)); in pm_restore_gfp_mask()150 WARN_ON(!mutex_is_locked(&pm_mutex)); in pm_restrict_gfp_mask()