Searched refs:wait (Results 201 - 225 of 2174) sorted by relevance

1234567891011>>

/linux-master/kernel/
H A Dsmp.c499 /* Do we wait until *after* callback? */
597 * @wait: If true, wait until function has completed on other CPUs.
602 int wait)
627 * When @wait we can deadlock when we interrupt between llist_add() and
628 * arch_send_call_function_ipi*(); when !@wait we can deadlock due to
635 if (!wait) {
649 if (wait)
709 * @wait: If true, wait unti
601 smp_call_function_single(int cpu, smp_call_func_t func, void *info, int wait) argument
718 smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, void *info, int wait) argument
763 bool wait = scf_flags & SCF_WAIT; local
876 smp_call_function_many(const struct cpumask *mask, smp_call_func_t func, void *info, bool wait) argument
898 smp_call_function(smp_call_func_t func, void *info, int wait) argument
1014 on_each_cpu_cond_mask(smp_cond_func_t cond_func, smp_call_func_t func, void *info, bool wait, const struct cpumask *mask) argument
[all...]
/linux-master/drivers/staging/vc04_services/bcm2835-audio/
H A Dbcm2835-vchiq.c40 struct vc_audio_msg *m, bool wait)
44 if (wait) {
58 if (wait) {
76 struct vc_audio_msg *m, bool wait)
81 err = bcm2835_audio_send_msg_locked(instance, m, wait);
87 int type, bool wait)
91 return bcm2835_audio_send_msg(instance, &m, wait);
39 bcm2835_audio_send_msg_locked(struct bcm2835_audio_instance *instance, struct vc_audio_msg *m, bool wait) argument
75 bcm2835_audio_send_msg(struct bcm2835_audio_instance *instance, struct vc_audio_msg *m, bool wait) argument
86 bcm2835_audio_send_simple(struct bcm2835_audio_instance *instance, int type, bool wait) argument
/linux-master/sound/soc/qcom/qdsp6/
H A Dq6core.c6 #include <linux/wait.h>
55 wait_queue_head_t wait; member in struct:q6core
146 wake_up(&core->wait);
166 rc = wait_event_timeout(core->wait, (core->resp_received),
196 rc = wait_event_timeout(core->wait, (core->resp_received),
223 rc = wait_event_timeout(core->wait, (core->resp_received),
338 init_waitqueue_head(&g_core->wait);
H A Dq6prm.c5 #include <linux/wait.h>
22 wait_queue_head_t wait; member in struct:q6prm
55 NULL, &prm->wait, pkt, rsp_opcode);
206 wake_up(&prm->wait);
227 init_waitqueue_head(&cc->wait);
/linux-master/fs/
H A Dselect.c135 remove_wait_queue(entry->wait_address, &entry->wait);
185 static int __pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) argument
187 struct poll_wqueues *pwq = wait->private;
211 static int pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) argument
215 entry = container_of(wait, struct poll_table_entry, wait);
218 return __pollwake(wait, mode, sync, key);
232 init_waitqueue_func_entry(&entry->wait, pollwake);
233 entry->wait.private = pwq;
234 add_wait_queue(wait_address, &entry->wait);
468 wait_key_set(poll_table *wait, unsigned long in, unsigned long out, unsigned long bit, __poll_t ll_flag) argument
483 poll_table *wait; local
885 do_poll(struct poll_list *list, struct poll_wqueues *wait, struct timespec64 *end_time) argument
[all...]
/linux-master/lib/
H A Dsbitmap.c435 init_waitqueue_head(&sbq->ws[i].wait);
565 if (waitqueue_active(&ws->wait)) {
566 woken = wake_up_nr(&ws->wait, nr);
679 if (waitqueue_active(&ws->wait))
680 wake_up(&ws->wait);
711 seq_printf(m, "\t{.wait=%s},\n",
712 waitqueue_active(&ws->wait) ? "active" : "inactive");
728 add_wait_queue(&ws->wait, &sbq_wait->wait);
735 list_del_init(&sbq_wait->wait
[all...]
/linux-master/fs/ceph/
H A Dlocks.c77 int cmd, u8 wait, struct file_lock *fl)
98 wait = 0;
116 "start: %llu, length: %llu, wait: %d, type: %d\n",
119 fl->fl_start, length, wait, fl->c.flc_type);
127 req->r_args.filelock_change.wait = wait;
131 err = ceph_mdsc_wait_request(mdsc, req, wait ?
153 "length: %llu, wait: %d, type: %d, err code %d\n",
155 fl->fl_start, length, wait, fl->c.flc_type, err);
254 u8 wait local
76 ceph_lock_message(u8 lock_type, u16 operation, struct inode *inode, int cmd, u8 wait, struct file_lock *fl) argument
320 u8 wait = 0; local
[all...]
/linux-master/drivers/input/serio/
H A Dserio_raw.c18 #include <linux/wait.h>
36 wait_queue_head_t wait; member in struct:serio_raw
187 error = wait_event_interruptible(serio_raw->wait,
239 static __poll_t serio_raw_poll(struct file *file, poll_table *wait) argument
245 poll_wait(file, &serio_raw->wait, wait);
284 wake_up_interruptible(&serio_raw->wait);
306 init_waitqueue_head(&serio_raw->wait);
387 wake_up_interruptible(&serio_raw->wait);
H A Dlibps2.c63 wait_event_timeout(ps2dev->wait,
97 * ps2_sendbyte - sends a byte to the device and wait for acknowledgement
170 wait_event_timeout(ps2dev->wait,
343 timeout = wait_event_timeout(ps2dev->wait,
349 wait_event_timeout(ps2dev->wait,
466 init_waitqueue_head(&ps2dev->wait);
487 wake_up(&ps2dev->wait);
492 wake_up(&ps2dev->wait);
562 wake_up(&ps2dev->wait);
580 wake_up(&ps2dev->wait);
[all...]
/linux-master/fs/orangefs/
H A Dorangefs-bufmap.c46 DEFINE_WAIT(wait);
50 if (likely(list_empty(&wait.entry)))
51 __add_wait_queue_entry_tail(&m->q, &wait);
61 __remove_wait_queue(&m->q, &wait);
84 DEFINE_WAIT(wait);
88 if (likely(list_empty(&wait.entry)))
89 __add_wait_queue_entry_tail_exclusive(&m->q, &wait);
112 if (!list_empty(&wait.entry))
113 list_del(&wait.entry);
/linux-master/io_uring/
H A Dsqpoll.c159 init_waitqueue_head(&sqd->wait);
275 DEFINE_WAIT(wait);
329 prepare_to_wait(&sqd->wait, &wait, TASK_INTERRUPTIBLE);
365 finish_wait(&sqd->wait, &wait);
385 DEFINE_WAIT(wait);
390 prepare_to_wait(&ctx->sqo_sq_wait, &wait, TASK_INTERRUPTIBLE);
397 finish_wait(&ctx->sqo_sq_wait, &wait);
/linux-master/sound/firewire/fireworks/
H A Dfireworks_transaction.c59 wait_queue_head_t wait; member in struct:transaction_queue
83 init_waitqueue_head(&t.wait);
95 wait_event_timeout(t.wait, t.state != STATE_PENDING,
218 wake_up(&t->wait);
298 wake_up(&t->wait);
H A Dfireworks_hwdep.c126 DEFINE_WAIT(wait);
136 prepare_to_wait(&efw->hwdep_wait, &wait, TASK_INTERRUPTIBLE);
139 finish_wait(&efw->hwdep_wait, &wait);
188 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) argument
193 poll_wait(file, &efw->hwdep_wait, wait);
/linux-master/sound/firewire/tascam/
H A Dtascam-hwdep.c102 DEFINE_WAIT(wait);
107 prepare_to_wait(&tscm->hwdep_wait, &wait, TASK_INTERRUPTIBLE);
110 finish_wait(&tscm->hwdep_wait, &wait);
130 poll_table *wait)
135 poll_wait(file, &tscm->hwdep_wait, wait);
129 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) argument
/linux-master/drivers/net/ethernet/cisco/enic/
H A Dvnic_rq.c145 unsigned int wait; local
157 for (wait = 20000; wait > 0; wait--)
160 if (!wait) {
/linux-master/drivers/acpi/
H A Dsbshc.c11 #include <linux/wait.h>
24 wait_queue_head_t wait; member in struct:acpi_smb_hc
100 if (wait_event_timeout(hc->wait, hc->done, msecs_to_jiffies(timeout)))
219 wake_up(&hc->wait);
267 init_waitqueue_head(&hc->wait);
/linux-master/include/linux/
H A Dsbitmap.h22 #include <linux/wait.h>
90 * @wait: Wait queue.
92 wait_queue_head_t wait; member in struct:sbq_wait_state
96 * struct sbitmap_queue - Scalable bitmap with the added ability to wait on free
99 * A &struct sbitmap_queue uses multiple wait queues and rolling wakeups to
100 * avoid contention on the wait queue spinlock. This ensures that we don't hit a
117 * @wake_index: Next wait queue in @ws to wake up.
558 * sbq_wait_ptr() - Get the next wait queue to use for a &struct
560 * @sbq: Bitmap queue to wait on.
600 struct wait_queue_entry wait; member in struct:sbq_wait
[all...]
/linux-master/drivers/char/hw_random/
H A Dmtk-rng.c70 static bool mtk_rng_wait_ready(struct hwrng *rng, bool wait) argument
76 if (!ready && wait)
83 static int mtk_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) argument
91 if (!mtk_rng_wait_ready(rng, wait))
103 return retval || !wait ? retval : -EIO;
/linux-master/sound/firewire/motu/
H A Dmotu-hwdep.c31 DEFINE_WAIT(wait);
37 prepare_to_wait(&motu->hwdep_wait, &wait, TASK_INTERRUPTIBLE);
40 finish_wait(&motu->hwdep_wait, &wait);
100 poll_table *wait)
105 poll_wait(file, &motu->hwdep_wait, wait);
99 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) argument
/linux-master/block/
H A Dkyber-iosched.c193 static int kyber_domain_wake(wait_queue_entry_t *wait, unsigned mode, int flags,
497 init_waitqueue_func_entry(&khd->domain_wait[i].wait,
499 khd->domain_wait[i].wait.private = hctx;
500 INIT_LIST_HEAD(&khd->domain_wait[i].wait.entry);
699 struct sbq_wait *wait = container_of(wqe, struct sbq_wait, wait); local
701 sbitmap_del_wait_queue(wait);
712 struct sbq_wait *wait = &khd->domain_wait[sched_domain]; local
723 if (nr < 0 && list_empty_careful(&wait->wait
[all...]
/linux-master/drivers/infiniband/hw/hfi1/
H A Dipoib_tx.c411 iowait_get_ib_work(&txq->wait),
445 iowait_get_ib_work(&txq->wait),
450 iowait_starve_clear(txq->pkts_sent, &txq->wait);
609 * sdma descriptors available to send the packet. It adds Tx queue's wait
614 struct iowait_work *wait,
620 container_of(wait->iow, struct hfi1_ipoib_txq, wait);
633 if (list_empty(&txq->wait.list)) {
641 iowait_queue(pkts_sent, wait->iow, &sde->dmawait);
656 * queue's wait structur
613 hfi1_ipoib_sdma_sleep(struct sdma_engine *sde, struct iowait_work *wait, struct sdma_txreq *txreq, uint seq, bool pkts_sent) argument
658 hfi1_ipoib_sdma_wakeup(struct iowait *wait, int reason) argument
672 struct iowait *wait = iowait_ioww_to_iow(ioww); local
[all...]
/linux-master/sound/core/seq/oss/
H A Dseq_oss_readq.c14 #include <linux/wait.h>
206 snd_seq_oss_readq_poll(struct seq_oss_readq *q, struct file *file, poll_table *wait) argument
208 poll_wait(file, &q->midi_sleep, wait);
/linux-master/drivers/infiniband/hw/mthca/
H A Dmthca_provider.h159 * Possible optimizations (wait for profile data to see if/where we
200 wait_queue_head_t wait; member in struct:mthca_cq
224 wait_queue_head_t wait; member in struct:mthca_srq
276 wait_queue_head_t wait; member in struct:mthca_qp
/linux-master/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_mcu.c92 bool wait = false; local
95 wait = true;
98 sizeof(msg), wait);
/linux-master/drivers/staging/media/omap4iss/
H A Diss.h19 #include <linux/wait.h>
125 int omap4iss_module_sync_idle(struct media_entity *me, wait_queue_head_t *wait,
128 int omap4iss_module_sync_is_stopping(wait_queue_head_t *wait,

Completed in 271 milliseconds

1234567891011>>