Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 25 of 1663) sorted by relevance

12345678910>>...67

/Linux-v4.19/drivers/infiniband/hw/hfi1/
Diowait.h107 struct iowait *wait,
112 void (*wakeup)(struct iowait *wait, int reason);
113 void (*sdma_drained)(struct iowait *wait);
142 struct iowait *wait, in iowait_init() argument
147 struct iowait *wait, in iowait_init()
151 void (*wakeup)(struct iowait *wait, int reason), in iowait_init() argument
152 void (*sdma_drained)(struct iowait *wait)) in iowait_init() argument
154 wait->count = 0; in iowait_init()
155 wait->lock = NULL; in iowait_init()
156 INIT_LIST_HEAD(&wait->list); in iowait_init()
[all …]
Dvnic_sdma.c201 ret = sdma_send_txreq(sde, &vnic_sdma->wait, &tx->txreq, in hfi1_vnic_send_dma()
209 iowait_starve_clear(vnic_sdma->pkts_sent, &vnic_sdma->wait); in hfi1_vnic_send_dma()
233 struct iowait *wait, in hfi1_vnic_sdma_sleep() argument
239 container_of(wait, struct hfi1_vnic_sdma, wait); in hfi1_vnic_sdma_sleep()
249 if (list_empty(&vnic_sdma->wait.list)) in hfi1_vnic_sdma_sleep()
250 iowait_queue(pkts_sent, wait, &sde->dmawait); in hfi1_vnic_sdma_sleep()
262 static void hfi1_vnic_sdma_wakeup(struct iowait *wait, int reason) in hfi1_vnic_sdma_wakeup() argument
265 container_of(wait, struct hfi1_vnic_sdma, wait); in hfi1_vnic_sdma_wakeup()
288 iowait_init(&vnic_sdma->wait, 0, NULL, hfi1_vnic_sdma_sleep, in hfi1_vnic_sdma_init()
301 &vnic_sdma->wait.tx_head); in hfi1_vnic_sdma_init()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_breadcrumbs.c38 struct intel_wait *wait; in __intel_breadcrumbs_wakeup() local
43 wait = b->irq_wait; in __intel_breadcrumbs_wakeup()
44 if (wait) { in __intel_breadcrumbs_wakeup()
55 bool was_asleep = task_asleep(wait->tsk); in __intel_breadcrumbs_wakeup()
58 if (wake_up_process(wait->tsk) && was_asleep) in __intel_breadcrumbs_wakeup()
237 struct intel_wait *wait, *n; in intel_engine_disarm_breadcrumbs() local
258 rbtree_postorder_for_each_entry_safe(wait, n, &b->waiters, node) { in intel_engine_disarm_breadcrumbs()
260 wait->seqno)); in intel_engine_disarm_breadcrumbs()
261 RB_CLEAR_NODE(&wait->node); in intel_engine_disarm_breadcrumbs()
262 wake_up_process(wait->tsk); in intel_engine_disarm_breadcrumbs()
[all …]
Di915_gem_clflush.c33 struct i915_sw_fence wait; member
57 i915_sw_fence_fini(&clflush->wait); in i915_clflush_release()
67 .wait = dma_fence_default_wait,
103 struct clflush *clflush = container_of(fence, typeof(*clflush), wait); in i915_clflush_notify()
160 i915_sw_fence_init(&clflush->wait, i915_clflush_notify); in i915_gem_clflush_object()
167 i915_sw_fence_await_reservation(&clflush->wait, in i915_gem_clflush_object()
176 i915_sw_fence_commit(&clflush->wait); in i915_gem_clflush_object()
Dintel_ringbuffer.h558 u32 wait[GEN6_NUM_SEMAPHORES]; member
958 static inline void intel_wait_init(struct intel_wait *wait) in intel_wait_init() argument
960 wait->tsk = current; in intel_wait_init()
961 wait->request = NULL; in intel_wait_init()
964 static inline void intel_wait_init_for_seqno(struct intel_wait *wait, u32 seqno) in intel_wait_init_for_seqno() argument
966 wait->tsk = current; in intel_wait_init_for_seqno()
967 wait->seqno = seqno; in intel_wait_init_for_seqno()
970 static inline bool intel_wait_has_seqno(const struct intel_wait *wait) in intel_wait_has_seqno() argument
972 return wait->seqno; in intel_wait_has_seqno()
976 intel_wait_update_seqno(struct intel_wait *wait, u32 seqno) in intel_wait_update_seqno() argument
[all …]
/Linux-v4.19/kernel/sched/
Dcompletion.c32 spin_lock_irqsave(&x->wait.lock, flags); in complete()
36 __wake_up_locked(&x->wait, TASK_NORMAL, 1); in complete()
37 spin_unlock_irqrestore(&x->wait.lock, flags); in complete()
61 spin_lock_irqsave(&x->wait.lock, flags); in complete_all()
63 __wake_up_locked(&x->wait, TASK_NORMAL, 0); in complete_all()
64 spin_unlock_irqrestore(&x->wait.lock, flags); in complete_all()
73 DECLARE_WAITQUEUE(wait, current); in do_wait_for_common()
75 __add_wait_queue_entry_tail_exclusive(&x->wait, &wait); in do_wait_for_common()
82 spin_unlock_irq(&x->wait.lock); in do_wait_for_common()
84 spin_lock_irq(&x->wait.lock); in do_wait_for_common()
[all …]
Dswait.c72 static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument
74 wait->task = current; in __prepare_to_swait()
75 if (list_empty(&wait->task_list)) in __prepare_to_swait()
76 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait()
79 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument
84 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
90 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument
101 list_del_init(&wait->task_list); in prepare_to_swait_event()
104 __prepare_to_swait(q, wait); in prepare_to_swait_event()
113 void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in __finish_swait() argument
[all …]
/Linux-v4.19/fs/
Dfs_pin.c16 spin_lock_irq(&pin->wait.lock); in pin_remove()
18 wake_up_locked(&pin->wait); in pin_remove()
19 spin_unlock_irq(&pin->wait.lock); in pin_remove()
38 wait_queue_entry_t wait; in pin_kill() local
44 init_wait(&wait); in pin_kill()
45 spin_lock_irq(&p->wait.lock); in pin_kill()
48 spin_unlock_irq(&p->wait.lock); in pin_kill()
54 spin_unlock_irq(&p->wait.lock); in pin_kill()
58 __add_wait_queue(&p->wait, &wait); in pin_kill()
61 spin_unlock_irq(&p->wait.lock); in pin_kill()
[all …]
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Dvnic_dev.c230 int wait) in _vnic_dev_cmd() argument
259 for (delay = 0; delay < wait; delay++) { in _vnic_dev_cmd()
298 int wait) in _vnic_dev_cmd2() argument
349 for (delay = 0; delay < wait; delay++) { in _vnic_dev_cmd2()
457 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_proxy() argument
469 err = vdev->devcmd_rtn(vdev, proxy_cmd, wait); in vnic_dev_cmd_proxy()
490 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_no_proxy() argument
497 err = vdev->devcmd_rtn(vdev, cmd, wait); in vnic_dev_cmd_no_proxy()
518 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument
525 a0, a1, wait); in vnic_dev_cmd()
[all …]
/Linux-v4.19/fs/f2fs/
Dgc.h72 unsigned int *wait) in increase_sleep_time() argument
77 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()
80 if ((long long)*wait + (long long)min_time > (long long)max_time) in increase_sleep_time()
81 *wait = max_time; in increase_sleep_time()
83 *wait += min_time; in increase_sleep_time()
87 unsigned int *wait) in decrease_sleep_time() argument
91 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()
92 *wait = gc_th->max_sleep_time; in decrease_sleep_time()
94 if ((long long)*wait - (long long)min_time < (long long)min_time) in decrease_sleep_time()
95 *wait = min_time; in decrease_sleep_time()
[all …]
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_irq.c31 struct omap_irq_wait *wait; in omap_irq_update() local
36 list_for_each_entry(wait, &priv->wait_list, node) in omap_irq_update()
37 irqmask |= wait->irqmask; in omap_irq_update()
44 static void omap_irq_wait_handler(struct omap_irq_wait *wait) in omap_irq_wait_handler() argument
46 wait->count--; in omap_irq_wait_handler()
47 wake_up(&wait->wq); in omap_irq_wait_handler()
54 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); in omap_irq_wait_init() local
57 init_waitqueue_head(&wait->wq); in omap_irq_wait_init()
58 wait->irqmask = irqmask; in omap_irq_wait_init()
59 wait->count = count; in omap_irq_wait_init()
[all …]
/Linux-v4.19/drivers/scsi/fnic/
Dvnic_dev.c233 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument
265 for (delay = 0; delay < wait; delay++) { in vnic_dev_cmd()
297 int wait = 1000; in vnic_dev_fw_info() local
310 err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); in vnic_dev_fw_info()
322 int wait = 1000; in vnic_dev_spec() local
328 err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in vnic_dev_spec()
354 int wait = 1000; in vnic_dev_stats_clear() local
355 return vnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); in vnic_dev_stats_clear()
361 int wait = 1000; in vnic_dev_stats_dump() local
374 return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); in vnic_dev_stats_dump()
[all …]
/Linux-v4.19/include/linux/
Dsmp.h33 int wait);
38 int on_each_cpu(smp_call_func_t func, void *info, int wait);
45 void *info, bool wait);
53 smp_call_func_t func, void *info, bool wait,
100 int smp_call_function(smp_call_func_t func, void *info, int wait);
102 smp_call_func_t func, void *info, bool wait);
105 smp_call_func_t func, void *info, int wait);
147 #define smp_call_function(func, info, wait) \ argument
152 #define smp_call_function_many(mask, func, info, wait) \ argument
158 void *info, int wait) in smp_call_function_any() argument
[all …]
/Linux-v4.19/net/core/
Dstream.c41 wake_up_interruptible_poll(&wq->wait, EPOLLOUT | in sk_stream_write_space()
58 DEFINE_WAIT_FUNC(wait, woken_wake_function); in sk_stream_wait_connect()
73 add_wait_queue(sk_sleep(sk), &wait); in sk_stream_wait_connect()
78 ~(TCPF_ESTABLISHED | TCPF_CLOSE_WAIT)), &wait); in sk_stream_wait_connect()
79 remove_wait_queue(sk_sleep(sk), &wait); in sk_stream_wait_connect()
99 DEFINE_WAIT_FUNC(wait, woken_wake_function); in sk_stream_wait_close()
101 add_wait_queue(sk_sleep(sk), &wait); in sk_stream_wait_close()
104 if (sk_wait_event(sk, &timeout, !sk_stream_closing(sk), &wait)) in sk_stream_wait_close()
108 remove_wait_queue(sk_sleep(sk), &wait); in sk_stream_wait_close()
124 DEFINE_WAIT_FUNC(wait, woken_wake_function); in sk_stream_wait_memory()
[all …]
/Linux-v4.19/drivers/scsi/snic/
Dvnic_dev.c69 int wait);
263 int wait) in _svnic_dev_cmd2() argument
330 for (delay = 0; delay < wait; delay++) { in _svnic_dev_cmd2()
449 u64 *a0, u64 *a1, int wait) in svnic_dev_cmd() argument
457 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); in svnic_dev_cmd()
469 int wait = VNIC_DVCMD_TMO; in svnic_dev_fw_info() local
482 err = svnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); in svnic_dev_fw_info()
494 int wait = VNIC_DVCMD_TMO; in svnic_dev_spec() local
500 err = svnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in svnic_dev_spec()
526 int wait = VNIC_DVCMD_TMO; in svnic_dev_stats_clear() local
[all …]
/Linux-v4.19/net/atm/
Dsvc.c48 DEFINE_WAIT(wait); in svc_disconnect()
56 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); in svc_disconnect()
61 finish_wait(sk_sleep(sk), &wait); in svc_disconnect()
98 DEFINE_WAIT(wait); in svc_bind()
132 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); in svc_bind()
137 finish_wait(sk_sleep(sk), &wait); in svc_bind()
154 DEFINE_WAIT(wait); in svc_connect()
214 prepare_to_wait(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); in svc_connect()
218 prepare_to_wait(sk_sleep(sk), &wait, in svc_connect()
237 prepare_to_wait(sk_sleep(sk), &wait, in svc_connect()
[all …]
/Linux-v4.19/kernel/
Dumh.c116 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async()
181 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work()
230 DEFINE_WAIT(wait); in usermodehelper_read_trylock()
235 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock()
253 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock()
260 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait()
267 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait()
280 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait()
526 int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) in call_usermodehelper_exec() argument
554 sub_info->complete = (wait == UMH_NO_WAIT) ? NULL : &done; in call_usermodehelper_exec()
[all …]
Dsmp.c269 int wait) in smp_call_function_single() argument
294 if (!wait) { in smp_call_function_single()
301 if (wait) in smp_call_function_single()
361 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument
383 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any()
404 smp_call_func_t func, void *info, bool wait) in smp_call_function_many() argument
434 smp_call_function_single(cpu, func, info, wait); in smp_call_function_many()
452 if (wait) in smp_call_function_many()
463 if (wait) { in smp_call_function_many()
489 int smp_call_function(smp_call_func_t func, void *info, int wait) in smp_call_function() argument
[all …]
Dkmod.c70 static int call_modprobe(char *module_name, int wait) in call_modprobe() argument
99 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
125 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument
137 WARN_ON_ONCE(wait && current_is_async()); in __request_module()
169 trace_module_request(module_name, wait, _RET_IP_); in __request_module()
171 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
/Linux-v4.19/fs/squashfs/
Ddecompressor_multi.c45 wait_queue_head_t wait; member
61 wake_up(&stream->wait); in put_decomp_stream()
78 init_waitqueue_head(&stream->wait); in squashfs_decompressor_create()
151 goto wait; in get_decomp_stream()
156 goto wait; in get_decomp_stream()
162 goto wait; in get_decomp_stream()
170 wait: in get_decomp_stream()
177 wait_event(stream->wait, in get_decomp_stream()
/Linux-v4.19/include/trace/events/
Dmodule.h109 TP_PROTO(char *name, bool wait, unsigned long ip),
111 TP_ARGS(name, wait, ip),
115 __field( bool, wait )
121 __entry->wait = wait;
126 __get_str(name), (int)__entry->wait, (void *)__entry->ip)
/Linux-v4.19/drivers/hid/
Dhid-roccat.c47 wait_queue_head_t wait; member
83 DECLARE_WAITQUEUE(wait, current); in roccat_read()
89 add_wait_queue(&device->wait, &wait); in roccat_read()
114 remove_wait_queue(&device->wait, &wait); in roccat_read()
140 static __poll_t roccat_poll(struct file *file, poll_table *wait) in roccat_poll() argument
143 poll_wait(file, &reader->device->wait, wait); in roccat_poll()
282 wake_up_interruptible(&device->wait); in roccat_report_event()
337 init_waitqueue_head(&device->wait); in roccat_connect()
372 wake_up_interruptible(&device->wait); in roccat_disconnect()
/Linux-v4.19/arch/x86/kernel/cpu/
Daperfmperf.c66 static bool aperfmperf_snapshot_cpu(int cpu, ktime_t now, bool wait) in aperfmperf_snapshot_cpu() argument
74 smp_call_function_single(cpu, aperfmperf_snapshot_khz, NULL, wait); in aperfmperf_snapshot_cpu()
95 bool wait = false; in arch_freq_prepare_all() local
106 wait = true; in arch_freq_prepare_all()
108 if (wait) in arch_freq_prepare_all()
/Linux-v4.19/drivers/gpu/drm/msm/disp/
Dmdp_kms.c92 struct mdp_irq_wait *wait = in wait_irq() local
94 wait->count--; in wait_irq()
100 struct mdp_irq_wait wait = { in mdp_irq_wait() local
107 mdp_irq_register(mdp_kms, &wait.irq); in mdp_irq_wait()
108 wait_event_timeout(wait_event, (wait.count <= 0), in mdp_irq_wait()
110 mdp_irq_unregister(mdp_kms, &wait.irq); in mdp_irq_wait()
/Linux-v4.19/security/integrity/ima/
Dima_crypto.c196 static inline int ahash_wait(int err, struct crypto_wait *wait) in ahash_wait() argument
199 err = crypto_wait_req(err, wait); in ahash_wait()
216 struct crypto_wait wait; in ima_calc_file_hash_atfm() local
225 crypto_init_wait(&wait); in ima_calc_file_hash_atfm()
228 crypto_req_done, &wait); in ima_calc_file_hash_atfm()
230 rc = ahash_wait(crypto_ahash_init(req), &wait); in ima_calc_file_hash_atfm()
271 rc = ahash_wait(ahash_rc, &wait); in ima_calc_file_hash_atfm()
287 rc = ahash_wait(ahash_rc, &wait); in ima_calc_file_hash_atfm()
301 rc = ahash_wait(ahash_rc, &wait); in ima_calc_file_hash_atfm()
310 rc = ahash_wait(crypto_ahash_final(req), &wait); in ima_calc_file_hash_atfm()
[all …]

12345678910>>...67