Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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.c807 if (oxfw->dev_lock_count < 0) { in snd_oxfw_stream_lock_try()
813 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()
825 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()
827 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
Doxfw.h61 int dev_lock_count; member
/kernel/linux/linux-5.10/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.c260 if (ff->dev_lock_count < 0) { in snd_ff_stream_lock_try()
266 if (ff->dev_lock_count++ == 0) in snd_ff_stream_lock_try()
278 if (WARN_ON(ff->dev_lock_count <= 0)) in snd_ff_stream_lock_release()
280 if (--ff->dev_lock_count == 0) in snd_ff_stream_lock_release()
Dff.h98 int dev_lock_count; member
/kernel/linux/linux-5.10/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.c432 if (dg00x->dev_lock_count < 0) { in snd_dg00x_stream_lock_try()
438 if (dg00x->dev_lock_count++ == 0) in snd_dg00x_stream_lock_try()
450 if (WARN_ON(dg00x->dev_lock_count <= 0)) in snd_dg00x_stream_lock_release()
452 if (--dg00x->dev_lock_count == 0) in snd_dg00x_stream_lock_release()
Ddigi00x.h52 int dev_lock_count; member
/kernel/linux/linux-5.10/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.c700 if (dice->dev_lock_count < 0) { in snd_dice_stream_lock_try()
705 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()
717 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()
720 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
Ddice.h103 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
/kernel/linux/linux-5.10/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.c384 if (motu->dev_lock_count < 0) { in snd_motu_stream_lock_try()
389 if (motu->dev_lock_count++ == 0) in snd_motu_stream_lock_try()
401 if (WARN_ON(motu->dev_lock_count <= 0)) in snd_motu_stream_lock_release()
404 if (--motu->dev_lock_count == 0) in snd_motu_stream_lock_release()
Dmotu.h68 int dev_lock_count; member
/kernel/linux/linux-5.10/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.c995 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()
1001 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()
1013 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()
1015 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
Dbebob.h109 int dev_lock_count; member
/kernel/linux/linux-5.10/sound/firewire/tascam/
Dtascam-hwdep.c26 event.status = (tscm->dev_lock_count > 0); in tscm_hwdep_read_locked()
172 if (tscm->dev_lock_count == 0) { in hwdep_lock()
173 tscm->dev_lock_count = -1; in hwdep_lock()
190 if (tscm->dev_lock_count == -1) { in hwdep_unlock()
191 tscm->dev_lock_count = 0; in hwdep_unlock()
215 if (tscm->dev_lock_count == -1) in hwdep_release()
216 tscm->dev_lock_count = 0; in hwdep_release()
Dtascam-stream.c521 if (tscm->dev_lock_count < 0) { in snd_tscm_stream_lock_try()
527 if (tscm->dev_lock_count++ == 0) in snd_tscm_stream_lock_try()
539 if (WARN_ON(tscm->dev_lock_count <= 0)) in snd_tscm_stream_lock_release()
541 if (--tscm->dev_lock_count == 0) in snd_tscm_stream_lock_release()
Dtascam.h83 int dev_lock_count; member
/kernel/linux/linux-5.10/sound/firewire/fireworks/
Dfireworks_hwdep.c107 event.lock_status.status = (efw->dev_lock_count > 0); in hwdep_read_locked()
231 if (efw->dev_lock_count == 0) { in hwdep_lock()
232 efw->dev_lock_count = -1; in hwdep_lock()
250 if (efw->dev_lock_count == -1) { in hwdep_unlock()
251 efw->dev_lock_count = 0; in hwdep_unlock()
268 if (efw->dev_lock_count == -1) in hwdep_release()
269 efw->dev_lock_count = 0; in hwdep_release()
Dfireworks_stream.c344 if (efw->dev_lock_count < 0) { in snd_efw_stream_lock_try()
350 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()
362 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()
364 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
Dfireworks.h102 int dev_lock_count; member