Home
last modified time | relevance | path

Searched refs:dev_lock_count (Results 1 – 18 of 18) sorted by relevance

/linux-4.4.14/sound/firewire/oxfw/
Doxfw-hwdep.c41 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()
Doxfw-stream.c707 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()
Doxfw.h72 int dev_lock_count; member
/linux-4.4.14/sound/firewire/digi00x/
Ddigi00x-hwdep.c42 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()
Ddigi00x-stream.c398 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()
Ddigi00x.h49 int dev_lock_count; member
/linux-4.4.14/sound/firewire/dice/
Ddice-hwdep.c34 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()
Ddice-stream.c393 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()
Ddice.h66 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
/linux-4.4.14/sound/firewire/bebob/
Dbebob_hwdep.c42 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()
Dbebob_stream.c1080 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()
Dbebob.h110 int dev_lock_count; member
/linux-4.4.14/sound/firewire/tascam/
Dtascam-hwdep.c27 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()
Dtascam-stream.c472 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()
Dtascam.h63 int dev_lock_count; member
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_hwdep.c84 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()
Dfireworks_stream.c355 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()
Dfireworks.h101 int dev_lock_count; member