Searched refs:lockp (Results 1 – 2 of 2) sorted by relevance
/sound/core/seq/ |
D | seq_lock.h | 9 #define snd_use_lock_init(lockp) atomic_set(lockp, 0) argument 12 #define snd_use_lock_use(lockp) atomic_inc(lockp) argument 15 #define snd_use_lock_free(lockp) atomic_dec(lockp) argument 19 #define snd_use_lock_sync(lockp) snd_use_lock_sync_helper(lockp, __BASE_FILE__, __LINE__) argument
|
D | seq_lock.c | 27 void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line) in snd_use_lock_sync_helper() argument 31 if (atomic_read(lockp) < 0) { in snd_use_lock_sync_helper() 32 pr_warn("ALSA: seq_lock: lock trouble [counter = %d] in %s:%d\n", atomic_read(lockp), file, line); in snd_use_lock_sync_helper() 35 while (atomic_read(lockp) > 0) { in snd_use_lock_sync_helper() 37 pr_warn("ALSA: seq_lock: waiting [%d left] in %s:%d\n", atomic_read(lockp), file, line); in snd_use_lock_sync_helper()
|