Home
last modified time | relevance | path

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

/linux-4.1.27/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.c998 if (bebob->dev_lock_count < 0) { in snd_bebob_stream_lock_try()
1004 if (bebob->dev_lock_count++ == 0) in snd_bebob_stream_lock_try()
1016 if (WARN_ON(bebob->dev_lock_count <= 0)) in snd_bebob_stream_lock_release()
1018 if (--bebob->dev_lock_count == 0) in snd_bebob_stream_lock_release()
Dbebob.h106 int dev_lock_count; member
/linux-4.1.27/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.c389 if (dice->dev_lock_count < 0) { in snd_dice_stream_lock_try()
394 if (dice->dev_lock_count++ == 0) in snd_dice_stream_lock_try()
406 if (WARN_ON(dice->dev_lock_count <= 0)) in snd_dice_stream_lock_release()
409 if (--dice->dev_lock_count == 0) in snd_dice_stream_lock_release()
Ddice.h66 int dev_lock_count; /* > 0 driver, < 0 userspace */ member
/linux-4.1.27/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.c665 if (oxfw->dev_lock_count < 0) { in snd_oxfw_stream_lock_try()
671 if (oxfw->dev_lock_count++ == 0) in snd_oxfw_stream_lock_try()
683 if (WARN_ON(oxfw->dev_lock_count <= 0)) in snd_oxfw_stream_lock_release()
685 if (--oxfw->dev_lock_count == 0) in snd_oxfw_stream_lock_release()
Doxfw.h71 int dev_lock_count; member
/linux-4.1.27/sound/firewire/fireworks/
Dfireworks_hwdep.c84 event.lock_status.status = (efw->dev_lock_count > 0); in hwdep_read_locked()
199 if (efw->dev_lock_count == 0) { in hwdep_lock()
200 efw->dev_lock_count = -1; in hwdep_lock()
218 if (efw->dev_lock_count == -1) { in hwdep_unlock()
219 efw->dev_lock_count = 0; in hwdep_unlock()
236 if (efw->dev_lock_count == -1) in hwdep_release()
237 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.h101 int dev_lock_count; member