Home
last modified time | relevance | path

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

/sound/firewire/bebob/
Dbebob_hwdep.c42 event.lock_status.status = (bebob->dev_lock_count > 0); in hwdep_read()
99 if (bebob->dev_lock_count == 0) { in hwdep_lock()
100 bebob->dev_lock_count = -1; in hwdep_lock()
118 if (bebob->dev_lock_count == -1) { in hwdep_unlock()
119 bebob->dev_lock_count = 0; in hwdep_unlock()
136 if (bebob->dev_lock_count == -1) in hwdep_release()
137 bebob->dev_lock_count = 0; in hwdep_release()
Dbebob_stream.c978 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()
984 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()
996 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()
998 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
Dbebob.h109 int dev_lock_count; member
/sound/firewire/digi00x/
Ddigi00x-hwdep.c41 event.lock_status.status = (dg00x->dev_lock_count > 0); in hwdep_read()
105 if (dg00x->dev_lock_count == 0) { in hwdep_lock()
106 dg00x->dev_lock_count = -1; in hwdep_lock()
123 if (dg00x->dev_lock_count == -1) { in hwdep_unlock()
124 dg00x->dev_lock_count = 0; in hwdep_unlock()
140 if (dg00x->dev_lock_count == -1) in hwdep_release()
141 dg00x->dev_lock_count = 0; in hwdep_release()
Ddigi00x-stream.c424 if (dg00x->dev_lock_count < 0) { in snd_dg00x_stream_lock_try()
430 if (dg00x->dev_lock_count++ == 0) in snd_dg00x_stream_lock_try()
442 if (WARN_ON(dg00x->dev_lock_count <= 0)) in snd_dg00x_stream_lock_release()
444 if (--dg00x->dev_lock_count == 0) in snd_dg00x_stream_lock_release()
Ddigi00x.h52 int dev_lock_count; member
/sound/firewire/fireface/
Dff-hwdep.c40 event.lock_status.status = (ff->dev_lock_count > 0); in hwdep_read()
97 if (ff->dev_lock_count == 0) { in hwdep_lock()
98 ff->dev_lock_count = -1; in hwdep_lock()
115 if (ff->dev_lock_count == -1) { in hwdep_unlock()
116 ff->dev_lock_count = 0; in hwdep_unlock()
132 if (ff->dev_lock_count == -1) in hwdep_release()
133 ff->dev_lock_count = 0; in hwdep_release()
Dff-stream.c250 if (ff->dev_lock_count < 0) { in snd_ff_stream_lock_try()
256 if (ff->dev_lock_count++ == 0) in snd_ff_stream_lock_try()
268 if (WARN_ON(ff->dev_lock_count <= 0)) in snd_ff_stream_lock_release()
270 if (--ff->dev_lock_count == 0) in snd_ff_stream_lock_release()
Dff.h91 int dev_lock_count; member
/sound/firewire/dice/
Ddice-hwdep.c33 event.lock_status.status = dice->dev_lock_count > 0; in hwdep_read()
97 if (dice->dev_lock_count == 0) { in hwdep_lock()
98 dice->dev_lock_count = -1; in hwdep_lock()
115 if (dice->dev_lock_count == -1) { in hwdep_unlock()
116 dice->dev_lock_count = 0; in hwdep_unlock()
132 if (dice->dev_lock_count == -1) in hwdep_release()
133 dice->dev_lock_count = 0; in hwdep_release()
Ddice-stream.c696 if (dice->dev_lock_count < 0) { in snd_dice_stream_lock_try()
701 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()
713 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()
716 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
Ddice.h103 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
/sound/firewire/oxfw/
Doxfw-hwdep.c40 event.lock_status.status = (oxfw->dev_lock_count > 0); in hwdep_read()
97 if (oxfw->dev_lock_count == 0) { in hwdep_lock()
98 oxfw->dev_lock_count = -1; in hwdep_lock()
115 if (oxfw->dev_lock_count == -1) { in hwdep_unlock()
116 oxfw->dev_lock_count = 0; in hwdep_unlock()
132 if (oxfw->dev_lock_count == -1) in hwdep_release()
133 oxfw->dev_lock_count = 0; in hwdep_release()
Doxfw-stream.c782 if (oxfw->dev_lock_count < 0) { in snd_oxfw_stream_lock_try()
788 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()
800 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()
802 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
Doxfw.h60 int dev_lock_count; member
/sound/firewire/motu/
Dmotu-hwdep.c41 event.lock_status.status = (motu->dev_lock_count > 0); in hwdep_read()
104 if (motu->dev_lock_count == 0) { in hwdep_lock()
105 motu->dev_lock_count = -1; in hwdep_lock()
122 if (motu->dev_lock_count == -1) { in hwdep_unlock()
123 motu->dev_lock_count = 0; in hwdep_unlock()
139 if (motu->dev_lock_count == -1) in hwdep_release()
140 motu->dev_lock_count = 0; in hwdep_release()
Dmotu-stream.c374 if (motu->dev_lock_count < 0) { in snd_motu_stream_lock_try()
379 if (motu->dev_lock_count++ == 0) in snd_motu_stream_lock_try()
391 if (WARN_ON(motu->dev_lock_count <= 0)) in snd_motu_stream_lock_release()
394 if (--motu->dev_lock_count == 0) in snd_motu_stream_lock_release()
Dmotu.h69 int dev_lock_count; member
/sound/firewire/tascam/
Dtascam-hwdep.c25 event.status = (tscm->dev_lock_count > 0); in tscm_hwdep_read_locked()
170 if (tscm->dev_lock_count == 0) { in hwdep_lock()
171 tscm->dev_lock_count = -1; in hwdep_lock()
188 if (tscm->dev_lock_count == -1) { in hwdep_unlock()
189 tscm->dev_lock_count = 0; in hwdep_unlock()
213 if (tscm->dev_lock_count == -1) in hwdep_release()
214 tscm->dev_lock_count = 0; in hwdep_release()
Dtascam-stream.c511 if (tscm->dev_lock_count < 0) { in snd_tscm_stream_lock_try()
517 if (tscm->dev_lock_count++ == 0) in snd_tscm_stream_lock_try()
529 if (WARN_ON(tscm->dev_lock_count <= 0)) in snd_tscm_stream_lock_release()
531 if (--tscm->dev_lock_count == 0) in snd_tscm_stream_lock_release()
Dtascam.h83 int dev_lock_count; member
/sound/firewire/fireworks/
Dfireworks_hwdep.c108 event.lock_status.status = (efw->dev_lock_count > 0); in hwdep_read_locked()
232 if (efw->dev_lock_count == 0) { in hwdep_lock()
233 efw->dev_lock_count = -1; in hwdep_lock()
251 if (efw->dev_lock_count == -1) { in hwdep_unlock()
252 efw->dev_lock_count = 0; in hwdep_unlock()
269 if (efw->dev_lock_count == -1) in hwdep_release()
270 efw->dev_lock_count = 0; in hwdep_release()
Dfireworks_stream.c334 if (efw->dev_lock_count < 0) { in snd_efw_stream_lock_try()
340 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()
352 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()
354 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
Dfireworks.h102 int dev_lock_count; member