Searched refs:dev_lock_count (Results 1 – 12 of 12) sorted by relevance
42 event.lock_status.status = (bebob->dev_lock_count > 0); in hwdep_read()101 if (bebob->dev_lock_count == 0) { in hwdep_lock()102 bebob->dev_lock_count = -1; in hwdep_lock()120 if (bebob->dev_lock_count == -1) { in hwdep_unlock()121 bebob->dev_lock_count = 0; in hwdep_unlock()138 if (bebob->dev_lock_count == -1) in hwdep_release()139 bebob->dev_lock_count = 0; in hwdep_release()
998 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()1004 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()1016 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()1018 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
106 int dev_lock_count; member
34 event.lock_status.status = dice->dev_lock_count > 0; in hwdep_read()98 if (dice->dev_lock_count == 0) { in hwdep_lock()99 dice->dev_lock_count = -1; in hwdep_lock()116 if (dice->dev_lock_count == -1) { in hwdep_unlock()117 dice->dev_lock_count = 0; in hwdep_unlock()133 if (dice->dev_lock_count == -1) in hwdep_release()134 dice->dev_lock_count = 0; in hwdep_release()
389 if (dice->dev_lock_count < 0) { in snd_dice_stream_lock_try()394 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()406 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()409 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
66 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
41 event.lock_status.status = (oxfw->dev_lock_count > 0); in hwdep_read()98 if (oxfw->dev_lock_count == 0) { in hwdep_lock()99 oxfw->dev_lock_count = -1; in hwdep_lock()116 if (oxfw->dev_lock_count == -1) { in hwdep_unlock()117 oxfw->dev_lock_count = 0; in hwdep_unlock()133 if (oxfw->dev_lock_count == -1) in hwdep_release()134 oxfw->dev_lock_count = 0; in hwdep_release()
665 if (oxfw->dev_lock_count < 0) { in snd_oxfw_stream_lock_try()671 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()683 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()685 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
71 int dev_lock_count; member
84 event.lock_status.status = (efw->dev_lock_count > 0); in hwdep_read_locked()199 if (efw->dev_lock_count == 0) { in hwdep_lock()200 efw->dev_lock_count = -1; in hwdep_lock()218 if (efw->dev_lock_count == -1) { in hwdep_unlock()219 efw->dev_lock_count = 0; in hwdep_unlock()236 if (efw->dev_lock_count == -1) in hwdep_release()237 efw->dev_lock_count = 0; in hwdep_release()
353 if (efw->dev_lock_count < 0) { in snd_efw_stream_lock_try()359 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()371 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()373 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
101 int dev_lock_count; member