Searched refs:wait (Results 1 - 200 of 4388) sorted by relevance

1234567891011>>

/linux-4.1.27/sound/oss/
H A Dsleep.h1 #include <linux/wait.h>
13 DEFINE_WAIT(wait); oss_broken_sleep_on()
14 prepare_to_wait(q, &wait, TASK_INTERRUPTIBLE); oss_broken_sleep_on()
16 finish_wait(q, &wait); oss_broken_sleep_on()
/linux-4.1.27/fs/
H A Dfs_pin.c15 spin_lock_irq(&pin->wait.lock); pin_remove()
17 wake_up_locked(&pin->wait); pin_remove()
18 spin_unlock_irq(&pin->wait.lock); pin_remove()
37 wait_queue_t wait; pin_kill() local
43 init_wait(&wait); pin_kill()
44 spin_lock_irq(&p->wait.lock); pin_kill()
47 spin_unlock_irq(&p->wait.lock); pin_kill()
53 spin_unlock_irq(&p->wait.lock); pin_kill()
57 __add_wait_queue(&p->wait, &wait); pin_kill()
60 spin_unlock_irq(&p->wait.lock); pin_kill()
64 if (likely(list_empty(&wait.task_list))) pin_kill()
67 spin_lock_irq(&p->wait.lock); pin_kill()
69 spin_unlock_irq(&p->wait.lock); pin_kill()
H A Deventfd.c117 static unsigned int eventfd_poll(struct file *file, poll_table *wait) eventfd_poll() argument
123 poll_wait(file, &ctx->wqh, wait); eventfd_poll()
144 * eventfd_ctx_remove_wait_queue - Read the current counter and removes wait queue.
146 * @wait: [in] Wait queue to be removed.
153 * This is used to atomically remove a wait queue entry from the eventfd wait
156 int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait, eventfd_ctx_remove_wait_queue() argument
163 __remove_wait_queue(&ctx->wqh, wait); eventfd_ctx_remove_wait_queue()
173 * eventfd_ctx_read - Reads the eventfd counter or wait if it is zero.
181 * -ERESTARTSYS : A signal interrupted the wait operation.
189 DECLARE_WAITQUEUE(wait, current); eventfd_ctx_read()
197 __add_wait_queue(&ctx->wqh, &wait); eventfd_ctx_read()
212 __remove_wait_queue(&ctx->wqh, &wait); eventfd_ctx_read()
248 DECLARE_WAITQUEUE(wait, current); eventfd_write()
261 __add_wait_queue(&ctx->wqh, &wait); eventfd_write()
276 __remove_wait_queue(&ctx->wqh, &wait); eventfd_write()
H A Dsync.c27 * wait == 1 case since in that case write_inode() functions do
30 static int __sync_filesystem(struct super_block *sb, int wait) __sync_filesystem() argument
32 if (wait) __sync_filesystem()
38 sb->s_op->sync_fs(sb, wait); __sync_filesystem()
39 return __sync_blockdev(sb->s_bdev, wait); __sync_filesystem()
43 * Write out and wait upon all dirty data associated with this
104 int nowait = 0, wait = 1; SYSCALL_DEFINE0() local
109 iterate_supers(sync_fs_one_sb, &wait); SYSCALL_DEFINE0()
237 * SYNC_FILE_RANGE_WAIT_BEFORE: wait upon writeout of all pages in the range
244 * SYNC_FILE_RANGE_WAIT_AFTER: wait upon writeout of all pages in the range
257 * SYNC_FILE_RANGE_WAIT_BEFORE (or SYNC_FILE_RANGE_WAIT_AFTER): wait for
259 * earlier SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE operation to wait
H A Dselect.c132 remove_wait_queue(entry->wait_address, &entry->wait); free_poll_entry()
182 static int __pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key) __pollwake() argument
184 struct poll_wqueues *pwq = wait->private; __pollwake()
208 static int pollwake(wait_queue_t *wait, unsigned mode, int sync, void *key) pollwake() argument
212 entry = container_of(wait, struct poll_table_entry, wait); pollwake()
215 return __pollwake(wait, mode, sync, key); pollwake()
229 init_waitqueue_func_entry(&entry->wait, pollwake); __pollwait()
230 entry->wait.private = pwq; __pollwait()
231 add_wait_queue(wait_address, &entry->wait); __pollwait()
388 static inline void wait_key_set(poll_table *wait, unsigned long in, wait_key_set() argument
392 wait->_key = POLLEX_SET | ll_flag; wait_key_set()
394 wait->_key |= POLLIN_SET; wait_key_set()
396 wait->_key |= POLLOUT_SET; wait_key_set()
403 poll_table *wait; do_select() local
418 wait = &table.pt; do_select()
420 wait->_qproc = NULL; do_select()
458 wait_key_set(wait, in, out, do_select()
460 mask = (*f_op->poll)(f.file, wait); do_select()
466 wait->_qproc = NULL; do_select()
471 wait->_qproc = NULL; do_select()
476 wait->_qproc = NULL; do_select()
500 wait->_qproc = NULL; do_select()
782 struct poll_wqueues *wait, struct timespec *end_time) do_poll()
784 poll_table* pt = &wait->pt; do_poll()
791 /* Optimise the no-wait case */ do_poll()
833 count = wait->error; do_poll()
861 if (!poll_schedule_timeout(wait, TASK_INTERRUPTIBLE, to, slack)) do_poll()
781 do_poll(unsigned int nfds, struct poll_list *list, struct poll_wqueues *wait, struct timespec *end_time) do_poll() argument
/linux-4.1.27/include/linux/
H A Dfs_pin.h1 #include <linux/wait.h>
4 wait_queue_head_t wait; member in struct:fs_pin
15 init_waitqueue_head(&p->wait); init_fs_pin()
H A Dwait.h4 * Linux wait queue related types and methods
10 #include <uapi/linux/wait.h>
13 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 in struct:wait_bit_queue
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) __add_wait_queue_exclusive() argument
125 wait->flags |= WQ_FLAG_EXCLUSIVE; __add_wait_queue_exclusive()
126 __add_wait_queue(q, wait); __add_wait_queue_exclusive()
136 __add_wait_queue_tail_exclusive(wait_queue_head_t *q, wait_queue_t *wait) __add_wait_queue_tail_exclusive() argument
138 wait->flags |= WQ_FLAG_EXCLUSIVE; __add_wait_queue_tail_exclusive()
139 __add_wait_queue_tail(q, wait); __add_wait_queue_tail_exclusive()
252 * @wq: the waitqueue to wait on
253 * @condition: a C expression for the event to wait for
260 * change the result of the wait condition.
291 * @wq: the waitqueue to wait on
292 * @condition: a C expression for the event to wait for
299 * change the result of the wait condition.
317 * @wq: the waitqueue to wait on
318 * @condition: a C expression for the event to wait for
326 * change the result of the wait condition.
367 * @wq: the waitqueue to wait on
368 * @condition: a C expression for the event to wait for
377 * change the result of the wait condition.
392 * @wq: the waitqueue to wait on
393 * @condition: a C expression for the event to wait for
400 * change the result of the wait condition.
421 * @wq: the waitqueue to wait on
422 * @condition: a C expression for the event to wait for
430 * change the result of the wait condition.
476 * @wq: the waitqueue to wait on
477 * @condition: a C expression for the event to wait for
485 * change the result of the wait condition.
502 * @wq: the waitqueue to wait on
503 * @condition: a C expression for the event to wait for
511 * change the result of the wait condition.
586 * @wq: the waitqueue to wait on
587 * @condition: a C expression for the event to wait for
602 * change the result of the wait condition.
613 * @wq: the waitqueue to wait on
614 * @condition: a C expression for the event to wait for
629 * change the result of the wait condition.
640 * @wq: the waitqueue to wait on
641 * @condition: a C expression for the event to wait for
655 * The process is put on the wait queue with an WQ_FLAG_EXCLUSIVE flag
660 * change the result of the wait condition.
671 * @wq: the waitqueue to wait on
672 * @condition: a C expression for the event to wait for
686 * The process is put on the wait queue with an WQ_FLAG_EXCLUSIVE flag
691 * change the result of the wait condition.
706 * @wq: the waitqueue to wait on
707 * @condition: a C expression for the event to wait for
714 * change the result of the wait condition.
741 * @wq: the waitqueue to wait on
742 * @condition: a C expression for the event to wait for
753 * change the result of the wait condition.
771 * @wq: the waitqueue to wait on
772 * @condition: a C expression for the event to wait for
781 * change the result of the wait condition.
805 * @wq: the waitqueue to wait on
806 * @condition: a C expression for the event to wait for
817 * change the result of the wait condition.
839 * @wq: the waitqueue to wait on
840 * @condition: a C expression for the event to wait for
849 * change the result of the wait condition.
878 * @wq: the waitqueue to wait on
879 * @condition: a C expression for the event to wait for
889 * change the result of the wait condition.
911 void prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state);
912 void prepare_to_wait_exclusive(wait_queue_head_t *q, wait_queue_t *wait, int state);
913 long prepare_to_wait_event(wait_queue_head_t *q, wait_queue_t *wait, int state);
914 void finish_wait(wait_queue_head_t *q, wait_queue_t *wait);
915 void abort_exclusive_wait(wait_queue_head_t *q, wait_queue_t *wait, unsigned int mode, void *key);
916 long wait_woken(wait_queue_t *wait, unsigned mode, long timeout);
917 int woken_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
918 int autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
919 int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
933 .wait = { \
937 LIST_HEAD_INIT((name).wait.task_list), \
941 #define init_wait(wait) \
943 (wait)->private = current; \
944 (wait)->func = autoremove_wake_function; \
945 INIT_LIST_HEAD(&(wait)->task_list); \
946 (wait)->flags = 0; \
956 * wait_on_bit - wait for a bit to be cleared
983 * wait_on_bit_io - wait for a bit to be cleared
988 * Use the standard hashed waitqueue table to wait for a bit
1008 * wait_on_bit_timeout - wait for a bit to be cleared or a timeout elapses
1014 * Use the standard hashed waitqueue table to wait for a bit
1034 * wait_on_bit_action - wait for a bit to be cleared
1040 * Use the standard hashed waitqueue table to wait for a bit
1059 * wait_on_bit_lock - wait for a bit to be cleared, when wanting to set it
1087 * wait_on_bit_lock_io - wait for a bit to be cleared, when wanting to set it
1092 * Use the standard hashed waitqueue table to wait for a bit
1111 * wait_on_bit_lock_action - wait for a bit to be cleared, when wanting to set it
1117 * Use the standard hashed waitqueue table to wait for a bit
1142 * Wait for an atomic_t to become 0. We abuse the bit-wait waitqueue table for
H A Dkmod.h36 int __request_module(bool wait, const char *name, ...);
51 #define UMH_NO_WAIT 0 /* don't wait at all */ request_module_nowait()
52 #define UMH_WAIT_EXEC 1 /* wait for the exec, but not the process */ request_module_nowait()
53 #define UMH_WAIT_PROC 2 /* wait for the process to complete */ request_module_nowait()
54 #define UMH_KILLABLE 4 /* wait for EXEC/PROC killable */ request_module_nowait()
62 int wait; request_module_nowait() member in struct:subprocess_info
70 call_usermodehelper(char *path, char **argv, char **envp, int wait);
78 call_usermodehelper_exec(struct subprocess_info *info, int wait);
H A 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) \
140 #define smp_call_function_many(mask, func, info, wait) \
146 void *info, int wait) smp_call_function_any()
148 return smp_call_function_single(0, func, info, wait); smp_call_function_any()
145 smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, void *info, int wait) smp_call_function_any() argument
H A Dcompletion.h7 * Atomic wait-for-completion handler data structures.
11 #include <linux/wait.h>
17 * Completions currently use a FIFO to queue threads that have to wait for
27 wait_queue_head_t wait; member in struct:completion
31 { 0, __WAIT_QUEUE_HEAD_INITIALIZER((work).wait) }
76 init_waitqueue_head(&x->wait); init_completion()
H A Dpercpu-rwsem.h7 #include <linux/wait.h>
H A Deventfd.h12 #include <linux/wait.h>
40 int eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait,
76 wait_queue_t *wait, __u64 *cnt) eventfd_ctx_remove_wait_queue()
75 eventfd_ctx_remove_wait_queue(struct eventfd_ctx *ctx, wait_queue_t *wait, __u64 *cnt) eventfd_ctx_remove_wait_queue() argument
H A Dlp.h11 #include <linux/wait.h>
23 #define LP_TIME(minor) lp_table[(minor)].time /* wait time */
24 #define LP_WAIT(minor) lp_table[(minor)].wait /* strobe wait */
50 unsigned int wait; member in struct:lp_struct
H A Dmempool.h7 #include <linux/wait.h>
23 wait_queue_head_t wait; member in struct:mempool_s
H A Dpipe_fs_i.h31 * @wait: reader/writer wait point in case of empty/full pipe
48 wait_queue_head_t wait; member in struct:pipe_inode_info
88 * to a file system, we may need to wait for IO completion in this
129 /* Drop the inode semaphore and wait for a pipe event, atomically */
H A Dfence.h25 #include <linux/wait.h>
111 * @wait: custom wait implementation, or fence_default_wait.
123 * in the first wait() or add_callback() path to let the fence
148 * Notes on wait:
153 * Must return -ERESTARTSYS if the wait is intr = true and the wait was
154 * interrupted, and remaining jiffies if fence has signaled, or 0 if wait
170 signed long (*wait)(struct fence *fence, bool intr, signed long timeout); member in struct:fence_ops
266 * value of this function before calling hardware-specific wait instructions.
312 * @fence: [in] the fence to wait on
313 * @intr: [in] if true, do an interruptible wait
319 * Performs a synchronous wait on this fence. It is assumed the caller
H A Dseqno-fence.h65 * @cond: fence wait condition
79 * Certain hardware have instructions to insert this type of wait condition
89 * before submitting instructions for the hardware to wait on the fence.
102 BUG_ON(!ops->wait || !ops->enable_signaling || seqno_fence_init()
H A Dsudmac.h33 unsigned long wait; /* The configuable range is 0 to 3 */ member in struct:sudmac_channel
H A Dirq_work.h18 #define IRQ_WORK_LAZY 4UL /* Doesn't want IPI, wait for tick */
H A Dpercpu_ida.h9 #include <linux/wait.h>
46 wait_queue_head_t wait; member in struct:percpu_ida::__anon12327
/linux-4.1.27/fs/f2fs/
H A Dgc.h18 #define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */
68 long *wait) increase_sleep_time()
70 if (*wait == gc_th->no_gc_sleep_time) increase_sleep_time()
73 *wait += gc_th->min_sleep_time; increase_sleep_time()
74 if (*wait > gc_th->max_sleep_time) increase_sleep_time()
75 *wait = gc_th->max_sleep_time; increase_sleep_time()
79 long *wait) decrease_sleep_time()
81 if (*wait == gc_th->no_gc_sleep_time) decrease_sleep_time()
82 *wait = gc_th->max_sleep_time; decrease_sleep_time()
84 *wait -= gc_th->min_sleep_time; decrease_sleep_time()
85 if (*wait <= gc_th->min_sleep_time) decrease_sleep_time()
86 *wait = gc_th->min_sleep_time; decrease_sleep_time()
67 increase_sleep_time(struct f2fs_gc_kthread *gc_th, long *wait) increase_sleep_time() argument
78 decrease_sleep_time(struct f2fs_gc_kthread *gc_th, long *wait) decrease_sleep_time() argument
/linux-4.1.27/kernel/sched/
H A Dwait.c10 #include <linux/wait.h>
23 void add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) add_wait_queue() argument
27 wait->flags &= ~WQ_FLAG_EXCLUSIVE; add_wait_queue()
29 __add_wait_queue(q, wait); add_wait_queue()
34 void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t *wait) add_wait_queue_exclusive() argument
38 wait->flags |= WQ_FLAG_EXCLUSIVE; add_wait_queue_exclusive()
40 __add_wait_queue_tail(q, wait); add_wait_queue_exclusive()
45 void remove_wait_queue(wait_queue_head_t *q, wait_queue_t *wait) remove_wait_queue() argument
50 __remove_wait_queue(q, wait); remove_wait_queue()
160 * Note: we use "set_current_state()" _after_ the wait-queue add,
162 * wake-function that tests for the wait-queue being active
172 prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state) prepare_to_wait() argument
176 wait->flags &= ~WQ_FLAG_EXCLUSIVE; prepare_to_wait()
178 if (list_empty(&wait->task_list)) prepare_to_wait()
179 __add_wait_queue(q, wait); prepare_to_wait()
186 prepare_to_wait_exclusive(wait_queue_head_t *q, wait_queue_t *wait, int state) prepare_to_wait_exclusive() argument
190 wait->flags |= WQ_FLAG_EXCLUSIVE; prepare_to_wait_exclusive()
192 if (list_empty(&wait->task_list)) prepare_to_wait_exclusive()
193 __add_wait_queue_tail(q, wait); prepare_to_wait_exclusive()
199 long prepare_to_wait_event(wait_queue_head_t *q, wait_queue_t *wait, int state) prepare_to_wait_event() argument
206 wait->private = current; prepare_to_wait_event()
207 wait->func = autoremove_wake_function; prepare_to_wait_event()
210 if (list_empty(&wait->task_list)) { prepare_to_wait_event()
211 if (wait->flags & WQ_FLAG_EXCLUSIVE) prepare_to_wait_event()
212 __add_wait_queue_tail(q, wait); prepare_to_wait_event()
214 __add_wait_queue(q, wait); prepare_to_wait_event()
226 * @wait: wait descriptor
229 * the wait descriptor from the given waitqueue if still
232 void finish_wait(wait_queue_head_t *q, wait_queue_t *wait) finish_wait() argument
250 if (!list_empty_careful(&wait->task_list)) { finish_wait()
252 list_del_init(&wait->task_list); finish_wait()
261 * @wait: wait descriptor
263 * @key: key to identify a wait bit queue or %NULL
266 * the wait descriptor from the given waitqueue if still
276 void abort_exclusive_wait(wait_queue_head_t *q, wait_queue_t *wait, abort_exclusive_wait() argument
283 if (!list_empty(&wait->task_list)) abort_exclusive_wait()
284 list_del_init(&wait->task_list); abort_exclusive_wait()
291 int autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key) autoremove_wake_function() argument
293 int ret = default_wake_function(wait, mode, sync, key); autoremove_wake_function()
296 list_del_init(&wait->task_list); autoremove_wake_function()
307 * DEFINE_WAIT_FUNC(wait, woken_wake_func);
309 * add_wait_queue(&wq, &wait);
316 * if (!wait->flags & WQ_FLAG_WOKEN) wait->flags |= WQ_FLAG_WOKEN;
319 * wait->flags &= ~WQ_FLAG_WOKEN; condition = true;
321 * wait->flags |= WQ_FLAG_WOKEN;
323 * remove_wait_queue(&wq, &wait);
326 long wait_woken(wait_queue_t *wait, unsigned mode, long timeout) wait_woken() argument
334 if (!(wait->flags & WQ_FLAG_WOKEN) && !is_kthread_should_stop()) wait_woken()
340 * woken_wake_function() such that we must either observe the wait wait_woken()
344 set_mb(wait->flags, wait->flags & ~WQ_FLAG_WOKEN); /* B */ wait_woken()
350 int woken_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key) woken_wake_function() argument
360 wait->flags |= WQ_FLAG_WOKEN; woken_wake_function()
362 return default_wake_function(wait, mode, sync, key); woken_wake_function()
366 int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *arg) wake_bit_function() argument
370 = container_of(wait, struct wait_bit_queue, wait); wake_bit_function()
377 return autoremove_wake_function(wait, mode, sync, key); wake_bit_function()
393 prepare_to_wait(wq, &q->wait, mode); __wait_on_bit()
397 finish_wait(wq, &q->wait); __wait_on_bit()
406 DEFINE_WAIT_BIT(wait, word, bit); out_of_line_wait_on_bit()
408 return __wait_on_bit(wq, &wait, action, mode); out_of_line_wait_on_bit()
417 DEFINE_WAIT_BIT(wait, word, bit); out_of_line_wait_on_bit_timeout()
419 wait.key.timeout = jiffies + timeout; out_of_line_wait_on_bit_timeout()
420 return __wait_on_bit(wq, &wait, action, mode); out_of_line_wait_on_bit_timeout()
431 prepare_to_wait_exclusive(wq, &q->wait, mode); __wait_on_bit_lock()
437 abort_exclusive_wait(wq, &q->wait, mode, &q->key); __wait_on_bit_lock()
440 finish_wait(wq, &q->wait); __wait_on_bit_lock()
449 DEFINE_WAIT_BIT(wait, word, bit); out_of_line_wait_on_bit_lock()
451 return __wait_on_bit_lock(wq, &wait, action, mode); out_of_line_wait_on_bit_lock()
510 static int wake_atomic_t_function(wait_queue_t *wait, unsigned mode, int sync, wake_atomic_t_function() argument
515 = container_of(wait, struct wait_bit_queue, wait); wake_atomic_t_function()
522 return autoremove_wake_function(wait, mode, sync, key); wake_atomic_t_function()
538 prepare_to_wait(wq, &q->wait, mode); __wait_on_atomic_t()
544 finish_wait(wq, &q->wait); __wait_on_atomic_t()
551 .wait = { \
555 LIST_HEAD_INIT((name).wait.task_list), \
563 DEFINE_WAIT_ATOMIC_T(wait, p); out_of_line_wait_on_atomic_t()
565 return __wait_on_atomic_t(wq, &wait, action, mode); out_of_line_wait_on_atomic_t()
H A Dcompletion.c2 * Generic wait-for-completion handler;
33 spin_lock_irqsave(&x->wait.lock, flags); complete()
35 __wake_up_locked(&x->wait, TASK_NORMAL, 1); complete()
36 spin_unlock_irqrestore(&x->wait.lock, flags); complete()
53 spin_lock_irqsave(&x->wait.lock, flags); complete_all()
55 __wake_up_locked(&x->wait, TASK_NORMAL, 0); complete_all()
56 spin_unlock_irqrestore(&x->wait.lock, flags); complete_all()
65 DECLARE_WAITQUEUE(wait, current); do_wait_for_common()
67 __add_wait_queue_tail_exclusive(&x->wait, &wait); do_wait_for_common()
74 spin_unlock_irq(&x->wait.lock); do_wait_for_common()
76 spin_lock_irq(&x->wait.lock); do_wait_for_common()
78 __remove_wait_queue(&x->wait, &wait); do_wait_for_common()
92 spin_lock_irq(&x->wait.lock); __wait_for_common()
94 spin_unlock_irq(&x->wait.lock); __wait_for_common()
280 spin_lock_irqsave(&x->wait.lock, flags); try_wait_for_completion()
285 spin_unlock_irqrestore(&x->wait.lock, flags); try_wait_for_completion()
304 * If ->done, we need to wait for complete() to release ->wait.lock completion_done()
308 * The RMB pairs with complete()'s RELEASE of ->wait.lock and orders completion_done()
309 * the loads of ->done and ->wait.lock such that we cannot observe completion_done()
314 spin_unlock_wait(&x->wait.lock); completion_done()
H A DMakefile10 # to get a correct value for the wait-channel (WCHAN in ps). --davidm
16 obj-y += wait.o completion.o idle.o
/linux-4.1.27/arch/mips/include/asm/
H A Didle.h25 .name = "wait",\
26 .desc = "MIPS wait",\
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_settings.h9 /* Max time to wait for the loop to be in LOOP_READY state */
/linux-4.1.27/drivers/staging/speakup/
H A Dthread.c2 #include <linux/wait.h>
23 DEFINE_WAIT(wait); speakup_thread()
29 prepare_to_wait(&speakup_event, &wait, speakup_thread()
43 finish_wait(&speakup_event, &wait); speakup_thread()
H A Dspeakup_soft.c214 DEFINE_WAIT(wait); softsynth_read()
218 prepare_to_wait(&speakup_event, &wait, TASK_INTERRUPTIBLE); softsynth_read()
223 finish_wait(&speakup_event, &wait); softsynth_read()
227 finish_wait(&speakup_event, &wait); softsynth_read()
233 finish_wait(&speakup_event, &wait); softsynth_read()
283 struct poll_table_struct *wait) softsynth_poll()
288 poll_wait(fp, &speakup_event, wait); softsynth_poll()
282 softsynth_poll(struct file *fp, struct poll_table_struct *wait) softsynth_poll() argument
/linux-4.1.27/drivers/scsi/fnic/
H A Dvnic_dev.c233 u64 *a0, u64 *a1, int wait) vnic_dev_cmd()
265 for (delay = 0; delay < wait; delay++) { vnic_dev_cmd()
297 int wait = 1000; vnic_dev_fw_info() local
310 err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); vnic_dev_fw_info()
322 int wait = 1000; vnic_dev_spec() local
328 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); vnic_dev_spec()
354 int wait = 1000; vnic_dev_stats_clear() local
355 return vnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); vnic_dev_stats_clear()
361 int wait = 1000; vnic_dev_stats_dump() local
374 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); vnic_dev_stats_dump()
380 int wait = 1000; vnic_dev_close() local
381 return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); vnic_dev_close()
387 int wait = 1000; vnic_dev_enable() local
388 return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); vnic_dev_enable()
394 int wait = 1000; vnic_dev_disable() local
395 return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); vnic_dev_disable()
401 int wait = 1000; vnic_dev_open() local
402 return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); vnic_dev_open()
408 int wait = 1000; vnic_dev_open_done() local
413 err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); vnic_dev_open_done()
425 int wait = 1000; vnic_dev_soft_reset() local
426 return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); vnic_dev_soft_reset()
432 int wait = 1000; vnic_dev_soft_reset_done() local
437 err = vnic_dev_cmd(vdev, CMD_SOFT_RESET_STATUS, &a0, &a1, wait); vnic_dev_soft_reset_done()
449 int wait = 1000; vnic_dev_hang_notify() local
450 return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); vnic_dev_hang_notify()
456 int wait = 1000; vnic_dev_mac_addr() local
462 err = vnic_dev_cmd(vdev, CMD_MAC_ADDR, &a0, &a1, wait); vnic_dev_mac_addr()
476 int wait = 1000; vnic_dev_packet_filter() local
485 err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); vnic_dev_packet_filter()
493 int wait = 1000; vnic_dev_add_addr() local
500 err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); vnic_dev_add_addr()
511 int wait = 1000; vnic_dev_del_addr() local
518 err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait); vnic_dev_del_addr()
529 int wait = 1000; vnic_dev_notify_set() local
543 return vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vnic_dev_notify_set()
549 int wait = 1000; vnic_dev_notify_unset() local
555 vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vnic_dev_notify_unset()
583 int wait = 1000; vnic_dev_init() local
584 return vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); vnic_dev_init()
590 int wait = 1000; vnic_dev_set_default_vlan() local
593 old_vlan = vnic_dev_cmd(vdev, CMD_SET_DEFAULT_VLAN, &a0, &a1, wait); vnic_dev_set_default_vlan()
232 vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) vnic_dev_cmd() argument
H A Dvnic_wq_copy.c32 unsigned int wait; vnic_wq_copy_disable() local
37 for (wait = 0; wait < 100; wait++) { vnic_wq_copy_disable()
H A Dvnic_rq.c152 unsigned int wait; vnic_rq_disable() local
157 for (wait = 0; wait < 100; wait++) { vnic_rq_disable()
H A Dvnic_wq.c143 unsigned int wait; vnic_wq_disable() local
148 for (wait = 0; wait < 100; wait++) { vnic_wq_disable()
/linux-4.1.27/net/core/
H A Dstream.c19 #include <linux/wait.h>
39 wake_up_interruptible_poll(&wq->wait, POLLOUT | sk_stream_write_space()
50 * @sk: sock to wait on
51 * @timeo_p: for how long to wait
58 DEFINE_WAIT(wait); sk_stream_wait_connect()
72 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); sk_stream_wait_connect()
78 finish_wait(sk_sleep(sk), &wait); sk_stream_wait_connect() local
98 DEFINE_WAIT(wait); sk_stream_wait_close()
101 prepare_to_wait(sk_sleep(sk), &wait, sk_stream_wait_close() local
107 finish_wait(sk_sleep(sk), &wait); sk_stream_wait_close() local
114 * @sk: socket to wait for memory
122 DEFINE_WAIT(wait); sk_stream_wait_memory()
130 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); sk_stream_wait_memory() local
161 finish_wait(sk_sleep(sk), &wait); sk_stream_wait_memory() local
/linux-4.1.27/include/trace/events/
H A 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;
124 TP_printk("%s wait=%d call_site=%ps",
125 __get_str(name), (int)__entry->wait, (void *)__entry->ip)
/linux-4.1.27/arch/alpha/kernel/
H A Des1888.c31 while (!(inb(0x022e) & 0x80)) /* wait for bit 7 to assert*/ es1888_init()
36 while (inb(0x022c) & 0x80) /* wait for bit 7 to deassert */ es1888_init()
39 while (inb(0x022c) & 0x80) /* wait for bit 7 to deassert */ es1888_init()
42 while (inb(0x022c) & 0x80) /* wait for bit 7 to deassert */ es1888_init()
45 while (inb(0x022c) & 0x80) /* wait for bit 7 to deassert */ es1888_init()
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcpu_event_pinned_vs_ebb_test.c11 #include <sys/wait.h>
66 /* Signal the child to install its EBB event and wait */ cpu_event_pinned_vs_ebb()
68 /* If it fails, wait for it to exit */ cpu_event_pinned_vs_ebb()
69 goto wait; cpu_event_pinned_vs_ebb()
74 wait: cpu_event_pinned_vs_ebb()
H A Dcpu_event_vs_ebb_test.c11 #include <sys/wait.h>
64 /* Signal the child to install its EBB event and wait */ cpu_event_vs_ebb()
66 /* If it fails, wait for it to exit */ cpu_event_vs_ebb()
67 goto wait; cpu_event_vs_ebb()
72 wait: cpu_event_vs_ebb()
H A Dtask_event_pinned_vs_ebb_test.c11 #include <sys/wait.h>
61 /* Signal the child to install its EBB event and wait */ task_event_pinned_vs_ebb()
63 /* If it fails, wait for it to exit */ task_event_pinned_vs_ebb()
64 goto wait; task_event_pinned_vs_ebb()
69 wait: task_event_pinned_vs_ebb()
H A Dtask_event_vs_ebb_test.c11 #include <sys/wait.h>
59 /* Signal the child to install its EBB event and wait */ task_event_vs_ebb()
61 /* If it fails, wait for it to exit */ task_event_vs_ebb()
62 goto wait; task_event_vs_ebb()
67 wait: task_event_vs_ebb()
H A Debb_vs_cpu_event_test.c11 #include <sys/wait.h>
57 /* Signal the child to install its EBB event and wait */ ebb_vs_cpu_event()
70 /* .. and wait for it to complete */ ebb_vs_cpu_event()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
H A Dvnic_dev.c270 int wait) _vnic_dev_cmd()
299 for (delay = 0; delay < wait; delay++) { _vnic_dev_cmd()
339 u64 *a0, u64 *a1, int wait) vnic_dev_cmd_proxy()
351 err = _vnic_dev_cmd(vdev, proxy_cmd, wait); vnic_dev_cmd_proxy()
371 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) vnic_dev_cmd_no_proxy()
378 err = _vnic_dev_cmd(vdev, cmd, wait); vnic_dev_cmd_no_proxy()
399 u64 *a0, u64 *a1, int wait) vnic_dev_cmd()
406 a0, a1, wait); vnic_dev_cmd()
409 a0, a1, wait); vnic_dev_cmd()
412 return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); vnic_dev_cmd()
419 int wait = 1000; vnic_dev_capable() local
422 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); vnic_dev_capable()
431 int wait = 1000; vnic_dev_fw_info() local
447 &a0, &a1, wait); vnic_dev_fw_info()
450 &a0, &a1, wait); vnic_dev_fw_info()
462 int wait = 1000; vnic_dev_spec() local
468 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); vnic_dev_spec()
484 int wait = 1000; vnic_dev_stats_dump() local
497 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); vnic_dev_stats_dump()
503 int wait = 1000; vnic_dev_close() local
504 return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); vnic_dev_close()
510 int wait = 1000; vnic_dev_enable_wait() local
513 return vnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); vnic_dev_enable_wait()
515 return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); vnic_dev_enable_wait()
521 int wait = 1000; vnic_dev_disable() local
522 return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); vnic_dev_disable()
528 int wait = 1000; vnic_dev_open() local
529 return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); vnic_dev_open()
535 int wait = 1000; vnic_dev_open_done() local
540 err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); vnic_dev_open_done()
552 int wait = 1000; vnic_dev_soft_reset() local
553 return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); vnic_dev_soft_reset()
559 int wait = 1000; vnic_dev_soft_reset_done() local
564 err = vnic_dev_cmd(vdev, CMD_SOFT_RESET_STATUS, &a0, &a1, wait); vnic_dev_soft_reset_done()
576 int wait = 1000; vnic_dev_hang_reset() local
581 &a0, &a1, wait); vnic_dev_hang_reset()
593 int wait = 1000; vnic_dev_hang_reset_done() local
600 &a0, &a1, wait); vnic_dev_hang_reset_done()
615 int wait = 1000; vnic_dev_hang_notify() local
616 return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); vnic_dev_hang_notify()
622 int wait = 1000; vnic_dev_get_mac_addr() local
628 err = vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); vnic_dev_get_mac_addr()
642 int wait = 1000; vnic_dev_packet_filter() local
651 err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); vnic_dev_packet_filter()
661 int wait = 1000; vnic_dev_add_addr() local
668 err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); vnic_dev_add_addr()
678 int wait = 1000; vnic_dev_del_addr() local
685 err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait); vnic_dev_del_addr()
696 int wait = 1000; vnic_dev_set_ig_vlan_rewrite_mode() local
700 &a0, &a1, wait); vnic_dev_set_ig_vlan_rewrite_mode()
709 int wait = 1000; vnic_dev_notify_setcmd() local
720 r = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vnic_dev_notify_setcmd()
747 int wait = 1000; vnic_dev_notify_unsetcmd() local
754 err = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vnic_dev_notify_unsetcmd()
798 int wait = 1000; vnic_dev_init() local
802 r = vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); vnic_dev_init()
804 vnic_dev_cmd(vdev, CMD_INIT_v1, &a0, &a1, wait); vnic_dev_init()
809 vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); vnic_dev_init()
810 vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); vnic_dev_init()
819 int wait = 1000; vnic_dev_deinit() local
821 return vnic_dev_cmd(vdev, CMD_DEINIT, &a0, &a1, wait); vnic_dev_deinit()
835 int wait = 1000; vnic_dev_intr_coal_timer_info() local
841 err = _vnic_dev_cmd(vdev, CMD_INTR_COAL_CONVERT, wait); vnic_dev_intr_coal_timer_info()
983 int wait = 1000; vnic_dev_init_prov2() local
996 ret = vnic_dev_cmd(vdev, CMD_INIT_PROV_INFO2, &a0, &a1, wait); vnic_dev_init_prov2()
1006 int wait = 1000; vnic_dev_enable2() local
1010 return vnic_dev_cmd(vdev, CMD_ENABLE2, &a0, &a1, wait); vnic_dev_enable2()
1017 int wait = 1000; vnic_dev_cmd_status() local
1020 ret = vnic_dev_cmd(vdev, CMD_STATUS, &a0, &a1, wait); vnic_dev_cmd_status()
1040 int wait = 1000; vnic_dev_set_mac_addr() local
1046 return vnic_dev_cmd(vdev, CMD_SET_MAC_ADDR, &a0, &a1, wait); vnic_dev_set_mac_addr()
1067 int wait = 1000; vnic_dev_classifier() local
1099 ret = vnic_dev_cmd(vdev, CMD_ADD_FILTER, &a0, &a1, wait); vnic_dev_classifier()
1104 ret = vnic_dev_cmd(vdev, CMD_DEL_FILTER, &a0, &a1, wait); vnic_dev_classifier()
269 _vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, int wait) _vnic_dev_cmd() argument
337 vnic_dev_cmd_proxy(struct vnic_dev *vdev, enum vnic_devcmd_cmd proxy_cmd, enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) vnic_dev_cmd_proxy() argument
370 vnic_dev_cmd_no_proxy(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) vnic_dev_cmd_no_proxy() argument
398 vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) vnic_dev_cmd() argument
H A Denic_res.c125 int wait = 1000; enic_add_vlan() local
128 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_ADD, &a0, &a1, wait); enic_add_vlan()
138 int wait = 1000; enic_del_vlan() local
141 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_DEL, &a0, &a1, wait); enic_del_vlan()
154 int wait = 1000; enic_set_nic_cfg() local
163 return vnic_dev_cmd(enic->vdev, CMD_NIC_CFG, &a0, &a1, wait); enic_set_nic_cfg()
169 int wait = 1000; enic_set_rss_key() local
171 return vnic_dev_cmd(enic->vdev, CMD_RSS_KEY, &a0, &a1, wait); enic_set_rss_key()
177 int wait = 1000; enic_set_rss_cpu() local
179 return vnic_dev_cmd(enic->vdev, CMD_RSS_CPU, &a0, &a1, wait); enic_set_rss_cpu()
H A Denic_api.c30 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) enic_api_devcmd_proxy_by_index()
40 err = vnic_dev_cmd(vdev, cmd, a0, a1, wait); enic_api_devcmd_proxy_by_index()
29 enic_api_devcmd_proxy_by_index(struct net_device *netdev, int vf, enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) enic_api_devcmd_proxy_by_index() argument
H A Denic_api.h28 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait);
H A Dvnic_rq.c169 unsigned int wait; vnic_rq_disable() local
174 for (wait = 0; wait < 1000; wait++) { vnic_rq_disable()
H A Dvnic_wq.c160 unsigned int wait; vnic_wq_disable() local
165 for (wait = 0; wait < 1000; wait++) { vnic_wq_disable()
/linux-4.1.27/drivers/staging/i2o/
H A Dexec-osm.c44 /* global wait list for POST WAIT */
55 struct list_head list; /* node in global wait list */
75 * Allocate the i2o_exec_wait struct and initialize the wait.
82 struct i2o_exec_wait *wait; i2o_exec_wait_alloc() local
84 wait = kzalloc(sizeof(*wait), GFP_KERNEL); i2o_exec_wait_alloc()
85 if (!wait) i2o_exec_wait_alloc()
88 INIT_LIST_HEAD(&wait->list); i2o_exec_wait_alloc()
89 spin_lock_init(&wait->lock); i2o_exec_wait_alloc()
91 return wait; i2o_exec_wait_alloc()
96 * @wait: I2O wait data which should be cleaned up
98 static void i2o_exec_wait_free(struct i2o_exec_wait *wait) i2o_exec_wait_free() argument
100 kfree(wait); i2o_exec_wait_free()
104 * i2o_msg_post_wait_mem - Post and wait a message with DMA buffers
107 * @timeout: time in seconds to wait
126 struct i2o_exec_wait *wait; i2o_msg_post_wait_mem() local
131 wait = i2o_exec_wait_alloc(); i2o_msg_post_wait_mem()
132 if (!wait) { i2o_msg_post_wait_mem()
141 wait->dma = *dma; i2o_msg_post_wait_mem()
149 wait->tcntxt = tcntxt++; i2o_msg_post_wait_mem()
150 msg->u.s.tcntxt = cpu_to_le32(wait->tcntxt); i2o_msg_post_wait_mem()
152 wait->wq = &wq; i2o_msg_post_wait_mem()
157 list_add(&wait->list, &i2o_exec_wait_list); i2o_msg_post_wait_mem()
165 wait_event_interruptible_timeout(wq, wait->complete, timeout * HZ); i2o_msg_post_wait_mem()
167 spin_lock_irqsave(&wait->lock, flags); i2o_msg_post_wait_mem()
169 wait->wq = NULL; i2o_msg_post_wait_mem()
171 if (wait->complete) i2o_msg_post_wait_mem()
172 rc = le32_to_cpu(wait->msg->body[0]) >> 24; i2o_msg_post_wait_mem()
187 spin_unlock_irqrestore(&wait->lock, flags); i2o_msg_post_wait_mem()
190 i2o_flush_reply(c, wait->m); i2o_msg_post_wait_mem()
191 i2o_exec_wait_free(wait); i2o_msg_post_wait_mem()
219 struct i2o_exec_wait *wait, *tmp; i2o_msg_post_wait_complete() local
230 list_for_each_entry_safe(wait, tmp, &i2o_exec_wait_list, list) { i2o_msg_post_wait_complete()
231 if (wait->tcntxt == context) { i2o_msg_post_wait_complete()
232 spin_lock_irqsave(&wait->lock, flags); i2o_msg_post_wait_complete()
234 list_del(&wait->list); i2o_msg_post_wait_complete()
236 wait->m = m; i2o_msg_post_wait_complete()
237 wait->msg = msg; i2o_msg_post_wait_complete()
238 wait->complete = 1; i2o_msg_post_wait_complete()
240 if (wait->wq) i2o_msg_post_wait_complete()
245 spin_unlock_irqrestore(&wait->lock, flags); i2o_msg_post_wait_complete()
254 i2o_dma_free(dev, &wait->dma); i2o_msg_post_wait_complete()
255 i2o_exec_wait_free(wait); i2o_msg_post_wait_complete()
257 wake_up_interruptible(wait->wq); i2o_msg_post_wait_complete()
538 * Send a LCT NOTIFY request to the controller, and wait
/linux-4.1.27/arch/mips/kernel/
H A Didle.c26 * Not all of the MIPS CPUs have the "wait" instruction available. Moreover,
27 * the implementation of the "wait" feature differs between CPU families. This
28 * points to the function that implements CPU specific wait.
29 * The wait instruction stops the pipeline and reduces the power consumption of
68 " wait \n" r4k_wait_irqoff()
87 " wait \n" rm7k_wait_irqoff()
94 * Au1 'wait' is only useful when the 32kHz counter is used as timer,
108 " wait \n" au1k_wait()
182 * Incoming Fast Debug Channel (FDC) data during a wait check_wait()
183 * instruction causes the wait never to resume, even if an check_wait()
184 * interrupt is received. Avoid using wait at all if FDC data is check_wait()
H A Dcrash.c48 * The crash CPU sends an IPI and wait for other CPUs to crash_kexec_prepare_cpus()
H A Drtlx-cmp.c12 #include <linux/wait.h>
70 /* initialise the wait queues */ rtlx_module_init()
H A Drtlx-mt.c12 #include <linux/wait.h>
96 /* initialise the wait queues */ rtlx_module_init()
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_cs.h5 int bcm63xx_set_cs_timing(unsigned int cs, unsigned int wait,
/linux-4.1.27/arch/m68k/include/asm/
H A Datari_joystick.h19 wait_queue_head_t wait; member in struct:joystick_status
/linux-4.1.27/kernel/
H A Dup.c11 int wait) smp_call_function_single()
36 int on_each_cpu(smp_call_func_t func, void *info, int wait) on_each_cpu() argument
54 smp_call_func_t func, void *info, bool wait) on_each_cpu_mask()
71 smp_call_func_t func, void *info, bool wait, on_each_cpu_cond()
10 smp_call_function_single(int cpu, void (*func) (void *info), void *info, int wait) smp_call_function_single() argument
53 on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func, void *info, bool wait) on_each_cpu_mask() argument
70 on_each_cpu_cond(bool (cond_func)int cpu, void *info), smp_call_func_t func, void *info, bool wait, gfp_t gfp_flags) on_each_cpu_cond() argument
H A Dkmod.c18 call_usermodehelper wait flag, and remove exec_usermodehelper.
71 static int call_modprobe(char *module_name, int wait) call_modprobe() argument
100 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); call_modprobe()
112 * @wait: wait (or not) for the operation to complete
125 int __request_module(bool wait, const char *fmt, ...) __request_module() argument
141 WARN_ON_ONCE(wait && current_is_async()); __request_module()
182 trace_module_request(module_name, wait, _RET_IP_); __request_module()
184 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); __request_module()
262 if (!(sub_info->wait & UMH_WAIT_PROC)) ____call_usermodehelper()
313 if (sub_info->wait & UMH_WAIT_PROC) __call_usermodehelper()
338 * Wait queue head used by usermodehelper_disable() to wait for all running
344 * Used by usermodehelper_read_lock_wait() to wait for usermodehelper_disabled
350 * Time to wait for running_helpers to become zero before the setting of
357 DEFINE_WAIT(wait); usermodehelper_read_trylock()
362 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, usermodehelper_read_trylock()
380 finish_wait(&usermodehelper_disabled_waitq, &wait); usermodehelper_read_trylock()
387 DEFINE_WAIT(wait); usermodehelper_read_lock_wait()
394 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, usermodehelper_read_lock_wait()
407 finish_wait(&usermodehelper_disabled_waitq, &wait); usermodehelper_read_lock_wait()
437 * Set usermodehelper_disabled to @depth and wait for running helpers to exit.
528 * @wait: wait for the application to finish and return status.
529 * when UMH_NO_WAIT don't wait at all, but you get no useful error back
534 * asynchronously if wait is not set, and runs as a child of keventd.
537 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) call_usermodehelper_exec() argument
556 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; call_usermodehelper_exec()
557 sub_info->wait = wait; call_usermodehelper_exec()
560 if (wait == UMH_NO_WAIT) /* task has freed sub_info */ call_usermodehelper_exec()
563 if (wait & UMH_KILLABLE) { call_usermodehelper_exec()
590 * @wait: wait for the application to finish and return status.
591 * when UMH_NO_WAIT don't wait at all, but you get no useful error back
598 int call_usermodehelper(char *path, char **argv, char **envp, int wait) call_usermodehelper() argument
601 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; call_usermodehelper()
608 return call_usermodehelper_exec(info, wait); call_usermodehelper()
H A Dsmp.c244 /* Do we wait until *after* callback? */ llist_for_each_entry_safe()
267 * @wait: If true, wait until function has completed on other CPUs.
272 int wait) smp_call_function_single()
295 if (!wait) { smp_call_function_single()
302 if (wait) smp_call_function_single()
333 /* We could deadlock if we have to wait here with interrupts disabled! */ smp_call_function_single_async()
352 * @wait: If true, wait until function has completed.
362 smp_call_func_t func, void *info, int wait) smp_call_function_any()
384 ret = smp_call_function_single(cpu, func, info, wait); smp_call_function_any()
395 * @wait: If true, wait (atomically) until function has completed
398 * If @wait is true, then returns once @func has returned.
405 smp_call_func_t func, void *info, bool wait) smp_call_function_many()
435 smp_call_function_single(cpu, func, info, wait); smp_call_function_many()
452 if (wait) smp_call_function_many()
462 if (wait) { smp_call_function_many()
477 * @wait: If true, wait (atomically) until function has completed
482 * If @wait is true, then returns once @func has returned; otherwise
488 int smp_call_function(smp_call_func_t func, void *info, int wait) smp_call_function() argument
491 smp_call_function_many(cpu_online_mask, func, info, wait); smp_call_function()
591 int on_each_cpu(void (*func) (void *info), void *info, int wait) on_each_cpu() argument
597 ret = smp_call_function(func, info, wait); on_each_cpu()
612 * @wait: If true, wait (atomically) until function has completed
615 * If @wait is true, then returns once @func has returned.
623 void *info, bool wait) on_each_cpu_mask()
627 smp_call_function_many(mask, func, info, wait); on_each_cpu_mask()
651 * @wait: If true, wait (atomically) until function has
666 smp_call_func_t func, void *info, bool wait, on_each_cpu_cond()
679 on_each_cpu_mask(cpus, func, info, wait); on_each_cpu_cond()
691 info, wait); for_each_online_cpu()
271 smp_call_function_single(int cpu, smp_call_func_t func, void *info, int wait) smp_call_function_single() argument
361 smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, void *info, int wait) smp_call_function_any() argument
404 smp_call_function_many(const struct cpumask *mask, smp_call_func_t func, void *info, bool wait) smp_call_function_many() argument
622 on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func, void *info, bool wait) on_each_cpu_mask() argument
665 on_each_cpu_cond(bool (cond_func)int cpu, void *info), smp_call_func_t func, void *info, bool wait, gfp_t gfp_flags) on_each_cpu_cond() argument
/linux-4.1.27/fs/squashfs/
H A Ddecompressor_multi.c13 #include <linux/wait.h>
45 wait_queue_head_t wait; member in struct:squashfs_stream
61 wake_up(&stream->wait); put_decomp_stream()
78 init_waitqueue_head(&stream->wait); squashfs_decompressor_create()
148 * let's wait for releasing decomp from other users. get_decomp_stream()
151 goto wait; get_decomp_stream()
156 goto wait; get_decomp_stream()
162 goto wait; get_decomp_stream()
170 wait: get_decomp_stream()
177 wait_event(stream->wait, get_decomp_stream()
/linux-4.1.27/block/
H A Dblk-lib.c15 struct completion *wait; member in struct:bio_batch
25 complete(bb->wait); bio_batch_end_io()
43 DECLARE_COMPLETION_ONSTACK(wait); blkdev_issue_discard()
82 bb.wait = &wait; blkdev_issue_discard()
135 wait_for_completion_io(&wait); blkdev_issue_discard()
159 DECLARE_COMPLETION_ONSTACK(wait); blkdev_issue_write_same()
176 bb.wait = &wait; blkdev_issue_write_same()
209 wait_for_completion_io(&wait); blkdev_issue_write_same()
236 DECLARE_COMPLETION_ONSTACK(wait); __blkdev_issue_zeroout()
240 bb.wait = &wait; __blkdev_issue_zeroout()
271 wait_for_completion_io(&wait); __blkdev_issue_zeroout()
H A Dblk-exec.c46 * for execution. Don't wait for completion.
107 * for execution and wait for completion.
112 DECLARE_COMPLETION_ONSTACK(wait); blk_execute_rq()
123 rq->end_io_data = &wait; blk_execute_rq()
129 while (!wait_for_completion_io_timeout(&wait, hang_check * (HZ/2))); blk_execute_rq()
131 wait_for_completion_io(&wait); blk_execute_rq()
H A Dblk-mq-tag.c83 if (waitqueue_active(&bs->wait)) blk_mq_tag_wakeup_all()
84 wake_up(&bs->wait); blk_mq_tag_wakeup_all()
91 if (waitqueue_active(&bt->bs[0].wait)) blk_mq_tag_wakeup_all()
92 wake_up(&bt->bs[0].wait); blk_mq_tag_wakeup_all()
260 DEFINE_WAIT(wait); bt_get()
272 prepare_to_wait(&bs->wait, &wait, TASK_UNINTERRUPTIBLE); bt_get()
309 finish_wait(&bs->wait, &wait); bt_get()
313 finish_wait(&bs->wait, &wait); bt_get()
362 if (waitqueue_active(&bs->wait)) { bt_wake_ptr()
384 /* Ensure that the wait list checks occur after clear_bit(). */ bt_clear_tag()
397 wake_up(&bs->wait); bt_clear_tag()
536 init_waitqueue_head(&bt->bs[i].wait); bt_alloc()
/linux-4.1.27/drivers/cpuidle/
H A Dcpuidle-cps.c20 STATE_WAIT = 0, /* MIPS wait instruction, coherent */
21 STATE_NC_WAIT, /* MIPS wait instruction, non-coherent */
82 .name = "nc-wait",
83 .desc = "non-coherent MIPS wait",
137 pr_cont("coherent wait\n"); cps_cpuidle_init()
140 pr_cont("non-coherent wait\n"); cps_cpuidle_init()
H A Dcpuidle-at91.c10 * The cpu idle uses wait-for-interrupt and RAM self refresh in order
12 * #1 wait-for-interrupt
13 * #2 wait-for-interrupt and RAM self refresh
H A Dcpuidle-kirkwood.c8 * The cpu idle uses wait-for-interrupt and DDR self refresh in order
10 * #1 wait-for-interrupt
11 * #2 wait-for-interrupt and DDR self refresh
H A Dcpuidle-zynq.c20 * The cpu idle uses wait-for-interrupt and RAM self refresh in order
22 * #1 wait-for-interrupt
23 * #2 wait-for-interrupt and RAM self refresh
/linux-4.1.27/drivers/gpu/drm/msm/mdp/
H A Dmdp_kms.c91 struct mdp_irq_wait *wait = wait_irq() local
93 wait->count--; wait_irq()
99 struct mdp_irq_wait wait = { mdp_irq_wait() local
106 mdp_irq_register(mdp_kms, &wait.irq); mdp_irq_wait()
107 wait_event_timeout(wait_event, (wait.count <= 0), mdp_irq_wait()
109 mdp_irq_unregister(mdp_kms, &wait.irq); mdp_irq_wait()
/linux-4.1.27/firmware/av7110/
H A 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.1.27/drivers/gpu/drm/omapdrm/
H A Domap_irq.c106 struct omap_irq_wait *wait = wait_irq() local
108 wait->count--; wait_irq()
115 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); omap_irq_wait_init() local
116 wait->irq.irq = wait_irq; omap_irq_wait_init()
117 wait->irq.irqmask = irqmask; omap_irq_wait_init()
118 wait->count = count; omap_irq_wait_init()
119 omap_irq_register(dev, &wait->irq); omap_irq_wait_init()
120 return wait; omap_irq_wait_init()
123 int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait, omap_irq_wait() argument
126 int ret = wait_event_timeout(wait_event, (wait->count <= 0), timeout); omap_irq_wait()
127 omap_irq_unregister(dev, &wait->irq); omap_irq_wait()
128 kfree(wait); omap_irq_wait()
/linux-4.1.27/net/atm/
H A Dsvc.c12 #include <linux/wait.h>
47 DEFINE_WAIT(wait); svc_disconnect()
55 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); svc_disconnect() local
60 finish_wait(sk_sleep(sk), &wait); svc_disconnect() local
97 DEFINE_WAIT(wait); svc_bind()
131 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); svc_bind() local
136 finish_wait(sk_sleep(sk), &wait); svc_bind() local
153 DEFINE_WAIT(wait); svc_connect()
213 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); svc_connect() local
217 prepare_to_wait(sk_sleep(sk), &wait, svc_connect() local
236 prepare_to_wait(sk_sleep(sk), &wait, svc_connect() local
243 prepare_to_wait(sk_sleep(sk), &wait, svc_connect() local
254 finish_wait(sk_sleep(sk), &wait); svc_connect() local
283 DEFINE_WAIT(wait); svc_listen()
302 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); svc_listen() local
307 finish_wait(sk_sleep(sk), &wait); svc_listen() local
340 DEFINE_WAIT(wait); svc_accept()
342 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); svc_accept() local
362 prepare_to_wait(sk_sleep(sk), &wait, svc_accept() local
365 finish_wait(sk_sleep(sk), &wait); svc_accept() local
389 /* wait should be short, so we ignore the non-blocking flag */ svc_accept()
393 prepare_to_wait(sk_sleep(sk_atm(new_vcc)), &wait, svc_accept()
401 finish_wait(sk_sleep(sk_atm(new_vcc)), &wait); svc_accept()
434 DEFINE_WAIT(wait); svc_change_qos()
439 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); svc_change_qos() local
446 finish_wait(sk_sleep(sk), &wait); svc_change_qos() local
528 DEFINE_WAIT(wait); svc_addparty()
541 pr_debug("added wait queue\n"); svc_addparty()
543 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); svc_addparty() local
548 finish_wait(sk_sleep(sk), &wait); svc_addparty() local
557 DEFINE_WAIT(wait); svc_dropparty()
566 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); svc_dropparty() local
571 finish_wait(sk_sleep(sk), &wait); svc_dropparty() local
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Doutpdp.h21 wait_queue_head_t wait; member in struct:nvkm_output_dp::__anon4257
60 int nvkm_output_dp_train(struct nvkm_output *, u32 rate, bool wait);
/linux-4.1.27/fs/proc/
H A Dkmsg.c42 static unsigned int kmsg_poll(struct file *file, poll_table *wait) kmsg_poll() argument
44 poll_wait(file, &log_wait, wait); kmsg_poll()
/linux-4.1.27/drivers/net/wireless/iwlwifi/
H A DMakefile6 iwlwifi-objs += iwl-notif-wait.o
H A Diwl-notif-wait.h65 #include <linux/wait.h>
78 * struct iwl_notification_wait - notification wait entry
81 * returns true, the wait is over, if it returns false then
87 * @aborted: wait was aborted
89 * This structure is not used directly, to wait for a
93 * to notify the driver, and to wait for that then
/linux-4.1.27/arch/mips/bcm63xx/
H A Dearly_printk.c16 /* wait for any previous char to be transmitted */ wait_xfered()
H A Dcs.c65 int bcm63xx_set_cs_timing(unsigned int cs, unsigned int wait, bcm63xx_set_cs_timing() argument
79 val |= wait << MPI_CSCTL_WAIT_SHIFT; bcm63xx_set_cs_timing()
/linux-4.1.27/include/uapi/linux/
H A Dcoda_psdev.h19 wait_queue_head_t uc_sleep; /* process' wait queue */
H A Dwait.h11 #define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads in this group */
H A Ddlm_plock.h32 __u8 wait; member in struct:dlm_plock_info
H A Dserial.h31 unsigned short closing_wait; /* time to wait before closing */
40 * For the close wait times, 0 means wait forever for serial port to
41 * flush its output. 65535 means don't wait at all.
H A Dncp_mount.h33 unsigned int time_out; /* How long should I wait after
56 unsigned int time_out; /* How long should I wait after
/linux-4.1.27/include/linux/platform_data/
H A Dusb-ohci-pxa27x.h23 * HCD must wait for this duration before
/linux-4.1.27/arch/sh/include/mach-common/mach/
H A Dsh2007.h78 /* wait cycle (0-15:0,1,2,3,4,5,6,7,8,9,11,13,15,17,21,25) */
84 #define PCWA5 0 /* additional wait A (0-3:0,15,30,50) */
85 #define PCWB5 0 /* additional wait B (0-3:0,15,30,50) */
86 /* wait B (0-15:0,1,2,3,4,5,6,7,8,9,11,13,15,17,21,25) */
/linux-4.1.27/arch/mips/loongson/common/
H A Dpm.c61 * Setup the board-specific events for waking up loongson from wait mode
107 /* Put CPU into wait mode */ loongson_suspend_enter()
110 /* wait for the given events to wakeup cpu from wait mode */ loongson_suspend_enter()
/linux-4.1.27/fs/ceph/
H A Dlocks.c36 int cmd, u8 wait, struct file_lock *fl) ceph_lock_message()
46 wait = 0; ceph_lock_message()
64 "start: %llu, length: %llu, wait: %d, type: %d", (int)lock_type, ceph_lock_message()
66 wait, fl->fl_type); ceph_lock_message()
74 req->r_args.filelock_change.wait = wait; ceph_lock_message()
76 if (wait) ceph_lock_message()
101 "length: %llu, wait: %d, type: %d, err code %d", (int)lock_type, ceph_lock_message()
103 length, wait, fl->fl_type, err); ceph_lock_message()
161 u8 wait = 0; ceph_lock() local
172 /* set wait bit as appropriate, then make command as Ceph expects it*/ ceph_lock()
176 wait = 1; ceph_lock()
185 err = ceph_lock_message(CEPH_LOCK_FCNTL, op, file, lock_cmd, wait, fl); ceph_lock()
208 u8 wait = 0; ceph_flock() local
219 wait = 1; ceph_flock()
229 file, lock_cmd, wait, fl); ceph_flock()
35 ceph_lock_message(u8 lock_type, u16 operation, struct file *file, int cmd, u8 wait, struct file_lock *fl) ceph_lock_message() argument
/linux-4.1.27/lib/
H A Dbust_spinlocks.c14 #include <linux/wait.h>
H A Dpercpu_ida.c137 * @gfp indicates whether or not to wait until a free id is available (it's not
146 DEFINE_WAIT(wait); percpu_ida_alloc()
172 prepare_to_wait(&pool->wait, &wait, state); percpu_ida_alloc()
203 finish_wait(&pool->wait, &wait); percpu_ida_alloc()
236 wake_up(&pool->wait); percpu_ida_free()
251 wake_up(&pool->wait); percpu_ida_free()
293 init_waitqueue_head(&pool->wait); __percpu_ida_init()
/linux-4.1.27/sound/core/seq/
H A Dseq_lock.h19 /* wait until all locks are released */
H A Dseq_fifo.c176 wait_queue_t wait; snd_seq_fifo_cell_out() local
182 init_waitqueue_entry(&wait, current); snd_seq_fifo_cell_out()
191 add_wait_queue(&f->input_sleep, &wait); snd_seq_fifo_cell_out()
195 remove_wait_queue(&f->input_sleep, &wait); snd_seq_fifo_cell_out()
225 poll_table *wait) snd_seq_fifo_poll_wait()
227 poll_wait(file, &f->input_sleep, wait); snd_seq_fifo_poll_wait()
224 snd_seq_fifo_poll_wait(struct snd_seq_fifo *f, struct file *file, poll_table *wait) snd_seq_fifo_poll_wait() argument
/linux-4.1.27/arch/mips/mti-sead3/
H A Dsead3-time.c33 /* wait for transition */ estimate_cpu_frequency()
40 /* wait 1 second (the sampling clock transitions every 10ms) */ estimate_cpu_frequency()
42 /* wait for transition */ estimate_cpu_frequency()
/linux-4.1.27/fs/autofs4/
H A Dwaitq.c41 sbi->queues = NULL; /* Erase all wait queues */ autofs4_catatonic_mode()
105 DPRINTK("wait id = 0x%08lx, name = %.*s, type=%d", autofs4_notify_daemon()
245 * found or NULL to idicate a new wait needs to be created.
248 static int validate_request(struct autofs_wait_queue **wait, validate_request() argument
262 *wait = wq; validate_request()
266 *wait = NULL; validate_request()
274 * If we've been asked to wait on an existing expire (NFY_NONE) validate_request()
275 * but there is no wait in the queue ... validate_request()
280 * wait or it finished while we waited on the mutex. validate_request()
281 * So we need to wait till either, the wait appears validate_request()
296 *wait = wq; validate_request()
303 * cases where we wait on NFY_NONE neither depend on the validate_request()
304 * return status of the wait. validate_request()
319 * on the wait queue mutex we can return success. If it validate_request()
353 /* In catatonic mode, we don't wait for nobody */ autofs4_wait()
369 * A wait for a negative dentry is invalid for certain autofs4_wait()
413 /* Create a new wait queue */ autofs4_wait()
453 DPRINTK("new wait id = 0x%08lx, name = %.*s, nfy=%d\n", autofs4_wait()
461 DPRINTK("existing wait id = 0x%08lx, name = %.*s, nfy=%d", autofs4_wait()
556 wq->name.name = NULL; /* Do not wait on this queue */ autofs4_wait_release()
/linux-4.1.27/drivers/clk/at91/
H A Dclk-system.c20 #include <linux/wait.h>
34 wait_queue_head_t wait; member in struct:clk_system
46 wake_up(&sys->wait); clk_system_irq_handler()
66 wait_event(sys->wait, clk_system_prepare()
129 init_waitqueue_head(&sys->wait); at91_clk_register_system()
H A Dclk-utmi.c21 #include <linux/wait.h>
31 wait_queue_head_t wait; member in struct:clk_utmi
40 wake_up(&utmi->wait); clk_utmi_irq_handler()
57 wait_event(utmi->wait, clk_utmi_prepare()
117 init_waitqueue_head(&utmi->wait); at91_clk_register_utmi()
H A Dclk-main.c22 #include <linux/wait.h>
39 wait_queue_head_t wait; member in struct:clk_main_osc
48 wait_queue_head_t wait; member in struct:clk_main_rc_osc
66 wait_queue_head_t wait; member in struct:clk_sam9x5_main
76 wake_up(&osc->wait); clk_main_osc_irq_handler()
99 wait_event(osc->wait, clk_main_osc_prepare()
170 init_waitqueue_head(&osc->wait); at91_clk_register_main_osc()
220 wake_up(&osc->wait); clk_main_rc_osc_irq_handler()
241 wait_event(osc->wait, clk_main_rc_osc_prepare()
324 init_waitqueue_head(&osc->wait); at91_clk_register_main_rc_osc()
483 wake_up(&clkmain->wait); clk_sam9x5_main_irq_handler()
496 wait_event(clkmain->wait, clk_sam9x5_main_prepare()
536 wait_event(clkmain->wait, clk_sam9x5_main_set_parent()
591 init_waitqueue_head(&clkmain->wait); at91_clk_register_sam9x5_main()
H A Dclk-master.c18 #include <linux/wait.h>
49 wait_queue_head_t wait; member in struct:clk_master
58 wake_up(&master->wait); clk_master_irq_handler()
70 wait_event(master->wait, clk_master_prepare()
164 init_waitqueue_head(&master->wait); at91_clk_register_master()
/linux-4.1.27/drivers/gpu/host1x/
H A Dsyncpt.h31 /* Reserved for replacing an expired wait with a NOP */
63 /* Return number of wait bases supported. */
115 /* Read current wait base value into shadow register and return it. */
127 /* Patch a wait by replacing it with a wait for syncpt 0 value 0 */
H A Djob.c124 /* patch the wait */ host1x_syncpt_patch_offset()
131 pr_err("Could not map cmdbuf for wait check\n"); host1x_syncpt_patch_offset()
144 /* compare syncpt vs wait threshold */ do_waitchks()
146 struct host1x_waitchk *wait = &job->waitchk[i]; do_waitchks() local
148 host1x_syncpt_get(host, wait->syncpt_id); do_waitchks()
151 if (wait->syncpt_id > host1x_syncpt_nb_pts(host)) do_waitchks()
155 if (patch != wait->bo) do_waitchks()
158 trace_host1x_syncpt_wait_check(wait->bo, wait->offset, do_waitchks()
159 wait->syncpt_id, wait->thresh, do_waitchks()
162 if (host1x_syncpt_is_expired(sp, wait->thresh)) { do_waitchks()
165 wait->syncpt_id, sp->name, wait->thresh, do_waitchks()
168 host1x_syncpt_patch_offset(sp, patch, wait->offset); do_waitchks()
171 wait->bo = NULL; do_waitchks()
H A Dsyncpt.c177 * false if we may need to wait
239 /* wait for the syncpoint, or timeout, or signal */ host1x_syncpt_wait()
276 * Returns true if syncpoint is expired, false if we may need to wait
300 * A) .....c..t..f..... Dtf < Dtc need to wait host1x_syncpt_is_expired()
306 * Any case where t==f!=c: always wait. Dtf < Dtc (because Dtf==0, host1x_syncpt_is_expired()
311 * A) .....t..f..c..... Dtf < Dtc need to wait host1x_syncpt_is_expired()
312 * A) .....f..c..t..... Dtf < Dtc need to wait host1x_syncpt_is_expired()
319 * Note: If t is expired then we *cannot* wait on it. We would wait host1x_syncpt_is_expired()
334 /* remove a wait pointed to by patch_addr */ host1x_syncpt_patch_wait()
/linux-4.1.27/arch/powerpc/include/asm/
H A Ddbdma.h21 unsigned int wait_sel; /* select wait condition bit */
85 #define WAIT_NEVER 0 /* don't wait */
86 #define WAIT_IFSET 1 /* wait if condition bit is 1 */
87 #define WAIT_IFCLR 2 /* wait if condition bit is 0 */
88 #define WAIT_ALWAYS 3 /* always wait */
H A D8xx_immap.h127 #define OR_SCY_0_CLK 0x00000000 /* 0 clock cycles wait states */
128 #define OR_SCY_1_CLK 0x00000010 /* 1 clock cycles wait states */
129 #define OR_SCY_2_CLK 0x00000020 /* 2 clock cycles wait states */
130 #define OR_SCY_3_CLK 0x00000030 /* 3 clock cycles wait states */
131 #define OR_SCY_4_CLK 0x00000040 /* 4 clock cycles wait states */
132 #define OR_SCY_5_CLK 0x00000050 /* 5 clock cycles wait states */
133 #define OR_SCY_6_CLK 0x00000060 /* 6 clock cycles wait states */
134 #define OR_SCY_7_CLK 0x00000070 /* 7 clock cycles wait states */
135 #define OR_SCY_8_CLK 0x00000080 /* 8 clock cycles wait states */
136 #define OR_SCY_9_CLK 0x00000090 /* 9 clock cycles wait states */
137 #define OR_SCY_10_CLK 0x000000a0 /* 10 clock cycles wait states */
138 #define OR_SCY_11_CLK 0x000000b0 /* 11 clock cycles wait states */
139 #define OR_SCY_12_CLK 0x000000c0 /* 12 clock cycles wait states */
140 #define OR_SCY_13_CLK 0x000000d0 /* 13 clock cycles wait states */
141 #define OR_SCY_14_CLK 0x000000e0 /* 14 clock cycles wait states */
142 #define OR_SCY_15_CLK 0x000000f0 /* 15 clock cycles wait states */
/linux-4.1.27/sound/firewire/bebob/
H A Dbebob_hwdep.c24 DEFINE_WAIT(wait); hwdep_read()
30 prepare_to_wait(&bebob->hwdep_wait, &wait, TASK_INTERRUPTIBLE); hwdep_read()
33 finish_wait(&bebob->hwdep_wait, &wait); hwdep_read()
57 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) hwdep_poll() argument
62 poll_wait(file, &bebob->hwdep_wait, wait); hwdep_poll()
/linux-4.1.27/sound/firewire/dice/
H A Ddice-hwdep.c16 DEFINE_WAIT(wait); hwdep_read()
22 prepare_to_wait(&dice->hwdep_wait, &wait, TASK_INTERRUPTIBLE); hwdep_read()
25 finish_wait(&dice->hwdep_wait, &wait); hwdep_read()
56 poll_table *wait) hwdep_poll()
61 poll_wait(file, &dice->hwdep_wait, wait); hwdep_poll()
55 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) hwdep_poll() argument
/linux-4.1.27/sound/firewire/oxfw/
H A Doxfw-hwdep.c23 DEFINE_WAIT(wait); hwdep_read()
29 prepare_to_wait(&oxfw->hwdep_wait, &wait, TASK_INTERRUPTIBLE); hwdep_read()
32 finish_wait(&oxfw->hwdep_wait, &wait); hwdep_read()
56 poll_table *wait) hwdep_poll()
61 poll_wait(file, &oxfw->hwdep_wait, wait); hwdep_poll()
55 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) hwdep_poll() argument
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
H A Daq100x.c65 static int aq100x_reset(struct cphy *phy, int wait) aq100x_reset() argument
68 * Ignore the caller specified wait time; always wait for the reset to aq100x_reset()
269 unsigned int v, v2, gpio, wait; t3_aq100x_phy_prep() local
290 wait = 500; /* in 10ms increments */ t3_aq100x_phy_prep()
305 } while (v && --wait); t3_aq100x_phy_prep()
314 wait = (500 - wait) * 10 + 1000; t3_aq100x_phy_prep()
315 if (wait > 3000) t3_aq100x_phy_prep()
316 CH_WARN(adapter, "PHY%d: reset took %ums\n", phy_addr, wait); t3_aq100x_phy_prep()
/linux-4.1.27/drivers/char/
H A Dsnsc.c176 /* something went wrong with wait */ scdrv_read()
188 DECLARE_WAITQUEUE(wait, current); scdrv_read()
198 add_wait_queue(&sd->sd_rq, &wait); scdrv_read()
203 remove_wait_queue(&sd->sd_rq, &wait); scdrv_read()
205 /* wait was interrupted */ scdrv_read()
268 /* something went wrong with wait */ scdrv_write()
285 DECLARE_WAITQUEUE(wait, current); scdrv_write()
294 add_wait_queue(&sd->sd_wq, &wait); scdrv_write()
299 remove_wait_queue(&sd->sd_wq, &wait); scdrv_write()
301 /* wait was interrupted */ scdrv_write()
325 scdrv_poll(struct file *file, struct poll_table_struct *wait) scdrv_poll() argument
332 poll_wait(file, &sd->sd_rq, wait); scdrv_poll()
333 poll_wait(file, &sd->sd_wq, wait); scdrv_poll()
H A Dsnsc.h21 #include <linux/wait.h>
35 wait_queue_head_t sd_rq; /* wait queue for readers */
36 wait_queue_head_t sd_wq; /* wait queue for writers */
/linux-4.1.27/drivers/hid/
H A Dhid-roccat.c47 wait_queue_head_t wait; member in struct:roccat_device
83 DECLARE_WAITQUEUE(wait, current); roccat_read()
89 add_wait_queue(&device->wait, &wait); roccat_read()
92 /* wait for data */ roccat_read()
114 remove_wait_queue(&device->wait, &wait); roccat_read()
140 static unsigned int roccat_poll(struct file *file, poll_table *wait) roccat_poll() argument
143 poll_wait(file, &reader->device->wait, wait); roccat_poll()
282 wake_up_interruptible(&device->wait); roccat_report_event()
337 init_waitqueue_head(&device->wait); roccat_connect()
372 wake_up_interruptible(&device->wait); roccat_disconnect()
H A Dhidraw.c50 DECLARE_WAITQUEUE(wait, current); hidraw_read()
56 add_wait_queue(&list->hidraw->wait, &wait); hidraw_read()
81 remove_wait_queue(&list->hidraw->wait, &wait); hidraw_read()
257 static unsigned int hidraw_poll(struct file *file, poll_table *wait) hidraw_poll() argument
261 poll_wait(file, &list->hidraw->wait, wait); hidraw_poll()
332 wake_up_interruptible(&hidraw->wait); drop_ref()
509 wake_up_interruptible(&dev->wait); hidraw_report_event()
554 init_waitqueue_head(&dev->wait); hidraw_connect()
/linux-4.1.27/drivers/net/irda/
H A Dtekram-sir.c107 * 2. set RTS, and wait at least 7 us
109 * wait until the stop bit of Control Byte is sent (for 9600 baud rate,
116 * 6. wait at least 50 us, new setting (baud rate, etc) takes effect here
193 * 0. Clear RTS and DTR, and wait 50 ms (power off the IR-210 )
195 * 2. set DTR, and wait at least 1 ms
196 * 3. clear DTR to SPACE state, wait at least 50 us for further
/linux-4.1.27/drivers/vfio/
H A Dvirqfd.c46 static int virqfd_wakeup(wait_queue_t *wait, unsigned mode, int sync, void *key) virqfd_wakeup() argument
48 struct virqfd *virqfd = container_of(wait, struct virqfd, wait); virqfd_wakeup()
85 add_wait_queue(wqh, &virqfd->wait); virqfd_ptable_queue_proc()
93 eventfd_ctx_remove_wait_queue(virqfd->eventfd, &virqfd->wait, &cnt); virqfd_shutdown()
166 init_waitqueue_func_entry(&virqfd->wait, virqfd_wakeup); vfio_virqfd_enable()
/linux-4.1.27/fs/ecryptfs/
H A Dkthread.c26 #include <linux/wait.h>
43 wait_queue_head_t wait; member in struct:ecryptfs_kthread_ctl
64 ecryptfs_kthread_ctl.wait, ecryptfs_threadfn()
92 init_waitqueue_head(&ecryptfs_kthread_ctl.wait); ecryptfs_init_kthread()
118 wake_up(&ecryptfs_kthread_ctl.wait); ecryptfs_destroy_kthread()
167 wake_up(&ecryptfs_kthread_ctl.wait); ecryptfs_privileged_open()
/linux-4.1.27/kernel/locking/
H A Dqrwlock.c31 * increment the reader count & wait until the writer releases the lock.
65 * Put the reader into the wait queue queue_read_lock_slowpath()
70 * At the head of the wait queue now, wait until the writer state queue_read_lock_slowpath()
97 /* Put the writer into the wait queue */ queue_write_lock_slowpath()
107 * or wait for a previous writer to go away. queue_write_lock_slowpath()
H A Dosq_lock.c69 * wait for either @lock to point to us, through its Step-B, or osq_wait_next()
70 * wait for a new @node->next from its Step-C. osq_wait_next()
128 * unlock()/unqueue() wait for a next pointer since @lock points to us osq_lock()
157 * Similar to unlock(), wait for @node->next or move @lock from @node osq_lock()
170 * it will wait in Step-A. osq_lock()
/linux-4.1.27/drivers/iio/
H A Dindustrialio-event.c22 #include <linux/wait.h>
30 * @wait: wait queue to allow blocking reads of events
37 wait_queue_head_t wait; member in struct:iio_event_interface
69 wake_up_poll(&ev_int->wait, POLLIN); iio_push_event()
80 struct poll_table_struct *wait) iio_event_poll()
89 poll_wait(filep, &ev_int->wait, wait); iio_event_poll()
118 ret = wait_event_interruptible(ev_int->wait, iio_event_chrdev_read()
139 * sleep and wait for more data to arrive. iio_event_chrdev_read()
439 init_waitqueue_head(&ev_int->wait); iio_setup_ev_int()
518 wake_up(&indio_dev->event_interface->wait); iio_device_wakeup_eventset()
79 iio_event_poll(struct file *filep, struct poll_table_struct *wait) iio_event_poll() argument
/linux-4.1.27/drivers/misc/ibmasm/
H A Dr_heartbeat.c51 init_waitqueue_head(&rhb->wait); ibmasm_init_reverse_heartbeat()
80 wait_event_interruptible_timeout(rhb->wait, ibmasm_start_reverse_heartbeat()
98 wake_up_interruptible(&rhb->wait); ibmasm_stop_reverse_heartbeat()
H A Dcommand.c57 init_waitqueue_head(&cmd->wait); ibmasm_new_command()
105 wake_up(&sp->current_command->wait); do_exec_command()
164 wait_event_interruptible_timeout(cmd->wait, ibmasm_wait_for_response()
184 wake_up(&sp->current_command->wait); ibmasm_receive_command_response()
H A Devent.c45 wake_up_interruptible(&reader->wait); wake_up_event_readers()
100 if (wait_event_interruptible(reader->wait, ibmasm_get_next_event()
127 wake_up_interruptible(&reader->wait); ibmasm_cancel_next_event()
135 init_waitqueue_head(&reader->wait); ibmasm_event_reader_register()
/linux-4.1.27/Documentation/mic/mpssd/
H A Dmicctrl131 wait() function
166 wait $2
169 echo $"Usage: $0 {-s (status) |-r (reset) |-b (boot) |-S (shutdown) |-w (wait)}"
/linux-4.1.27/tools/testing/selftests/powerpc/
H A Dharness.c12 #include <sys/wait.h>
50 wait: run_test()
67 goto wait; run_test()
/linux-4.1.27/drivers/isdn/mISDN/
H A Dtimerdev.c38 wait_queue_head_t wait; member in struct:mISDNtimerdev
65 init_waitqueue_head(&dev->wait); mISDN_open()
119 wait_event_interruptible(dev->wait, (dev->work || mISDN_read()
143 mISDN_poll(struct file *filep, poll_table *wait) mISDN_poll() argument
149 printk(KERN_DEBUG "%s(%p, %p)\n", __func__, filep, wait); mISDN_poll()
151 poll_wait(filep, &dev->wait, wait); mISDN_poll()
172 wake_up_interruptible(&timer->dev->wait); dev_expire_timer()
183 wake_up_interruptible(&dev->wait); misdn_add_timer()
/linux-4.1.27/drivers/input/serio/
H A Dlibps2.c45 wait_event_timeout(ps2dev->wait, ps2_sendbyte()
94 wait_event_timeout(ps2dev->wait, ps2_drain()
227 timeout = wait_event_timeout(ps2dev->wait, __ps2_command()
233 wait_event_timeout(ps2dev->wait, __ps2_command()
275 init_waitqueue_head(&ps2dev->wait); ps2_init()
328 wake_up(&ps2dev->wait); ps2_handle_ack()
351 wake_up(&ps2dev->wait); ps2_handle_response()
356 wake_up(&ps2dev->wait); ps2_handle_response()
369 wake_up(&ps2dev->wait); ps2_cmd_aborted()
H A Dserio_raw.c21 #include <linux/wait.h>
39 wait_queue_head_t wait; member in struct:serio_raw
190 error = wait_event_interruptible(serio_raw->wait, serio_raw_read()
242 static unsigned int serio_raw_poll(struct file *file, poll_table *wait) serio_raw_poll() argument
248 poll_wait(file, &serio_raw->wait, wait); serio_raw_poll()
287 wake_up_interruptible(&serio_raw->wait); serio_raw_interrupt()
309 init_waitqueue_head(&serio_raw->wait); serio_raw_connect()
390 wake_up_interruptible(&serio_raw->wait); serio_raw_hangup()
/linux-4.1.27/arch/x86/um/asm/
H A Dprocessor.h22 /* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */ rep_nop()
/linux-4.1.27/arch/metag/kernel/
H A Dcore_reg.c54 /* wait for ready */ core_reg_write()
65 /* wait for finish */ core_reg_write()
97 /* wait for ready */ core_reg_read()
106 /* wait for finish */ core_reg_read()
/linux-4.1.27/drivers/acpi/acpica/
H A Dexsystem.c55 * PARAMETERS: semaphore - Semaphore to wait on
56 * timeout - Max time to wait
60 * DESCRIPTION: Implements a semaphore wait with a check to see if the
78 /* We must wait, so unlock the interpreter */ acpi_ex_system_wait_semaphore()
100 * PARAMETERS: mutex - Mutex to wait on
101 * timeout - Max time to wait
105 * DESCRIPTION: Implements a mutex wait with a check to see if the
124 /* We must wait, so unlock the interpreter */ acpi_ex_system_wait_mutex()
256 * within the AML. This operation is a request to wait for an
/linux-4.1.27/drivers/video/fbdev/
H A Dvt8500lcdfb.h22 wait_queue_head_t wait; member in struct:vt8500lcd_info
/linux-4.1.27/fs/jffs2/
H A Dbackground.c63 int wait = 0; jffs2_stop_garbage_collect_thread() local
68 wait = 1; jffs2_stop_garbage_collect_thread()
71 if (wait) jffs2_stop_garbage_collect_thread()
121 /* Put_super will send a SIGKILL and then wait on the sem. jffs2_garbage_collect_thread()
/linux-4.1.27/arch/mn10300/mm/
H A Dcache-dbg-flush-by-reg.S49 # wait for busy bit of area purge
66 # wait for busy bit of area purge
136 # wait for the invalidator to quiesce
150 # wait for the invalidator to quiesce again
H A Dcache-dbg-inv-by-reg.S44 # wait for the invalidator to quiesce
59 # wait for the invalidator to quiesce again
H A 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
/linux-4.1.27/arch/cris/arch-v10/lib/
H A Ddmacopy.c36 /* wait for completion */; dma_memcpy()
/linux-4.1.27/fs/ext3/
H A Dfsync.c37 * What we do is just kick off a commit and wait on it. This will snapshot the
66 * The caller's filemap_fdatawrite()/wait will sync the data. ext3_sync_file()
67 * Metadata is in the journal, we wait for a proper transaction ext3_sync_file()
73 * will wait on that. ext3_sync_file()
/linux-4.1.27/drivers/media/pci/ivtv/
H A 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.1.27/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_intr.c5 * This file contains functions used to wait for command completion.
19 #include <linux/wait.h>
/linux-4.1.27/drivers/staging/media/omap4iss/
H A Diss_ipipe.h41 * @wait: Wait queue used to stop the module
54 wait_queue_head_t wait; member in struct:iss_ipipe_device
H A Diss_resizer.h43 * @wait: Wait queue used to stop the module
57 wait_queue_head_t wait; member in struct:iss_resizer_device
H A Diss_ipipeif.h59 * @wait: Wait queue used to stop the module
74 wait_queue_head_t wait; member in struct:iss_ipipeif_device
/linux-4.1.27/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_xgmac.c54 u8 wait = 10; xgene_enet_wr_indirect() local
60 /* wait for write command to complete */ xgene_enet_wr_indirect()
61 while (!(done = ioread32(cmd_done)) && wait--) xgene_enet_wr_indirect()
108 u8 wait = 10; xgene_enet_rd_indirect() local
113 /* wait for read command to complete */ xgene_enet_rd_indirect()
114 while (!(done = ioread32(cmd_done)) && wait--) xgene_enet_rd_indirect()
145 u8 wait = 10; xgene_enet_ecc_init() local
151 } while ((data != 0xffffffff) && wait--); xgene_enet_ecc_init()
/linux-4.1.27/drivers/dma-buf/
H A Dseqno-fence.c62 return f->ops->wait(fence, intr, timeout); seqno_wait()
70 .wait = seqno_wait,
H A Dfence.c141 * @fence: [in] the fence to wait on
142 * @intr: [in] if true, do an interruptible wait
145 * Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or the
149 * Performs a synchronous wait on this fence. It is assumed the caller
166 ret = fence->ops->wait(fence, intr, timeout); fence_wait_timeout()
222 * @fence: [in] the fence to wait on
285 * @fence: [in] the fence to wait on
324 struct default_wait_cb *wait = fence_default_wait_cb() local
327 wake_up_state(wait->task, TASK_NORMAL); fence_default_wait_cb()
333 * @fence: [in] the fence to wait on
334 * @intr: [in] if true, do an interruptible wait
337 * Returns -ERESTARTSYS if interrupted, 0 if the wait timed out, or the
421 BUG_ON(!ops || !ops->wait || !ops->enable_signaling || fence_init()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dbase.c43 /* wait for a free slot in the fifo */ nvkm_pmu_send()
75 /* wait for reply, if requested */ nvkm_pmu_send()
77 wait_event(pmu->recv.wait, (pmu->recv.process == 0)); nvkm_pmu_send()
121 wake_up(&pmu->recv.wait); nvkm_pmu_recv()
199 /* prevent previous ucode from running, wait for idle, reset */ _nvkm_pmu_init()
225 /* wait for valid host->pmu ring configuration */ _nvkm_pmu_init()
231 /* wait for valid pmu->host ring configuration */ _nvkm_pmu_init()
255 init_waitqueue_head(&pmu->recv.wait); nvkm_pmu_create_()
/linux-4.1.27/fs/notify/fanotify/
H A Dfanotify.h26 * fanotify_handle_event() since we wait there for user response. When the
28 * group->notification_list to group->fanotify_data.access_list to wait for
/linux-4.1.27/arch/powerpc/platforms/44x/
H A Didle.c35 /* set wait state MSR */ ppc44x_idle()
47 then we set to wait mode */ ppc44x_idle_init()
/linux-4.1.27/arch/parisc/lib/
H A Ddelay.c53 * that. The delay must guarantee that we wait "at __cr16_delay()
55 * CPU could make the wait longer but we just need to __cr16_delay()
/linux-4.1.27/arch/m68k/atari/
H A Ddebug.c37 while (!(st_mfp.trn_stat & 0x80)) /* wait for tx buf empty */ ata_mfp_out()
56 } while (!(atari_scc.cha_b_ctrl & 0x04)); /* wait for tx buf empty */ ata_scc_out()
73 while (!(acia.mid_ctrl & ACIA_TDRE)) /* wait for tx buf empty */ ata_midi_out()
94 while ((st_mfp.par_dt_reg & 1) && --i) /* wait for BUSY == L */ ata_par_out()
104 MFPDELAY(); /* wait a bit */ ata_par_out()
134 while (!(st_mfp.rcv_stat & 0x80)) /* wait for rx buf filled */
143 } while (!(atari_scc.cha_b_ctrl & 0x01)); /* wait for rx buf filled */
150 while (!(acia.mid_ctrl & ACIA_RDRF)) /* wait for rx buf filled */
/linux-4.1.27/Documentation/prctl/
H A Ddisable-tsc-ctxt-sw-stress-test.c16 #include <wait.h>
93 wait(NULL); main()
H A Ddisable-tsc-on-off-stress-test.c16 #include <wait.h>
92 wait(NULL); main()
/linux-4.1.27/drivers/media/pci/mantis/
H A Dmantis_i2c.c57 /* wait for xfer completion */ mantis_i2c_read()
66 /* wait for xfer completion */ mantis_i2c_read()
105 /* wait for xfer completion */ mantis_i2c_write()
114 /* wait for xfer completion */ mantis_i2c_write()
159 /* wait for xfer completion */ mantis_i2c_xfer()
/linux-4.1.27/arch/arm/mach-omap2/
H A Dsleep24xx.S50 * when we get called, but the DLL probably isn't. We will wait a bit more in
51 * case the DPLL isn't quite there yet. The code will wait on DLL for DDR even
59 * CM_IDLEST_CLKGEN does not reflect the full clock change so you need to wait
77 mcr p15, 0, r3, c7, c0, 4 @ wait for interrupt
80 subs r5, r5, #0x1 @ awake, wait just a bit
H A Domap-headsmp.S35 wait: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 label
41 bne wait
82 * we've been released from the wait loop,secondary_stack
119 * we've been released from the wait loop,secondary_stack
/linux-4.1.27/tools/testing/fault-injection/
H A Dfailcmd.sh43 --reject-start=value, --reject-end=value, --ignore-gfp-wait=value
91 LONGOPTS=$LONGOPTS,ignore-gfp-wait:,cache-filter:
93 LONGOPTS=$LONGOPTS,ignore-gfp-wait:,ignore-gfp-highmem:,min-order:
181 --ignore-gfp-wait)
182 echo $2 > $FAULTATTR/ignore-gfp-wait
/linux-4.1.27/arch/cris/arch-v32/drivers/
H A Di2c.c273 * now wait for ack i2c_getack()
409 * wait for ack i2c_write()
420 * now it's time to wait for ack i2c_write()
468 * wait for ack i2c_read()
523 * wait for ack i2c_writereg()
533 * now it's time to wait for ack i2c_writereg()
542 * now it's time to wait for ack i2c_writereg()
587 * wait for ack i2c_readreg()
597 * now it's time to wait for ack i2c_readreg()
611 * wait for ack i2c_readreg()
/linux-4.1.27/drivers/s390/char/
H A Dfs3270.c39 wait_queue_head_t wait; /* Init & attention wait queue. */ member in struct:fs3270
70 rq->callback_data = &fp->wait; fs3270_do_io()
75 rc = wait_event_interruptible(fp->wait, fs3270_do_io()
82 /* Started successfully. Now wait for completion. */ fs3270_do_io()
83 wait_event(fp->wait, raw3270_request_final(rq)); fs3270_do_io()
99 wake_up(&fp->wait); fs3270_reset_callback()
114 wake_up(&fp->wait); fs3270_restore_callback()
186 wake_up(&fp->wait); fs3270_save_callback()
226 wake_up(&fp->wait); fs3270_irq()
264 rc = wait_event_interruptible(fp->wait, fp->attention); fs3270_read()
464 init_waitqueue_head(&fp->wait); fs3270_open()
496 * This routine is called when the 3270 tty is closed. We wait
/linux-4.1.27/sound/pci/mixart/
H A Dmixart_core.c202 /* the pending event is the notification we wait for ! */ send_msg()
206 /* the pending event is the answer we wait for (same address than the request)! */ send_msg()
240 u32 msg_frame = 0; /* set to 0, so it's no notification to wait for, but the answer */ snd_mixart_send_msg()
242 wait_queue_t wait; snd_mixart_send_msg() local
245 init_waitqueue_entry(&wait, current); snd_mixart_send_msg()
256 add_wait_queue(&mgr->msg_sleep, &wait); snd_mixart_send_msg()
259 remove_wait_queue(&mgr->msg_sleep, &wait); snd_mixart_send_msg()
287 wait_queue_t wait; snd_mixart_send_msg_wait_notif() local
297 init_waitqueue_entry(&wait, current); snd_mixart_send_msg_wait_notif()
308 add_wait_queue(&mgr->msg_sleep, &wait); snd_mixart_send_msg_wait_notif()
311 remove_wait_queue(&mgr->msg_sleep, &wait); snd_mixart_send_msg_wait_notif()
362 /* answer to a message on that we did not wait for (send_msg_nonblock) */ snd_mixart_process_msg()
551 /* answer to a message we did't want to wait for */ snd_mixart_threaded_irq()
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8188ee/
H A Dpwrseq.h69 /* wait till 0x04[17] = 1 power ready*/}, \
87 /*wait till 0x04[8] = 0*/}, \
107 /*wait till 0x04[9] = 0 polling until return 0 to disable*/},
134 /*wait power state to suspend*/},
142 /*wait power state to suspend*/}, \
171 /*wait power state to suspend*/},
179 /*wait power state to suspend*/}, \
/linux-4.1.27/drivers/input/keyboard/
H A Dsunkbd.c80 wait_queue_head_t wait; member in struct:sunkbd
105 wake_up_interruptible(&sunkbd->wait); sunkbd_interrupt()
111 wake_up_interruptible(&sunkbd->wait); sunkbd_interrupt()
198 wait_event_interruptible_timeout(sunkbd->wait, sunkbd->reset >= 0, HZ); sunkbd_initialize()
207 wait_event_interruptible_timeout(sunkbd->wait, sunkbd_initialize()
227 wait_event_interruptible_timeout(sunkbd->wait, sunkbd->reset >= 0, HZ); sunkbd_reinit()
267 init_waitqueue_head(&sunkbd->wait); sunkbd_connect()
/linux-4.1.27/sound/soc/intel/common/
H A Dsst-ipc.c20 #include <linux/wait.h>
61 /* wait for DSP completion (in all cases atm inc pending) */ tx_wait_done()
87 size_t rx_bytes, int wait) ipc_tx_message()
103 msg->wait = wait; ipc_tx_message()
116 if (wait) ipc_tx_message()
217 if (!msg->wait) sst_ipc_tx_msg_reply_complete()
85 ipc_tx_message(struct sst_generic_ipc *ipc, u64 header, void *tx_data, size_t tx_bytes, void *rx_data, size_t rx_bytes, int wait) ipc_tx_message() argument
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A 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) um_idi_poll() argument
385 poll_wait(file, &p_os->read_wait, wait); um_idi_poll()
510 DECLARE_WAITQUEUE(wait, curtask); remove_entity()
512 add_wait_queue(&p_os->close_wait, &wait); remove_entity()
522 remove_wait_queue(&p_os->close_wait, &wait); remove_entity()
527 DECLARE_WAITQUEUE(wait, curtask); DBG_TRC()
529 add_wait_queue(&p_os->close_wait, &wait); DBG_TRC()
539 remove_wait_queue(&p_os->close_wait, &wait); DBG_TRC()
/linux-4.1.27/drivers/mtd/chips/
H A Dcfi_cmdset_0020.c251 DECLARE_WAITQUEUE(wait, current); do_read_onechip()
342 /* Latency issues. Drop the lock, wait a while and retry */ do_read_onechip()
349 /* Stick ourselves on a wait queue to be woken when do_read_onechip()
352 add_wait_queue(&chip->wq, &wait); do_read_onechip()
355 remove_wait_queue(&chip->wq, &wait); do_read_onechip()
425 DECLARE_WAITQUEUE(wait, current); do_write_buffer()
476 /* Latency issues. Drop the lock, wait a while and retry */ do_write_buffer()
482 /* Stick ourselves on a wait queue to be woken when do_write_buffer()
485 add_wait_queue(&chip->wq, &wait); do_write_buffer()
488 remove_wait_queue(&chip->wq, &wait); do_write_buffer()
542 add_wait_queue(&chip->wq, &wait); do_write_buffer()
545 remove_wait_queue(&chip->wq, &wait); do_write_buffer()
568 /* Latency issues. Drop the lock, wait a while and retry */ do_write_buffer()
737 DECLARE_WAITQUEUE(wait, current); do_erase_oneblock()
769 /* Latency issues. Drop the lock, wait a while and retry */ do_erase_oneblock()
775 /* Stick ourselves on a wait queue to be woken when do_erase_oneblock()
778 add_wait_queue(&chip->wq, &wait); do_erase_oneblock()
781 remove_wait_queue(&chip->wq, &wait); do_erase_oneblock()
807 add_wait_queue(&chip->wq, &wait); do_erase_oneblock()
810 remove_wait_queue(&chip->wq, &wait); do_erase_oneblock()
830 /* Latency issues. Drop the lock, wait a while and retry */ do_erase_oneblock()
981 DECLARE_WAITQUEUE(wait, current); cfi_staa_sync()
1007 add_wait_queue(&chip->wq, &wait); cfi_staa_sync()
1011 remove_wait_queue(&chip->wq, &wait); cfi_staa_sync()
1037 DECLARE_WAITQUEUE(wait, current); do_lock_oneblock()
1068 /* Latency issues. Drop the lock, wait a while and retry */ do_lock_oneblock()
1074 /* Stick ourselves on a wait queue to be woken when do_lock_oneblock()
1077 add_wait_queue(&chip->wq, &wait); do_lock_oneblock()
1080 remove_wait_queue(&chip->wq, &wait); do_lock_oneblock()
1114 /* Latency issues. Drop the lock, wait a while and retry */ do_lock_oneblock()
1183 DECLARE_WAITQUEUE(wait, current); do_unlock_oneblock()
1214 /* Latency issues. Drop the lock, wait a while and retry */ do_unlock_oneblock()
1220 /* Stick ourselves on a wait queue to be woken when do_unlock_oneblock()
1223 add_wait_queue(&chip->wq, &wait); do_unlock_oneblock()
1226 remove_wait_queue(&chip->wq, &wait); do_unlock_oneblock()
1260 /* Latency issues. Drop the unlock, wait a while and retry */ do_unlock_oneblock()
/linux-4.1.27/drivers/staging/android/
H A Dsync.h21 #include <linux/wait.h>
151 * @wq: wait queue for fence signaling
302 * sync_fence_wait_async() - registers and async wait on the fence
303 * @fence: fence to wait on
315 * sync_fence_cancel_async() - cancels an async wait
316 * @fence: fence to wait on
322 * Cancels a previously registered async wait. Will fail gracefully if
329 * sync_fence_wait() - wait on fence
330 * @fence: fence to wait on
/linux-4.1.27/drivers/tty/
H A Dtty_ldsem.c6 * 1) Supports lock wait timeouts
11 * 1) Upper half of semaphore count is a wait count (differs from rwsem
12 * in that rwsem normalizes the upper half to the wait bias)
125 /* Try to grant read locks to all readers on the read wait list. __ldsem_wake_readers()
197 * wait for the read lock to be granted
233 /* wait to be given the lock */ down_read_failed()
249 * was no timeout; otherwise, cleanup lock wait */ down_read_failed()
265 * wait for the write lock to be granted
313 /* lock wait may have timed out */ down_write_failed()
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_hwtstamp.c66 /* wait for present system time initialize to complete */ stmmac_init_systime()
90 /* wait for present addend update to complete */ stmmac_config_addend()
117 /* wait for present system time adjust/update to complete */ stmmac_adjust_systime()
/linux-4.1.27/drivers/rtc/
H A Drtc-au1xxx.c50 /* wait for the pending register write to succeed. This can au1xtoy_rtc_set_time()
81 /* wait until hardware gives access to TRIM register */ au1xtoy_rtc_probe()
98 /* wait until the hardware allows writes to the counter reg */ au1xtoy_rtc_probe()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
H A Dlib-eq.c327 int wait; variable
332 return -1; /* don't want to wait and no new event */
350 if (tms < 0) /* no more wait but may have new event */
354 wait = tms != 0; /* might need to call here again */
360 return wait;
377 * \param timeout_ms Time in milliseconds to wait for an event to occur on
395 int wait = 1; LNetEQPoll() local
424 if (wait == 0) LNetEQPoll()
430 * 1 : sleep inside and wait until new event LNetEQPoll()
431 * 0 : don't want to wait anymore, but might have new event LNetEQPoll()
434 wait = lnet_eq_wait_locked(&timeout_ms); LNetEQPoll()
435 if (wait < 0) /* no new event */ LNetEQPoll()
/linux-4.1.27/drivers/cpufreq/
H A Dloongson2_cpufreq.c138 * This is the simple version of Loongson-2 wait, Maybe we need do this in
151 LOONGSON_CHIPCFG(0) &= ~0x7; /* Put CPU into wait mode */ loongson2_cpu_wait()
196 MODULE_PARM_DESC(nowait, "Disable Loongson-2F specific wait");
H A Dppc_cbe_cpufreq_pervasive.c87 /* wait until new pmode appears in status register */ cbe_cpufreq_set_pmode()
96 pr_debug("had to wait %lu ms for a transition using " \ cbe_cpufreq_set_pmode()
/linux-4.1.27/arch/um/drivers/
H A Drandom.c69 DECLARE_WAITQUEUE(wait, current); rng_dev_read()
78 add_wait_queue(&host_read_wait, &wait); rng_dev_read()
82 remove_wait_queue(&host_read_wait, &wait); rng_dev_read()
/linux-4.1.27/drivers/w1/masters/
H A Domap_hdq.c127 * HDQ_FLAG_SET: wait until any bit in the flag is set.
128 * HDQ_FLAG_CLEAR: wait until all bits in the flag are cleared.
138 /* wait for the flag clear */ hdq_wait_for_flag()
146 /* wait for the flag set */ hdq_wait_for_flag()
180 /* wait for the TXCOMPLETE bit */ hdq_write_byte()
184 dev_dbg(hdq_data->dev, "TX wait elapsed\n"); hdq_write_byte()
198 /* wait for the GO bit return to zero */ hdq_write_byte()
276 /* wait for reset to complete */ _omap_hdq_reset()
320 /* wait for the TIMEOUT bit */ omap_hdq_break()
324 dev_dbg(hdq_data->dev, "break wait elapsed\n"); omap_hdq_break()
338 * wait for both INIT and GO bits rerurn to zero. omap_hdq_break()
339 * zero wait time expected for interrupt mode. omap_hdq_break()
/linux-4.1.27/net/vmw_vsock/
H A Dvmci_transport.h80 struct vmci_transport_waiting_info wait; member in union:vmci_transport_packet::__anon14256
138 struct vmci_transport_waiting_info *wait);
140 struct vmci_transport_waiting_info *wait);
/linux-4.1.27/drivers/net/ethernet/freescale/fs_enet/
H A Dfec.h41 * Delay to wait for FEC reset command to complete (in us)
/linux-4.1.27/drivers/media/tuners/
H A Dqm1d1c0042.h29 u32 lpf_wait; /* wait in tuning with LPF enabled. [ms] */
/linux-4.1.27/drivers/misc/mic/host/
H A Dmic_fops.h30 unsigned int mic_poll(struct file *f, poll_table *wait);
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dsysfs.c124 DEFINE_WAIT(wait); wl1271_sysfs_read_fwlog()
127 &wait, wl1271_sysfs_read_fwlog()
131 finish_wait(&wl->fwlog_waitq, &wait); wl1271_sysfs_read_fwlog()
138 finish_wait(&wl->fwlog_waitq, &wait); wl1271_sysfs_read_fwlog()
/linux-4.1.27/arch/tile/include/gxio/
H A Ddma_queue.h77 unsigned int num, bool wait, __gxio_dma_queue_reserve()
96 * completed egress commands. If that fails, wait or fail. __gxio_dma_queue_reserve()
102 if (wait) __gxio_dma_queue_reserve()
151 unsigned int num, int wait);
76 __gxio_dma_queue_reserve(__gxio_dma_queue_t *dma_queue, unsigned int num, bool wait, bool completion) __gxio_dma_queue_reserve() argument
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dpmu.h18 wait_queue_head_t wait; member in struct:nvkm_pmu::__anon4138
/linux-4.1.27/drivers/char/hw_random/
H A Diproc-rng200.c95 bool wait) iproc_rng200_read()
143 if (!wait) iproc_rng200_read()
144 /* Cannot wait, return immediately */ iproc_rng200_read()
147 /* Can wait, give others chance to run */ iproc_rng200_read()
94 iproc_rng200_read(struct hwrng *rng, void *buf, size_t max, bool wait) iproc_rng200_read() argument
H A Dbcm2835-rng.c30 bool wait) bcm2835_rng_read()
35 if (!wait) bcm2835_rng_read()
29 bcm2835_rng_read(struct hwrng *rng, void *buf, size_t max, bool wait) bcm2835_rng_read() argument
H A Dnomadik-rng.c22 static int nmk_rng_read(struct hwrng *rng, void *data, size_t max, bool wait) nmk_rng_read() argument
29 * once and accept the very unlikely very small delay, even if wait==0. nmk_rng_read()
H A Dppc4xx-rng.c31 static int ppc4xx_rng_data_present(struct hwrng *rng, int wait) ppc4xx_rng_data_present() argument
38 if (!busy || !wait) { ppc4xx_rng_data_present()
/linux-4.1.27/arch/metag/tbx/
H A Dtbilogf.S32 * Perform wait for continue under control of the debugger
/linux-4.1.27/arch/mips/cavium-octeon/
H A Dcsrc-octeon.c180 * octeon_io_clk_delay - wait for a given number of io clock cycles to pass.
182 * We scale the wait by the clock ratio, and then wait for the
185 * @count: The number of clocks to wait.
/linux-4.1.27/arch/mips/include/asm/mach-paravirt/
H A Dkernel-entry-init.h34 wait
/linux-4.1.27/arch/mips/jz4740/
H A Dpm.c32 "wait\n\t" jz4740_pm_enter()
/linux-4.1.27/arch/mips/pnx833x/common/
H A Dreset.c37 __asm__ __volatile__ ("wait"); pnx833x_machine_halt()
/linux-4.1.27/arch/m68k/coldfire/
H A Dreset.c32 /* wait for watchdog to timeout */; mcf_cpu_reset()
/linux-4.1.27/arch/arm/mach-sa1100/include/mach/
H A Duncompress.h36 /* wait for space in the UART's transmitter */ putc()
/linux-4.1.27/arch/arm/include/debug/
H A Dimx.S46 beq 1002b @ wait until transmit done
H A Dvf.S33 beq 1001b @ wait until transmit done
/linux-4.1.27/arch/alpha/include/asm/
H A Dsmp.h53 #define smp_call_function_on_cpu(func,info,wait,cpu) ({ 0; })
/linux-4.1.27/fs/ext4/
H A Dfsync.c83 * What we do is just kick off a commit and wait on it. This will snapshot the
120 * The caller's filemap_fdatawrite()/wait will sync the data. ext4_sync_file()
121 * Metadata is in the journal, we wait for proper transaction to ext4_sync_file()
127 * will wait on that. ext4_sync_file()
/linux-4.1.27/fs/gfs2/
H A Drecovery.h32 extern int gfs2_recover_journal(struct gfs2_jdesc *gfs2_jd, bool wait);
/linux-4.1.27/net/dccp/
H A Dprobe.c49 wait_queue_head_t wait; member in struct:__anon14102
72 wake_up(&dccpw.wait); printl()
133 error = wait_event_interruptible(dccpw.wait, dccpprobe_read()
158 init_waitqueue_head(&dccpw.wait); dccpprobe_init()
/linux-4.1.27/mm/
H A Dfailslab.c44 if (!debugfs_create_bool("ignore-gfp-wait", mode, dir, failslab_debugfs_init()
/linux-4.1.27/drivers/md/bcache/
H A Dclosure.h17 * anything you might want to wait on.
23 * Closures can be used to wait on things both synchronously and asynchronously,
25 * wait synchronously, use closure_sync() - you will sleep until your closure's
28 * To wait asynchronously, use
75 * Lastly, you might have a wait list dedicated to a specific event, and have no
76 * need for specifying the condition - you just want to wait until someone runs
77 * closure_wake_up() on the appropriate wait list. In that case, just use
79 * closure was already on a wait list or not - a closure can only be on one wait
298 * closure_wake_up - wake up all closures on a wait list.
375 * asynchronously out of a new closure - @parent will then wait for @cl to
/linux-4.1.27/net/bluetooth/
H A Daf_bluetooth.c259 DECLARE_WAITQUEUE(wait, current); bt_sock_data_wait()
261 add_wait_queue(sk_sleep(sk), &wait); bt_sock_data_wait() local
282 remove_wait_queue(sk_sleep(sk), &wait); bt_sock_data_wait() local
408 poll_table *wait) bt_sock_poll()
415 poll_wait(file, sk_sleep(sk), wait); bt_sock_poll()
501 DECLARE_WAITQUEUE(wait, current); bt_sock_wait_state()
506 add_wait_queue(sk_sleep(sk), &wait); bt_sock_wait_state() local
529 remove_wait_queue(sk_sleep(sk), &wait); bt_sock_wait_state() local
537 DECLARE_WAITQUEUE(wait, current); bt_sock_wait_ready()
545 add_wait_queue(sk_sleep(sk), &wait); bt_sock_wait_ready() local
568 remove_wait_queue(sk_sleep(sk), &wait); bt_sock_wait_ready() local
407 bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait) bt_sock_poll() argument
/linux-4.1.27/net/bluetooth/cmtp/
H A Dcapi.c37 #include <linux/wait.h>
212 wake_up_interruptible(&session->wait); cmtp_recv_interopmsg()
224 wake_up_interruptible(&session->wait); cmtp_recv_interopmsg()
238 wake_up_interruptible(&session->wait); cmtp_recv_interopmsg()
383 DECLARE_WAITQUEUE(wait, current); cmtp_register_appl()
417 add_wait_queue(&session->wait, &wait); cmtp_register_appl()
442 remove_wait_queue(&session->wait, &wait); cmtp_register_appl()
468 wait_event_interruptible_timeout(session->wait, cmtp_release_appl()
553 ret = wait_event_interruptible_timeout(session->wait, cmtp_attach_device()
/linux-4.1.27/arch/x86/lib/
H A Ddelay.c73 * that. The delay must guarantee that we wait "at delay_tsc()
75 * CPU could make the wait longer but we just need to delay_tsc()
/linux-4.1.27/arch/tile/include/asm/
H A Datomic_64.h45 barrier(); /* the "+ i" above will wait on memory */ atomic_add_return()
78 barrier(); /* the "+ i" above will wait on memory */ atomic64_add_return()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Duvd_v3_1.c36 * @emit_wait: true if we should emit a wait command
38 * Emit a semaphore command (either wait or signal) to the UVD ring.
/linux-4.1.27/drivers/gpu/drm/sti/
H A Dsti_hdmi.h44 * @wait_event: wait event
45 * @event_received: wait event status
/linux-4.1.27/arch/arm/mach-prima2/
H A Dplatsmp.c82 * the holding pen - release it, then wait for it to flag sirfsoc_boot_secondary()
108 * calibrations, then wait for it to finish sirfsoc_boot_secondary()
/linux-4.1.27/arch/arm/mach-sti/
H A Dplatsmp.c68 * the holding pen - release it, then wait for it to flag sti_boot_secondary()
93 * calibrations, then wait for it to finish sti_boot_secondary()

Completed in 3882 milliseconds

1234567891011>>