Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 25 of 57) sorted by relevance

123

/sound/oss/
Dsleep.h13 DEFINE_WAIT(wait); in oss_broken_sleep_on()
14 prepare_to_wait(q, &wait, TASK_INTERRUPTIBLE); in oss_broken_sleep_on()
16 finish_wait(q, &wait); in oss_broken_sleep_on()
Dsound_calls.h23 unsigned int DMAbuf_poll(struct file *file, int dev, poll_table *wait);
50 unsigned int sequencer_poll(int dev, struct file *file, poll_table * wait);
70 unsigned int MIDIbuf_poll(int dev, struct file *file, poll_table * wait);
Dswarm_cs4297a.c255 wait_queue_head_t wait; member
1014 wake_up(&d->wait); in cs4297a_update_ptr()
1020 wake_up(&d->wait); in cs4297a_update_ptr()
1105 wake_up(&d->wait); in cs4297a_update_ptr()
1146 wake_up(&d->wait); in cs4297a_update_ptr()
1628 DECLARE_WAITQUEUE(wait, current); in drain_dac()
1638 add_wait_queue(&s->dma_dac.wait, &wait); in drain_dac()
1656 remove_wait_queue(&s->dma_dac.wait, &wait); in drain_dac()
1745 oss_broken_sleep_on(&s->dma_adc.wait, MAX_SCHEDULE_TIMEOUT); in cs4297a_read()
1841 oss_broken_sleep_on(&d->wait, MAX_SCHEDULE_TIMEOUT); in cs4297a_write()
[all …]
Dmidibuf.c398 unsigned int MIDIbuf_poll(int dev, struct file *file, poll_table * wait) in MIDIbuf_poll() argument
405 poll_wait(file, &input_sleeper[dev], wait); in MIDIbuf_poll()
410 poll_wait(file, &midi_sleeper[dev], wait); in MIDIbuf_poll()
Dsoundcard.c402 static unsigned int sound_poll(struct file *file, poll_table * wait) in sound_poll() argument
410 return sequencer_poll(dev, file, wait); in sound_poll()
413 return MIDIbuf_poll(dev, file, wait); in sound_poll()
418 return DMAbuf_poll(file, dev >> 4, wait); in sound_poll()
/sound/firewire/tascam/
Dtascam-hwdep.c23 DEFINE_WAIT(wait); in hwdep_read()
31 prepare_to_wait(&tscm->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
34 finish_wait(&tscm->hwdep_wait, &wait); in hwdep_read()
54 poll_table *wait) in hwdep_poll() argument
59 poll_wait(file, &tscm->hwdep_wait, wait); in hwdep_poll()
/sound/firewire/bebob/
Dbebob_hwdep.c24 DEFINE_WAIT(wait); in hwdep_read()
30 prepare_to_wait(&bebob->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
33 finish_wait(&bebob->hwdep_wait, &wait); in hwdep_read()
56 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument
61 poll_wait(file, &bebob->hwdep_wait, wait); in hwdep_poll()
/sound/firewire/dice/
Ddice-hwdep.c16 DEFINE_WAIT(wait); in hwdep_read()
22 prepare_to_wait(&dice->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
25 finish_wait(&dice->hwdep_wait, &wait); in hwdep_read()
56 poll_table *wait) in hwdep_poll() argument
61 poll_wait(file, &dice->hwdep_wait, wait); in hwdep_poll()
/sound/firewire/oxfw/
Doxfw-hwdep.c23 DEFINE_WAIT(wait); in hwdep_read()
29 prepare_to_wait(&oxfw->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
32 finish_wait(&oxfw->hwdep_wait, &wait); in hwdep_read()
56 poll_table *wait) in hwdep_poll() argument
61 poll_wait(file, &oxfw->hwdep_wait, wait); in hwdep_poll()
/sound/firewire/digi00x/
Ddigi00x-hwdep.c24 DEFINE_WAIT(wait); in hwdep_read()
30 prepare_to_wait(&dg00x->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
33 finish_wait(&dg00x->hwdep_wait, &wait); in hwdep_read()
64 poll_table *wait) in hwdep_poll() argument
69 poll_wait(file, &dg00x->hwdep_wait, wait); in hwdep_poll()
/sound/core/seq/
Dseq_fifo.c180 wait_queue_t wait; in snd_seq_fifo_cell_out() local
186 init_waitqueue_entry(&wait, current); in snd_seq_fifo_cell_out()
195 add_wait_queue(&f->input_sleep, &wait); in snd_seq_fifo_cell_out()
199 remove_wait_queue(&f->input_sleep, &wait); in snd_seq_fifo_cell_out()
231 poll_table *wait) in snd_seq_fifo_poll_wait() argument
233 poll_wait(file, &f->input_sleep, wait); in snd_seq_fifo_poll_wait()
Dseq_memory.c230 wait_queue_t wait; in snd_seq_cell_alloc() local
237 init_waitqueue_entry(&wait, current); in snd_seq_cell_alloc()
247 add_wait_queue(&pool->output_sleep, &wait); in snd_seq_cell_alloc()
255 remove_wait_queue(&pool->output_sleep, &wait); in snd_seq_cell_alloc()
376 poll_table *wait) in snd_seq_pool_poll_wait() argument
378 poll_wait(file, &pool->output_sleep, wait); in snd_seq_pool_poll_wait()
Dseq_fifo.h66 int snd_seq_fifo_poll_wait(struct snd_seq_fifo *f, struct file *file, poll_table *wait);
/sound/firewire/fireworks/
Dfireworks_hwdep.c126 DEFINE_WAIT(wait); in hwdep_read()
136 prepare_to_wait(&efw->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
139 finish_wait(&efw->hwdep_wait, &wait); in hwdep_read()
188 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument
193 poll_wait(file, &efw->hwdep_wait, wait); in hwdep_poll()
Dfireworks_transaction.c60 wait_queue_head_t wait; member
84 init_waitqueue_head(&t.wait); in snd_efw_transaction_run()
96 wait_event_timeout(t.wait, t.state != STATE_PENDING, in snd_efw_transaction_run()
219 wake_up(&t->wait); in handle_resp_for_kernel()
299 wake_up(&t->wait); in snd_efw_transaction_bus_reset()
/sound/firewire/
Dfcp.c197 wait_queue_head_t wait; member
236 init_waitqueue_head(&t.wait); in fcp_avc_transaction()
254 wait_event_timeout(t.wait, t.state != STATE_PENDING, in fcp_avc_transaction()
305 wake_up(&t->wait); in fcp_bus_reset()
366 wake_up(&t->wait); in fcp_response()
/sound/pci/mixart/
Dmixart_core.c239 wait_queue_t wait; in snd_mixart_send_msg() local
242 init_waitqueue_entry(&wait, current); in snd_mixart_send_msg()
253 add_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg()
256 remove_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg()
286 wait_queue_t wait; in snd_mixart_send_msg_wait_notif() local
296 init_waitqueue_entry(&wait, current); in snd_mixart_send_msg_wait_notif()
307 add_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg_wait_notif()
310 remove_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg_wait_notif()
/sound/soc/intel/common/
Dsst-ipc.c87 size_t rx_bytes, int wait) in ipc_tx_message() argument
103 msg->wait = wait; in ipc_tx_message()
116 if (wait) in ipc_tx_message()
238 if (!msg->wait) in sst_ipc_tx_msg_reply_complete()
/sound/core/seq/oss/
Dseq_oss_rw.c200 snd_seq_oss_poll(struct seq_oss_devinfo *dp, struct file *file, poll_table * wait) in snd_seq_oss_poll() argument
206 if (snd_seq_oss_readq_poll(dp->readq, file, wait)) in snd_seq_oss_poll()
212 if (snd_seq_kernel_client_write_poll(dp->cseq, file, wait)) in snd_seq_oss_poll()
Dseq_oss.c61 static unsigned int odev_poll(struct file *file, poll_table * wait);
205 odev_poll(struct file *file, poll_table * wait) in odev_poll() argument
211 return snd_seq_oss_poll(dp, file, wait); in odev_poll()
Dseq_oss_readq.c219 snd_seq_oss_readq_poll(struct seq_oss_readq *q, struct file *file, poll_table *wait) in snd_seq_oss_readq_poll() argument
221 poll_wait(file, &q->midi_sleep, wait); in snd_seq_oss_readq_poll()
/sound/core/
Drawmidi.c383 wait_queue_t wait; in snd_rawmidi_open() local
424 init_waitqueue_entry(&wait, current); in snd_rawmidi_open()
425 add_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
451 remove_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
1045 wait_queue_t wait; in snd_rawmidi_read() local
1050 init_waitqueue_entry(&wait, current); in snd_rawmidi_read()
1051 add_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1055 remove_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1351 wait_queue_t wait; in snd_rawmidi_write() local
1356 init_waitqueue_entry(&wait, current); in snd_rawmidi_write()
[all …]
Dhwdep.c87 wait_queue_t wait; in snd_hwdep_open() local
107 init_waitqueue_entry(&wait, current); in snd_hwdep_open()
108 add_wait_queue(&hw->open_wait, &wait); in snd_hwdep_open()
142 remove_wait_queue(&hw->open_wait, &wait); in snd_hwdep_open()
179 static unsigned int snd_hwdep_poll(struct file * file, poll_table * wait) in snd_hwdep_poll() argument
183 return hw->ops.poll(hw, file, wait); in snd_hwdep_poll()
/sound/oss/dmasound/
Ddmasound_core.c622 DEFINE_WAIT(wait); in sq_write()
625 prepare_to_wait(&write_sq.action_queue, &wait, TASK_INTERRUPTIBLE); in sq_write()
628 finish_wait(&write_sq.action_queue, &wait); in sq_write()
636 finish_wait(&write_sq.action_queue, &wait); in sq_write()
641 finish_wait(&write_sq.action_queue, &wait); in sq_write()
672 static unsigned int sq_poll(struct file *file, struct poll_table_struct *wait) in sq_poll() argument
683 poll_wait(file, &write_sq.action_queue, wait); in sq_poll()
/sound/usb/usx2y/
DusX2Yhwdep.c90 static unsigned int snd_us428ctls_poll(struct snd_hwdep *hw, struct file *file, poll_table *wait) in snd_us428ctls_poll() argument
98 poll_wait(file, &us428->us428ctls_wait_queue_head, wait); in snd_us428ctls_poll()

123