Home
last modified time | relevance | path

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

12345678910>>...66

/linux-6.3-rc2/drivers/infiniband/hw/hfi1/
A Diowait.h102 struct iowait_work *wait,
151 return !!queue_work_on(cpu, wq, &wait->wait[IOWAIT_IB_SE].iowork); in iowait_schedule()
163 return !!queue_work_on(cpu, wq, &wait->wait[IOWAIT_TID_SE].iowork); in iowait_tid_schedule()
176 wait_event(wait->wait_dma, !atomic_read(&wait->sdma_busy)); in iowait_sdma_drain()
214 if (!wait) in iowait_sdma_dec()
260 if (!wait) in iowait_pio_dec()
274 wake_up(&wait->wait_dma); in iowait_drain_wakeup()
275 wake_up(&wait->wait_pio); in iowait_drain_wakeup()
276 if (wait->sdma_drained) in iowait_drain_wakeup()
277 wait->sdma_drained(wait); in iowait_drain_wakeup()
[all …]
A Diowait.c15 set_bit(flag, &wait->flags); in iowait_set_flag()
26 clear_bit(flag, &wait->flags); in iowait_clear_flag()
55 wait->count = 0; in iowait_init()
61 wait->tx_limit = tx_limit; in iowait_init()
62 wait->sleep = sleep; in iowait_init()
63 wait->wakeup = wakeup; in iowait_init()
66 wait->flags = 0; in iowait_init()
68 wait->wait[i].iow = wait; in iowait_init()
69 INIT_LIST_HEAD(&wait->wait[i].tx_head); in iowait_init()
71 INIT_WORK(&wait->wait[i].iowork, func); in iowait_init()
[all …]
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));
A Dvnic_sdma.c154 ret = sdma_send_txreq(sde, iowait_get_ib_work(&vnic_sdma->wait), in hfi1_vnic_send_dma()
162 iowait_starve_clear(vnic_sdma->pkts_sent, &vnic_sdma->wait); in hfi1_vnic_send_dma()
186 struct iowait_work *wait, in hfi1_vnic_sdma_sleep() argument
192 container_of(wait->iow, struct hfi1_vnic_sdma, wait); in hfi1_vnic_sdma_sleep()
201 if (list_empty(&vnic_sdma->wait.list)) { in hfi1_vnic_sdma_sleep()
202 iowait_get_priority(wait->iow); in hfi1_vnic_sdma_sleep()
203 iowait_queue(pkts_sent, wait->iow, &sde->dmawait); in hfi1_vnic_sdma_sleep()
216 static void hfi1_vnic_sdma_wakeup(struct iowait *wait, int reason) in hfi1_vnic_sdma_wakeup() argument
219 container_of(wait, struct hfi1_vnic_sdma, wait); in hfi1_vnic_sdma_wakeup()
242 iowait_init(&vnic_sdma->wait, 0, NULL, NULL, in hfi1_vnic_sdma_init()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvif/
A Dtimer.c30 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()
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()
46 return wait->time1 - wait->time0; in nvif_timer_wait_test()
53 wait->device = device; in nvif_timer_wait_init()
54 wait->limit = nsec; in nvif_timer_wait_init()
[all …]
/linux-6.3-rc2/fs/
A 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()
32 wait_queue_entry_t wait; in pin_kill() local
38 init_wait(&wait); in pin_kill()
39 spin_lock_irq(&p->wait.lock); in pin_kill()
42 spin_unlock_irq(&p->wait.lock); in pin_kill()
48 spin_unlock_irq(&p->wait.lock); in pin_kill()
52 __add_wait_queue(&p->wait, &wait); in pin_kill()
55 spin_unlock_irq(&p->wait.lock); in pin_kill()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
A Dbase.c32 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()
43 wait->time1 = time; in nvkm_timer_wait_test()
44 wait->reads = 1; in nvkm_timer_wait_test()
47 if (wait->time1 - wait->time0 > wait->limit) in nvkm_timer_wait_test()
50 return wait->time1 - wait->time0; in nvkm_timer_wait_test()
57 wait->tmr = device->timer; in nvkm_timer_wait_init()
58 wait->limit = nsec; in nvkm_timer_wait_init()
[all …]
/linux-6.3-rc2/kernel/sched/
A Dcompletion.c32 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete()
36 swake_up_locked(&x->wait); in complete()
63 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_all()
65 swake_up_all_locked(&x->wait); in complete_all()
75 DECLARE_SWAITQUEUE(wait); in do_wait_for_common()
82 __prepare_to_swait(&x->wait, &wait); in do_wait_for_common()
84 raw_spin_unlock_irq(&x->wait.lock); in do_wait_for_common()
86 raw_spin_lock_irq(&x->wait.lock); in do_wait_for_common()
88 __finish_swait(&x->wait, &wait); in do_wait_for_common()
105 raw_spin_lock_irq(&x->wait.lock); in __wait_for_common()
[all …]
A Dswait.c86 wait->task = current; in __prepare_to_swait()
87 if (list_empty(&wait->task_list)) in __prepare_to_swait()
88 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait()
96 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
113 list_del_init(&wait->task_list); in prepare_to_swait_event()
116 __prepare_to_swait(q, wait); in prepare_to_swait_event()
128 if (!list_empty(&wait->task_list)) in __finish_swait()
129 list_del_init(&wait->task_list); in __finish_swait()
132 void finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in finish_swait() argument
138 if (!list_empty_careful(&wait->task_list)) { in finish_swait()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/cisco/enic/
A Dvnic_dev.c217 int wait) in _vnic_dev_cmd() argument
285 int wait) in _vnic_dev_cmd2() argument
525 int wait = 1000; in vnic_dev_capable() local
537 int wait = 1000; in vnic_dev_fw_info() local
568 int wait = 1000; in vnic_dev_spec() local
590 int wait = 1000; in vnic_dev_stats_dump() local
610 int wait = 1000; in vnic_dev_close() local
617 int wait = 1000; in vnic_dev_enable_wait() local
628 int wait = 1000; in vnic_dev_disable() local
635 int wait = 1000; in vnic_dev_open() local
[all …]
/linux-6.3-rc2/include/linux/
A Dsmp.h51 int wait);
54 void *info, bool wait, const struct cpumask *mask);
91 smp_call_func_t func, void *info, bool wait) in on_each_cpu_mask() argument
93 on_each_cpu_cond_mask(NULL, func, info, wait, mask); in on_each_cpu_mask()
103 smp_call_func_t func, void *info, bool wait) in on_each_cpu_cond() argument
151 smp_call_func_t func, void *info, bool wait);
154 smp_call_func_t func, void *info, int wait);
195 #define smp_call_function(func, info, wait) \ argument
200 #define smp_call_function_many(mask, func, info, wait) \ argument
206 void *info, int wait) in smp_call_function_any() argument
[all …]
/linux-6.3-rc2/drivers/gpu/drm/omapdrm/
A Domap_irq.c22 struct omap_irq_wait *wait; in omap_irq_update() local
28 irqmask |= wait->irqmask; in omap_irq_update()
37 wait->count--; in omap_irq_wait_handler()
38 wake_up(&wait->wq); in omap_irq_wait_handler()
45 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); in omap_irq_wait_init() local
49 wait->irqmask = irqmask; in omap_irq_wait_init()
50 wait->count = count; in omap_irq_wait_init()
57 return wait; in omap_irq_wait_init()
67 ret = wait_event_timeout(wait->wq, (wait->count <= 0), timeout); in omap_irq_wait()
70 list_del(&wait->node); in omap_irq_wait()
[all …]
/linux-6.3-rc2/drivers/scsi/fnic/
A Dvnic_dev.c62 int wait);
308 int wait) in vnic_dev_cmd2() argument
530 int wait = 1000; in vnic_dev_fw_info() local
555 int wait = 1000; in vnic_dev_spec() local
587 int wait = 1000; in vnic_dev_stats_clear() local
594 int wait = 1000; in vnic_dev_stats_dump() local
613 int wait = 1000; in vnic_dev_close() local
620 int wait = 1000; in vnic_dev_enable() local
627 int wait = 1000; in vnic_dev_disable() local
634 int wait = 1000; in vnic_dev_open() local
[all …]
/linux-6.3-rc2/fs/f2fs/
A Dgc.h134 unsigned int *wait) in increase_sleep_time() argument
139 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time()
142 if ((long long)*wait + (long long)min_time > (long long)max_time) in increase_sleep_time()
143 *wait = max_time; in increase_sleep_time()
145 *wait += min_time; in increase_sleep_time()
149 unsigned int *wait) in decrease_sleep_time() argument
153 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time()
154 *wait = gc_th->max_sleep_time; in decrease_sleep_time()
156 if ((long long)*wait - (long long)min_time < (long long)min_time) in decrease_sleep_time()
157 *wait = min_time; in decrease_sleep_time()
[all …]
/linux-6.3-rc2/net/core/
A 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()
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()
108 remove_wait_queue(sk_sleep(sk), &wait); in sk_stream_wait_close()
123 DEFINE_WAIT_FUNC(wait, woken_wake_function); in sk_stream_wait_memory()
128 add_wait_queue(sk_sleep(sk), &wait); in sk_stream_wait_memory()
148 !vm_wait), &wait); in sk_stream_wait_memory()
[all …]
/linux-6.3-rc2/kernel/
A Dumh.c119 if (!(sub_info->wait & UMH_WAIT_PROC)) in call_usermodehelper_exec_async()
163 if (sub_info->wait & UMH_WAIT_PROC) { in call_usermodehelper_exec_work()
212 DEFINE_WAIT(wait); in usermodehelper_read_trylock()
217 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_trylock()
235 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_trylock()
242 DEFINE_WAIT(wait); in usermodehelper_read_lock_wait()
262 finish_wait(&usermodehelper_disabled_waitq, &wait); in usermodehelper_read_lock_wait()
432 sub_info->wait = wait; in call_usermodehelper_exec()
438 if (wait & UMH_FREEZABLE) in call_usermodehelper_exec()
441 if (wait & UMH_KILLABLE) { in call_usermodehelper_exec()
[all …]
A Dkmod.c69 static int call_modprobe(char *module_name, int wait) in call_modprobe() argument
98 return call_usermodehelper_exec(info, wait | UMH_KILLABLE); in call_modprobe()
124 int __request_module(bool wait, const char *fmt, ...) in __request_module() argument
136 WARN_ON_ONCE(wait && current_is_async()); in __request_module()
168 trace_module_request(module_name, wait, _RET_IP_); in __request_module()
170 ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC); in __request_module()
/linux-6.3-rc2/drivers/scsi/snic/
A Dvnic_dev.c55 int wait);
248 int wait) in _svnic_dev_cmd2() argument
454 int wait = VNIC_DVCMD_TMO; in svnic_dev_fw_info() local
479 int wait = VNIC_DVCMD_TMO; in svnic_dev_spec() local
511 int wait = VNIC_DVCMD_TMO; in svnic_dev_stats_clear() local
519 int wait = VNIC_DVCMD_TMO; in svnic_dev_stats_dump() local
538 int wait = VNIC_DVCMD_TMO; in svnic_dev_close() local
546 int wait = VNIC_DVCMD_TMO; in svnic_dev_enable_wait() local
559 int wait = VNIC_DVCMD_TMO; in svnic_dev_disable() local
567 int wait = VNIC_DVCMD_TMO; in svnic_dev_open() local
[all …]
/linux-6.3-rc2/net/atm/
A Dsvc.c48 DEFINE_WAIT(wait); in svc_disconnect()
61 finish_wait(sk_sleep(sk), &wait); in svc_disconnect()
98 DEFINE_WAIT(wait); in svc_bind()
137 finish_wait(sk_sleep(sk), &wait); in svc_bind()
154 DEFINE_WAIT(wait); in svc_connect()
284 DEFINE_WAIT(wait); in svc_listen()
308 finish_wait(sk_sleep(sk), &wait); in svc_listen()
342 DEFINE_WAIT(wait); in svc_accept()
435 DEFINE_WAIT(wait); in svc_change_qos()
529 DEFINE_WAIT(wait); in svc_addparty()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/
A Ddrm_syncobj.c246 if (wait->fence) in drm_syncobj_fence_add_wait()
261 wait->fence = fence; in drm_syncobj_fence_add_wait()
269 if (!wait->node.next) in drm_syncobj_remove_wait()
427 memset(&wait, 0, sizeof(wait)); in drm_syncobj_find_fence()
428 wait.task = current; in drm_syncobj_find_fence()
429 wait.point = point; in drm_syncobj_find_fence()
434 if (wait.fence) { in drm_syncobj_find_fence()
452 *fence = wait.fence; in drm_syncobj_find_fence()
454 if (wait.node.next) in drm_syncobj_find_fence()
964 wait->fence = fence; in syncobj_wait_syncobj_func()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/core/
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-6.3-rc2/fs/verity/
A Dhash_algs.c166 DECLARE_CRYPTO_WAIT(wait); in fsverity_prepare_hash_state()
197 crypto_req_done, &wait); in fsverity_prepare_hash_state()
200 err = crypto_wait_req(crypto_ahash_init(req), &wait); in fsverity_prepare_hash_state()
204 err = crypto_wait_req(crypto_ahash_update(req), &wait); in fsverity_prepare_hash_state()
241 DECLARE_CRYPTO_WAIT(wait); in fsverity_hash_block()
248 crypto_req_done, &wait); in fsverity_hash_block()
263 err = crypto_wait_req(err, &wait); in fsverity_hash_block()
286 DECLARE_CRYPTO_WAIT(wait); in fsverity_hash_buffer()
295 crypto_req_done, &wait); in fsverity_hash_buffer()
298 err = crypto_wait_req(crypto_ahash_digest(req), &wait); in fsverity_hash_buffer()
/linux-6.3-rc2/fs/squashfs/
A Ddecompressor_multi.c42 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()
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-6.3-rc2/include/trace/events/
A 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-6.3-rc2/drivers/hid/
A Dhid-roccat.c44 wait_queue_head_t wait; member
80 DECLARE_WAITQUEUE(wait, current); in roccat_read()
86 add_wait_queue(&device->wait, &wait); in roccat_read()
111 remove_wait_queue(&device->wait, &wait); in roccat_read()
137 static __poll_t roccat_poll(struct file *file, poll_table *wait) in roccat_poll() argument
140 poll_wait(file, &reader->device->wait, wait); in roccat_poll()
283 wake_up_interruptible(&device->wait); in roccat_report_event()
338 init_waitqueue_head(&device->wait); in roccat_connect()
373 wake_up_interruptible(&device->wait); in roccat_disconnect()

Completed in 52 milliseconds

12345678910>>...66