/linux-master/include/linux/ |
H A D | wait_api.h | 1 #include <linux/wait.h>
|
H A D | fs_pin.h | 2 #include <linux/wait.h> 5 wait_queue_head_t wait; member in struct:fs_pin 16 init_waitqueue_head(&p->wait);
|
H A D | smp.h | 51 int wait); 54 void *info, bool wait, const struct cpumask *mask); 69 static inline void on_each_cpu(smp_call_func_t func, void *info, int wait) argument 71 on_each_cpu_cond_mask(NULL, func, info, wait, cpu_online_mask); 80 * @wait: If true, wait (atomically) until function has completed 83 * If @wait is true, then returns once @func has returned. 91 smp_call_func_t func, void *info, bool wait) 93 on_each_cpu_cond_mask(NULL, func, info, wait, mask); 103 smp_call_func_t func, void *info, bool wait) 90 on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func, void *info, bool wait) argument 102 on_each_cpu_cond(smp_cond_func_t cond_func, smp_call_func_t func, void *info, bool wait) argument 211 smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, void *info, int wait) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvif/ |
H A D | timer.c | 26 nvif_timer_wait_test(struct nvif_timer_wait *wait) argument 28 u64 time = nvif_device_time(wait->device); 30 if (wait->reads == 0) { 31 wait->time0 = time; 32 wait->time1 = time; 35 if (wait->time1 == time) { 36 if (WARN_ON(wait->reads++ == 16)) 39 wait->time1 = time; 40 wait->reads = 1; 43 if (wait 50 nvif_timer_wait_init(struct nvif_device *device, u64 nsec, struct nvif_timer_wait *wait) argument [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_display_rps.c | 15 struct wait_queue_entry wait; member in struct:wait_rps_boost 24 struct wait_rps_boost *wait = container_of(_wait, typeof(*wait), wait); local 25 struct i915_request *rq = wait->request; 36 drm_crtc_vblank_put(wait->crtc); 38 list_del(&wait->wait.entry); 39 kfree(wait); 46 struct wait_rps_boost *wait; local [all...] |
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | iowait.c | 12 void iowait_set_flag(struct iowait *wait, u32 flag) argument 14 trace_hfi1_iowait_set(wait, flag); 15 set_bit(flag, &wait->flags); 18 bool iowait_flag_set(struct iowait *wait, u32 flag) argument 20 return test_bit(flag, &wait->flags); 23 inline void iowait_clear_flag(struct iowait *wait, u32 flag) argument 25 trace_hfi1_iowait_clear(wait, flag); 26 clear_bit(flag, &wait->flags); 30 * iowait_init() - initialize wait structure 31 * @wait 41 iowait_init(struct iowait *wait, u32 tx_limit, void (*func)(struct work_struct *work), void (*tidfunc)(struct work_struct *work), int (*sleep)(struct sdma_engine *sde, struct iowait_work *wait, struct sdma_txreq *tx, uint seq, bool pkts_sent), void (*wakeup)(struct iowait *wait, int reason), void (*sdma_drained)(struct iowait *wait), void (*init_priority)(struct iowait *wait)) argument [all...] |
H A D | iowait.h | 11 #include <linux/wait.h> 57 * @list: used to add/insert into QP/PQ wait lists 63 * @lock: lock protected head of wait queue 65 * @wait_dma: wait for sdma_busy == 0 66 * @wait_pio: wait for pio_busy == 0 71 * @flags: wait flags (one per QP) 72 * @wait: SE array for multiple legs 102 struct iowait_work *wait, 107 void (*wakeup)(struct iowait *wait, int reason); 108 void (*sdma_drained)(struct iowait *wait); 121 struct iowait_work wait[IOWAIT_SES]; member in struct:iowait 148 iowait_schedule(struct iowait *wait, struct workqueue_struct *wq, int cpu) argument 160 iowait_tid_schedule(struct iowait *wait, struct workqueue_struct *wq, int cpu) argument 174 iowait_sdma_drain(struct iowait *wait) argument 185 iowait_sdma_pending(struct iowait *wait) argument 194 iowait_sdma_inc(struct iowait *wait) argument 203 iowait_sdma_add(struct iowait *wait, int count) argument 212 iowait_sdma_dec(struct iowait *wait) argument 227 iowait_pio_drain(struct iowait *wait) argument 240 iowait_pio_pending(struct iowait *wait) argument 249 iowait_pio_inc(struct iowait *wait) argument 258 iowait_pio_dec(struct iowait *wait) argument 272 iowait_drain_wakeup(struct iowait *wait) argument 285 iowait_get_txhead(struct iowait_work *wait) argument 407 iowait_packet_queued(struct iowait_work *wait) argument [all...] |
H A D | trace_iowait.h | 17 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-master/fs/bcachefs/ |
H A D | two_state_shared_lock.c | 7 __wait_event(lock->wait, bch2_two_state_trylock(lock, s));
|
H A D | two_state_shared_lock.h | 7 #include <linux/wait.h> 17 wait_queue_head_t wait; member in struct:__anon1657 23 init_waitqueue_head(&lock->wait); 33 wake_up_all(&lock->wait);
|
H A D | clock.c | 62 struct io_clock_wait *wait = container_of(timer, local 65 wait->expired = 1; 66 wake_up_process(wait->task); 71 struct io_clock_wait *wait = container_of(timer, local 74 wait->expired = 1; 75 wake_up_process(wait->task); 80 struct io_clock_wait wait; local 83 wait.io_timer.expire = until; 84 wait.io_timer.fn = io_clock_wait_fn; 85 wait 99 struct io_clock_wait wait; local [all...] |
/linux-master/fs/ |
H A D | fs_pin.c | 16 spin_lock_irq(&pin->wait.lock); 18 wake_up_locked(&pin->wait); 19 spin_unlock_irq(&pin->wait.lock); 32 wait_queue_entry_t wait; local 38 init_wait(&wait); 39 spin_lock_irq(&p->wait.lock); 42 spin_unlock_irq(&p->wait.lock); 48 spin_unlock_irq(&p->wait.lock); 52 __add_wait_queue(&p->wait, &wait); [all...] |
/linux-master/arch/m68k/include/asm/ |
H A D | atari_joystick.h | 20 wait_queue_head_t wait; member in struct:joystick_status
|
/linux-master/drivers/video/fbdev/ |
H A D | vt8500lcdfb.h | 14 wait_queue_head_t wait; member in struct:vt8500lcd_info
|
/linux-master/arch/s390/include/asm/ |
H A D | spinlock_types.h | 17 arch_spinlock_t wait; member in struct:__anon22
|
/linux-master/kernel/sched/ |
H A D | swait.c | 3 * <linux/swait.h> (simple wait queues ) implementation: 84 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) argument 86 wait->task = current; 87 if (list_empty(&wait->task_list)) 88 list_add_tail(&wait->task_list, &q->task_list); 91 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) argument 96 __prepare_to_swait(q, wait); 102 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) argument 113 list_del_init(&wait->task_list); 116 __prepare_to_swait(q, wait); 125 __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) argument 132 finish_swait(struct swait_queue_head *q, struct swait_queue *wait) argument [all...] |
H A D | completion.c | 4 * Generic wait-for-completion handler; 20 raw_spin_lock_irqsave(&x->wait.lock, flags); 24 swake_up_locked(&x->wait, wake_flags); 25 raw_spin_unlock_irqrestore(&x->wait.lock, flags); 73 raw_spin_lock_irqsave(&x->wait.lock, flags); 75 swake_up_all_locked(&x->wait); 76 raw_spin_unlock_irqrestore(&x->wait.lock, flags); 85 DECLARE_SWAITQUEUE(wait); 92 __prepare_to_swait(&x->wait, &wait); [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | base.c | 27 nvkm_timer_wait_test(struct nvkm_timer_wait *wait) argument 29 struct nvkm_subdev *subdev = &wait->tmr->subdev; 30 u64 time = nvkm_timer_read(wait->tmr); 32 if (wait->reads == 0) { 33 wait->time0 = time; 34 wait->time1 = time; 37 if (wait->time1 == time) { 38 if (wait->reads++ == 16) { 43 wait->time1 = time; 44 wait 54 nvkm_timer_wait_init(struct nvkm_device *device, u64 nsec, struct nvkm_timer_wait *wait) argument [all...] |
/linux-master/arch/mips/include/asm/mach-bcm63xx/ |
H A D | bcm63xx_cs.h | 6 int bcm63xx_set_cs_timing(unsigned int cs, unsigned int wait,
|
/linux-master/drivers/net/ethernet/cisco/enic/ |
H A D | enic_api.h | 13 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait);
|
/linux-master/fs/f2fs/ |
H A D | gc.h | 16 #define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */ 51 * will wait on this wait queue. 126 unsigned int *wait) 131 if (*wait == gc_th->no_gc_sleep_time) 134 if ((long long)*wait + (long long)min_time > (long long)max_time) 135 *wait = max_time; 137 *wait += min_time; 141 unsigned int *wait) 145 if (*wait 125 increase_sleep_time(struct f2fs_gc_kthread *gc_th, unsigned int *wait) argument 140 decrease_sleep_time(struct f2fs_gc_kthread *gc_th, unsigned int *wait) argument [all...] |
/linux-master/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-stack.c | 19 #include <sys/wait.h> 49 wait(NULL);
|
/linux-master/drivers/gpu/drm/omapdrm/ |
H A D | omap_irq.c | 22 struct omap_irq_wait *wait; local 27 list_for_each_entry(wait, &priv->wait_list, node) 28 irqmask |= wait->irqmask; 35 static void omap_irq_wait_handler(struct omap_irq_wait *wait) argument 37 wait->count--; 38 wake_up(&wait->wq); 45 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); local 48 init_waitqueue_head(&wait->wq); 49 wait 60 omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait, unsigned long timeout) argument 209 struct omap_irq_wait *wait, *n; local [all...] |
/linux-master/net/core/ |
H A D | stream.c | 21 #include <linux/wait.h> 41 wake_up_interruptible_poll(&wq->wait, EPOLLOUT | 51 * @sk: sock to wait on 52 * @timeo_p: for how long to wait 58 DEFINE_WAIT_FUNC(wait, woken_wake_function); 73 add_wait_queue(sk_sleep(sk), &wait); 78 ~(TCPF_ESTABLISHED | TCPF_CLOSE_WAIT)), &wait); 79 remove_wait_queue(sk_sleep(sk), &wait); local 99 DEFINE_WAIT_FUNC(wait, woken_wake_function); 101 add_wait_queue(sk_sleep(sk), &wait); local 108 remove_wait_queue(sk_sleep(sk), &wait); local 128 add_wait_queue(sk_sleep(sk), &wait); local 165 remove_wait_queue(sk_sleep(sk), &wait); local [all...] |
/linux-master/tools/perf/tests/workloads/ |
H A D | sqrtloop.c | 7 #include <sys/wait.h> 40 wait(NULL);
|