Home
last modified time | relevance | path

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

/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.c1013 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()
1019 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()
1031 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()
1033 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
Dbebob.h106 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.c357 if (efw->dev_lock_count < 0) { in snd_efw_stream_lock_try()
363 if (efw->dev_lock_count++ == 0) in snd_efw_stream_lock_try()
375 if (WARN_ON(efw->dev_lock_count <= 0)) in snd_efw_stream_lock_release()
377 if (--efw->dev_lock_count == 0) in snd_efw_stream_lock_release()
Dfireworks.h101 int dev_lock_count; member
/sound/firewire/
Ddice.c47 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
102 if (dice->dev_lock_count < 0) { in dice_try_lock()
107 if (dice->dev_lock_count++ == 0) in dice_try_lock()
121 if (WARN_ON(dice->dev_lock_count <= 0)) in dice_unlock()
124 if (--dice->dev_lock_count == 0) in dice_unlock()
721 event.lock_status.status = dice->dev_lock_count > 0; in dice_hwdep_read()
784 if (dice->dev_lock_count == 0) { in dice_hwdep_lock()
785 dice->dev_lock_count = -1; in dice_hwdep_lock()
802 if (dice->dev_lock_count == -1) { in dice_hwdep_unlock()
803 dice->dev_lock_count = 0; in dice_hwdep_unlock()
[all …]