| /kernel/linux/linux-4.19/drivers/infiniband/hw/hfi1/ |
| D | iowait.h | 66 * @list: used to add/insert into QP/PQ wait lists 73 * @wait_dma: wait for sdma_busy == 0 74 * @wait_pio: wait for pio_busy == 0 107 struct iowait *wait, 112 void (*wakeup)(struct iowait *wait, int reason); 113 void (*sdma_drained)(struct iowait *wait); 129 * iowait_init() - initialize wait structure 130 * @wait: wait struct to initialize 142 struct iowait *wait, in iowait_init() argument 147 struct iowait *wait, in iowait_init() [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
| D | iowait.h | 52 #include <linux/wait.h> 98 * @list: used to add/insert into QP/PQ wait lists 104 * @lock: lock protected head of wait queue 106 * @wait_dma: wait for sdma_busy == 0 107 * @wait_pio: wait for pio_busy == 0 112 * @flags: wait flags (one per QP) 113 * @wait: SE array for multiple legs 143 struct iowait_work *wait, 148 void (*wakeup)(struct iowait *wait, int reason); 149 void (*sdma_drained)(struct iowait *wait); [all …]
|
| D | iowait.c | 12 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 …]
|
| 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));
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/ |
| D | timer.c | 26 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 …]
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | wait.h | 5 * Linux wait queue related types and methods 12 #include <uapi/linux/wait.h> 25 * A single wait-queue entry structure: 98 * returns true if the wait list is not empty 109 * @cond = true; prepare_to_wait(&wq_head, &wait, state); 115 * finish_wait(&wq_head, &wait); 119 * observe an empty wait list while the waiter might not observe @cond. 131 * @wq_head: wait queue head 141 * add_wait_queue modifications to the wait queue. in wq_has_sleeper() 276 * @wq_head: the waitqueue to wait on [all …]
|
| D | swait.h | 8 #include <linux/wait.h> 12 * BROKEN wait-queues. 14 * These "simple" wait-queues are broken garbage, and should never be 16 * wait-queues, but the semantics are actually completely different, and 22 * case gthe whole "simple" wait-queue is just pointless to begin with, 26 * While these are very similar to regular wait queues (wait.h) the most 49 * For all the above, note that simple wait queues should _only_ be used under 51 * wait queues in most cases. 105 * returns true if the wait list is not empty 118 * @cond = true; prepare_to_swait_exclusive(&wq_head, &wait, state); [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/cisco/enic/ |
| D | vnic_dev.c | 230 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/ |
| D | vnic_dev.c | 230 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 …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | wait.h | 5 * Linux wait queue related types and methods 12 #include <uapi/linux/wait.h> 27 * A single wait-queue entry structure: 100 * returns true if the wait list is not empty 111 * @cond = true; prepare_to_wait(&wq_head, &wait, state); 117 * finish_wait(&wq_head, &wait); 121 * observe an empty wait list while the waiter might not observe @cond. 133 * @wq_head: wait queue head 146 * @wq_head: wait queue head 156 * add_wait_queue modifications to the wait queue. in wq_has_sleeper() [all …]
|
| /kernel/linux/linux-4.19/kernel/sched/ |
| D | swait.c | 3 * <linux/swait.h> (simple wait queues ) implementation: 72 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() [all …]
|
| /kernel/linux/linux-5.10/fs/ |
| D | fs_pin.c | 16 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 …]
|
| /kernel/linux/linux-4.19/fs/ |
| D | fs_pin.c | 16 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 …]
|
| /kernel/linux/linux-5.10/arch/mips/kernel/ |
| D | idle.c | 3 * 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 65 " wait \n" in r4k_wait_irqoff() 72 * have any pending stores when the WAIT instruction is executed. 84 " wait \n" in rm7k_wait_irqoff() 91 * Au1 'wait' is only useful when the 32kHz counter is used as timer, 106 " wait \n" in au1k_wait() [all …]
|
| /kernel/linux/linux-4.19/arch/mips/kernel/ |
| D | idle.c | 2 * MIPS idle loop and WAIT instruction support. 27 * Not all of the MIPS CPUs have the "wait" instruction available. Moreover, 28 * the implementation of the "wait" feature differs between CPU families. This 29 * points to the function that implements CPU specific wait. 30 * The wait instruction stops the pipeline and reduces the power consumption of 69 " wait \n" in r4k_wait_irqoff() 76 * have any pending stores when the WAIT instruction is executed. 88 " wait \n" in rm7k_wait_irqoff() 95 * Au1 'wait' is only useful when the 32kHz counter is used as timer, 109 " wait \n" in au1k_wait() [all …]
|
| /kernel/linux/linux-5.10/kernel/sched/ |
| D | swait.c | 3 * <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 …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/i915/ |
| D | intel_breadcrumbs.c | 38 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() 118 * system) and wait until it sleeps before declaring a missed interrupt. in intel_breadcrumbs_hangcheck() 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() [all …]
|
| /kernel/linux/linux-4.19/drivers/scsi/fnic/ |
| D | vnic_dev.c | 233 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
| D | base.c | 27 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 …]
|
| /kernel/linux/linux-4.19/net/core/ |
| D | stream.c | 21 #include <linux/wait.h> 41 wake_up_interruptible_poll(&wq->wait, EPOLLOUT | in sk_stream_write_space() 50 * sk_stream_wait_connect - Wait for a socket to get into the connected state 51 * @sk: sock to wait on 52 * @timeo_p: for how long to wait 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() [all …]
|
| /kernel/linux/linux-5.10/net/core/ |
| D | stream.c | 21 #include <linux/wait.h> 41 wake_up_interruptible_poll(&wq->wait, EPOLLOUT | in sk_stream_write_space() 50 * sk_stream_wait_connect - Wait for a socket to get into the connected state 51 * @sk: sock to wait on 52 * @timeo_p: for how long to wait 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/ |
| D | omap_irq.c | 22 struct omap_irq_wait *wait; in omap_irq_update() local 27 list_for_each_entry(wait, &priv->wait_list, node) in omap_irq_update() 28 irqmask |= wait->irqmask; in omap_irq_update() 35 static void omap_irq_wait_handler(struct omap_irq_wait *wait) in omap_irq_wait_handler() argument 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 48 init_waitqueue_head(&wait->wq); in omap_irq_wait_init() 49 wait->irqmask = irqmask; in omap_irq_wait_init() 50 wait->count = count; in omap_irq_wait_init() [all …]
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/omapdrm/ |
| D | omap_irq.c | 31 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 …]
|
| /kernel/linux/linux-4.19/fs/f2fs/ |
| D | gc.h | 19 #define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */ 72 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/fnic/ |
| D | vnic_dev.c | 74 int wait); 257 static int vnic_dev_cmd1(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, int wait) in vnic_dev_cmd1() argument 291 for (delay = 0; delay < wait; delay++) { in vnic_dev_cmd1() 320 int wait) in vnic_dev_cmd2() argument 387 for (delay = 0; delay < wait; delay++) { in vnic_dev_cmd2() 509 enum vnic_devcmd_cmd cmd, u64 *a0, u64 *a1, int wait) in vnic_dev_cmd_no_proxy() argument 516 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); in vnic_dev_cmd_no_proxy() 526 u64 *a0, u64 *a1, int wait) in vnic_dev_cmd() argument 533 return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); in vnic_dev_cmd() 542 int wait = 1000; in vnic_dev_fw_info() local [all …]
|