Home
last modified time | relevance | path

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

/linux-6.12.1/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.c684 if (dice->dev_lock_count < 0) { in snd_dice_stream_lock_try()
689 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()
701 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()
704 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
Ddice.h99 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
/linux-6.12.1/sound/firewire/bebob/ !
Dbebob_hwdep.c41 event.lock_status.status = (bebob->dev_lock_count > 0); in hwdep_read()
97 if (bebob->dev_lock_count == 0) { in hwdep_lock()
98 bebob->dev_lock_count = -1; in hwdep_lock()
116 if (bebob->dev_lock_count == -1) { in hwdep_unlock()
117 bebob->dev_lock_count = 0; in hwdep_unlock()
134 if (bebob->dev_lock_count == -1) in hwdep_release()
135 bebob->dev_lock_count = 0; in hwdep_release()
Dbebob_stream.c972 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()
978 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()
990 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()
992 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
Dbebob.h111 int dev_lock_count; member
/linux-6.12.1/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.c435 if (dg00x->dev_lock_count < 0) { in snd_dg00x_stream_lock_try()
441 if (dg00x->dev_lock_count++ == 0) in snd_dg00x_stream_lock_try()
453 if (WARN_ON(dg00x->dev_lock_count <= 0)) in snd_dg00x_stream_lock_release()
455 if (--dg00x->dev_lock_count == 0) in snd_dg00x_stream_lock_release()
Ddigi00x.h49 int dev_lock_count; member
/linux-6.12.1/sound/firewire/oxfw/ !
Doxfw-hwdep.c39 event.lock_status.status = (oxfw->dev_lock_count > 0); in hwdep_read()
95 if (oxfw->dev_lock_count == 0) { in hwdep_lock()
96 oxfw->dev_lock_count = -1; in hwdep_lock()
113 if (oxfw->dev_lock_count == -1) { in hwdep_unlock()
114 oxfw->dev_lock_count = 0; in hwdep_unlock()
130 if (oxfw->dev_lock_count == -1) in hwdep_release()
131 oxfw->dev_lock_count = 0; in hwdep_release()
Doxfw-stream.c874 if (oxfw->dev_lock_count < 0) { in snd_oxfw_stream_lock_try()
880 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()
892 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()
894 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
Doxfw.h86 int dev_lock_count; member
/linux-6.12.1/sound/firewire/fireface/ !
Dff-hwdep.c47 .status = (ff->dev_lock_count > 0), in hwdep_read()
114 if (ff->dev_lock_count == 0) { in hwdep_lock()
115 ff->dev_lock_count = -1; in hwdep_lock()
132 if (ff->dev_lock_count == -1) { in hwdep_unlock()
133 ff->dev_lock_count = 0; in hwdep_unlock()
149 if (ff->dev_lock_count == -1) in hwdep_release()
150 ff->dev_lock_count = 0; in hwdep_release()
Dff-stream.c261 if (ff->dev_lock_count < 0) { in snd_ff_stream_lock_try()
267 if (ff->dev_lock_count++ == 0) in snd_ff_stream_lock_try()
279 if (WARN_ON(ff->dev_lock_count <= 0)) in snd_ff_stream_lock_release()
281 if (--ff->dev_lock_count == 0) in snd_ff_stream_lock_release()
Dff.h95 int dev_lock_count; member
/linux-6.12.1/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.c535 if (tscm->dev_lock_count < 0) { in snd_tscm_stream_lock_try()
541 if (tscm->dev_lock_count++ == 0) in snd_tscm_stream_lock_try()
553 if (WARN_ON(tscm->dev_lock_count <= 0)) in snd_tscm_stream_lock_release()
555 if (--tscm->dev_lock_count == 0) in snd_tscm_stream_lock_release()
Dtascam.h81 int dev_lock_count; member
/linux-6.12.1/sound/firewire/motu/ !
Dmotu-hwdep.c49 event.lock_status.status = (motu->dev_lock_count > 0); in hwdep_read()
142 if (motu->dev_lock_count == 0) { in hwdep_lock()
143 motu->dev_lock_count = -1; in hwdep_lock()
160 if (motu->dev_lock_count == -1) { in hwdep_unlock()
161 motu->dev_lock_count = 0; in hwdep_unlock()
177 if (motu->dev_lock_count == -1) in hwdep_release()
178 motu->dev_lock_count = 0; in hwdep_release()
Dmotu-stream.c414 if (motu->dev_lock_count < 0) { in snd_motu_stream_lock_try()
419 if (motu->dev_lock_count++ == 0) in snd_motu_stream_lock_try()
431 if (WARN_ON(motu->dev_lock_count <= 0)) in snd_motu_stream_lock_release()
434 if (--motu->dev_lock_count == 0) in snd_motu_stream_lock_release()
Dmotu.h74 int dev_lock_count; member
/linux-6.12.1/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.c353 if (efw->dev_lock_count < 0) { in snd_efw_stream_lock_try()
359 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()
371 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()
373 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
Dfireworks.h99 int dev_lock_count; member