Home
last modified time | relevance | path

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

/linux/sound/firewire/bebob/
H A Dbebob_hwdep.c41 event.lock_status.status = (bebob->dev_lock_count > 0); in hwdep_read()
91 if (bebob->dev_lock_count == 0) { in hwdep_lock()
92 bebob->dev_lock_count = -1; in hwdep_lock()
104 if (bebob->dev_lock_count == -1) { in hwdep_unlock()
105 bebob->dev_lock_count = 0; in hwdep_unlock()
118 if (bebob->dev_lock_count == -1) in hwdep_release()
119 bebob->dev_lock_count = 0; in hwdep_release()
H A Dbebob_stream.c970 if (bebob->dev_lock_count < 0) in snd_bebob_stream_lock_try()
974 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()
983 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()
985 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
H A Dbebob.h111 int dev_lock_count; member
/linux/sound/firewire/oxfw/
H A Doxfw-hwdep.c39 event.lock_status.status = (oxfw->dev_lock_count > 0); in hwdep_read()
89 if (oxfw->dev_lock_count == 0) { in hwdep_lock()
90 oxfw->dev_lock_count = -1; in hwdep_lock()
101 if (oxfw->dev_lock_count == -1) { in hwdep_unlock()
102 oxfw->dev_lock_count = 0; in hwdep_unlock()
114 if (oxfw->dev_lock_count == -1) in hwdep_release()
115 oxfw->dev_lock_count = 0; in hwdep_release()
H A Doxfw-stream.c872 if (oxfw->dev_lock_count < 0) in snd_oxfw_stream_lock_try()
876 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()
885 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()
887 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
H A Doxfw.h86 int dev_lock_count; member
/linux/sound/firewire/digi00x/
H A Ddigi00x-hwdep.c41 event.lock_status.status = (dg00x->dev_lock_count > 0); in hwdep_read()
99 if (dg00x->dev_lock_count == 0) { in hwdep_lock()
100 dg00x->dev_lock_count = -1; in hwdep_lock()
111 if (dg00x->dev_lock_count == -1) { in hwdep_unlock()
112 dg00x->dev_lock_count = 0; in hwdep_unlock()
124 if (dg00x->dev_lock_count == -1) in hwdep_release()
125 dg00x->dev_lock_count = 0; in hwdep_release()
H A Ddigi00x-stream.c433 if (dg00x->dev_lock_count < 0) in snd_dg00x_stream_lock_try()
437 if (dg00x->dev_lock_count++ == 0) in snd_dg00x_stream_lock_try()
446 if (WARN_ON(dg00x->dev_lock_count <= 0)) in snd_dg00x_stream_lock_release()
448 if (--dg00x->dev_lock_count == 0) in snd_dg00x_stream_lock_release()
H A Ddigi00x.h49 int dev_lock_count; member
/linux/sound/firewire/dice/
H A Ddice-hwdep.c33 event.lock_status.status = dice->dev_lock_count > 0; in hwdep_read()
91 if (dice->dev_lock_count == 0) { in hwdep_lock()
92 dice->dev_lock_count = -1; in hwdep_lock()
103 if (dice->dev_lock_count == -1) { in hwdep_unlock()
104 dice->dev_lock_count = 0; in hwdep_unlock()
116 if (dice->dev_lock_count == -1) in hwdep_release()
117 dice->dev_lock_count = 0; in hwdep_release()
H A Ddice-stream.c682 if (dice->dev_lock_count < 0) in snd_dice_stream_lock_try()
685 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()
694 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()
697 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
H A Ddice.h99 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
/linux/sound/firewire/fireface/
H A Dff-hwdep.c47 .status = (ff->dev_lock_count > 0), in hwdep_read()
108 if (ff->dev_lock_count == 0) { in hwdep_lock()
109 ff->dev_lock_count = -1; in hwdep_lock()
120 if (ff->dev_lock_count == -1) { in hwdep_unlock()
121 ff->dev_lock_count = 0; in hwdep_unlock()
133 if (ff->dev_lock_count == -1) in hwdep_release()
134 ff->dev_lock_count = 0; in hwdep_release()
H A Dff-stream.c259 if (ff->dev_lock_count < 0) in snd_ff_stream_lock_try()
263 if (ff->dev_lock_count++ == 0) in snd_ff_stream_lock_try()
272 if (WARN_ON(ff->dev_lock_count <= 0)) in snd_ff_stream_lock_release()
274 if (--ff->dev_lock_count == 0) in snd_ff_stream_lock_release()
H A Dff.h95 int dev_lock_count; member
/linux/sound/firewire/tascam/
H A Dtascam-hwdep.c26 event.status = (tscm->dev_lock_count > 0); in tscm_hwdep_read_locked()
166 if (tscm->dev_lock_count == 0) { in hwdep_lock()
167 tscm->dev_lock_count = -1; in hwdep_lock()
178 if (tscm->dev_lock_count == -1) { in hwdep_unlock()
179 tscm->dev_lock_count = 0; in hwdep_unlock()
199 if (tscm->dev_lock_count == -1) in hwdep_release()
200 tscm->dev_lock_count = 0; in hwdep_release()
H A Dtascam-stream.c534 if (tscm->dev_lock_count < 0) in snd_tscm_stream_lock_try()
538 if (tscm->dev_lock_count++ == 0) in snd_tscm_stream_lock_try()
547 if (WARN_ON(tscm->dev_lock_count <= 0)) in snd_tscm_stream_lock_release()
549 if (--tscm->dev_lock_count == 0) in snd_tscm_stream_lock_release()
H A Dtascam.h81 int dev_lock_count; member
/linux/sound/firewire/fireworks/
H A Dfireworks_hwdep.c107 event.lock_status.status = (efw->dev_lock_count > 0); in hwdep_read_locked()
226 if (efw->dev_lock_count == 0) { in hwdep_lock()
227 efw->dev_lock_count = -1; in hwdep_lock()
239 if (efw->dev_lock_count == -1) { in hwdep_unlock()
240 efw->dev_lock_count = 0; in hwdep_unlock()
253 if (efw->dev_lock_count == -1) in hwdep_release()
254 efw->dev_lock_count = 0; in hwdep_release()
H A Dfireworks_stream.c351 if (efw->dev_lock_count < 0) in snd_efw_stream_lock_try()
355 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()
364 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()
366 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
H A Dfireworks.h99 int dev_lock_count; member
/linux/sound/firewire/motu/
H A Dmotu-hwdep.c49 event.lock_status.status = (motu->dev_lock_count > 0); in hwdep_read()
137 if (motu->dev_lock_count == 0) { in hwdep_lock()
138 motu->dev_lock_count = -1; in hwdep_lock()
149 if (motu->dev_lock_count == -1) { in hwdep_unlock()
150 motu->dev_lock_count = 0; in hwdep_unlock()
162 if (motu->dev_lock_count == -1) in hwdep_release()
163 motu->dev_lock_count = 0; in hwdep_release()
H A Dmotu-stream.c412 if (motu->dev_lock_count < 0) in snd_motu_stream_lock_try()
415 if (motu->dev_lock_count++ == 0) in snd_motu_stream_lock_try()
424 if (WARN_ON(motu->dev_lock_count <= 0)) in snd_motu_stream_lock_release()
427 if (--motu->dev_lock_count == 0) in snd_motu_stream_lock_release()
H A Dmotu.h74 int dev_lock_count; member