Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 25 of 52) 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/core/seq/
Dseq_fifo.c179 wait_queue_t wait; in snd_seq_fifo_cell_out() local
185 init_waitqueue_entry(&wait, current); in snd_seq_fifo_cell_out()
194 add_wait_queue(&f->input_sleep, &wait); in snd_seq_fifo_cell_out()
198 remove_wait_queue(&f->input_sleep, &wait); in snd_seq_fifo_cell_out()
228 poll_table *wait) in snd_seq_fifo_poll_wait() argument
230 poll_wait(file, &f->input_sleep, wait); in snd_seq_fifo_poll_wait()
Dseq_memory.c229 wait_queue_t wait; in snd_seq_cell_alloc() local
236 init_waitqueue_entry(&wait, current); in snd_seq_cell_alloc()
246 add_wait_queue(&pool->output_sleep, &wait); in snd_seq_cell_alloc()
250 remove_wait_queue(&pool->output_sleep, &wait); in snd_seq_cell_alloc()
370 poll_table *wait) in snd_seq_pool_poll_wait() argument
372 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);
Dseq_clientmgr.h98 int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait);
/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()
57 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument
62 poll_wait(file, &bebob->hwdep_wait, wait); in hwdep_poll()
/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.c242 wait_queue_t wait; in snd_mixart_send_msg() local
245 init_waitqueue_entry(&wait, current); in snd_mixart_send_msg()
256 add_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg()
259 remove_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg()
287 wait_queue_t wait; in snd_mixart_send_msg_wait_notif() local
297 init_waitqueue_entry(&wait, current); in snd_mixart_send_msg_wait_notif()
308 add_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg_wait_notif()
311 remove_wait_queue(&mgr->msg_sleep, &wait); in snd_mixart_send_msg_wait_notif()
/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);
192 odev_poll(struct file *file, poll_table * wait) in odev_poll() argument
198 return snd_seq_oss_poll(dp, file, wait); in odev_poll()
Dseq_oss_readq.c222 snd_seq_oss_readq_poll(struct seq_oss_readq *q, struct file *file, poll_table *wait) in snd_seq_oss_readq_poll() argument
224 poll_wait(file, &q->midi_sleep, wait); in snd_seq_oss_readq_poll()
Dseq_oss_readq.h45 …igned int snd_seq_oss_readq_poll(struct seq_oss_readq *readq, struct file *file, poll_table *wait);
/sound/core/
Drawmidi.c371 wait_queue_t wait; in snd_rawmidi_open() local
413 init_waitqueue_entry(&wait, current); in snd_rawmidi_open()
414 add_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
449 remove_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
1024 wait_queue_t wait; in snd_rawmidi_read() local
1029 init_waitqueue_entry(&wait, current); in snd_rawmidi_read()
1030 add_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1034 remove_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1328 wait_queue_t wait; in snd_rawmidi_write() local
1333 init_waitqueue_entry(&wait, current); in snd_rawmidi_write()
[all …]
Dhwdep.c88 wait_queue_t wait; in snd_hwdep_open() local
108 init_waitqueue_entry(&wait, current); in snd_hwdep_open()
109 add_wait_queue(&hw->open_wait, &wait); in snd_hwdep_open()
143 remove_wait_queue(&hw->open_wait, &wait); in snd_hwdep_open()
180 static unsigned int snd_hwdep_poll(struct file * file, poll_table * wait) in snd_hwdep_poll() argument
184 return hw->ops.poll(hw, file, wait); in snd_hwdep_poll()
Dinit.c328 static unsigned int snd_disconnect_poll(struct file * file, poll_table * wait) in snd_disconnect_poll() argument
965 wait_queue_t wait; in snd_power_wait() local
971 init_waitqueue_entry(&wait, current); in snd_power_wait()
972 add_wait_queue(&card->power_sleep, &wait); in snd_power_wait()
985 remove_wait_queue(&card->power_sleep, &wait); in snd_power_wait()
/sound/soc/intel/
Dsst-baytrail-ipc.c158 bool wait; member
316 if (!msg->wait) in sst_byt_tx_msg_reply_complete()
371 void *rx_data, size_t rx_bytes, int wait) in sst_byt_ipc_tx_message() argument
387 msg->wait = wait; in sst_byt_ipc_tx_message()
403 if (wait) in sst_byt_ipc_tx_message()
700 int stream_id, int wait) in sst_byt_stream_operations() argument
705 if (wait) in sst_byt_stream_operations()
Dsst-haswell-ipc.c202 bool wait; member
485 if (!msg->wait) in tx_msg_reply_complete()
522 size_t tx_bytes, void *rx_data, size_t rx_bytes, int wait) in ipc_tx_message() argument
541 msg->wait = wait; in ipc_tx_message()
551 if (wait) in ipc_tx_message()
1496 int stream_id, int wait) in sst_hsw_stream_operations() argument
1503 if (wait) in sst_hsw_stream_operations()
1511 int wait) in sst_hsw_stream_pause() argument
1518 stream->reply.stream_hw_id, wait); in sst_hsw_stream_pause()
1527 int wait) in sst_hsw_stream_resume() argument
[all …]
/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