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 …]
294 struct mutex pm_mutex; /* serialize access to open/suspend */ member851 mutex_lock(&dev->pm_mutex); in bcm5974_open()857 mutex_unlock(&dev->pm_mutex); in bcm5974_open()869 mutex_lock(&dev->pm_mutex); in bcm5974_close()874 mutex_unlock(&dev->pm_mutex); in bcm5974_close()883 mutex_lock(&dev->pm_mutex); in bcm5974_suspend()888 mutex_unlock(&dev->pm_mutex); in bcm5974_suspend()898 mutex_lock(&dev->pm_mutex); in bcm5974_resume()903 mutex_unlock(&dev->pm_mutex); in bcm5974_resume()932 mutex_init(&dev->pm_mutex); in bcm5974_probe()
408 extern struct mutex pm_mutex;440 mutex_lock(&pm_mutex); in lock_system_sleep()461 mutex_unlock(&pm_mutex); in unlock_system_sleep()
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
484 if (!mutex_trylock(&pm_mutex)) in enter_state()517 mutex_unlock(&pm_mutex); in enter_state()
212 if (!mutex_trylock(&pm_mutex)) in snapshot_ioctl()390 mutex_unlock(&pm_mutex); in snapshot_ioctl()
762 mutex_lock_nested(&pm_mutex, SINGLE_DEPTH_NESTING); in software_resume()863 mutex_unlock(&pm_mutex); in software_resume()
21 DEFINE_MUTEX(pm_mutex);
4249 mutex_lock(&cp->pm_mutex); in cas_open()4304 mutex_unlock(&cp->pm_mutex); in cas_open()4313 mutex_unlock(&cp->pm_mutex); in cas_open()4326 mutex_lock(&cp->pm_mutex); in cas_close()4343 mutex_unlock(&cp->pm_mutex); in cas_close()4782 mutex_lock(&cp->pm_mutex); in cas_ioctl()4808 mutex_unlock(&cp->pm_mutex); in cas_ioctl()5037 mutex_init(&cp->pm_mutex); in cas_init_one()5143 mutex_lock(&cp->pm_mutex); in cas_init_one()5146 mutex_unlock(&cp->pm_mutex); in cas_init_one()[all …]
2770 struct mutex pm_mutex; /* open/close/suspend/resume */ member
160 WARN_ON(!mutex_is_locked(&pm_mutex)); in pm_restore_gfp_mask()169 WARN_ON(!mutex_is_locked(&pm_mutex)); in pm_restrict_gfp_mask()