Home
last modified time | relevance | path

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

/sound/firewire/tascam/
Dtascam-hwdep.c40 event.lock_status.status = (tscm->dev_lock_count > 0); in hwdep_read()
96 if (tscm->dev_lock_count == 0) { in hwdep_lock()
97 tscm->dev_lock_count = -1; in hwdep_lock()
114 if (tscm->dev_lock_count == -1) { in hwdep_unlock()
115 tscm->dev_lock_count = 0; in hwdep_unlock()
131 if (tscm->dev_lock_count == -1) in hwdep_release()
132 tscm->dev_lock_count = 0; in hwdep_release()
Dtascam-stream.c484 if (tscm->dev_lock_count < 0) { in snd_tscm_stream_lock_try()
490 if (tscm->dev_lock_count++ == 0) in snd_tscm_stream_lock_try()
502 if (WARN_ON(tscm->dev_lock_count <= 0)) in snd_tscm_stream_lock_release()
504 if (--tscm->dev_lock_count == 0) in snd_tscm_stream_lock_release()
Dtascam.h82 int dev_lock_count; member
/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.c980 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()
986 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()
998 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()
1000 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
Dbebob.h112 int dev_lock_count; member
/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.c499 if (dice->dev_lock_count < 0) { in snd_dice_stream_lock_try()
504 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()
516 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()
519 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
Ddice.h89 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
/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.h53 int dev_lock_count; member
/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.c706 if (oxfw->dev_lock_count < 0) { in snd_oxfw_stream_lock_try()
712 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()
724 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()
726 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
Doxfw.h61 int dev_lock_count; member
/sound/firewire/motu/
Dmotu-hwdep.c42 event.lock_status.status = (motu->dev_lock_count > 0); in hwdep_read()
105 if (motu->dev_lock_count == 0) { in hwdep_lock()
106 motu->dev_lock_count = -1; in hwdep_lock()
123 if (motu->dev_lock_count == -1) { in hwdep_unlock()
124 motu->dev_lock_count = 0; in hwdep_unlock()
140 if (motu->dev_lock_count == -1) in hwdep_release()
141 motu->dev_lock_count = 0; in hwdep_release()
Dmotu-stream.c391 if (motu->dev_lock_count < 0) { in snd_motu_stream_lock_try()
396 if (motu->dev_lock_count++ == 0) in snd_motu_stream_lock_try()
408 if (WARN_ON(motu->dev_lock_count <= 0)) in snd_motu_stream_lock_release()
411 if (--motu->dev_lock_count == 0) in snd_motu_stream_lock_release()
Dmotu.h71 int dev_lock_count; member
/sound/firewire/fireface/
Dff-hwdep.c41 event.lock_status.status = (ff->dev_lock_count > 0); in hwdep_read()
98 if (ff->dev_lock_count == 0) { in hwdep_lock()
99 ff->dev_lock_count = -1; in hwdep_lock()
116 if (ff->dev_lock_count == -1) { in hwdep_unlock()
117 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()
Dff-stream.c258 if (ff->dev_lock_count < 0) { in snd_ff_stream_lock_try()
264 if (ff->dev_lock_count++ == 0) in snd_ff_stream_lock_try()
276 if (WARN_ON(ff->dev_lock_count <= 0)) in snd_ff_stream_lock_release()
278 if (--ff->dev_lock_count == 0) in snd_ff_stream_lock_release()
Dff.h84 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.c295 if (efw->dev_lock_count < 0) { in snd_efw_stream_lock_try()
301 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()
313 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()
315 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
Dfireworks.h104 int dev_lock_count; member