Lines Matching refs:wait
358 wait_queue_t wait; in snd_rawmidi_open() local
400 init_waitqueue_entry(&wait, current); in snd_rawmidi_open()
401 add_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
436 remove_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
991 wait_queue_t wait; in snd_rawmidi_read() local
996 init_waitqueue_entry(&wait, current); in snd_rawmidi_read()
997 add_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1001 remove_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1236 wait_queue_t wait; in snd_rawmidi_write() local
1241 init_waitqueue_entry(&wait, current); in snd_rawmidi_write()
1242 add_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_write()
1246 remove_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_write()
1268 wait_queue_t wait; in snd_rawmidi_write() local
1270 init_waitqueue_entry(&wait, current); in snd_rawmidi_write()
1271 add_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_write()
1275 remove_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_write()
1287 static unsigned int snd_rawmidi_poll(struct file *file, poll_table * wait) in snd_rawmidi_poll() argument
1297 poll_wait(file, &runtime->sleep, wait); in snd_rawmidi_poll()
1301 poll_wait(file, &runtime->sleep, wait); in snd_rawmidi_poll()