Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 200 of 1498) sorted by relevance

12345678

/linux-4.4.14/drivers/staging/rdma/hfi1/
Diowait.h100 struct iowait *wait,
103 void (*wakeup)(struct iowait *wait, int reason);
128 struct iowait *wait, in iowait_init() argument
133 struct iowait *wait, in iowait_init()
136 void (*wakeup)(struct iowait *wait, int reason)) in iowait_init() argument
138 wait->count = 0; in iowait_init()
139 INIT_LIST_HEAD(&wait->list); in iowait_init()
140 INIT_LIST_HEAD(&wait->tx_head); in iowait_init()
141 INIT_WORK(&wait->iowork, func); in iowait_init()
142 init_waitqueue_head(&wait->wait_dma); in iowait_init()
[all …]
Dsdma.c402 struct iowait *wait = txp->wait; in sdma_flush() local
413 if (wait) in sdma_flush()
414 drained = atomic_dec_and_test(&wait->sdma_busy); in sdma_flush()
417 if (wait && drained) in sdma_flush()
418 iowait_drain_wakeup(wait); in sdma_flush()
589 struct iowait *wait = txp->wait; in sdma_flush_descq() local
593 if (wait) in sdma_flush_descq()
594 drained = atomic_dec_and_test(&wait->sdma_busy); in sdma_flush_descq()
609 if (wait && drained) in sdma_flush_descq()
610 iowait_drain_wakeup(wait); in sdma_flush_descq()
[all …]
Ddiag.c210 struct poll_table_struct *wait);
348 static void put_diagpkt_wait(struct diagpkt_wait *wait) in put_diagpkt_wait() argument
350 if (atomic_dec_and_test(&wait->count)) in put_diagpkt_wait()
351 kfree(wait); in put_diagpkt_wait()
360 struct diagpkt_wait *wait = (struct diagpkt_wait *)arg; in diagpkt_complete() local
362 wait->code = code; in diagpkt_complete()
363 complete(&wait->credits_returned); in diagpkt_complete()
364 put_diagpkt_wait(wait); /* finished with the structure */ in diagpkt_complete()
381 struct diagpkt_wait *wait = NULL; in diagpkt_send() local
483 wait = kmalloc(sizeof(*wait), GFP_KERNEL); in diagpkt_send()
[all …]
Dverbs_mcast.c80 wake_up(&qp->wait); in mcast_qp_free()
101 init_waitqueue_head(&mcast->wait); in mcast_alloc()
364 wait_event(mcast->wait, atomic_read(&mcast->refcount) <= 1); in hfi1_multicast_detach()
369 wait_event(mcast->wait, !atomic_read(&mcast->refcount)); in hfi1_multicast_detach()
/linux-4.4.14/kernel/sched/
Dwait.c23 void add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) in add_wait_queue() argument
27 wait->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
29 __add_wait_queue(q, wait); in add_wait_queue()
34 void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t *wait) in add_wait_queue_exclusive() argument
38 wait->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
40 __add_wait_queue_tail(q, wait); in add_wait_queue_exclusive()
45 void remove_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) in remove_wait_queue() argument
50 __remove_wait_queue(q, wait); in remove_wait_queue()
172 prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state) in prepare_to_wait() argument
176 wait->flags &= ~WQ_FLAG_EXCLUSIVE; in prepare_to_wait()
[all …]
Dcompletion.c33 spin_lock_irqsave(&x->wait.lock, flags); in complete()
35 __wake_up_locked(&x->wait, TASK_NORMAL, 1); in complete()
36 spin_unlock_irqrestore(&x->wait.lock, flags); in complete()
53 spin_lock_irqsave(&x->wait.lock, flags); in complete_all()
55 __wake_up_locked(&x->wait, TASK_NORMAL, 0); in complete_all()
56 spin_unlock_irqrestore(&x->wait.lock, flags); in complete_all()
65 DECLARE_WAITQUEUE(wait, current); in do_wait_for_common()
67 __add_wait_queue_tail_exclusive(&x->wait, &wait); in do_wait_for_common()
74 spin_unlock_irq(&x->wait.lock); in do_wait_for_common()
76 spin_lock_irq(&x->wait.lock); in do_wait_for_common()
[all …]
/linux-4.4.14/fs/
Dfs_pin.c15 spin_lock_irq(&pin->wait.lock); in pin_remove()
17 wake_up_locked(&pin->wait); in pin_remove()
18 spin_unlock_irq(&pin->wait.lock); in pin_remove()
37 wait_queue_t wait; in pin_kill() local
43 init_wait(&wait); in pin_kill()
44 spin_lock_irq(&p->wait.lock); in pin_kill()
47 spin_unlock_irq(&p->wait.lock); in pin_kill()
53 spin_unlock_irq(&p->wait.lock); in pin_kill()
57 __add_wait_queue(&p->wait, &wait); in pin_kill()
60 spin_unlock_irq(&p->wait.lock); in pin_kill()
[all …]
Dselect.c132 remove_wait_queue(entry->wait_address, &entry->wait); in free_poll_entry()
182 static int __pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key) in __pollwake() argument
184 struct poll_wqueues *pwq = wait->private; in __pollwake()
208 static int pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key) in pollwake() argument
212 entry = container_of(wait, struct poll_table_entry, wait); in pollwake()
215 return __pollwake(wait, mode, sync, key); in pollwake()
229 init_waitqueue_func_entry(&entry->wait, pollwake); in __pollwait()
230 entry->wait.private = pwq; in __pollwait()
231 add_wait_queue(wait_address, &entry->wait); in __pollwait()
388 static inline void wait_key_set(poll_table *wait, unsigned long in, in wait_key_set() argument
[all …]
Deventfd.c117 static unsigned int eventfd_poll(struct file *file, poll_table *wait) in eventfd_poll() argument
123 poll_wait(file, &ctx->wqh, wait); in eventfd_poll()
156 int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait, in eventfd_ctx_remove_wait_queue() argument
163 __remove_wait_queue(&ctx->wqh, wait); in eventfd_ctx_remove_wait_queue()
189 DECLARE_WAITQUEUE(wait, current); in eventfd_ctx_read()
197 __add_wait_queue(&ctx->wqh, &wait); in eventfd_ctx_read()
212 __remove_wait_queue(&ctx->wqh, &wait); in eventfd_ctx_read()
248 DECLARE_WAITQUEUE(wait, current); in eventfd_write()
261 __add_wait_queue(&ctx->wqh, &wait); in eventfd_write()
276 __remove_wait_queue(&ctx->wqh, &wait); in eventfd_write()
Dsync.c30 static int __sync_filesystem(struct super_block *sb, int wait) in __sync_filesystem() argument
32 if (wait) in __sync_filesystem()
38 sb->s_op->sync_fs(sb, wait); in __sync_filesystem()
39 return __sync_blockdev(sb->s_bdev, wait); in __sync_filesystem()
109 int nowait = 0, wait = 1; in SYSCALL_DEFINE0() local
114 iterate_supers(sync_fs_one_sb, &wait); in SYSCALL_DEFINE0()
Dpipe.c111 DEFINE_WAIT(wait); in pipe_wait()
117 prepare_to_wait(&pipe->wait, &wait, TASK_INTERRUPTIBLE); in pipe_wait()
120 finish_wait(&pipe->wait, &wait); in pipe_wait()
321 wake_up_interruptible_sync_poll(&pipe->wait, POLLOUT | POLLWRNORM); in pipe_read()
330 wake_up_interruptible_sync_poll(&pipe->wait, POLLOUT | POLLWRNORM); in pipe_read()
458 wake_up_interruptible_sync_poll(&pipe->wait, POLLIN | POLLRDNORM); in pipe_write()
469 wake_up_interruptible_sync_poll(&pipe->wait, POLLIN | POLLRDNORM); in pipe_write()
506 pipe_poll(struct file *filp, poll_table *wait) in pipe_poll() argument
512 poll_wait(filp, &pipe->wait, wait); in pipe_poll()
563 …wake_up_interruptible_sync_poll(&pipe->wait, POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM | POLLERR … in pipe_release()
[all …]
Deventpoll.c236 wait_queue_t wait; member
341 return container_of(p, struct eppoll_entry, wait); in ep_pwq_from_wait()
347 return container_of(p, struct eppoll_entry, wait)->base; in ep_item_from_wait()
524 remove_wait_queue(whead, &pwq->wait); in ep_remove_wait_queue()
844 static unsigned int ep_eventpoll_poll(struct file *file, poll_table *wait) in ep_eventpoll_poll() argument
854 arg.locked = wait && (wait->_qproc == ep_ptable_queue_proc); in ep_eventpoll_poll()
858 poll_wait(file, &ep->poll_wait, wait); in ep_eventpoll_poll()
999 static int ep_poll_callback(wait_queue_t *wait, unsigned mode, int sync, void *key) in ep_poll_callback() argument
1003 struct epitem *epi = ep_item_from_wait(wait); in ep_poll_callback()
1007 ep_pwq_from_wait(wait)->whead = NULL; in ep_poll_callback()
[all …]
Daio.c144 wait_queue_head_t wait; member
729 init_waitqueue_head(&ctx->wait); in ioctx_alloc()
800 struct ctx_rq_wait *wait) in kill_ioctx() argument
816 wake_up_all(&ctx->wait); in kill_ioctx()
830 ctx->rq_wait = wait; in kill_ioctx()
846 struct ctx_rq_wait wait; in exit_aio() local
852 atomic_set(&wait.count, table->nr); in exit_aio()
853 init_completion(&wait.comp); in exit_aio()
872 kill_ioctx(mm, ctx, &wait); in exit_aio()
875 if (!atomic_sub_and_test(skipped, &wait.count)) { in exit_aio()
[all …]
Dsignalfd.c60 static unsigned int signalfd_poll(struct file *file, poll_table *wait) in signalfd_poll() argument
65 poll_wait(file, &current->sighand->signalfd_wqh, wait); in signalfd_poll()
163 DECLARE_WAITQUEUE(wait, current); in signalfd_dequeue()
177 add_wait_queue(&current->sighand->signalfd_wqh, &wait); in signalfd_dequeue()
193 remove_wait_queue(&current->sighand->signalfd_wqh, &wait); in signalfd_dequeue()
Dinternal.h25 extern int __sync_blockdev(struct block_device *bdev, int wait);
32 static inline int __sync_blockdev(struct block_device *bdev, int wait) in __sync_blockdev() argument
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Dvnic_dev.c230 int wait) in _vnic_dev_cmd() argument
259 for (delay = 0; delay < wait; delay++) { in _vnic_dev_cmd()
298 int wait) in _vnic_dev_cmd2() argument
349 for (delay = 0; delay < wait; delay++) { in _vnic_dev_cmd2()
456 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_proxy() argument
468 err = vdev->devcmd_rtn(vdev, proxy_cmd, wait); in vnic_dev_cmd_proxy()
489 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_no_proxy() argument
496 err = vdev->devcmd_rtn(vdev, cmd, wait); in vnic_dev_cmd_no_proxy()
517 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument
524 a0, a1, wait); in vnic_dev_cmd()
[all …]
Denic_res.c125 int wait = 1000; in enic_add_vlan() local
128 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_ADD, &a0, &a1, wait); in enic_add_vlan()
138 int wait = 1000; in enic_del_vlan() local
141 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_DEL, &a0, &a1, wait); in enic_del_vlan()
154 int wait = 1000; in enic_set_nic_cfg() local
163 return vnic_dev_cmd(enic->vdev, CMD_NIC_CFG, &a0, &a1, wait); in enic_set_nic_cfg()
169 int wait = 1000; in enic_set_rss_key() local
171 return vnic_dev_cmd(enic->vdev, CMD_RSS_KEY, &a0, &a1, wait); in enic_set_rss_key()
177 int wait = 1000; in enic_set_rss_cpu() local
179 return vnic_dev_cmd(enic->vdev, CMD_RSS_CPU, &a0, &a1, wait); in enic_set_rss_cpu()
Denic_api.c30 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) in enic_api_devcmd_proxy_by_index() argument
40 err = vnic_dev_cmd(vdev, cmd, a0, a1, wait); in enic_api_devcmd_proxy_by_index()
Dvnic_wq.c178 unsigned int wait; in vnic_wq_disable() local
184 for (wait = 0; wait < 1000; wait++) { in vnic_wq_disable()
Dvnic_rq.c170 unsigned int wait; in vnic_rq_disable() local
176 for (wait = 0; wait < 1000; wait++) { in vnic_rq_disable()
/linux-4.4.14/fs/f2fs/
Dgc.h68 long *wait) in increase_sleep_time() argument
70 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()
73 *wait += gc_th->min_sleep_time; in increase_sleep_time()
74 if (*wait > gc_th->max_sleep_time) in increase_sleep_time()
75 *wait = gc_th->max_sleep_time; in increase_sleep_time()
79 long *wait) in decrease_sleep_time() argument
81 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()
82 *wait = gc_th->max_sleep_time; in decrease_sleep_time()
84 *wait -= gc_th->min_sleep_time; in decrease_sleep_time()
85 if (*wait <= gc_th->min_sleep_time) in decrease_sleep_time()
[all …]
/linux-4.4.14/drivers/scsi/fnic/
Dvnic_dev.c233 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument
265 for (delay = 0; delay < wait; delay++) { in vnic_dev_cmd()
297 int wait = 1000; in vnic_dev_fw_info() local
310 err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); in vnic_dev_fw_info()
322 int wait = 1000; in vnic_dev_spec() local
328 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in vnic_dev_spec()
354 int wait = 1000; in vnic_dev_stats_clear() local
355 return vnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); in vnic_dev_stats_clear()
361 int wait = 1000; in vnic_dev_stats_dump() local
374 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); in vnic_dev_stats_dump()
[all …]
Dvnic_wq_copy.c32 unsigned int wait; in vnic_wq_copy_disable() local
37 for (wait = 0; wait < 100; wait++) { in vnic_wq_copy_disable()
Dvnic_wq.c143 unsigned int wait; in vnic_wq_disable() local
148 for (wait = 0; wait < 100; wait++) { in vnic_wq_disable()
Dvnic_rq.c152 unsigned int wait; in vnic_rq_disable() local
157 for (wait = 0; wait < 100; wait++) { in vnic_rq_disable()
/linux-4.4.14/include/linux/
Dsmp.h28 int wait);
33 int on_each_cpu(smp_call_func_t func, void *info, int wait);
40 void *info, bool wait);
48 smp_call_func_t func, void *info, bool wait,
95 int smp_call_function(smp_call_func_t func, void *info, int wait);
97 smp_call_func_t func, void *info, bool wait);
100 smp_call_func_t func, void *info, int wait);
135 #define smp_call_function(func, info, wait) \ argument
140 #define smp_call_function_many(mask, func, info, wait) \ argument
146 void *info, int wait) in smp_call_function_any() argument
[all …]
Dwait.h13 typedef int (*wait_queue_func_t)(wait_queue_t *wait, unsigned mode, int flags, void *key);
14 int default_wake_function(wait_queue_t *wait, unsigned mode, int flags, void *key);
36 wait_queue_t wait; member
110 extern void add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait);
111 extern void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t *wait);
112 extern void remove_wait_queue(wait_queue_head_t *q, wait_queue_t *wait);
123 __add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t *wait) in __add_wait_queue_exclusive() argument
125 wait->flags |= WQ_FLAG_EXCLUSIVE; in __add_wait_queue_exclusive()
126 __add_wait_queue(q, wait); in __add_wait_queue_exclusive()
136 __add_wait_queue_tail_exclusive(wait_queue_head_t *q, wait_queue_t *wait) in __add_wait_queue_tail_exclusive() argument
[all …]
Dkmod.h36 int __request_module(bool wait, const char *name, ...);
62 int wait; member
70 call_usermodehelper(char *path, char **argv, char **envp, int wait);
78 call_usermodehelper_exec(struct subprocess_info *info, int wait);
Dcompletion.h27 wait_queue_head_t wait; member
31 { 0, __WAIT_QUEUE_HEAD_INITIALIZER((work).wait) }
76 init_waitqueue_head(&x->wait); in init_completion()
Dfs_pin.h4 wait_queue_head_t wait; member
15 init_waitqueue_head(&p->wait); in init_fs_pin()
Dhw_random.h41 int (*data_present)(struct hwrng *rng, int wait);
43 int (*read)(struct hwrng *rng, void *data, size_t max, bool wait);
Dlp.h24 #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */
50 unsigned int wait; member
Deventfd.h40 int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait,
76 wait_queue_t *wait, __u64 *cnt) in eventfd_ctx_remove_wait_queue() argument
Dsysctl.h89 wait_queue_head_t wait; member
99 .wait = __WAIT_QUEUE_HEAD_INITIALIZER(name.wait) }
/linux-4.4.14/kernel/
Dkmod.c69 static int call_modprobe(char *module_name, int wait) in call_modprobe() argument
98 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
124 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument
140 WARN_ON_ONCE(wait && current_is_async()); in __request_module()
181 trace_module_request(module_name, wait, _RET_IP_); in __request_module()
183 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
261 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async()
326 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work()
375 DEFINE_WAIT(wait); in usermodehelper_read_trylock()
380 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock()
[all …]
Dsmp.c272 int wait) in smp_call_function_single() argument
295 if (!wait) { in smp_call_function_single()
302 if (wait) in smp_call_function_single()
362 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument
384 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any()
405 smp_call_func_t func, void *info, bool wait) in smp_call_function_many() argument
435 smp_call_function_single(cpu, func, info, wait); in smp_call_function_many()
452 if (wait) in smp_call_function_many()
462 if (wait) { in smp_call_function_many()
488 int smp_call_function(smp_call_func_t func, void *info, int wait) in smp_call_function() argument
[all …]
Dup.c11 int wait) in smp_call_function_single() argument
36 int on_each_cpu(smp_call_func_t func, void *info, int wait) in on_each_cpu() argument
54 smp_call_func_t func, void *info, bool wait) in on_each_cpu_mask() argument
71 smp_call_func_t func, void *info, bool wait, in on_each_cpu_cond() argument
/linux-4.4.14/block/
Dblk-lib.c15 struct completion *wait; member
25 complete(bb->wait); in bio_batch_end_io()
43 DECLARE_COMPLETION_ONSTACK(wait); in blkdev_issue_discard()
71 bb.wait = &wait; in blkdev_issue_discard()
125 wait_for_completion_io(&wait); in blkdev_issue_discard()
148 DECLARE_COMPLETION_ONSTACK(wait); in blkdev_issue_write_same()
163 bb.wait = &wait; in blkdev_issue_write_same()
196 wait_for_completion_io(&wait); in blkdev_issue_write_same()
222 DECLARE_COMPLETION_ONSTACK(wait); in __blkdev_issue_zeroout()
226 bb.wait = &wait; in __blkdev_issue_zeroout()
[all …]
Dblk-exec.c102 DECLARE_COMPLETION_ONSTACK(wait); in blk_execute_rq()
113 rq->end_io_data = &wait; in blk_execute_rq()
119 while (!wait_for_completion_io_timeout(&wait, hang_check * (HZ/2))); in blk_execute_rq()
121 wait_for_completion_io(&wait); in blk_execute_rq()
Dblk-mq-tag.c87 if (waitqueue_active(&bs->wait)) in blk_mq_tag_wakeup_all()
88 wake_up(&bs->wait); in blk_mq_tag_wakeup_all()
95 if (waitqueue_active(&bt->bs[0].wait)) in blk_mq_tag_wakeup_all()
96 wake_up(&bt->bs[0].wait); in blk_mq_tag_wakeup_all()
264 DEFINE_WAIT(wait); in bt_get()
276 prepare_to_wait(&bs->wait, &wait, TASK_UNINTERRUPTIBLE); in bt_get()
313 finish_wait(&bs->wait, &wait); in bt_get()
317 finish_wait(&bs->wait, &wait); in bt_get()
366 if (waitqueue_active(&bs->wait)) { in bt_wake_ptr()
401 wake_up(&bs->wait); in bt_clear_tag()
[all …]
Dblk-throttle.c669 unsigned long *wait) in tg_with_in_iops_limit() argument
700 if (wait) in tg_with_in_iops_limit()
701 *wait = 0; in tg_with_in_iops_limit()
713 if (wait) in tg_with_in_iops_limit()
714 *wait = jiffy_wait; in tg_with_in_iops_limit()
719 unsigned long *wait) in tg_with_in_bps_limit() argument
738 if (wait) in tg_with_in_bps_limit()
739 *wait = 0; in tg_with_in_bps_limit()
755 if (wait) in tg_with_in_bps_limit()
756 *wait = jiffy_wait; in tg_with_in_bps_limit()
[all …]
/linux-4.4.14/drivers/scsi/snic/
Dvnic_dev.c69 int wait);
263 int wait) in _svnic_dev_cmd2() argument
302 for (delay = 0; delay < wait; delay++) { in _svnic_dev_cmd2()
433 u64 *a0, u64 *a1, int wait) in svnic_dev_cmd() argument
441 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); in svnic_dev_cmd()
453 int wait = VNIC_DVCMD_TMO; in svnic_dev_fw_info() local
466 err = svnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); in svnic_dev_fw_info()
478 int wait = VNIC_DVCMD_TMO; in svnic_dev_spec() local
484 err = svnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in svnic_dev_spec()
510 int wait = VNIC_DVCMD_TMO; in svnic_dev_stats_clear() local
[all …]
Dsnic_ctl.c220 if (snic->fwinfo.wait) in snic_io_exch_ver_cmpl_handler()
221 complete(snic->fwinfo.wait); in snic_io_exch_ver_cmpl_handler()
241 DECLARE_COMPLETION_ONSTACK(wait); in snic_get_conf()
249 snic->fwinfo.wait = &wait; in snic_get_conf()
264 wait_for_completion_timeout(&wait, msecs_to_jiffies(2000)); in snic_get_conf()
273 snic->fwinfo.wait = NULL; in snic_get_conf()
Dvnic_wq.c197 unsigned int wait; in svnic_wq_disable() local
202 for (wait = 0; wait < 100; wait++) { in svnic_wq_disable()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_irq.c106 struct omap_irq_wait *wait = in wait_irq() local
108 wait->count--; in wait_irq()
115 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); in omap_irq_wait_init() local
116 wait->irq.irq = wait_irq; in omap_irq_wait_init()
117 wait->irq.irqmask = irqmask; in omap_irq_wait_init()
118 wait->count = count; in omap_irq_wait_init()
119 omap_irq_register(dev, &wait->irq); in omap_irq_wait_init()
120 return wait; in omap_irq_wait_init()
123 int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait, in omap_irq_wait() argument
126 int ret = wait_event_timeout(wait_event, (wait->count <= 0), timeout); in omap_irq_wait()
[all …]
Domap_crtc.c137 struct omap_irq_wait *wait; in omap_crtc_set_enabled() local
156 wait = omap_irq_wait_init(dev, vsync_irq, 1); in omap_crtc_set_enabled()
168 wait = omap_irq_wait_init(dev, framedone_irq, 1); in omap_crtc_set_enabled()
170 wait = omap_irq_wait_init(dev, vsync_irq, 2); in omap_crtc_set_enabled()
175 ret = omap_irq_wait(dev, wait, msecs_to_jiffies(100)); in omap_crtc_set_enabled()
/linux-4.4.14/net/atm/
Dsvc.c47 DEFINE_WAIT(wait); in svc_disconnect()
55 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); in svc_disconnect()
60 finish_wait(sk_sleep(sk), &wait); in svc_disconnect()
97 DEFINE_WAIT(wait); in svc_bind()
131 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); in svc_bind()
136 finish_wait(sk_sleep(sk), &wait); in svc_bind()
153 DEFINE_WAIT(wait); in svc_connect()
213 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in svc_connect()
217 prepare_to_wait(sk_sleep(sk), &wait, in svc_connect()
236 prepare_to_wait(sk_sleep(sk), &wait, in svc_connect()
[all …]
/linux-4.4.14/net/core/
Dstream.c39 wake_up_interruptible_poll(&wq->wait, POLLOUT | in sk_stream_write_space()
58 DEFINE_WAIT(wait); in sk_stream_wait_connect()
72 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in sk_stream_wait_connect()
78 finish_wait(sk_sleep(sk), &wait); in sk_stream_wait_connect()
98 DEFINE_WAIT(wait); in sk_stream_wait_close()
101 prepare_to_wait(sk_sleep(sk), &wait, in sk_stream_wait_close()
107 finish_wait(sk_sleep(sk), &wait); in sk_stream_wait_close()
123 DEFINE_WAIT(wait); in sk_stream_wait_memory()
131 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in sk_stream_wait_memory()
165 finish_wait(sk_sleep(sk), &wait); in sk_stream_wait_memory()
Ddatagram.c71 static int receiver_wake_function(wait_queue_t *wait, unsigned int mode, int sync, in receiver_wake_function() argument
81 return autoremove_wake_function(wait, mode, sync, key); in receiver_wake_function()
90 DEFINE_WAIT_FUNC(wait, receiver_wake_function); in wait_for_more_packets()
92 prepare_to_wait_exclusive(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in wait_for_more_packets()
121 finish_wait(sk_sleep(sk), &wait); in wait_for_more_packets()
753 poll_table *wait) in datagram_poll() argument
758 sock_poll_wait(file, sk_sleep(sk), wait); in datagram_poll()
/linux-4.4.14/fs/squashfs/
Ddecompressor_multi.c45 wait_queue_head_t wait; member
61 wake_up(&stream->wait); in put_decomp_stream()
78 init_waitqueue_head(&stream->wait); in squashfs_decompressor_create()
151 goto wait; in get_decomp_stream()
156 goto wait; in get_decomp_stream()
162 goto wait; in get_decomp_stream()
170 wait: in get_decomp_stream()
177 wait_event(stream->wait, in get_decomp_stream()
/linux-4.4.14/include/trace/events/
Dmodule.h108 TP_PROTO(char *name, bool wait, unsigned long ip),
110 TP_ARGS(name, wait, ip),
114 __field( bool, wait )
120 __entry->wait = wait;
125 __get_str(name), (int)__entry->wait, (void *)__entry->ip)
/linux-4.4.14/fs/ceph/
Dlocks.c36 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument
46 wait = 0; in ceph_lock_message()
66 wait, fl->fl_type); in ceph_lock_message()
74 req->r_args.filelock_change.wait = wait; in ceph_lock_message()
76 if (wait) in ceph_lock_message()
103 length, wait, fl->fl_type, err); in ceph_lock_message()
161 u8 wait = 0; in ceph_lock() local
176 wait = 1; in ceph_lock()
185 err = ceph_lock_message(CEPH_LOCK_FCNTL, op, file, lock_cmd, wait, fl); in ceph_lock()
208 u8 wait = 0; in ceph_flock() local
[all …]
/linux-4.4.14/drivers/gpu/drm/msm/mdp/
Dmdp_kms.c92 struct mdp_irq_wait *wait = in wait_irq() local
94 wait->count--; in wait_irq()
100 struct mdp_irq_wait wait = { in mdp_irq_wait() local
107 mdp_irq_register(mdp_kms, &wait.irq); in mdp_irq_wait()
108 wait_event_timeout(wait_event, (wait.count <= 0), in mdp_irq_wait()
110 mdp_irq_unregister(mdp_kms, &wait.irq); in mdp_irq_wait()
/linux-4.4.14/drivers/hid/
Dhid-roccat.c47 wait_queue_head_t wait; member
83 DECLARE_WAITQUEUE(wait, current); in roccat_read()
89 add_wait_queue(&device->wait, &wait); in roccat_read()
114 remove_wait_queue(&device->wait, &wait); in roccat_read()
140 static unsigned int roccat_poll(struct file *file, poll_table *wait) in roccat_poll() argument
143 poll_wait(file, &reader->device->wait, wait); in roccat_poll()
282 wake_up_interruptible(&device->wait); in roccat_report_event()
337 init_waitqueue_head(&device->wait); in roccat_connect()
372 wake_up_interruptible(&device->wait); in roccat_disconnect()
Dhidraw.c50 DECLARE_WAITQUEUE(wait, current); in hidraw_read()
56 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
81 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
257 static unsigned int hidraw_poll(struct file *file, poll_table *wait) in hidraw_poll() argument
261 poll_wait(file, &list->hidraw->wait, wait); in hidraw_poll()
332 wake_up_interruptible(&hidraw->wait); in drop_ref()
509 wake_up_interruptible(&dev->wait); in hidraw_report_event()
554 init_waitqueue_head(&dev->wait); in hidraw_connect()
/linux-4.4.14/drivers/input/serio/
Dlibps2.c45 wait_event_timeout(ps2dev->wait, in ps2_sendbyte()
94 wait_event_timeout(ps2dev->wait, in ps2_drain()
232 timeout = wait_event_timeout(ps2dev->wait, in __ps2_command()
238 wait_event_timeout(ps2dev->wait, in __ps2_command()
281 init_waitqueue_head(&ps2dev->wait); in ps2_init()
334 wake_up(&ps2dev->wait); in ps2_handle_ack()
357 wake_up(&ps2dev->wait); in ps2_handle_response()
362 wake_up(&ps2dev->wait); in ps2_handle_response()
375 wake_up(&ps2dev->wait); in ps2_cmd_aborted()
Dserio_raw.c39 wait_queue_head_t wait; member
190 error = wait_event_interruptible(serio_raw->wait, in serio_raw_read()
242 static unsigned int serio_raw_poll(struct file *file, poll_table *wait) in serio_raw_poll() argument
248 poll_wait(file, &serio_raw->wait, wait); in serio_raw_poll()
287 wake_up_interruptible(&serio_raw->wait); in serio_raw_interrupt()
309 init_waitqueue_head(&serio_raw->wait); in serio_raw_connect()
390 wake_up_interruptible(&serio_raw->wait); in serio_raw_hangup()
Dserport.c37 wait_queue_head_t wait; member
77 wake_up_interruptible(&serport->wait); in serport_serio_close()
98 init_waitqueue_head(&serport->wait); in serport_ldisc_open()
191 wait_event_interruptible(serport->wait, test_bit(SERPORT_DEAD, &serport->flags)); in serport_ldisc_read()
/linux-4.4.14/firmware/av7110/
DBoot.S72 wait: ldrh r1, [r4] // wait for flag!=0 label
74 beq wait
84 beq wait
95 b wait
108 wait_address: .word wait
/linux-4.4.14/arch/arm/boot/dts/
Domap3430es1-clocks.dtsi13 compatible = "ti,wait-gate-clock";
38 compatible = "ti,wait-gate-clock";
46 compatible = "ti,wait-gate-clock";
54 compatible = "ti,wait-gate-clock";
62 compatible = "ti,wait-gate-clock";
70 compatible = "ti,composite-no-wait-gate-clock";
101 compatible = "ti,omap3-no-wait-interface-clock";
125 compatible = "ti,omap3-no-wait-interface-clock";
166 compatible = "ti,omap3-no-wait-interface-clock";
Domap2420-clocks.dtsi14 compatible = "ti,composite-no-wait-gate-clock";
101 compatible = "ti,wait-gate-clock";
117 compatible = "ti,wait-gate-clock";
133 compatible = "ti,wait-gate-clock";
149 compatible = "ti,wait-gate-clock";
157 compatible = "ti,wait-gate-clock";
165 compatible = "ti,wait-gate-clock";
Domap24xx-clocks.dtsi197 compatible = "ti,composite-no-wait-gate-clock";
321 compatible = "ti,wait-gate-clock";
339 compatible = "ti,omap3-no-wait-interface-clock";
347 compatible = "ti,composite-no-wait-gate-clock";
447 compatible = "ti,composite-no-wait-gate-clock";
469 compatible = "ti,wait-gate-clock";
929 compatible = "ti,wait-gate-clock";
945 compatible = "ti,wait-gate-clock";
961 compatible = "ti,wait-gate-clock";
977 compatible = "ti,wait-gate-clock";
[all …]
Domap2430-clocks.dtsi167 compatible = "ti,wait-gate-clock";
215 compatible = "ti,wait-gate-clock";
231 compatible = "ti,wait-gate-clock";
247 compatible = "ti,wait-gate-clock";
263 compatible = "ti,wait-gate-clock";
271 compatible = "ti,wait-gate-clock";
Domap34xx-omap36xx-clocks.dtsi62 compatible = "ti,omap3-no-wait-interface-clock";
134 compatible = "ti,wait-gate-clock";
142 compatible = "ti,wait-gate-clock";
187 compatible = "ti,wait-gate-clock";
219 compatible = "ti,wait-gate-clock";
Dexynos5250-snow-common.dtsi69 wait-retry-us = <3000>;
70 wait-free-us = <50000>;
133 ti,overcurrent-wait = <3>;
138 ti,overcurrent-wait = <3>;
143 ti,overcurrent-wait = <3>;
147 ti,overcurrent-wait = <3>;
152 ti,overcurrent-wait = <3>;
156 ti,overcurrent-wait = <3>;
161 ti,overcurrent-wait = <3>;
/linux-4.4.14/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);
/linux-4.4.14/drivers/isdn/mISDN/
Dtimerdev.c38 wait_queue_head_t wait; member
65 init_waitqueue_head(&dev->wait); in mISDN_open()
119 wait_event_interruptible(dev->wait, (dev->work || in mISDN_read()
143 mISDN_poll(struct file *filep, poll_table *wait) in mISDN_poll() argument
149 printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait); in mISDN_poll()
151 poll_wait(filep, &dev->wait, wait); in mISDN_poll()
172 wake_up_interruptible(&timer->dev->wait); in dev_expire_timer()
183 wake_up_interruptible(&dev->wait); in misdn_add_timer()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Daq100x.c65 static int aq100x_reset(struct cphy *phy, int wait) in aq100x_reset() argument
269 unsigned int v, v2, gpio, wait; in t3_aq100x_phy_prep() local
290 wait = 500; /* in 10ms increments */ in t3_aq100x_phy_prep()
305 } while (v && --wait); in t3_aq100x_phy_prep()
314 wait = (500 - wait) * 10 + 1000; in t3_aq100x_phy_prep()
315 if (wait > 3000) in t3_aq100x_phy_prep()
316 CH_WARN(adapter, "PHY%d: reset took %ums\n", phy_addr, wait); in t3_aq100x_phy_prep()
/linux-4.4.14/drivers/vfio/
Dvirqfd.c46 static int virqfd_wakeup(wait_queue_t *wait, unsigned mode, int sync, void *key) in virqfd_wakeup() argument
48 struct virqfd *virqfd = container_of(wait, struct virqfd, wait); in virqfd_wakeup()
85 add_wait_queue(wqh, &virqfd->wait); in virqfd_ptable_queue_proc()
93 eventfd_ctx_remove_wait_queue(virqfd->eventfd, &virqfd->wait, &cnt); in virqfd_shutdown()
166 init_waitqueue_func_entry(&virqfd->wait, virqfd_wakeup); in vfio_virqfd_enable()
/linux-4.4.14/lib/
Dpercpu_ida.c146 DEFINE_WAIT(wait); in percpu_ida_alloc()
172 prepare_to_wait(&pool->wait, &wait, state); in percpu_ida_alloc()
203 finish_wait(&pool->wait, &wait); in percpu_ida_alloc()
236 wake_up(&pool->wait); in percpu_ida_free()
251 wake_up(&pool->wait); in percpu_ida_free()
293 init_waitqueue_head(&pool->wait); in __percpu_ida_init()
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-eq.c326 int wait; in lnet_eq_wait_locked() local
350 wait = tms != 0; /* might need to call here again */ in lnet_eq_wait_locked()
356 return wait; in lnet_eq_wait_locked()
389 int wait = 1; in LNetEQPoll() local
418 if (wait == 0) in LNetEQPoll()
428 wait = lnet_eq_wait_locked(&timeout_ms); in LNetEQPoll()
429 if (wait < 0) /* no new event */ in LNetEQPoll()
/linux-4.4.14/fs/ecryptfs/
Dkthread.c43 wait_queue_head_t wait; member
64 ecryptfs_kthread_ctl.wait, in ecryptfs_threadfn()
92 init_waitqueue_head(&ecryptfs_kthread_ctl.wait); in ecryptfs_init_kthread()
118 wake_up(&ecryptfs_kthread_ctl.wait); in ecryptfs_destroy_kthread()
167 wake_up(&ecryptfs_kthread_ctl.wait); in ecryptfs_privileged_open()
/linux-4.4.14/arch/mn10300/kernel/
Dsmp.c72 int wait; member
390 int smp_nmi_call_function(smp_call_func_t func, void *info, int wait) in smp_nmi_call_function() argument
405 data.wait = wait; in smp_nmi_call_function()
406 if (wait) in smp_nmi_call_function()
424 if (wait && cnt < CALL_FUNCTION_NMI_IPI_TIMEOUT) { in smp_nmi_call_function()
440 if (wait) in smp_nmi_call_function()
533 int wait = nmi_call_data->wait; in smp_nmi_call_function_interrupt() local
542 if (wait) { in smp_nmi_call_function_interrupt()
1069 int wait) in hotplug_cpu_nmi_call_function() argument
1085 nmi_call_func_mask_data.wait = wait; in hotplug_cpu_nmi_call_function()
[all …]
/linux-4.4.14/drivers/gpu/host1x/
Djob.c146 struct host1x_waitchk *wait = &job->waitchk[i]; in do_waitchks() local
148 host1x_syncpt_get(host, wait->syncpt_id); in do_waitchks()
151 if (wait->syncpt_id > host1x_syncpt_nb_pts(host)) in do_waitchks()
155 if (patch != wait->bo) in do_waitchks()
158 trace_host1x_syncpt_wait_check(wait->bo, wait->offset, in do_waitchks()
159 wait->syncpt_id, wait->thresh, in do_waitchks()
162 if (host1x_syncpt_is_expired(sp, wait->thresh)) { in do_waitchks()
165 wait->syncpt_id, sp->name, wait->thresh, in do_waitchks()
168 host1x_syncpt_patch_offset(sp, patch, wait->offset); in do_waitchks()
171 wait->bo = NULL; in do_waitchks()
/linux-4.4.14/kernel/rcu/
Dsync.c35 void (*wait)(void); member
43 .wait = rcu_barrier,
49 .wait = rcu_barrier_sched,
55 .wait = rcu_barrier_bh,
220 gp_ops[rsp->gp_type].wait(); in rcu_sync_dtor()
/linux-4.4.14/drivers/char/
Dsnsc.c188 DECLARE_WAITQUEUE(wait, current); in scdrv_read()
198 add_wait_queue(&sd->sd_rq, &wait); in scdrv_read()
203 remove_wait_queue(&sd->sd_rq, &wait); in scdrv_read()
285 DECLARE_WAITQUEUE(wait, current); in scdrv_write()
294 add_wait_queue(&sd->sd_wq, &wait); in scdrv_write()
299 remove_wait_queue(&sd->sd_wq, &wait); in scdrv_write()
325 scdrv_poll(struct file *file, struct poll_table_struct *wait) in scdrv_poll() argument
332 poll_wait(file, &sd->sd_rq, wait); in scdrv_poll()
333 poll_wait(file, &sd->sd_wq, wait); in scdrv_poll()
Dnwbutton.c171 DEFINE_WAIT(wait); in button_read()
172 prepare_to_wait(&button_wait_queue, &wait, TASK_INTERRUPTIBLE); in button_read()
174 finish_wait(&button_wait_queue, &wait); in button_read()
Dapplicom.c366 DECLARE_WAITQUEUE(wait, current); in ac_write()
432 add_wait_queue(&apbs[IndexCard].FlagSleepSend, &wait); in ac_write()
443 &wait); in ac_write()
452 remove_wait_queue(&apbs[IndexCard].FlagSleepSend, &wait); in ac_write()
539 DECLARE_WAITQUEUE(wait, current); in ac_read()
553 add_wait_queue(&FlagSleepRec, &wait); in ac_read()
572 remove_wait_queue(&FlagSleepRec, &wait); in ac_read()
587 remove_wait_queue(&FlagSleepRec, &wait); in ac_read()
604 remove_wait_queue(&FlagSleepRec, &wait); in ac_read()
/linux-4.4.14/drivers/isdn/hardware/eicon/
Ddivasi.c77 static unsigned int um_idi_poll(struct file *file, poll_table *wait);
370 static unsigned int um_idi_poll(struct file *file, poll_table *wait) in um_idi_poll() argument
385 poll_wait(file, &p_os->read_wait, wait); in um_idi_poll()
510 DECLARE_WAITQUEUE(wait, curtask); in remove_entity()
512 add_wait_queue(&p_os->close_wait, &wait); in remove_entity()
522 remove_wait_queue(&p_os->close_wait, &wait); in remove_entity()
527 DECLARE_WAITQUEUE(wait, curtask); in remove_entity()
529 add_wait_queue(&p_os->close_wait, &wait); in remove_entity()
539 remove_wait_queue(&p_os->close_wait, &wait); in remove_entity()
/linux-4.4.14/sound/core/seq/
Dseq_fifo.c176 wait_queue_t wait; in snd_seq_fifo_cell_out() local
182 init_waitqueue_entry(&wait, current); in snd_seq_fifo_cell_out()
191 add_wait_queue(&f->input_sleep, &wait); in snd_seq_fifo_cell_out()
195 remove_wait_queue(&f->input_sleep, &wait); in snd_seq_fifo_cell_out()
225 poll_table *wait) in snd_seq_fifo_poll_wait() argument
227 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()
/linux-4.4.14/Documentation/devicetree/bindings/gpio/
Dgpio-restart.txt17 is driven active again. After a delay specified by wait-delay, the
40 - active-delay: Delay (default 100) to wait after driving gpio active [ms]
41 - inactive-delay: Delay (default 100) to wait after driving gpio inactive [ms]
42 - wait-delay: Delay (default 3000) to wait after completing restart
53 wait-delay = <3000>;
/linux-4.4.14/Documentation/devicetree/bindings/i2c/
Di2c-arb-gpio-challenge.txt37 4. Otherwise, wait for a few milliseconds and see if THEIR_CLAIMS are released.
38 5. If not, back off, release the claim and wait for a few more milliseconds.
51 - slew-delay-us: microseconds to wait for a GPIO to go high. Default is 10 us.
52 - wait-retry-us: we'll attempt another claim after this many microseconds.
54 - wait-free-us: we'll give up after this many microseconds. Default is 50000 us.
74 wait-retry-us = <3000>;
75 wait-free-us = <50000>;
/linux-4.4.14/drivers/staging/speakup/
Dthread.c23 DEFINE_WAIT(wait); in speakup_thread()
29 prepare_to_wait(&speakup_event, &wait, in speakup_thread()
43 finish_wait(&speakup_event, &wait); in speakup_thread()
Dspeakup_soft.c215 DEFINE_WAIT(wait); in softsynth_read()
219 prepare_to_wait(&speakup_event, &wait, TASK_INTERRUPTIBLE); in softsynth_read()
224 finish_wait(&speakup_event, &wait); in softsynth_read()
228 finish_wait(&speakup_event, &wait); in softsynth_read()
234 finish_wait(&speakup_event, &wait); in softsynth_read()
284 struct poll_table_struct *wait) in softsynth_poll() argument
289 poll_wait(fp, &speakup_event, wait); in softsynth_poll()
Dselection.c143 DECLARE_WAITQUEUE(wait, current); in __speakup_paste_selection()
150 add_wait_queue(&vc->paste_wait, &wait); in __speakup_paste_selection()
162 remove_wait_queue(&vc->paste_wait, &wait); in __speakup_paste_selection()
/linux-4.4.14/drivers/misc/ibmasm/
Dr_heartbeat.c51 init_waitqueue_head(&rhb->wait); in ibmasm_init_reverse_heartbeat()
80 wait_event_interruptible_timeout(rhb->wait, in ibmasm_start_reverse_heartbeat()
98 wake_up_interruptible(&rhb->wait); in ibmasm_stop_reverse_heartbeat()
Devent.c45 wake_up_interruptible(&reader->wait); in wake_up_event_readers()
100 if (wait_event_interruptible(reader->wait, in ibmasm_get_next_event()
127 wake_up_interruptible(&reader->wait); in ibmasm_cancel_next_event()
135 init_waitqueue_head(&reader->wait); in ibmasm_event_reader_register()
Dcommand.c57 init_waitqueue_head(&cmd->wait); in ibmasm_new_command()
105 wake_up(&sp->current_command->wait); in do_exec_command()
164 wait_event_interruptible_timeout(cmd->wait, in ibmasm_wait_for_response()
184 wake_up(&sp->current_command->wait); in ibmasm_receive_command_response()
Dibmasm.h92 wait_queue_head_t wait; member
134 wait_queue_head_t wait; member
141 wait_queue_head_t wait; member
/linux-4.4.14/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()
/linux-4.4.14/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()
/linux-4.4.14/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()
/linux-4.4.14/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()
/linux-4.4.14/sound/firewire/tascam/
Dtascam-hwdep.c42 DEFINE_WAIT(wait); in hwdep_read()
48 prepare_to_wait(&tscm->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
51 finish_wait(&tscm->hwdep_wait, &wait); in hwdep_read()
65 poll_table *wait) in hwdep_poll() argument
70 poll_wait(file, &tscm->hwdep_wait, wait); in hwdep_poll()
/linux-4.4.14/drivers/input/keyboard/
Dsunkbd.c80 wait_queue_head_t wait; member
105 wake_up_interruptible(&sunkbd->wait); in sunkbd_interrupt()
111 wake_up_interruptible(&sunkbd->wait); in sunkbd_interrupt()
198 wait_event_interruptible_timeout(sunkbd->wait, sunkbd->reset >= 0, HZ); in sunkbd_initialize()
207 wait_event_interruptible_timeout(sunkbd->wait, in sunkbd_initialize()
227 wait_event_interruptible_timeout(sunkbd->wait, sunkbd->reset >= 0, HZ); in sunkbd_reinit()
267 init_waitqueue_head(&sunkbd->wait); in sunkbd_connect()
/linux-4.4.14/drivers/clk/at91/
Dclk-main.c39 wait_queue_head_t wait; member
48 wait_queue_head_t wait; member
66 wait_queue_head_t wait; member
76 wake_up(&osc->wait); in clk_main_osc_irq_handler()
99 wait_event(osc->wait, in clk_main_osc_prepare()
170 init_waitqueue_head(&osc->wait); in at91_clk_register_main_osc()
222 wake_up(&osc->wait); in clk_main_rc_osc_irq_handler()
243 wait_event(osc->wait, in clk_main_rc_osc_prepare()
326 init_waitqueue_head(&osc->wait); in at91_clk_register_main_rc_osc()
485 wake_up(&clkmain->wait); in clk_sam9x5_main_irq_handler()
[all …]
Dclk-utmi.c31 wait_queue_head_t wait; member
40 wake_up(&utmi->wait); in clk_utmi_irq_handler()
57 wait_event(utmi->wait, in clk_utmi_prepare()
117 init_waitqueue_head(&utmi->wait); in at91_clk_register_utmi()
Dclk-system.c34 wait_queue_head_t wait; member
46 wake_up(&sys->wait); in clk_system_irq_handler()
66 wait_event(sys->wait, in clk_system_prepare()
129 init_waitqueue_head(&sys->wait); in at91_clk_register_system()
Dclk-master.c49 wait_queue_head_t wait; member
58 wake_up(&master->wait); in clk_master_irq_handler()
70 wait_event(master->wait, in clk_master_prepare()
164 init_waitqueue_head(&master->wait); in at91_clk_register_master()
/linux-4.4.14/arch/mn10300/mm/
Dcache-flush-by-reg.S60 # wait for busy bit of area purge
77 # wait for busy bit of area purge
138 # wait for busy bit of area purge
158 # wait for busy bit of area purge
196 # wait for busy bit of area purge & invalidate
210 # wait for busy bit of area purge & invalidate
271 # wait for busy bit of area purge & invalidate
291 # wait for busy bit of area purge & invalidate
Dcache.inc39 # and wait for it to calm down
49 # wait for the cache to finish
100 # and wait for it to calm down
110 # wait for the cache to finish
Dcache-dbg-flush-by-reg.S49 # wait for busy bit of area purge
66 # wait for busy bit of area purge
/linux-4.4.14/Documentation/dmaengine/
Ddmatest.txt45 To wait for test completion userpace can poll 'run' until it is false, or use
46 the wait parameter. Specifying 'wait=1' when loading the module causes module
48 /sys/module/dmatest/parameters/wait waits for any running test to complete
49 before returning. For example, the following scripts wait for 42 tests
54 % modprobe dmatest run=1 iterations=42 wait=1
58 % cat /sys/module/dmatest/parameters/wait
/linux-4.4.14/arch/tile/include/gxio/
Ddma_queue.h77 unsigned int num, bool wait, in __gxio_dma_queue_reserve() argument
102 if (wait) in __gxio_dma_queue_reserve()
151 unsigned int num, int wait);
/linux-4.4.14/Documentation/DocBook/
Dkernel-locking.xml.db22 API-futex-wait-queue-me
23 API-futex-wait-setup
25 API-futex-wait-requeue-pi
Ddevice-drivers.xml.db70 API-wait-event
71 API-wait-event-freezable
72 API-wait-event-timeout
73 API-wait-event-cmd
74 API-wait-event-interruptible
75 API-wait-event-interruptible-timeout
76 API-wait-event-hrtimeout
77 API-wait-event-interruptible-hrtimeout
78 API-wait-event-interruptible-locked
79 API-wait-event-interruptible-locked-irq
[all …]
Dmtdnand.xml.db11 API-nand-wait-ready
41 API-panic-nand-wait-ready
42 API-nand-wait-status-ready
47 API-panic-nand-wait
48 API-nand-wait
/linux-4.4.14/drivers/s390/char/
Dfs3270.c39 wait_queue_head_t wait; /* Init & attention wait queue. */ member
70 rq->callback_data = &fp->wait; in fs3270_do_io()
75 rc = wait_event_interruptible(fp->wait, in fs3270_do_io()
83 wait_event(fp->wait, raw3270_request_final(rq)); in fs3270_do_io()
99 wake_up(&fp->wait); in fs3270_reset_callback()
114 wake_up(&fp->wait); in fs3270_restore_callback()
186 wake_up(&fp->wait); in fs3270_save_callback()
226 wake_up(&fp->wait); in fs3270_irq()
264 rc = wait_event_interruptible(fp->wait, fp->attention); in fs3270_read()
464 init_waitqueue_head(&fp->wait); in fs3270_open()
/linux-4.4.14/drivers/soc/tegra/fuse/
Dfuse-tegra20.c49 complete(&fuse->apbdma.wait); in apb_dma_complete()
78 reinit_completion(&fuse->apbdma.wait); in tegra20_fuse_read()
84 time_left = wait_for_completion_timeout(&fuse->apbdma.wait, in tegra20_fuse_read()
123 init_completion(&fuse->apbdma.wait); in tegra20_fuse_probe()
/linux-4.4.14/mm/
Dmempool.c204 init_waitqueue_head(&pool->wait); in mempool_create_node()
319 wait_queue_t wait; in mempool_alloc() local
368 init_wait(&wait); in mempool_alloc()
369 prepare_to_wait(&pool->wait, &wait, TASK_UNINTERRUPTIBLE); in mempool_alloc()
379 finish_wait(&pool->wait, &wait); in mempool_alloc()
437 wake_up(&pool->wait); in mempool_free()
/linux-4.4.14/Documentation/devicetree/bindings/mips/cavium/
Dbootbus.txt46 - cavium,t-wait: A cell specifying the WAIT timing (in nS).
55 - cavium,wait-mode: Optional. If present, wait mode (WAITM) is selected.
95 cavium,t-wait = <0>;
115 cavium,t-wait = <0>;
120 cavium,wait-mode;
/linux-4.4.14/net/bluetooth/cmtp/
Dcapi.c212 wake_up_interruptible(&session->wait); in cmtp_recv_interopmsg()
224 wake_up_interruptible(&session->wait); in cmtp_recv_interopmsg()
238 wake_up_interruptible(&session->wait); in cmtp_recv_interopmsg()
383 DECLARE_WAITQUEUE(wait, current); in cmtp_register_appl()
417 add_wait_queue(&session->wait, &wait); in cmtp_register_appl()
442 remove_wait_queue(&session->wait, &wait); in cmtp_register_appl()
468 wait_event_interruptible_timeout(session->wait, in cmtp_release_appl()
553 ret = wait_event_interruptible_timeout(session->wait, in cmtp_attach_device()
Dcore.c284 wait_queue_t wait; in cmtp_session() local
290 init_waitqueue_entry(&wait, current); in cmtp_session()
291 add_wait_queue(sk_sleep(sk), &wait); in cmtp_session()
313 remove_wait_queue(sk_sleep(sk), &wait); in cmtp_session()
369 init_waitqueue_head(&session->wait); in cmtp_add_connection()
/linux-4.4.14/net/bluetooth/
Daf_bluetooth.c259 DECLARE_WAITQUEUE(wait, current); in bt_sock_data_wait()
261 add_wait_queue(sk_sleep(sk), &wait); in bt_sock_data_wait()
282 remove_wait_queue(sk_sleep(sk), &wait); in bt_sock_data_wait()
408 poll_table *wait) in bt_sock_poll() argument
415 poll_wait(file, sk_sleep(sk), wait); in bt_sock_poll()
501 DECLARE_WAITQUEUE(wait, current); in bt_sock_wait_state()
506 add_wait_queue(sk_sleep(sk), &wait); in bt_sock_wait_state()
529 remove_wait_queue(sk_sleep(sk), &wait); in bt_sock_wait_state()
537 DECLARE_WAITQUEUE(wait, current); in bt_sock_wait_ready()
545 add_wait_queue(sk_sleep(sk), &wait); in bt_sock_wait_ready()
[all …]
/linux-4.4.14/drivers/mmc/host/
Dusdhi6rol0.c183 enum usdhi6_wait_for wait; member
281 if (host->wait == USDHI6_WAIT_FOR_CMD) in usdhi6_error_code()
284 err, rsp54, host->wait, opc); in usdhi6_error_code()
288 err, rsp54, host->wait, opc); in usdhi6_error_code()
295 err, host->wait, host->mrq ? host->mrq->cmd->opcode : -1); in usdhi6_error_code()
488 host->wait = USDHI6_WAIT_FOR_DATA_END; in usdhi6_sg_advance()
900 host->pg.page, host->head_pg.page, host->wait, mrq->cmd->opcode, in usdhi6_request_done()
918 host->wait = USDHI6_WAIT_FOR_REQUEST; in usdhi6_request_done()
1069 host->wait = USDHI6_WAIT_FOR_CMD; in usdhi6_rq_start()
1248 host->wait = USDHI6_WAIT_FOR_REQUEST; in usdhi6_blk_read()
[all …]
/linux-4.4.14/net/vmw_vsock/
Dvmci_transport.h80 struct vmci_transport_waiting_info wait; member
140 struct vmci_transport_waiting_info *wait);
142 struct vmci_transport_waiting_info *wait);
Daf_vsock.c840 poll_table *wait) in vsock_poll() argument
849 poll_wait(file, sk_sleep(sk), wait); in vsock_poll()
1120 DEFINE_WAIT(wait); in vsock_stream_connect()
1187 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in vsock_stream_connect()
1218 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in vsock_stream_connect()
1228 finish_wait(sk_sleep(sk), &wait); in vsock_stream_connect()
1246 DEFINE_WAIT(wait); in vsock_accept()
1267 prepare_to_wait(sk_sleep(listener), &wait, TASK_INTERRUPTIBLE); in vsock_accept()
1283 prepare_to_wait(sk_sleep(listener), &wait, TASK_INTERRUPTIBLE); in vsock_accept()
1316 finish_wait(sk_sleep(listener), &wait); in vsock_accept()
[all …]
/linux-4.4.14/drivers/mtd/chips/
Dcfi_cmdset_0020.c251 DECLARE_WAITQUEUE(wait, current); in do_read_onechip()
352 add_wait_queue(&chip->wq, &wait); in do_read_onechip()
355 remove_wait_queue(&chip->wq, &wait); in do_read_onechip()
425 DECLARE_WAITQUEUE(wait, current); in do_write_buffer()
485 add_wait_queue(&chip->wq, &wait); in do_write_buffer()
488 remove_wait_queue(&chip->wq, &wait); in do_write_buffer()
542 add_wait_queue(&chip->wq, &wait); in do_write_buffer()
545 remove_wait_queue(&chip->wq, &wait); in do_write_buffer()
737 DECLARE_WAITQUEUE(wait, current); in do_erase_oneblock()
778 add_wait_queue(&chip->wq, &wait); in do_erase_oneblock()
[all …]
Dcfi_cmdset_0002.c780 DECLARE_WAITQUEUE(wait, current); in get_chip()
872 add_wait_queue(&chip->wq, &wait); in get_chip()
875 remove_wait_queue(&chip->wq, &wait); in get_chip()
1020 DECLARE_WAITQUEUE(wait, current); in xip_udelay()
1022 add_wait_queue(&chip->wq, &wait); in xip_udelay()
1025 remove_wait_queue(&chip->wq, &wait); in xip_udelay()
1214 DECLARE_WAITQUEUE(wait, current); in do_read_secsi_onechip()
1222 add_wait_queue(&chip->wq, &wait); in do_read_secsi_onechip()
1227 remove_wait_queue(&chip->wq, &wait); in do_read_secsi_onechip()
1616 DECLARE_WAITQUEUE(wait, current); in do_write_oneword()
[all …]
/linux-4.4.14/net/dccp/
Dprobe.c50 wait_queue_head_t wait; member
73 wake_up(&dccpw.wait); in printl()
134 error = wait_event_interruptible(dccpw.wait, in dccpprobe_read()
159 init_waitqueue_head(&dccpw.wait); in dccpprobe_init()
/linux-4.4.14/Documentation/devicetree/bindings/bus/
Dti-gpmc.txt23 - gpmc,num-waitpins: The maximum number of wait pins that controller can
67 - gpmc,wait-monitoring-ns: Start of wait monitoring with regard to valid
110 - gpmc,wait-pin Wait-pin used by client. Must be less than
112 - gpmc,wait-on-read Enables wait monitoring on reads.
113 - gpmc,wait-on-write Enables wait monitoring on writes.
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-fileops.c210 DEFINE_WAIT(wait); in ivtv_get_buffer()
274 prepare_to_wait(&s->waitq, &wait, TASK_INTERRUPTIBLE); in ivtv_get_buffer()
278 finish_wait(&s->waitq, &wait); in ivtv_get_buffer()
559 DEFINE_WAIT(wait); in ivtv_write()
634 prepare_to_wait(&s->waitq, &wait, TASK_INTERRUPTIBLE); in ivtv_write()
638 finish_wait(&s->waitq, &wait); in ivtv_write()
695 prepare_to_wait(&itv->dma_waitq, &wait, TASK_INTERRUPTIBLE); in ivtv_write()
700 finish_wait(&itv->dma_waitq, &wait); in ivtv_write()
733 unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table *wait) in ivtv_v4l2_dec_poll() argument
746 poll_wait(filp, &id->fh.wait, wait); in ivtv_v4l2_dec_poll()
[all …]
Divtv-fileops.h31 unsigned int ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);
32 unsigned int ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dsysfs.c124 DEFINE_WAIT(wait); in wl1271_sysfs_read_fwlog()
127 &wait, in wl1271_sysfs_read_fwlog()
131 finish_wait(&wl->fwlog_waitq, &wait); in wl1271_sysfs_read_fwlog()
138 finish_wait(&wl->fwlog_waitq, &wait); in wl1271_sysfs_read_fwlog()
/linux-4.4.14/Documentation/devicetree/bindings/clock/ti/
Dgate.txt19 "ti,wait-gate-clock" - gate clock which waits until clock is active before
30 "ti,composite-no-wait-gate-clock" - composite gate clock that does not wait
55 compatible = "ti,wait-gate-clock";
102 compatible = "ti,composite-no-wait-gate-clock";
/linux-4.4.14/arch/um/drivers/
Drandom.c69 DECLARE_WAITQUEUE(wait, current); in rng_dev_read()
78 add_wait_queue(&host_read_wait, &wait); in rng_dev_read()
82 remove_wait_queue(&host_read_wait, &wait); in rng_dev_read()
/linux-4.4.14/arch/mips/kernel/
Drtlx.c126 DEFINE_WAIT(wait); in rtlx_open()
131 &wait, TASK_INTERRUPTIBLE); in rtlx_open()
143 &wait); in rtlx_open()
337 static unsigned int file_poll(struct file *file, poll_table *wait) in file_poll() argument
342 poll_wait(file, &channel_wqs[minor].rt_queue, wait); in file_poll()
343 poll_wait(file, &channel_wqs[minor].lx_queue, wait); in file_poll()
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
Dxgene_enet_xgmac.c54 u8 wait = 10; in xgene_enet_wr_indirect() local
61 while (!(done = ioread32(cmd_done)) && wait--) in xgene_enet_wr_indirect()
108 u8 wait = 10; in xgene_enet_rd_indirect() local
114 while (!(done = ioread32(cmd_done)) && wait--) in xgene_enet_rd_indirect()
144 u8 wait = 10; in xgene_enet_ecc_init() local
150 } while ((data != 0xffffffff) && wait--); in xgene_enet_ecc_init()
Dxgene_enet_hw.c275 u8 wait = 10; in xgene_enet_wr_indirect() local
282 while (!(done = ioread32(cmd_done)) && wait--) in xgene_enet_wr_indirect()
337 u8 wait = 10; in xgene_enet_rd_indirect() local
343 while (!(done = ioread32(cmd_done)) && wait--) in xgene_enet_rd_indirect()
375 u8 wait = 10; in xgene_mii_phy_write() local
386 } while ((done & BUSY_MASK) && wait--); in xgene_mii_phy_write()
401 u8 wait = 10; in xgene_mii_phy_read() local
410 } while ((done & BUSY_MASK) && wait--); in xgene_mii_phy_read()
440 u8 wait = 10; in xgene_enet_ecc_init() local
446 } while ((data != 0xffffffff) && wait--); in xgene_enet_ecc_init()
/linux-4.4.14/drivers/iio/
Dindustrialio-event.c38 wait_queue_head_t wait; member
70 wake_up_poll(&ev_int->wait, POLLIN); in iio_push_event()
86 struct poll_table_struct *wait) in iio_event_poll() argument
95 poll_wait(filep, &ev_int->wait, wait); in iio_event_poll()
124 ret = wait_event_interruptible(ev_int->wait, in iio_event_chrdev_read()
447 init_waitqueue_head(&ev_int->wait); in iio_setup_ev_int()
526 wake_up(&indio_dev->event_interface->wait); in iio_device_wakeup_eventset()
/linux-4.4.14/drivers/tty/
Dn_hdlc.c187 poll_table *wait);
584 DECLARE_WAITQUEUE(wait, current); in n_hdlc_tty_read()
600 add_wait_queue(&tty->read_wait, &wait); in n_hdlc_tty_read()
646 remove_wait_queue(&tty->read_wait, &wait); in n_hdlc_tty_read()
667 DECLARE_WAITQUEUE(wait, current); in n_hdlc_tty_write()
691 add_wait_queue(&tty->write_wait, &wait); in n_hdlc_tty_write()
721 remove_wait_queue(&tty->write_wait, &wait); in n_hdlc_tty_write()
813 poll_table *wait) in n_hdlc_tty_poll() argument
825 poll_wait(filp, &tty->read_wait, wait); in n_hdlc_tty_poll()
826 poll_wait(filp, &tty->write_wait, wait); in n_hdlc_tty_poll()
/linux-4.4.14/drivers/hid/usbhid/
Dhiddev.c53 wait_queue_head_t wait; member
180 wake_up_interruptible(&hiddev->wait); in hiddev_send_event()
343 DEFINE_WAIT(wait); in hiddev_read()
361 prepare_to_wait(&list->hiddev->wait, &wait, TASK_INTERRUPTIBLE); in hiddev_read()
381 finish_wait(&list->hiddev->wait, &wait); in hiddev_read()
386 finish_wait(&list->hiddev->wait, &wait); in hiddev_read()
434 static unsigned int hiddev_poll(struct file *file, poll_table *wait) in hiddev_poll() argument
438 poll_wait(file, &list->hiddev->wait, wait); in hiddev_poll()
899 init_waitqueue_head(&hiddev->wait); in hiddev_connect()
934 wake_up_interruptible(&hiddev->wait); in hiddev_disconnect()
/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-pow.h260 uint64_t wait:1; member
265 uint64_t wait:1;
1234 uint64_t wait:1; member
1238 uint64_t wait:1;
1352 wait) in cvmx_pow_work_request_sync_nocheck()
1364 ptr.swork.wait = wait; in cvmx_pow_work_request_sync_nocheck()
1385 static inline cvmx_wqe_t *cvmx_pow_work_request_sync(cvmx_pow_wait_t wait) in cvmx_pow_work_request_sync() argument
1392 return cvmx_pow_work_request_sync_nocheck(wait); in cvmx_pow_work_request_sync()
1439 cvmx_pow_wait_t wait) in cvmx_pow_work_request_async_nocheck() argument
1450 data.s.wait = wait; in cvmx_pow_work_request_async_nocheck()
[all …]
/linux-4.4.14/drivers/macintosh/
Dsmu.c1070 wait_queue_head_t wait; member
1085 init_waitqueue_head(&pp->wait); in smu_open()
1102 wake_up_all(&pp->wait); in smu_user_cmd_done()
1167 DECLARE_WAITQUEUE(wait, current); in smu_read_command()
1182 add_wait_queue(&pp->wait, &wait); in smu_read_command()
1196 remove_wait_queue(&pp->wait, &wait); in smu_read_command()
1242 static unsigned int smu_fpoll(struct file *file, poll_table *wait) in smu_fpoll() argument
1252 poll_wait(file, &pp->wait, wait); in smu_fpoll()
1283 DECLARE_WAITQUEUE(wait, current); in smu_release()
1285 add_wait_queue(&pp->wait, &wait); in smu_release()
[all …]
/linux-4.4.14/fs/jffs2/
Dbackground.c63 int wait = 0; in jffs2_stop_garbage_collect_thread() local
68 wait = 1; in jffs2_stop_garbage_collect_thread()
71 if (wait) in jffs2_stop_garbage_collect_thread()
/linux-4.4.14/net/sctp/
Dprobe.c67 wait_queue_head_t wait; member
82 wake_up(&sctpw.wait); in printl()
109 error = wait_event_interruptible(sctpw.wait, in sctpprobe_read()
211 init_waitqueue_head(&sctpw.wait); in sctpprobe_init()
/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_hwdep.c100 DEFINE_WAIT(wait); in hwdep_read()
105 prepare_to_wait(&efw->hwdep_wait, &wait, TASK_INTERRUPTIBLE); in hwdep_read()
108 finish_wait(&efw->hwdep_wait, &wait); in hwdep_read()
155 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) in hwdep_poll() argument
160 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()
220 wake_up(&t->wait); in handle_resp_for_kernel()
300 wake_up(&t->wait); in snd_efw_transaction_bus_reset()
/linux-4.4.14/drivers/staging/goldfish/
Dgoldfish_audio.c41 wait_queue_head_t wait; member
128 wait_event_interruptible(data->wait, data->buffer_status & in goldfish_audio_read()
157 wait_event_interruptible(data->wait, data->buffer_status & in goldfish_audio_write()
245 wake_up(&data->wait); in goldfish_audio_interrupt()
279 init_waitqueue_head(&data->wait); in goldfish_audio_probe()
/linux-4.4.14/drivers/mtd/onenand/
Donenand_base.c645 this->wait = onenand_interrupt_wait; in onenand_try_interrupt_wait()
656 this->wait = onenand_wait; in onenand_try_interrupt_wait()
678 this->wait = onenand_wait; in onenand_setup_wait()
685 this->wait = onenand_wait; in onenand_setup_wait()
694 this->wait = onenand_try_interrupt_wait; in onenand_setup_wait()
969 DECLARE_WAITQUEUE(wait, current); in onenand_get_device()
988 add_wait_queue(&this->wq, &wait); in onenand_get_device()
991 remove_wait_queue(&this->wq, &wait); in onenand_get_device()
1098 return this->wait(mtd, FL_READING); in onenand_recover_lsb()
1157 ret = this->wait(mtd, FL_READING); in onenand_mlc_read_ops_nolock()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/misc/
Difm-csi.txt14 - ifm,csi-wait-cycles: sensor bus wait cycles
34 ifm,csi-wait-cycles = <0>;
/linux-4.4.14/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()
/linux-4.4.14/Documentation/scheduler/
Dcompletion.txt1 completions - wait for completion handling
9 If you have one or more threads of execution that must wait for some process
47 wait_queue_head_t wait;
50 providing the wait queue to place tasks on for waiting and the flag for
71 Initialization is accomplished by initializing the wait queue and setting
76 wait queue. Calling init_completion() twice on the same completion object is
105 For a thread of execution to wait for some concurrent work to finish, it
132 The default behavior is to wait without a timeout and to mark the task as
167 The task is marked as TASK_UNINTERRUPTIBLE and will wait at most 'timeout'
223 particular struct completion at any time - serialized through the wait
[all …]
/linux-4.4.14/fs/proc/
Dkmsg.c42 static unsigned int kmsg_poll(struct file *file, poll_table *wait) in kmsg_poll() argument
44 poll_wait(file, &log_wait, wait); in kmsg_poll()
/linux-4.4.14/drivers/char/hw_random/
Dtx4939-rng.c65 static int tx4939_rng_data_present(struct hwrng *rng, int wait) in tx4939_rng_data_present() argument
87 wait = 0; in tx4939_rng_data_present()
90 if (!wait) in tx4939_rng_data_present()
Dstm32-rng.c51 static int stm32_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) in stm32_rng_read() argument
62 if (!sr && wait) { in stm32_rng_read()
89 return retval || !wait ? retval : -EIO; in stm32_rng_read()
Dbcm2835-rng.c30 bool wait) in bcm2835_rng_read() argument
35 if (!wait) in bcm2835_rng_read()
Dgeode-rng.c64 static int geode_rng_data_present(struct hwrng *rng, int wait) in geode_rng_data_present() argument
71 if (data || !wait) in geode_rng_data_present()
Dppc4xx-rng.c31 static int ppc4xx_rng_data_present(struct hwrng *rng, int wait) in ppc4xx_rng_data_present() argument
38 if (!busy || !wait) { in ppc4xx_rng_data_present()
Damd-rng.c56 static int amd_rng_data_present(struct hwrng *rng, int wait) in amd_rng_data_present() argument
63 if (data || !wait) in amd_rng_data_present()
/linux-4.4.14/arch/x86/kernel/
Dsmp.c179 static void native_stop_other_cpus(int wait) in native_stop_other_cpus() argument
216 while (num_online_cpus() > 1 && (wait || timeout--)) in native_stop_other_cpus()
240 while (num_online_cpus() > 1 && (wait || timeout--)) in native_stop_other_cpus()
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/
Dtask_event_vs_ebb_test.c64 goto wait; in task_event_vs_ebb()
69 wait: in task_event_vs_ebb()
Dcpu_event_vs_ebb_test.c69 goto wait; in cpu_event_vs_ebb()
74 wait: in cpu_event_vs_ebb()
Dtask_event_pinned_vs_ebb_test.c66 goto wait; in task_event_pinned_vs_ebb()
71 wait: in task_event_pinned_vs_ebb()
Dcpu_event_pinned_vs_ebb_test.c71 goto wait; in cpu_event_pinned_vs_ebb()
76 wait: in cpu_event_pinned_vs_ebb()
/linux-4.4.14/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()
/linux-4.4.14/drivers/misc/mei/
Damthif.c152 wait_ret = wait_event_interruptible(dev->iamthif_cl.wait, in mei_amthif_read()
359 struct file *file, poll_table *wait) in mei_amthif_poll() argument
363 poll_wait(file, &dev->iamthif_cl.wait, wait); in mei_amthif_poll()
459 wake_up_interruptible(&dev->iamthif_cl.wait); in mei_amthif_complete()
476 wake_up_interruptible(&dev->iamthif_cl.wait); in mei_amthif_complete()
/linux-4.4.14/Documentation/locking/
Dlockstat.txt25 | <wait>
46 contentions - number of lock acquisitions that had to wait
47 wait time min - shortest (non-0) time we ever had to wait for a lock
48 max - longest time we ever had to wait for a lock
62 that had to wait on lock acquisition.
/linux-4.4.14/drivers/dma-buf/
Dfence.c166 ret = fence->ops->wait(fence, intr, timeout); in fence_wait_timeout()
324 struct default_wait_cb *wait = in fence_default_wait_cb() local
327 wake_up_state(wait->task, TASK_NORMAL); in fence_default_wait_cb()
457 if (fence->ops->wait != fence_default_wait) { in fence_wait_any_timeout()
519 BUG_ON(!ops || !ops->wait || !ops->enable_signaling || in fence_init()
Dseqno-fence.c68 return f->ops->wait(fence, intr, timeout); in seqno_wait()
76 .wait = seqno_wait,
/linux-4.4.14/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()
236 if (!msg->wait) in sst_ipc_tx_msg_reply_complete()
/linux-4.4.14/fs/jfs/
Dinode.c84 int jfs_commit_inode(struct inode *inode, int wait) in jfs_commit_inode() argument
119 rc = txCommit(tid, 1, &inode, wait ? COMMIT_SYNC : 0); in jfs_commit_inode()
128 int wait = wbc->sync_mode == WB_SYNC_ALL; in jfs_write_inode() local
139 jfs_flush_journal(JFS_SBI(inode->i_sb)->log, wait); in jfs_write_inode()
143 if (jfs_commit_inode(inode, wait)) { in jfs_write_inode()
/linux-4.4.14/drivers/md/bcache/
Dalloc.c381 long bch_bucket_alloc(struct cache *ca, unsigned reserve, bool wait) in bch_bucket_alloc() argument
392 if (!wait) { in bch_bucket_alloc()
463 struct bkey *k, int n, bool wait) in __bch_bucket_alloc_set() argument
476 long b = bch_bucket_alloc(ca, reserve, wait); in __bch_bucket_alloc_set()
496 struct bkey *k, int n, bool wait) in bch_bucket_alloc_set() argument
500 ret = __bch_bucket_alloc_set(c, reserve, k, n, wait); in bch_bucket_alloc_set()
572 unsigned write_point, unsigned write_prio, bool wait) in bch_alloc_sectors() argument
595 if (bch_bucket_alloc_set(c, watermark, &alloc.key, 1, wait)) in bch_alloc_sectors()
Djournal.h97 struct closure_waitlist wait; member
106 struct closure_waitlist wait; member
/linux-4.4.14/drivers/uio/
Duio.c397 wake_up_interruptible(&idev->wait); in uio_event_notify()
491 static unsigned int uio_poll(struct file *filep, poll_table *wait) in uio_poll() argument
499 poll_wait(filep, &idev->wait, wait); in uio_poll()
510 DECLARE_WAITQUEUE(wait, current); in uio_read()
520 add_wait_queue(&idev->wait, &wait); in uio_read()
550 remove_wait_queue(&idev->wait, &wait); in uio_read()
816 init_waitqueue_head(&idev->wait); in __uio_register_device()
/linux-4.4.14/drivers/clk/sirf/
Dclk-common.c345 u32 wait = (cfg >> 16) & (BIT(4) - 1); in dmn_clk_recalc_rate() local
348 return fin / (wait + hold + 2); in dmn_clk_recalc_rate()
356 unsigned ratio, wait, hold; in dmn_clk_round_rate() local
367 wait = (ratio >> 1) - 1; in dmn_clk_round_rate()
368 hold = ratio - wait - 2; in dmn_clk_round_rate()
370 return fin / (wait + hold + 2); in dmn_clk_round_rate()
378 unsigned ratio, wait, hold, reg; in dmn_clk_set_rate() local
389 wait = (ratio >> 1) - 1; in dmn_clk_set_rate()
390 hold = ratio - wait - 2; in dmn_clk_set_rate()
394 reg |= (wait << 16) | (hold << 20) | BIT(25); in dmn_clk_set_rate()
/linux-4.4.14/drivers/usb/core/
Ddevices.c130 wait_queue_head_t wait; member
133 .wait = __WAIT_QUEUE_HEAD_INITIALIZER(device_event.wait)
168 wake_up(&device_event.wait); in usbfs_conn_disc_event()
649 struct poll_table_struct *wait) in usb_device_poll() argument
653 poll_wait(file, &device_event.wait, wait); in usb_device_poll()
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_verbs_mcast.c73 wake_up(&qp->wait); in ipath_mcast_qp_free()
94 init_waitqueue_head(&mcast->wait); in ipath_mcast_alloc()
342 wait_event(mcast->wait, atomic_read(&mcast->refcount) <= 1); in ipath_multicast_detach()
347 wait_event(mcast->wait, !atomic_read(&mcast->refcount)); in ipath_multicast_detach()
/linux-4.4.14/drivers/staging/android/
Dsync.c318 struct sync_fence_waiter *wait; in sync_fence_wake_up_wq() local
320 wait = container_of(curr, struct sync_fence_waiter, work); in sync_fence_wake_up_wq()
321 list_del_init(&wait->work.task_list); in sync_fence_wake_up_wq()
323 wait->callback(wait->work.private, wait); in sync_fence_wake_up_wq()
512 .wait = fence_default_wait,
544 static unsigned int sync_fence_poll(struct file *file, poll_table *wait) in sync_fence_poll() argument
549 poll_wait(file, &fence->wq, wait); in sync_fence_poll()
/linux-4.4.14/drivers/usb/misc/
Drio500.c274 DEFINE_WAIT(wait); in write_rio()
331 prepare_to_wait(&rio->wait_q, &wait, TASK_INTERRUPTIBLE); in write_rio()
333 finish_wait(&rio->wait_q, &wait); in write_rio()
364 DEFINE_WAIT(wait); in read_rio()
417 prepare_to_wait(&rio->wait_q, &wait, TASK_INTERRUPTIBLE); in read_rio()
419 finish_wait(&rio->wait_q, &wait); in read_rio()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Doutpdp.h34 wait_queue_head_t wait; member
46 int nvkm_output_dp_train(struct nvkm_output *, u32 rate, bool wait);
/linux-4.4.14/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()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_provider.h218 wait_queue_head_t wait; member
242 wait_queue_head_t wait; member
284 wait_queue_head_t wait; member
/linux-4.4.14/drivers/i2c/busses/
Di2c-pca-platform.c33 wait_queue_head_t wait; member
86 ret = wait_event_timeout(i2c->wait, in i2c_pca_pf_waitforcompletion()
127 wake_up(&i2c->wait); in i2c_pca_pf_handler()
162 init_waitqueue_head(&i2c->wait); in i2c_pca_pf_probe()
Di2c-elektor.c104 DEFINE_WAIT(wait); in pcf_isa_waitforpin()
112 prepare_to_wait(&pcf_wait, &wait, TASK_INTERRUPTIBLE); in pcf_isa_waitforpin()
120 finish_wait(&pcf_wait, &wait); in pcf_isa_waitforpin()
/linux-4.4.14/drivers/acpi/
Dsbshc.c27 wait_queue_head_t wait; member
103 if (wait_event_timeout(hc->wait, hc->done, msecs_to_jiffies(timeout))) in wait_transaction_complete()
221 wake_up(&hc->wait); in smbus_alarm()
270 init_waitqueue_head(&hc->wait); in acpi_smbus_hc_add()
/linux-4.4.14/fs/coda/
Dpsdev.c64 static unsigned int coda_psdev_poll(struct file *file, poll_table * wait) in coda_psdev_poll() argument
69 poll_wait(file, &vcp->vc_waitq, wait); in coda_psdev_poll()
206 DECLARE_WAITQUEUE(wait, current); in coda_psdev_read()
216 add_wait_queue(&vcp->vc_waitq, &wait); in coda_psdev_read()
234 remove_wait_queue(&vcp->vc_waitq, &wait); in coda_psdev_read()
/linux-4.4.14/drivers/media/i2c/
Dsaa7110.c192 DEFINE_WAIT(wait); in determine_norm()
199 prepare_to_wait(&decoder->wq, &wait, TASK_UNINTERRUPTIBLE); in determine_norm()
201 finish_wait(&decoder->wq, &wait); in determine_norm()
234 prepare_to_wait(&decoder->wq, &wait, TASK_UNINTERRUPTIBLE); in determine_norm()
236 finish_wait(&decoder->wq, &wait); in determine_norm()
/linux-4.4.14/crypto/
Dalgif_aead.c110 wake_up_interruptible_sync_poll(&wq->wait, POLLIN | in aead_wmem_wakeup()
122 DEFINE_WAIT(wait); in aead_wait_for_data()
133 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in aead_wait_for_data()
140 finish_wait(sk_sleep(sk), &wait); in aead_wait_for_data()
161 wake_up_interruptible_sync_poll(&wq->wait, POLLOUT | in aead_data_wakeup()
475 poll_table *wait) in aead_poll() argument
482 sock_poll_wait(file, sk_sleep(sk), wait); in aead_poll()
/linux-4.4.14/drivers/spi/
Dspi-sh.c88 wait_queue_head_t wait; member
199 ret = wait_event_interruptible_timeout(ss->wait, in spi_sh_send()
215 ret = wait_event_interruptible_timeout(ss->wait, in spi_sh_send()
251 ret = wait_event_interruptible_timeout(ss->wait, in spi_sh_receive()
417 wake_up(&ss->wait); in spi_sh_irq()
486 init_waitqueue_head(&ss->wait); in spi_sh_probe()
/linux-4.4.14/drivers/mtd/maps/
Dvmu-flash.c117 int partition, error = 0, x, wait; in maple_vmu_read_block() local
174 wait = wait_event_interruptible_timeout(mdev->maple_wait, in maple_vmu_read_block()
189 if (wait == 0 || wait == -ERESTARTSYS) { in maple_vmu_read_block()
196 if (wait == -ERESTARTSYS) { in maple_vmu_read_block()
234 int partition, error, locking, x, phaselen, wait; in maple_vmu_write_block() local
269 wait = wait_event_interruptible_timeout(mdev->maple_wait, in maple_vmu_write_block()
278 } else if (wait == 0 || wait == -ERESTARTSYS) { in maple_vmu_write_block()
/linux-4.4.14/drivers/block/
Dnull_blk.c26 wait_queue_head_t wait; member
151 if (waitqueue_active(&nq->wait)) in put_tag()
152 wake_up(&nq->wait); in put_tag()
199 DEFINE_WAIT(wait); in alloc_cmd()
206 prepare_to_wait(&nq->wait, &wait, TASK_UNINTERRUPTIBLE); in alloc_cmd()
214 finish_wait(&nq->wait, &wait); in alloc_cmd()
377 init_waitqueue_head(&nq->wait); in null_init_queue()
/linux-4.4.14/drivers/mtd/lpddr/
Dlpddr_cmds.c157 DECLARE_WAITQUEUE(wait, current); in wait_for_ready()
159 add_wait_queue(&chip->wq, &wait); in wait_for_ready()
162 remove_wait_queue(&chip->wq, &wait); in wait_for_ready()
187 DECLARE_WAITQUEUE(wait, current); in get_chip()
258 add_wait_queue(&chip->wq, &wait); in get_chip()
261 remove_wait_queue(&chip->wq, &wait); in get_chip()
284 DECLARE_WAITQUEUE(wait, current); in chip_ready()
325 add_wait_queue(&chip->wq, &wait); in chip_ready()
328 remove_wait_queue(&chip->wq, &wait); in chip_ready()
/linux-4.4.14/net/ipv4/
Dtcp_probe.c78 wait_queue_head_t wait; member
162 wake_up(&tcp_probe.wait); in jtcp_rcv_established()
215 error = wait_event_interruptible(tcp_probe.wait, in tcpprobe_read()
265 init_waitqueue_head(&tcp_probe.wait); in tcpprobe_init()
/linux-4.4.14/drivers/infiniband/hw/qib/
Dqib_verbs_mcast.c63 wake_up(&qp->wait); in qib_mcast_qp_free()
84 init_waitqueue_head(&mcast->wait); in qib_mcast_alloc()
346 wait_event(mcast->wait, atomic_read(&mcast->refcount) <= 1); in qib_multicast_detach()
351 wait_event(mcast->wait, !atomic_read(&mcast->refcount)); in qib_multicast_detach()
/linux-4.4.14/Documentation/block/
Dstat.txt26 read ticks milliseconds total wait time for read requests
30 write ticks milliseconds total wait time for write requests
33 time_in_queue milliseconds total wait time for all requests
60 example, if 60 read requests wait for an average of 30 ms, the read_ticks
/linux-4.4.14/drivers/usb/class/
Dcdc-wdm.c100 wait_queue_head_t wait; member
154 wake_up(&desc->wait); in wdm_out_callback()
204 wake_up(&desc->wait); in wdm_in_callback()
376 r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE, in wdm_write()
503 rv = wait_event_interruptible(desc->wait, in wdm_read()
580 wait_event(desc->wait, !test_bit(WDM_IN_USE, &desc->flags)); in wdm_flush()
590 static unsigned int wdm_poll(struct file *file, struct poll_table_struct *wait) in wdm_poll() argument
610 poll_wait(file, &desc->wait, wait); in wdm_poll()
768 init_waitqueue_head(&desc->wait); in wdm_create()
974 wake_up_all(&desc->wait); in wdm_disconnect()
[all …]
/linux-4.4.14/drivers/scsi/aacraid/
Dcommsup.c375 int aac_queue_get(struct aac_dev * dev, u32 * index, u32 qid, struct hw_fib * hw_fib, int wait, str… in aac_queue_get() argument
438 int priority, int wait, int reply, fib_callback callback, in aac_fib_send() argument
462 if (wait && !reply) { in aac_fib_send()
464 } else if (!wait && reply) { in aac_fib_send()
467 } else if (!wait && !reply) { in aac_fib_send()
470 } else if (wait && reply) { in aac_fib_send()
506 if (!wait) { in aac_fib_send()
527 if (wait) { in aac_fib_send()
542 if (wait) in aac_fib_send()
555 if (wait) { in aac_fib_send()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/
Dcom.fuc124 // wait_donez - wait on FUC_DONE bit to become clear
126 // In : $r10 bit to wait on
138 // wait_doneo - wait on FUC_DONE bit to become set
140 // In : $r10 bit to wait on
209 // wait for space in mmctx queue
225 // wait for queue to empty
241 // wait for STOP_TRIGGER to clear
/linux-4.4.14/arch/arm/mach-omap2/
Domap-headsmp.S35 wait: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 label
41 bne wait
Dsleep24xx.S77 mcr p15, 0, r3, c7, c0, 4 @ wait for interrupt
80 subs r5, r5, #0x1 @ awake, wait just a bit
/linux-4.4.14/tools/testing/selftests/powerpc/
Dharness.c50 wait: in run_test()
67 goto wait; in run_test()
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dclk.h84 wait_queue_head_t wait; member
108 int nvkm_clk_astate(struct nvkm_clk *, int req, int rel, bool wait);
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-mem2mem.c552 struct poll_table_struct *wait) in v4l2_m2m_poll() argument
555 unsigned long req_events = poll_requested_events(wait); in v4l2_m2m_poll()
567 poll_wait(file, &fh->wait, wait); in v4l2_m2m_poll()
588 poll_wait(file, &src_q->done_wq, wait); in v4l2_m2m_poll()
602 poll_wait(file, &dst_q->done_wq, wait); in v4l2_m2m_poll()
884 unsigned int v4l2_m2m_fop_poll(struct file *file, poll_table *wait) in v4l2_m2m_fop_poll() argument
893 ret = v4l2_m2m_poll(file, m2m_ctx, wait); in v4l2_m2m_fop_poll()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dselftest.c136 unsigned long timeout, wait; in efx_test_interrupts() local
144 wait = 1; in efx_test_interrupts()
149 schedule_timeout_uninterruptible(wait); in efx_test_interrupts()
153 wait *= 2; in efx_test_interrupts()
173 unsigned long timeout, wait; in efx_test_eventq_irq() local
185 wait = 1; in efx_test_eventq_irq()
191 schedule_timeout_uninterruptible(wait); in efx_test_eventq_irq()
209 wait *= 2; in efx_test_eventq_irq()
/linux-4.4.14/sound/core/
Drawmidi.c371 wait_queue_t wait; in snd_rawmidi_open() local
412 init_waitqueue_entry(&wait, current); in snd_rawmidi_open()
413 add_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
439 remove_wait_queue(&rmidi->open_wait, &wait); in snd_rawmidi_open()
1005 wait_queue_t wait; in snd_rawmidi_read() local
1010 init_waitqueue_entry(&wait, current); in snd_rawmidi_read()
1011 add_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1015 remove_wait_queue(&runtime->sleep, &wait); in snd_rawmidi_read()
1309 wait_queue_t wait; in snd_rawmidi_write() local
1314 init_waitqueue_entry(&wait, current); in snd_rawmidi_write()
[all …]
/linux-4.4.14/drivers/net/ethernet/rocker/
Drocker.c407 wait_queue_head_t wait; member
412 static void rocker_wait_reset(struct rocker_wait *wait) in rocker_wait_reset() argument
414 wait->done = false; in rocker_wait_reset()
415 wait->nowait = false; in rocker_wait_reset()
418 static void rocker_wait_init(struct rocker_wait *wait) in rocker_wait_init() argument
420 init_waitqueue_head(&wait->wait); in rocker_wait_init()
421 rocker_wait_reset(wait); in rocker_wait_init()
428 struct rocker_wait *wait; in rocker_wait_create() local
430 wait = rocker_port_kzalloc(rocker_port, trans, flags, sizeof(*wait)); in rocker_wait_create()
431 if (!wait) in rocker_wait_create()
[all …]
/linux-4.4.14/arch/tile/gxio/
Ddma_queue.c155 unsigned int num, int wait) in __gxio_dma_queue_reserve_aux() argument
157 return __gxio_dma_queue_reserve(dma_queue, num, wait != 0, true); in __gxio_dma_queue_reserve_aux()

12345678