Home
last modified time | relevance | path

Searched full:wait (Results 1 – 25 of 4365) sorted by relevance

12345678910>>...175

/linux/drivers/infiniband/hw/hfi1/
H A Diowait.c12 void iowait_set_flag(struct iowait *wait, u32 flag) in iowait_set_flag() argument
14 trace_hfi1_iowait_set(wait, flag); in iowait_set_flag()
15 set_bit(flag, &wait->flags); in iowait_set_flag()
18 bool iowait_flag_set(struct iowait *wait, u32 flag) in iowait_flag_set() argument
20 return test_bit(flag, &wait->flags); in iowait_flag_set()
23 inline void iowait_clear_flag(struct iowait *wait, u32 flag) in iowait_clear_flag() argument
25 trace_hfi1_iowait_clear(wait, flag); in iowait_clear_flag()
26 clear_bit(flag, &wait->flags); in iowait_clear_flag()
30 * iowait_init() - initialize wait structure
31 * @wait: wait struct to initialize
[all …]
H A Dtrace_iowait.h17 TP_PROTO(struct iowait *wait, u32 flag),
18 TP_ARGS(wait, flag),
26 __entry->addr = (unsigned long)wait;
27 __entry->flags = wait->flags;
29 __entry->qpn = iowait_to_qp(wait)->ibqp.qp_num;
41 TP_PROTO(struct iowait *wait, u32 flag),
42 TP_ARGS(wait, flag));
45 TP_PROTO(struct iowait *wait, u32 flag),
46 TP_ARGS(wait, flag));
/linux/drivers/gpu/drm/nouveau/nvif/
H A Dtimer.c26 nvif_timer_wait_test(struct nvif_timer_wait *wait) in nvif_timer_wait_test() argument
28 u64 time = nvif_device_time(wait->device); in nvif_timer_wait_test()
30 if (wait->reads == 0) { in nvif_timer_wait_test()
31 wait->time0 = time; in nvif_timer_wait_test()
32 wait->time1 = time; in nvif_timer_wait_test()
35 if (wait->time1 == time) { in nvif_timer_wait_test()
36 if (WARN_ON(wait->reads++ == 16)) in nvif_timer_wait_test()
39 wait->time1 = time; in nvif_timer_wait_test()
40 wait->reads = 1; in nvif_timer_wait_test()
43 if (wait->time1 - wait->time0 > wait->limit) in nvif_timer_wait_test()
[all …]
/linux/include/linux/
H A Dwait_bit.h6 * Linux wait-bit related types and methods:
8 #include <linux/wait.h>
55 * wait_on_bit - wait for a bit to be cleared
60 * Wait for the given bit in an unsigned long or bitmap (see DECLARE_BITMAP())
64 * The process will wait on a waitqueue selected by hash from a shared
84 * wait_on_bit_io - wait for a bit to be cleared
89 * Wait for the given bit in an unsigned long or bitmap (see DECLARE_BITMAP())
112 * wait_on_bit_timeout - wait for a bit to be cleared or a timeout to elapse
118 * Wait for the given bit in an unsigned long or bitmap (see
144 * wait_on_bit_action - wait for a bit to be cleared
[all …]
H A Dswait.h8 #include <linux/wait.h>
12 * Simple waitqueues are semantically very different to regular wait queues
13 * (wait.h). The most important difference is that the simple waitqueue allows
36 * For all the above, note that simple wait queues should _only_ be used under
38 * wait queues in most cases.
92 * returns true if the wait list is not empty
105 * @cond = true; prepare_to_swait_exclusive(&wq_head, &wait, state);
111 * finish_swait(&wq_head, &wait);
115 * observe an empty wait list while the waiter might not observe @cond.
138 * modifications to the wait queue (task_list). in swq_has_sleeper()
[all …]
H A Dumh.h14 #define UMH_NO_WAIT 0x00 /* don't wait at all */
15 #define UMH_WAIT_EXEC 0x01 /* wait for the exec, but not the process */
16 #define UMH_WAIT_PROC 0x02 /* wait for the process to complete */
17 #define UMH_KILLABLE 0x04 /* wait for EXEC/PROC killable */
18 #define UMH_FREEZABLE 0x08 /* wait for EXEC/PROC freezable */
26 int wait; member
34 call_usermodehelper(const char *path, char **argv, char **envp, int wait);
43 call_usermodehelper_exec(struct subprocess_info *info, int wait);
/linux/arch/mips/kernel/
H A Didle.c3 * MIPS idle loop and WAIT instruction support.
23 * Not all of the MIPS CPUs have the "wait" instruction available. Moreover,
24 * the implementation of the "wait" feature differs between CPU families. This
25 * points to the function that implements CPU specific wait.
26 * The wait instruction stops the pipeline and reduces the power consumption of
51 " wait \n" in r4k_wait_irqoff()
57 * have any pending stores when the WAIT instruction is executed.
69 " wait \n" in rm7k_wait_irqoff()
75 * Au1 'wait' is only useful when the 32kHz counter is used as timer,
90 " wait \n" in au1k_wait()
[all …]
/linux/fs/
H A Dfs_pin.c17 spin_lock_irq(&pin->wait.lock); in pin_remove()
19 wake_up_locked(&pin->wait); in pin_remove()
20 spin_unlock_irq(&pin->wait.lock); in pin_remove()
35 static int pin_kill_wake_function(struct wait_queue_entry *wait, in pin_kill()
38 int ret = default_wake_function(wait, mode, sync, key); in pin_kill()
40 list_del_init_careful(&wait->entry); in pin_kill()
46 wait_queue_entry_t wait; in pin_kill()
52 init_wait_func(&wait, pin_kill_wake_function); in pin_kill()
53 spin_lock_irq(&p->wait.lock); in pin_kill()
56 spin_unlock_irq(&p->wait in pin_kill()
33 wait_queue_entry_t wait; pin_kill() local
[all...]
/linux/kernel/sched/
H A Dswait.c3 * <linux/swait.h> (simple wait queues ) implementation:
85 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument
87 wait->task = current; in __prepare_to_swait()
88 if (list_empty(&wait->task_list)) in __prepare_to_swait()
89 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait()
92 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument
97 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
103 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument
114 list_del_init(&wait->task_list); in prepare_to_swait_event()
117 __prepare_to_swait(q, wait); in prepare_to_swait_event()
[all …]
H A Dcompletion.c4 * Generic wait-for-completion handler;
25 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_with_flags()
29 swake_up_locked(&x->wait, wake_flags); in complete_with_flags()
30 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_with_flags()
78 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_all()
80 swake_up_all_locked(&x->wait); in complete_all()
81 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_all()
90 DECLARE_SWAITQUEUE(wait); in do_wait_for_common()
97 __prepare_to_swait(&x->wait, &wait); in do_wait_for_common()
99 raw_spin_unlock_irq(&x->wait.lock); in do_wait_for_common()
[all …]
H A Dwait.c224 * Note: we use "set_current_state()" _after_ the wait-queue add,
226 * wake-function that tests for the wait-queue being active
314 * Note! These two wait functions are entered with the
315 * wait-queue lock held (and interrupts off in the _irq
317 * condition in the caller before they add the wait
320 int do_wait_intr(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr() argument
322 if (likely(list_empty(&wait->entry))) in do_wait_intr()
323 __add_wait_queue_entry_tail(wq, wait); in do_wait_intr()
337 int do_wait_intr_irq(wait_queue_head_t *wq, wait_queue_entry_t *wait) in do_wait_intr_irq() argument
339 if (likely(list_empty(&wait->entry))) in do_wait_intr_irq()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dbase.c27 nvkm_timer_wait_test(struct nvkm_timer_wait *wait) in nvkm_timer_wait_test() argument
29 struct nvkm_subdev *subdev = &wait->tmr->subdev; in nvkm_timer_wait_test()
30 u64 time = nvkm_timer_read(wait->tmr); in nvkm_timer_wait_test()
32 if (wait->reads == 0) { in nvkm_timer_wait_test()
33 wait->time0 = time; in nvkm_timer_wait_test()
34 wait->time1 = time; in nvkm_timer_wait_test()
37 if (wait->time1 == time) { in nvkm_timer_wait_test()
38 if (wait->reads++ == 16) { in nvkm_timer_wait_test()
43 wait->time1 = time; in nvkm_timer_wait_test()
44 wait->reads = 1; in nvkm_timer_wait_test()
[all …]
/linux/drivers/gpu/drm/omapdrm/
H A Domap_irq.c23 struct omap_irq_wait *wait; in omap_irq_update() local
28 list_for_each_entry(wait, &priv->wait_list, node) in omap_irq_update()
29 irqmask |= wait->irqmask; in omap_irq_update()
36 static void omap_irq_wait_handler(struct omap_irq_wait *wait) in omap_irq_wait_handler() argument
38 wait->count--; in omap_irq_wait_handler()
39 wake_up(&wait->wq); in omap_irq_wait_handler()
46 struct omap_irq_wait *wait = kzalloc_obj(*wait); in omap_irq_wait_init() local
49 init_waitqueue_head(&wait->wq); in omap_irq_wait_init()
50 wait->irqmask = irqmask; in omap_irq_wait_init()
51 wait->count = count; in omap_irq_wait_init()
[all …]
/linux/drivers/net/wireless/ath/ath12k/
H A Dpeer.c13 struct ath12k_peer_delete_wait *wait, in ath12k_peer_delete_wait_register() argument
16 wait->vdev_id = vdev_id; in ath12k_peer_delete_wait_register()
17 ether_addr_copy(wait->addr, addr); in ath12k_peer_delete_wait_register()
18 init_completion(&wait->done); in ath12k_peer_delete_wait_register()
21 list_add(&wait->list, &ar->peer_delete_waits); in ath12k_peer_delete_wait_register()
26 struct ath12k_peer_delete_wait *wait) in ath12k_peer_delete_wait_unregister() argument
29 list_del(&wait->list); in ath12k_peer_delete_wait_unregister()
35 struct ath12k_peer_delete_wait *wait; in ath12k_peer_delete_resp_signal() local
39 list_for_each_entry(wait, &ar->peer_delete_waits, list) { in ath12k_peer_delete_resp_signal()
40 if (wait->vdev_id == vdev_id && in ath12k_peer_delete_resp_signal()
[all …]
/linux/Documentation/locking/
H A Dww-mutex-design.rst2 Wound/Wait Deadlock-Proof Mutex Design
5 Please read mutex-design.rst first, as it applies to wait/wound mutexes too.
14 a handful of situations where the driver needs to wait for buffers to
37 and the deadlock handling approach is called Wait-Die. The name is based on
41 and dies. Hence Wait-Die.
42 There is also another algorithm called Wound-Wait:
46 transaction. Hence Wound-Wait.
48 However, the Wound-Wait algorithm is typically stated to generate fewer backoffs
49 compared to Wait-Die, but is, on the other hand, associated with more work than
50 Wait-Die when recovering from a backoff. Wound-Wait is also a preemptive
[all …]
/linux/fs/f2fs/
H A Dgc.h16 #define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */
121 unsigned int *wait) in increase_sleep_time() argument
126 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()
129 if ((long long)*wait + (long long)min_time > (long long)max_time) in increase_sleep_time()
130 *wait = max_time; in increase_sleep_time()
132 *wait += min_time; in increase_sleep_time()
136 unsigned int *wait) in decrease_sleep_time() argument
140 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()
141 *wait = gc_th->max_sleep_time; in decrease_sleep_time()
143 if ((long long)*wait - (long long)min_time < (long long)min_time) in decrease_sleep_time()
[all …]
/linux/fs/autofs/
H A Dwaitq.c27 sbi->queues = NULL; /* Erase all wait queues */ in autofs_catatonic_mode_locked()
105 pr_debug("wait id = 0x%08lx, name = %.*s, type=%d\n", in autofs_notify_daemon()
212 * found or NULL to idicate a new wait needs to be created.
215 static int validate_request(struct autofs_wait_queue **wait, in validate_request() argument
227 /* Wait in progress, continue; */ in validate_request()
230 *wait = wq; in validate_request()
234 *wait = NULL; in validate_request()
242 * If we've been asked to wait on an existing expire (NFY_NONE) in validate_request()
243 * but there is no wait in the queue ... in validate_request()
248 * wait or it finished while we waited on the mutex. in validate_request()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_syncobj.c3 * Parts ported from amdgpu (fence wait code).
44 * - Wait for a syncobj's fence to appear and be signaled
51 * - Wait for a given point to appear and/or be signaled
107 * Host-side wait on syncobjs
111 * host-side wait on all of the syncobj fences simultaneously.
112 * If &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL is set, the wait ioctl will wait on
119 * the host-side wait will first wait for the syncobj to receive a non-NULL
120 * fence and then wait o
267 drm_syncobj_fence_add_wait(struct drm_syncobj * syncobj,struct syncobj_wait_entry * wait) drm_syncobj_fence_add_wait() argument
292 drm_syncobj_remove_wait(struct drm_syncobj * syncobj,struct syncobj_wait_entry * wait) drm_syncobj_remove_wait() argument
441 struct syncobj_wait_entry wait; drm_syncobj_find_fence() local
1007 struct syncobj_wait_entry *wait = syncobj_wait_fence_func() local
1014 syncobj_wait_syncobj_func(struct drm_syncobj * syncobj,struct syncobj_wait_entry * wait) syncobj_wait_syncobj_func() argument
1231 drm_syncobj_array_wait(struct drm_device * dev,struct drm_file * file_private,struct drm_syncobj_wait * wait,struct drm_syncobj_timeline_wait * timeline_wait,struct drm_syncobj ** syncobjs,bool timeline,ktime_t * deadline) drm_syncobj_array_wait() argument
[all...]
/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Devent.c98 nvkm_event_ntfy_block_(struct nvkm_event_ntfy *ntfy, bool wait) in nvkm_event_ntfy_block_() argument
102 nvkm_trace(subdev, "event: ntfy block %08x on %d wait:%d\n", ntfy->bits, ntfy->id, wait); in nvkm_event_ntfy_block_()
106 if (wait) in nvkm_event_ntfy_block_()
115 nvkm_event_ntfy_block_(ntfy, ntfy->wait); in nvkm_event_ntfy_block()
125 if (ntfy->wait) in nvkm_event_ntfy_allow()
146 nvkm_event_ntfy_add(struct nvkm_event *event, int id, u32 bits, bool wait, nvkm_event_func func, in nvkm_event_ntfy_add() argument
149 nvkm_trace(event->subdev, "event: ntfy add %08x on %d wait:%d\n", id, bits, wait); in nvkm_event_ntfy_add()
154 ntfy->wait = wait; in nvkm_event_ntfy_add()
159 if (!ntfy->wait) in nvkm_event_ntfy_add()
/linux/fs/squashfs/
H A Ddecompressor_multi.c11 #include <linux/wait.h>
42 wait_queue_head_t wait; member
58 wake_up(&stream->wait); in put_decomp_stream()
75 init_waitqueue_head(&stream->wait); in squashfs_decompressor_create()
145 * let's wait for releasing decomp from other users. in get_decomp_stream()
148 goto wait; in get_decomp_stream()
153 goto wait; in get_decomp_stream()
159 goto wait; in get_decomp_stream()
167 wait: in get_decomp_stream()
174 wait_event(stream->wait, in get_decomp_stream()
/linux/fs/btrfs/
H A Dlocking.h10 #include <linux/wait.h>
94 * Lockdep annotation for wait events.
97 * @lock: The lockdep map corresponding to a wait event
99 * This macro is used to annotate a wait event. In this case a thread acquires
101 * the threads that hold the lock as readers signal the condition for the wait
111 * Protection for the resource/condition of a wait event.
114 * @lock: The lockdep map corresponding to a wait event
116 * Many threads can modify the condition for the wait event at the same time
117 * and signal the threads that block on the wait event. The threads that modify
125 * Used after signaling the condition for a wait event to release the lockdep
[all …]
/linux/kernel/
H A Dsmp.c242 u64 ts_start; /* When the wait began. */
615 /* Do we wait until *after* callback? */ in __flush_smp_call_function_queue()
711 bool wait) in __smp_call_function_single()
746 * When @wait we can deadlock when we interrupt between llist_add() and in __smp_call_function_single()
747 * arch_send_call_function_ipi*(); when !@wait we can deadlock due to in __smp_call_function_single()
754 if (!wait) { in __smp_call_function_single()
769 * @csd is stack-allocated when @wait is true. No concurrent access
775 if (wait)
786 * @wait: If true, wait unti
686 __smp_call_function_single(int cpu,smp_call_func_t func,void * info,const struct cpumask * mask,bool wait) __smp_call_function_single() argument
765 smp_call_function_single(int cpu,smp_call_func_t func,void * info,bool wait) smp_call_function_single() argument
831 smp_call_function_any(const struct cpumask * mask,smp_call_func_t func,void * info,int wait) smp_call_function_any() argument
896 bool wait = scf_flags & SCF_WAIT; smp_call_function_many_cond() local
1023 smp_call_function_many(const struct cpumask * mask,smp_call_func_t func,void * info,bool wait) smp_call_function_many() argument
1042 smp_call_function(smp_call_func_t func,void * info,int wait) smp_call_function() argument
1163 on_each_cpu_cond_mask(smp_cond_func_t cond_func,smp_call_func_t func,void * info,bool wait,const struct cpumask * mask) on_each_cpu_cond_mask() argument
[all...]
/linux/fs/ceph/
H A Dlocks.c75 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message() argument
96 wait = 0; in ceph_lock_message()
114 "start: %llu, length: %llu, wait: %d, type: %d\n", in ceph_lock_message()
117 fl->fl_start, length, wait, fl->c.flc_type); in ceph_lock_message()
125 req->r_args.filelock_change.wait = wait; in ceph_lock_message()
129 err = ceph_mdsc_wait_request(mdsc, req, wait ? in ceph_lock_message()
151 "length: %llu, wait: %d, type: %d, err code %d\n", in ceph_lock_message()
153 fl->fl_start, length, wait, fl->c.flc_type, err); in ceph_lock_message()
256 u8 wait = 0; in ceph_lock() local
267 /* set wait bit as appropriate, then make command as Ceph expects it*/ in ceph_lock()
[all …]
/linux/kernel/module/
H A Dkmod.c73 static int call_modprobe(char *orig_module_name, int wait) in call_modprobe()
104 ret = call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
119 * @wait: wait (or not) for the operation to complete
133 int __request_module(bool wait, const char *fmt, ...) in __request_module()
145 WARN_ON_ONCE(wait && current_is_async()); in __request_module()
167 trace_module_request(module_name, wait, _RET_IP_); in __request_module()
169 if (kmod_dup_request_exists_wait(module_name, wait, &dup_ret)) { in __request_module()
174 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
72 call_modprobe(char * orig_module_name,int wait) call_modprobe() argument
132 __request_module(bool wait,const char * fmt,...) __request_module() argument
/linux/Documentation/devicetree/bindings/memory-controllers/
H A Dti,gpmc-child.yaml122 gpmc,wait-monitoring-ns:
123 description: Start of wait monitoring with regard to valid data
228 gpmc,wait-pin:
230 Wait-pin used by client. Must be less than "gpmc,num-waitpins".
233 ti,wait-pin-polarity:
235 Set the desired polarity for the selected wait pin.
240 gpmc,wait-on-read:
241 description: Enables wait monitoring on reads.
244 gpmc,wait-on-write:
245 description: Enables wait monitoring on writes.

12345678910>>...175