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

1234567891011>>

/linux-4.4.14/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.4.14/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
109 int nowait = 0, wait = 1; SYSCALL_DEFINE0() local
114 iterate_supers(sync_fs_one_sb, &wait); SYSCALL_DEFINE0()
242 * SYNC_FILE_RANGE_WAIT_BEFORE: wait upon writeout of all pages in the range
249 * SYNC_FILE_RANGE_WAIT_AFTER: wait upon writeout of all pages in the range
262 * SYNC_FILE_RANGE_WAIT_BEFORE (or SYNC_FILE_RANGE_WAIT_AFTER): wait for
264 * 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.4.14/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.
380 * @wq: the waitqueue to wait on
381 * @condition: a C expression for the event to wait for
390 * change the result of the wait condition.
405 * @wq: the waitqueue to wait on
406 * @condition: a C expression for the event to wait for
413 * change the result of the wait condition.
434 * @wq: the waitqueue to wait on
435 * @condition: a C expression for the event to wait for
443 * change the result of the wait condition.
489 * @wq: the waitqueue to wait on
490 * @condition: a C expression for the event to wait for
498 * change the result of the wait condition.
515 * @wq: the waitqueue to wait on
516 * @condition: a C expression for the event to wait for
524 * change the result of the wait condition.
599 * @wq: the waitqueue to wait on
600 * @condition: a C expression for the event to wait for
615 * change the result of the wait condition.
626 * @wq: the waitqueue to wait on
627 * @condition: a C expression for the event to wait for
642 * change the result of the wait condition.
653 * @wq: the waitqueue to wait on
654 * @condition: a C expression for the event to wait for
668 * The process is put on the wait queue with an WQ_FLAG_EXCLUSIVE flag
673 * change the result of the wait condition.
684 * @wq: the waitqueue to wait on
685 * @condition: a C expression for the event to wait for
699 * The process is put on the wait queue with an WQ_FLAG_EXCLUSIVE flag
704 * change the result of the wait condition.
719 * @wq: the waitqueue to wait on
720 * @condition: a C expression for the event to wait for
727 * change the result of the wait condition.
754 * @wq: the waitqueue to wait on
755 * @condition: a C expression for the event to wait for
766 * change the result of the wait condition.
784 * @wq: the waitqueue to wait on
785 * @condition: a C expression for the event to wait for
794 * change the result of the wait condition.
818 * @wq: the waitqueue to wait on
819 * @condition: a C expression for the event to wait for
830 * change the result of the wait condition.
852 * @wq: the waitqueue to wait on
853 * @condition: a C expression for the event to wait for
862 * change the result of the wait condition.
891 * @wq: the waitqueue to wait on
892 * @condition: a C expression for the event to wait for
902 * change the result of the wait condition.
924 void prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state);
925 void prepare_to_wait_exclusive(wait_queue_head_t *q, wait_queue_t *wait, int state);
926 long prepare_to_wait_event(wait_queue_head_t *q, wait_queue_t *wait, int state);
927 void finish_wait(wait_queue_head_t *q, wait_queue_t *wait);
928 void abort_exclusive_wait(wait_queue_head_t *q, wait_queue_t *wait, unsigned int mode, void *key);
929 long wait_woken(wait_queue_t *wait, unsigned mode, long timeout);
930 int woken_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
931 int autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
932 int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
946 .wait = { \
950 LIST_HEAD_INIT((name).wait.task_list), \
954 #define init_wait(wait) \
956 (wait)->private = current; \
957 (wait)->func = autoremove_wake_function; \
958 INIT_LIST_HEAD(&(wait)->task_list); \
959 (wait)->flags = 0; \
969 * wait_on_bit - wait for a bit to be cleared
996 * wait_on_bit_io - wait for a bit to be cleared
1001 * Use the standard hashed waitqueue table to wait for a bit
1021 * wait_on_bit_timeout - wait for a bit to be cleared or a timeout elapses
1027 * Use the standard hashed waitqueue table to wait for a bit
1048 * wait_on_bit_action - wait for a bit to be cleared
1054 * Use the standard hashed waitqueue table to wait for a bit
1074 * wait_on_bit_lock - wait for a bit to be cleared, when wanting to set it
1102 * wait_on_bit_lock_io - wait for a bit to be cleared, when wanting to set it
1107 * Use the standard hashed waitqueue table to wait for a bit
1126 * wait_on_bit_lock_action - wait for a bit to be cleared, when wanting to set it
1132 * Use the standard hashed waitqueue table to wait for a bit
1158 * 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 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
49 wait_queue_head_t wait; member in struct:pipe_inode_info
90 * to a file system, we may need to wait for IO completion in this
133 /* 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.
329 * @fence: [in] the fence to wait on
330 * @intr: [in] if true, do an interruptible wait
336 * Performs a synchronous wait on this fence. It is assumed the caller
H A Dsudmac.h33 unsigned long wait; /* The configuable range is 0 to 3 */ member in struct:sudmac_channel
H A Dpercpu-rwsem.h7 #include <linux/wait.h>
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 Dirq_work.h18 #define IRQ_WORK_LAZY 4UL /* Doesn't want IPI, wait for tick */
/linux-4.4.14/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.4.14/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 smp_store_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.4.14/drivers/staging/rdma/hfi1/
H A Diowait.h67 * @list: used to add/insert into QP/PQ wait lists
72 * @wait_dma: wait for sdma_busy == 0
100 struct iowait *wait,
103 void (*wakeup)(struct iowait *wait, int reason);
115 * iowait_init() - initialize wait structure
116 * @wait: wait struct to initialize
128 struct iowait *wait, iowait_init()
133 struct iowait *wait, iowait_init()
136 void (*wakeup)(struct iowait *wait, int reason)) iowait_init()
138 wait->count = 0; iowait_init()
139 INIT_LIST_HEAD(&wait->list); iowait_init()
140 INIT_LIST_HEAD(&wait->tx_head); iowait_init()
141 INIT_WORK(&wait->iowork, func); iowait_init()
142 init_waitqueue_head(&wait->wait_dma); iowait_init()
143 atomic_set(&wait->sdma_busy, 0); iowait_init()
144 wait->tx_limit = tx_limit; iowait_init()
145 wait->sleep = sleep; iowait_init()
146 wait->wakeup = wakeup; iowait_init()
150 * iowait_schedule() - initialize wait structure
151 * @wait: wait struct to schedule
155 struct iowait *wait, iowait_schedule()
158 queue_work(wq, &wait->iowork); iowait_schedule()
162 * iowait_sdma_drain() - wait for DMAs to drain
164 * @wait: iowait structure
169 static inline void iowait_sdma_drain(struct iowait *wait) iowait_sdma_drain() argument
171 wait_event(wait->wait_dma, !atomic_read(&wait->sdma_busy)); iowait_sdma_drain()
177 * @wait: iowait structure
181 static inline void iowait_drain_wakeup(struct iowait *wait) iowait_drain_wakeup() argument
183 wake_up(&wait->wait_dma); iowait_drain_wakeup()
127 iowait_init( struct iowait *wait, u32 tx_limit, void (*func)(struct work_struct *work), int (*sleep)( struct sdma_engine *sde, struct iowait *wait, struct sdma_txreq *tx, unsigned seq), void (*wakeup)(struct iowait *wait, int reason)) iowait_init() argument
154 iowait_schedule( struct iowait *wait, struct workqueue_struct *wq) iowait_schedule() argument
H A Dsdma.c89 /* max wait time for a SDMA engine to indicate it has halted */
303 * sdma_wait_for_packet_egress() - wait for the VL FIFO occupancy for
339 * sdma_wait() - wait for packet egress to complete for all SDMA engines,
402 struct iowait *wait = txp->wait; sdma_flush() local
413 if (wait) sdma_flush()
414 drained = atomic_dec_and_test(&wait->sdma_busy); sdma_flush()
417 if (wait && drained) sdma_flush()
418 iowait_drain_wakeup(wait); sdma_flush()
589 struct iowait *wait = txp->wait; sdma_flush_descq() local
593 if (wait) sdma_flush_descq()
594 drained = atomic_dec_and_test(&wait->sdma_busy); sdma_flush_descq()
609 if (wait && drained) sdma_flush_descq()
610 iowait_drain_wakeup(wait); sdma_flush_descq()
1415 struct iowait *wait, *nw; sdma_desc_avail() local
1434 wait, sdma_desc_avail()
1440 if (!wait->wakeup) sdma_desc_avail()
1444 if (!list_empty(&wait->tx_head)) { sdma_desc_avail()
1446 &wait->tx_head, sdma_desc_avail()
1454 list_del_init(&wait->list); sdma_desc_avail()
1455 waits[n++] = wait; sdma_desc_avail()
1494 struct iowait *wait = txp->wait; sdma_make_progress() local
1498 if (wait) sdma_make_progress()
1499 drained = atomic_dec_and_test(&wait->sdma_busy); sdma_make_progress()
1513 if (wait && drained) sdma_make_progress()
1514 iowait_drain_wakeup(wait); sdma_make_progress()
2030 struct iowait *wait, sdma_check_progress()
2039 if (wait && wait->sleep) { sdma_check_progress()
2044 ret = wait->sleep(sde, wait, tx, seq); sdma_check_progress()
2055 * @wait: wait structure to use when full (may be NULL)
2059 * the packet will be queued to the list in wait.
2063 * ring (wait == NULL)
2067 struct iowait *wait, sdma_send_txreq()
2077 tx->wait = wait; sdma_send_txreq()
2085 if (wait) sdma_send_txreq()
2086 atomic_inc(&wait->sdma_busy); sdma_send_txreq()
2092 if (wait) sdma_send_txreq()
2093 atomic_inc(&wait->sdma_busy); sdma_send_txreq()
2102 if (wait) { sdma_send_txreq()
2103 wait->tx_count++; sdma_send_txreq()
2104 wait->count += tx->num_desc; sdma_send_txreq()
2110 ret = sdma_check_progress(sde, wait, tx); sdma_send_txreq()
2122 * @wait: wait structure to use when full (may be NULL)
2128 * the unprocessed part of the list will be appended to the list in wait.
2139 * (wait == NULL)
2143 struct iowait *wait, sdma_send_txlist()
2155 tx->wait = wait; list_for_each_entry_safe()
2174 if (wait)
2175 atomic_add(count, &wait->sdma_busy);
2183 tx->wait = wait; list_for_each_entry_safe()
2185 if (wait) list_for_each_entry_safe()
2186 atomic_inc(&wait->sdma_busy); list_for_each_entry_safe()
2193 if (wait) { list_for_each_entry_safe()
2194 wait->tx_count++; list_for_each_entry_safe()
2195 wait->count += tx->num_desc; list_for_each_entry_safe()
2203 ret = sdma_check_progress(sde, wait, tx);
3010 /* set up the wait but do not wait here */ sdma_freeze_notify()
3013 /* tell all engines to stop running and wait */ sdma_freeze_notify()
3017 /* sdma_freeze() will wait for all engines to have stopped */ sdma_freeze_notify()
3039 /* set up the count for the next wait */ sdma_freeze()
3061 * frozen, but then we'd have to add another state to wait for the unfreeze.
2028 sdma_check_progress( struct sdma_engine *sde, struct iowait *wait, struct sdma_txreq *tx) sdma_check_progress() argument
2066 sdma_send_txreq(struct sdma_engine *sde, struct iowait *wait, struct sdma_txreq *tx) sdma_send_txreq() argument
2142 sdma_send_txlist(struct sdma_engine *sde, struct iowait *wait, struct list_head *tx_list) sdma_send_txlist() argument
/linux-4.4.14/arch/mips/include/asm/
H A Didle.h25 .name = "wait",\
26 .desc = "MIPS wait",\
/linux-4.4.14/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.c215 DEFINE_WAIT(wait); softsynth_read()
219 prepare_to_wait(&speakup_event, &wait, TASK_INTERRUPTIBLE); softsynth_read()
224 finish_wait(&speakup_event, &wait); softsynth_read()
228 finish_wait(&speakup_event, &wait); softsynth_read()
234 finish_wait(&speakup_event, &wait); softsynth_read()
284 struct poll_table_struct *wait) softsynth_poll()
289 poll_wait(fp, &speakup_event, wait); softsynth_poll()
283 softsynth_poll(struct file *fp, struct poll_table_struct *wait) softsynth_poll() argument
/linux-4.4.14/drivers/scsi/qla2xxx/
H A Dqla_settings.h9 /* Max time to wait for the loop to be in LOOP_READY state */
/linux-4.4.14/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.4.14/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
123 DEFINE_WAIT(wait); sk_stream_wait_memory()
131 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); sk_stream_wait_memory() local
165 finish_wait(sk_sleep(sk), &wait); sk_stream_wait_memory() local
/linux-4.4.14/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.4.14/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.4.14/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcpu_event_pinned_vs_ebb_test.c11 #include <sys/wait.h>
68 /* Signal the child to install its EBB event and wait */ cpu_event_pinned_vs_ebb()
70 /* If it fails, wait for it to exit */ cpu_event_pinned_vs_ebb()
71 goto wait; cpu_event_pinned_vs_ebb()
76 wait: cpu_event_pinned_vs_ebb()
H A Dcpu_event_vs_ebb_test.c11 #include <sys/wait.h>
66 /* Signal the child to install its EBB event and wait */ cpu_event_vs_ebb()
68 /* If it fails, wait for it to exit */ cpu_event_vs_ebb()
69 goto wait; cpu_event_vs_ebb()
74 wait: cpu_event_vs_ebb()
H A Dtask_event_pinned_vs_ebb_test.c11 #include <sys/wait.h>
63 /* Signal the child to install its EBB event and wait */ task_event_pinned_vs_ebb()
65 /* If it fails, wait for it to exit */ task_event_pinned_vs_ebb()
66 goto wait; task_event_pinned_vs_ebb()
71 wait: task_event_pinned_vs_ebb()
H A Dtask_event_vs_ebb_test.c11 #include <sys/wait.h>
61 /* Signal the child to install its EBB event and wait */ task_event_vs_ebb()
63 /* If it fails, wait for it to exit */ task_event_vs_ebb()
64 goto wait; task_event_vs_ebb()
69 wait: task_event_vs_ebb()
H A Debb_vs_cpu_event_test.c11 #include <sys/wait.h>
59 /* Signal the child to install its EBB event and wait */ ebb_vs_cpu_event()
72 /* .. and wait for it to complete */ ebb_vs_cpu_event()
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
H A Dvnic_dev.c230 int wait) _vnic_dev_cmd()
259 for (delay = 0; delay < wait; delay++) { _vnic_dev_cmd()
298 int wait) _vnic_dev_cmd2()
349 for (delay = 0; delay < wait; delay++) { _vnic_dev_cmd2()
456 u64 *a0, u64 *a1, int wait) vnic_dev_cmd_proxy()
468 err = vdev->devcmd_rtn(vdev, proxy_cmd, wait); vnic_dev_cmd_proxy()
489 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) vnic_dev_cmd_no_proxy()
496 err = vdev->devcmd_rtn(vdev, cmd, wait); vnic_dev_cmd_no_proxy()
517 u64 *a0, u64 *a1, int wait) vnic_dev_cmd()
524 a0, a1, wait); vnic_dev_cmd()
527 a0, a1, wait); vnic_dev_cmd()
530 return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); vnic_dev_cmd()
537 int wait = 1000; vnic_dev_capable() local
540 err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); vnic_dev_capable()
549 int wait = 1000; vnic_dev_fw_info() local
565 &a0, &a1, wait); vnic_dev_fw_info()
568 &a0, &a1, wait); vnic_dev_fw_info()
580 int wait = 1000; vnic_dev_spec() local
586 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); vnic_dev_spec()
602 int wait = 1000; vnic_dev_stats_dump() local
615 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); vnic_dev_stats_dump()
621 int wait = 1000; vnic_dev_close() local
622 return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); vnic_dev_close()
628 int wait = 1000; vnic_dev_enable_wait() local
631 return vnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); vnic_dev_enable_wait()
633 return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); vnic_dev_enable_wait()
639 int wait = 1000; vnic_dev_disable() local
640 return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); vnic_dev_disable()
646 int wait = 1000; vnic_dev_open() local
647 return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); vnic_dev_open()
653 int wait = 1000; vnic_dev_open_done() local
658 err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); vnic_dev_open_done()
670 int wait = 1000; vnic_dev_soft_reset() local
671 return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); vnic_dev_soft_reset()
677 int wait = 1000; vnic_dev_soft_reset_done() local
682 err = vnic_dev_cmd(vdev, CMD_SOFT_RESET_STATUS, &a0, &a1, wait); vnic_dev_soft_reset_done()
694 int wait = 1000; vnic_dev_hang_reset() local
699 &a0, &a1, wait); vnic_dev_hang_reset()
711 int wait = 1000; vnic_dev_hang_reset_done() local
718 &a0, &a1, wait); vnic_dev_hang_reset_done()
733 int wait = 1000; vnic_dev_hang_notify() local
734 return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); vnic_dev_hang_notify()
740 int wait = 1000; vnic_dev_get_mac_addr() local
746 err = vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); vnic_dev_get_mac_addr()
760 int wait = 1000; vnic_dev_packet_filter() local
769 err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); vnic_dev_packet_filter()
779 int wait = 1000; vnic_dev_add_addr() local
786 err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); vnic_dev_add_addr()
796 int wait = 1000; vnic_dev_del_addr() local
803 err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait); vnic_dev_del_addr()
814 int wait = 1000; vnic_dev_set_ig_vlan_rewrite_mode() local
818 &a0, &a1, wait); vnic_dev_set_ig_vlan_rewrite_mode()
827 int wait = 1000; vnic_dev_notify_setcmd() local
838 r = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vnic_dev_notify_setcmd()
865 int wait = 1000; vnic_dev_notify_unsetcmd() local
872 err = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vnic_dev_notify_unsetcmd()
916 int wait = 1000; vnic_dev_init() local
920 r = vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); vnic_dev_init()
922 vnic_dev_cmd(vdev, CMD_INIT_v1, &a0, &a1, wait); vnic_dev_init()
927 vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); vnic_dev_init()
928 vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); vnic_dev_init()
937 int wait = 1000; vnic_dev_deinit() local
939 return vnic_dev_cmd(vdev, CMD_DEINIT, &a0, &a1, wait); vnic_dev_deinit()
953 int wait = 1000; vnic_dev_intr_coal_timer_info() local
959 err = vdev->devcmd_rtn(vdev, CMD_INTR_COAL_CONVERT, wait); vnic_dev_intr_coal_timer_info()
1123 int wait = 1000; vnic_dev_init_prov2() local
1136 ret = vnic_dev_cmd(vdev, CMD_INIT_PROV_INFO2, &a0, &a1, wait); vnic_dev_init_prov2()
1146 int wait = 1000; vnic_dev_enable2() local
1150 return vnic_dev_cmd(vdev, CMD_ENABLE2, &a0, &a1, wait); vnic_dev_enable2()
1157 int wait = 1000; vnic_dev_cmd_status() local
1160 ret = vnic_dev_cmd(vdev, CMD_STATUS, &a0, &a1, wait); vnic_dev_cmd_status()
1180 int wait = 1000; vnic_dev_set_mac_addr() local
1186 return vnic_dev_cmd(vdev, CMD_SET_MAC_ADDR, &a0, &a1, wait); vnic_dev_set_mac_addr()
1207 int wait = 1000; vnic_dev_classifier() local
1239 ret = vnic_dev_cmd(vdev, CMD_ADD_FILTER, &a0, &a1, wait); vnic_dev_classifier()
1244 ret = vnic_dev_cmd(vdev, CMD_DEL_FILTER, &a0, &a1, wait); vnic_dev_classifier()
229 _vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, int wait) _vnic_dev_cmd() argument
297 _vnic_dev_cmd2(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, int wait) _vnic_dev_cmd2() argument
454 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
488 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
516 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.c170 unsigned int wait; vnic_rq_disable() local
176 for (wait = 0; wait < 1000; wait++) { vnic_rq_disable()
H A Dvnic_wq.c178 unsigned int wait; vnic_wq_disable() local
184 for (wait = 0; wait < 1000; wait++) { vnic_wq_disable()
/linux-4.4.14/drivers/scsi/snic/
H A Dvnic_dev.c69 int wait);
263 int wait) _svnic_dev_cmd2()
302 for (delay = 0; delay < wait; delay++) { _svnic_dev_cmd2()
433 u64 *a0, u64 *a1, int wait) svnic_dev_cmd()
441 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); svnic_dev_cmd()
453 int wait = VNIC_DVCMD_TMO; svnic_dev_fw_info() local
466 err = svnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); svnic_dev_fw_info()
478 int wait = VNIC_DVCMD_TMO; svnic_dev_spec() local
484 err = svnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); svnic_dev_spec()
510 int wait = VNIC_DVCMD_TMO; svnic_dev_stats_clear() local
512 return svnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); svnic_dev_stats_clear()
518 int wait = VNIC_DVCMD_TMO; svnic_dev_stats_dump() local
531 return svnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); svnic_dev_stats_dump()
537 int wait = VNIC_DVCMD_TMO; svnic_dev_close() local
539 return svnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); svnic_dev_close()
545 int wait = VNIC_DVCMD_TMO; svnic_dev_enable_wait() local
548 err = svnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); svnic_dev_enable_wait()
550 return svnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); svnic_dev_enable_wait()
558 int wait = VNIC_DVCMD_TMO; svnic_dev_disable() local
560 return svnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); svnic_dev_disable()
566 int wait = VNIC_DVCMD_TMO; svnic_dev_open() local
568 return svnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); svnic_dev_open()
574 int wait = VNIC_DVCMD_TMO; svnic_dev_open_done() local
579 err = svnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); svnic_dev_open_done()
591 int wait = VNIC_DVCMD_TMO; svnic_dev_notify_set() local
605 return svnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); svnic_dev_notify_set()
611 int wait = VNIC_DVCMD_TMO; svnic_dev_notify_unset() local
617 svnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); svnic_dev_notify_unset()
645 int wait = VNIC_DVCMD_TMO; svnic_dev_init() local
647 return svnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); svnic_dev_init()
262 _svnic_dev_cmd2(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, int wait) _svnic_dev_cmd2() argument
432 svnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) svnic_dev_cmd() argument
H A Dsnic_ctl.c220 if (snic->fwinfo.wait) snic_io_exch_ver_cmpl_handler()
221 complete(snic->fwinfo.wait); snic_io_exch_ver_cmpl_handler()
241 DECLARE_COMPLETION_ONSTACK(wait); snic_get_conf()
249 snic->fwinfo.wait = &wait; snic_get_conf()
264 wait_for_completion_timeout(&wait, msecs_to_jiffies(2000)); snic_get_conf()
271 /* Unset fwinfo.wait, on success or on last retry */ snic_get_conf()
273 snic->fwinfo.wait = NULL; snic_get_conf()
H A Dvnic_wq.c197 unsigned int wait; svnic_wq_disable() local
202 for (wait = 0; wait < 100; wait++) { svnic_wq_disable()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dgf100.h19 wait_queue_head_t wait; member in struct:gf100_fifo::__anon4488
/linux-4.4.14/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.
69 static int call_modprobe(char *module_name, int wait) call_modprobe() argument
98 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); call_modprobe()
110 * @wait: wait (or not) for the operation to complete
124 int __request_module(bool wait, const char *fmt, ...) __request_module() argument
140 WARN_ON_ONCE(wait && current_is_async()); __request_module()
181 trace_module_request(module_name, wait, _RET_IP_); __request_module()
183 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); __request_module()
261 if (!(sub_info->wait & UMH_WAIT_PROC)) call_usermodehelper_exec_async()
326 if (sub_info->wait & UMH_WAIT_PROC) { call_usermodehelper_exec_work()
356 * Wait queue head used by usermodehelper_disable() to wait for all running
362 * Used by usermodehelper_read_lock_wait() to wait for usermodehelper_disabled
368 * Time to wait for running_helpers to become zero before the setting of
375 DEFINE_WAIT(wait); usermodehelper_read_trylock()
380 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, usermodehelper_read_trylock()
398 finish_wait(&usermodehelper_disabled_waitq, &wait); usermodehelper_read_trylock()
405 DEFINE_WAIT(wait); usermodehelper_read_lock_wait()
412 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, usermodehelper_read_lock_wait()
425 finish_wait(&usermodehelper_disabled_waitq, &wait); usermodehelper_read_lock_wait()
455 * Set usermodehelper_disabled to @depth and wait for running helpers to exit.
546 * @wait: wait for the application to finish and return status.
547 * when UMH_NO_WAIT don't wait at all, but you get no useful error back
552 * asynchronously if wait is not set, and runs as a child of system workqueues.
555 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) call_usermodehelper_exec() argument
574 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; call_usermodehelper_exec()
575 sub_info->wait = wait; call_usermodehelper_exec()
578 if (wait == UMH_NO_WAIT) /* task has freed sub_info */ call_usermodehelper_exec()
581 if (wait & UMH_KILLABLE) { call_usermodehelper_exec()
608 * @wait: wait for the application to finish and return status.
609 * when UMH_NO_WAIT don't wait at all, but you get no useful error back
616 int call_usermodehelper(char *path, char **argv, char **envp, int wait) call_usermodehelper() argument
619 gfp_t gfp_mask = (wait == UMH_NO_WAIT) ? GFP_ATOMIC : GFP_KERNEL; call_usermodehelper()
626 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.4.14/arch/mips/include/asm/mach-bcm63xx/
H A Dbcm63xx_cs.h5 int bcm63xx_set_cs_timing(unsigned int cs, unsigned int wait,
/linux-4.4.14/arch/m68k/include/asm/
H A Datari_joystick.h19 wait_queue_head_t wait; member in struct:joystick_status
/linux-4.4.14/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.4.14/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()
71 bb.wait = &wait; blkdev_issue_discard()
125 wait_for_completion_io(&wait); blkdev_issue_discard()
148 DECLARE_COMPLETION_ONSTACK(wait); blkdev_issue_write_same()
163 bb.wait = &wait; blkdev_issue_write_same()
196 wait_for_completion_io(&wait); blkdev_issue_write_same()
222 DECLARE_COMPLETION_ONSTACK(wait); __blkdev_issue_zeroout()
226 bb.wait = &wait; __blkdev_issue_zeroout()
257 wait_for_completion_io(&wait); __blkdev_issue_zeroout()
H A Dblk-exec.c46 * for execution. Don't wait for completion.
97 * for execution and wait for completion.
102 DECLARE_COMPLETION_ONSTACK(wait); blk_execute_rq()
113 rq->end_io_data = &wait; blk_execute_rq()
119 while (!wait_for_completion_io_timeout(&wait, hang_check * (HZ/2))); blk_execute_rq()
121 wait_for_completion_io(&wait); blk_execute_rq()
/linux-4.4.14/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.4.14/drivers/gpu/drm/msm/mdp/
H A Dmdp_kms.c92 struct mdp_irq_wait *wait = wait_irq() local
94 wait->count--; wait_irq()
100 struct mdp_irq_wait wait = { mdp_irq_wait() local
107 mdp_irq_register(mdp_kms, &wait.irq); mdp_irq_wait()
108 wait_event_timeout(wait_event, (wait.count <= 0), mdp_irq_wait()
110 mdp_irq_unregister(mdp_kms, &wait.irq); mdp_irq_wait()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/net/wireless/iwlwifi/
H A DMakefile6 iwlwifi-objs += iwl-notif-wait.o
H A Diwl-notif-wait.h66 #include <linux/wait.h>
79 * struct iwl_notification_wait - notification wait entry
82 * returns true, the wait is over, if it returns false then
88 * @aborted: wait was aborted
90 * This structure is not used directly, to wait for a
94 * to notify the driver, and to wait for that then
/linux-4.4.14/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.4.14/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.4.14/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.4.14/include/uapi/linux/
H A Dwait.h11 #define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads in this group */
H A Dcoda_psdev.h19 wait_queue_head_t uc_sleep; /* process' wait queue */
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.4.14/include/linux/platform_data/
H A Dusb-ohci-pxa27x.h23 * HCD must wait for this duration before
/linux-4.4.14/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.4.14/arch/mips/bcm63xx/
H A Dearly_printk.c16 /* wait for any previous char to be transmitted */ wait_xfered()
/linux-4.4.14/arch/mips/loongson64/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.4.14/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()
139 * wait instruction, and thus that it is safe for us to use check_wait()
194 * Incoming Fast Debug Channel (FDC) data during a wait check_wait()
195 * instruction causes the wait never to resume, even if an check_wait()
196 * 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()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/clk/at91/
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()
222 wake_up(&osc->wait); clk_main_rc_osc_irq_handler()
243 wait_event(osc->wait, clk_main_rc_osc_prepare()
326 init_waitqueue_head(&osc->wait); at91_clk_register_main_rc_osc()
485 wake_up(&clkmain->wait); clk_sam9x5_main_irq_handler()
498 wait_event(clkmain->wait, clk_sam9x5_main_prepare()
538 wait_event(clkmain->wait, clk_sam9x5_main_set_parent()
593 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()
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()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/dma-buf/
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
416 * @fences: [in] array of fences to wait on
417 * @count: [in] number of fences to wait on
418 * @intr: [in] if true, do an interruptible wait
421 * Returns -EINVAL on custom fence wait implementation, -ERESTARTSYS if
422 * interrupted, 0 if the wait timed out, or the remaining timeout in jiffies
457 if (fence->ops->wait != fence_default_wait) { fence_wait_any_timeout()
519 BUG_ON(!ops || !ops->wait || !ops->enable_signaling || fence_init()
H A Dseqno-fence.c68 return f->ops->wait(fence, intr, timeout); seqno_wait()
76 .wait = seqno_wait,
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/tools/testing/selftests/powerpc/
H A Dharness.c12 #include <sys/wait.h>
50 wait: run_test()
67 goto wait; run_test()
/linux-4.4.14/drivers/video/fbdev/
H A Dvt8500lcdfb.h22 wait_queue_head_t wait; member in struct:vt8500lcd_info
/linux-4.4.14/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.4.14/drivers/input/serio/
H A Dlibps2.c45 wait_event_timeout(ps2dev->wait, ps2_sendbyte()
94 wait_event_timeout(ps2dev->wait, ps2_drain()
232 timeout = wait_event_timeout(ps2dev->wait, __ps2_command()
238 wait_event_timeout(ps2dev->wait, __ps2_command()
281 init_waitqueue_head(&ps2dev->wait); ps2_init()
334 wake_up(&ps2dev->wait); ps2_handle_ack()
357 wake_up(&ps2dev->wait); ps2_handle_response()
362 wake_up(&ps2dev->wait); ps2_handle_response()
375 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.4.14/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.4.14/arch/x86/include/asm/
H A Dmwait.h45 * MWAITX allows for a timer expiration to get the core out a wait state in
52 * MWAITX EBX[31:0]: max wait time expressed in SW P0 clocks. The software P0
63 * EBX[31:0] unused | max wait time (P0 clocks)
89 * We execute MONITOR against need_resched and enter optimized wait state
/linux-4.4.14/arch/x86/kernel/
H A Dparavirt-spinlocks.c31 .wait = paravirt_nop,
/linux-4.4.14/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.4.14/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()
120 /* Put_super will send a SIGKILL and then wait on the sem. jffs2_garbage_collect_thread()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Doutpdp.h34 wait_queue_head_t wait; member in struct:nvkm_output_dp::__anon4462
46 int nvkm_output_dp_train(struct nvkm_output *, u32 rate, bool wait);
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dbase.c43 /* wait for a free slot in the fifo */ nvkm_pmu_send()
79 /* wait for reply, if requested */ nvkm_pmu_send()
81 wait_event(pmu->recv.wait, (pmu->recv.process == 0)); nvkm_pmu_send()
127 wake_up(&pmu->recv.wait); nvkm_pmu_recv()
200 /* prevent previous ucode from running, wait for idle, reset */ nvkm_pmu_init()
232 /* wait for valid host->pmu ring configuration */ nvkm_pmu_init()
241 /* wait for valid pmu->host ring configuration */ nvkm_pmu_init()
278 init_waitqueue_head(&pmu->recv.wait); nvkm_pmu_new_()
/linux-4.4.14/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()
144 u8 wait = 10; xgene_enet_ecc_init() local
150 } while ((data != 0xffffffff) && wait--); xgene_enet_ecc_init()
/linux-4.4.14/kernel/rcu/
H A Dsync.c35 void (*wait)(void); member in struct:__anon14814
43 .wait = rcu_barrier,
49 .wait = rcu_barrier_sched,
55 .wait = rcu_barrier_bh,
95 * When called in isolation, rcu_sync_enter() must wait for a grace
97 * optimize away the grace-period wait via a state machine implemented
137 * and rcu_sync_exit() pairs need not wait for a grace period.
220 gp_ops[rsp->gp_type].wait(); rcu_sync_dtor()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/tools/testing/selftests/futex/functional/
H A Dfutex_wait_timeout.c11 * Block on a futex and wait for timeout.
69 printf("%s: Block on a futex and wait for timeout\n", main()
/linux-4.4.14/drivers/iio/
H A Dindustrialio-event.c22 #include <linux/wait.h>
30 * @wait: wait queue to allow blocking reads of events
38 wait_queue_head_t wait; member in struct:iio_event_interface
70 wake_up_poll(&ev_int->wait, POLLIN); iio_push_event()
80 * @wait: Poll table pointer to add the wait queue on
86 struct poll_table_struct *wait) iio_event_poll()
95 poll_wait(filep, &ev_int->wait, wait); iio_event_poll()
124 ret = wait_event_interruptible(ev_int->wait, iio_event_chrdev_read()
145 * sleep and wait for more data to arrive. iio_event_chrdev_read()
447 init_waitqueue_head(&ev_int->wait); iio_setup_ev_int()
526 wake_up(&indio_dev->event_interface->wait); iio_device_wakeup_eventset()
85 iio_event_poll(struct file *filep, struct poll_table_struct *wait) iio_event_poll() argument
/linux-4.4.14/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.4.14/kernel/locking/
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()
134 * unlock()/unqueue() wait for a next pointer since @lock points to us osq_lock()
163 * Similar to unlock(), wait for @node->next or move @lock from @node osq_lock()
176 * it will wait in Step-A. osq_lock()
H A Dqrwlock.c51 * increment the reader count & wait until the writer releases the lock.
87 * Put the reader into the wait queue queued_read_lock_slowpath()
114 /* Put the writer into the wait queue */ queued_write_lock_slowpath()
124 * or wait for a previous writer to go away. queued_write_lock_slowpath()
/linux-4.4.14/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.4.14/sound/firewire/digi00x/
H A Ddigi00x-hwdep.c24 DEFINE_WAIT(wait); hwdep_read()
30 prepare_to_wait(&dg00x->hwdep_wait, &wait, TASK_INTERRUPTIBLE); hwdep_read()
33 finish_wait(&dg00x->hwdep_wait, &wait); hwdep_read()
64 poll_table *wait) hwdep_poll()
69 poll_wait(file, &dg00x->hwdep_wait, wait); hwdep_poll()
63 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) hwdep_poll() argument
/linux-4.4.14/sound/firewire/tascam/
H A Dtascam-hwdep.c42 DEFINE_WAIT(wait); hwdep_read()
48 prepare_to_wait(&tscm->hwdep_wait, &wait, TASK_INTERRUPTIBLE); hwdep_read()
51 finish_wait(&tscm->hwdep_wait, &wait); hwdep_read()
65 poll_table *wait) hwdep_poll()
70 poll_wait(file, &tscm->hwdep_wait, wait); hwdep_poll()
64 hwdep_poll(struct snd_hwdep *hwdep, struct file *file, poll_table *wait) hwdep_poll() argument
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/net/wireless/realtek/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.4.14/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()
236 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.4.14/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
314 /* lock wait may have timed out */ down_write_failed()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/staging/lustre/lnet/lnet/
H A Dlib-eq.c326 int wait; variable
331 return -1; /* don't want to wait and no new event */
346 if (tms < 0) /* no more wait but may have new event */
350 wait = tms != 0; /* might need to call here again */
356 return wait;
371 * \param timeout_ms Time in milliseconds to wait for an event to occur on
389 int wait = 1; LNetEQPoll() local
418 if (wait == 0) LNetEQPoll()
424 * 1 : sleep inside and wait until new event LNetEQPoll()
425 * 0 : don't want to wait anymore, but might have new event LNetEQPoll()
428 wait = lnet_eq_wait_locked(&timeout_ms); LNetEQPoll()
429 if (wait < 0) /* no new event */ LNetEQPoll()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/net/vmw_vsock/
H A Dvmci_transport.h80 struct vmci_transport_waiting_info wait; member in union:vmci_transport_packet::__anon15110
140 struct vmci_transport_waiting_info *wait);
142 struct vmci_transport_waiting_info *wait);
/linux-4.4.14/drivers/soc/tegra/fuse/
H A Dfuse-tegra20.c49 complete(&fuse->apbdma.wait); apb_dma_complete()
78 reinit_completion(&fuse->apbdma.wait); tegra20_fuse_read()
84 time_left = wait_for_completion_timeout(&fuse->apbdma.wait, tegra20_fuse_read()
123 init_completion(&fuse->apbdma.wait); tegra20_fuse_probe()
/linux-4.4.14/drivers/misc/mic/host/
H A Dmic_fops.h30 unsigned int mic_poll(struct file *f, poll_table *wait);
/linux-4.4.14/drivers/media/tuners/
H A Dqm1d1c0042.h29 u32 lpf_wait; /* wait in tuning with LPF enabled. [ms] */
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dauxg94.c48 /* wait up to 1ms for any previous transaction to be done... */ g94_i2c_aux_init()
59 /* set some magic, and wait up to 1ms for it to appear */ g94_i2c_aux_init()
66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); g94_i2c_aux_init()
121 /* transaction request, wait up to 1ms for it to complete */ g94_i2c_aux_xfer()
H A Dauxgm204.c48 /* wait up to 1ms for any previous transaction to be done... */ gm204_i2c_aux_init()
59 /* set some magic, and wait up to 1ms for it to appear */ gm204_i2c_aux_init()
66 AUX_ERR(&aux->base, "magic wait %08x", ctrl); gm204_i2c_aux_init()
121 /* transaction request, wait up to 1ms for it to complete */ gm204_i2c_aux_xfer()
/linux-4.4.14/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.4.14/drivers/nfc/
H A Dmei_phy.h19 * @send_wq: send completion wait queue
/linux-4.4.14/drivers/net/ethernet/freescale/fs_enet/
H A Dfec.h41 * Delay to wait for FEC reset command to complete (in us)
/linux-4.4.14/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.4.14/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
/linux-4.4.14/arch/alpha/include/asm/
H A Dsmp.h53 #define smp_call_function_on_cpu(func,info,wait,cpu) ({ 0; })
/linux-4.4.14/fs/gfs2/
H A Drecovery.h32 extern int gfs2_recover_journal(struct gfs2_jdesc *gfs2_jd, bool wait);
/linux-4.4.14/mm/
H A Dfailslab.c44 if (!debugfs_create_bool("ignore-gfp-wait", mode, dir, failslab_debugfs_init()
/linux-4.4.14/net/dccp/
H A Dprobe.c50 wait_queue_head_t wait; member in struct:__anon14937
73 wake_up(&dccpw.wait); printl()
134 error = wait_event_interruptible(dccpw.wait, dccpprobe_read()
159 init_waitqueue_head(&dccpw.wait); dccpprobe_init()
/linux-4.4.14/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.4.14/arch/mips/include/asm/mach-paravirt/
H A Dkernel-entry-init.h34 wait
/linux-4.4.14/arch/mips/jz4740/
H A Dpm.c30 "wait\n\t" jz4740_pm_enter()
/linux-4.4.14/arch/metag/tbx/
H A Dtbilogf.S32 * Perform wait for continue under control of the debugger
/linux-4.4.14/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.4.14/arch/mips/pnx833x/common/
H A Dreset.c37 __asm__ __volatile__ ("wait"); pnx833x_machine_halt()
/linux-4.4.14/arch/m68k/coldfire/
H A Dreset.c32 /* wait for watchdog to timeout */; mcf_cpu_reset()
/linux-4.4.14/arch/arm/mach-sa1100/include/mach/
H A Duncompress.h36 /* wait for space in the UART's transmitter */ putc()
/linux-4.4.14/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.4.14/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.
372 * asynchronously out of a new closure - @parent will then wait for @cl to
/linux-4.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/rcar-du/
H A Drcar_du_crtc.h18 #include <linux/wait.h>
34 * @flip_wait: wait queue used to signal page flip completion
/linux-4.4.14/drivers/gpu/drm/sti/
H A Dsti_hdmi.h44 * @wait_event: wait event
45 * @event_received: wait event status
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dclk.h84 wait_queue_head_t wait; member in struct:nvkm_clk
108 int nvkm_clk_astate(struct nvkm_clk *, int req, int rel, bool wait);

Completed in 6104 milliseconds

1234567891011>>