Searched refs:dev_lock_count (Results 1 – 18 of 18) sorted by relevance
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()
707 if (oxfw->dev_lock_count < 0) { in snd_oxfw_stream_lock_try()713 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()725 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()727 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
72 int dev_lock_count; member
42 event.lock_status.status = (dg00x->dev_lock_count > 0); in hwdep_read()106 if (dg00x->dev_lock_count == 0) { in hwdep_lock()107 dg00x->dev_lock_count = -1; in hwdep_lock()124 if (dg00x->dev_lock_count == -1) { in hwdep_unlock()125 dg00x->dev_lock_count = 0; in hwdep_unlock()141 if (dg00x->dev_lock_count == -1) in hwdep_release()142 dg00x->dev_lock_count = 0; in hwdep_release()
398 if (dg00x->dev_lock_count < 0) { in snd_dg00x_stream_lock_try()404 if (dg00x->dev_lock_count++ == 0) in snd_dg00x_stream_lock_try()416 if (WARN_ON(dg00x->dev_lock_count <= 0)) in snd_dg00x_stream_lock_release()418 if (--dg00x->dev_lock_count == 0) in snd_dg00x_stream_lock_release()
49 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()
393 if (dice->dev_lock_count < 0) { in snd_dice_stream_lock_try()398 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()410 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()413 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
66 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
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()
1080 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()1086 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()1098 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()1100 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
110 int dev_lock_count; member
27 event.lock_status.status = (tscm->dev_lock_count > 0); in hwdep_read_locked()107 if (tscm->dev_lock_count == 0) { in hwdep_lock()108 tscm->dev_lock_count = -1; in hwdep_lock()125 if (tscm->dev_lock_count == -1) { in hwdep_unlock()126 tscm->dev_lock_count = 0; in hwdep_unlock()142 if (tscm->dev_lock_count == -1) in hwdep_release()143 tscm->dev_lock_count = 0; in hwdep_release()
472 if (tscm->dev_lock_count < 0) { in snd_tscm_stream_lock_try()478 if (tscm->dev_lock_count++ == 0) in snd_tscm_stream_lock_try()490 if (WARN_ON(tscm->dev_lock_count <= 0)) in snd_tscm_stream_lock_release()492 if (--tscm->dev_lock_count == 0) in snd_tscm_stream_lock_release()
63 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()
355 if (efw->dev_lock_count < 0) { in snd_efw_stream_lock_try()361 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()373 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()375 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
101 int dev_lock_count; member