| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/ |
| H A 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 …]
|
| H A 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 …]
|
| 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));
|
| /OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/ |
| H A D | mali_timeline_fence_wait.c | 29 * @param wait Fence wait tracker to free. 31 static void mali_timeline_fence_wait_tracker_free(struct mali_timeline_fence_wait_tracker *wait) in mali_timeline_fence_wait_tracker_free() argument 33 MALI_DEBUG_ASSERT_POINTER(wait); in mali_timeline_fence_wait_tracker_free() 34 _mali_osk_atomic_term(&wait->refcount); in mali_timeline_fence_wait_tracker_free() 35 _mali_osk_free(wait); in mali_timeline_fence_wait_tracker_free() 39 * Check if fence wait tracker has been activated. Used as a wait queue condition. 46 struct mali_timeline_fence_wait_tracker *wait; in mali_timeline_fence_wait_tracker_is_activated() local 48 wait = (struct mali_timeline_fence_wait_tracker *) data; in mali_timeline_fence_wait_tracker_is_activated() 49 MALI_DEBUG_ASSERT_POINTER(wait); in mali_timeline_fence_wait_tracker_is_activated() 51 return wait->activated; in mali_timeline_fence_wait_tracker_is_activated() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvif/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/cisco/enic/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A 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 …]
|
| H A D | swait.h | 8 #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 …]
|
| /OK3568_Linux_fs/buildroot/package/gcc/12.2.0/ |
| H A D | 0002-fix-condvar.patch | 4 Subject: [PATCH] libstdc++: Avoid recursion in __nothrow_wait_cv::wait 8 noexcept-specifier from std::condition_variable::wait and gave the new 10 std::condition_variable::wait(unique_lock<mutex>&)@GLIBCXX_3.4.11 as an 11 alias for a new symbol, __gnu_cxx::__nothrow_wait_cv::wait, which still 12 has the incorrect noexcept guarantee. That __nothrow_wait_cv::wait is 13 just a wrapper around the real condition_variable::wait which adds 17 __nothrow_wait_cv::wait calls the condition_variable::wait function it 22 __nothrow_wait_cv::wait function so that instead of calling 23 condition_variable::wait it re-implements it. This requires accessing 31 * src/c++11/compatibility-condvar.cc (__nothrow_wait_cv::wait): [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/kernel/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/kernel/sched/ |
| H A 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 …]
|
| H A D | completion.c | 3 * Generic wait-for-completion handler; 32 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete() 36 swake_up_locked(&x->wait); in complete() 37 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete() 63 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_all() 65 swake_up_all_locked(&x->wait); in complete_all() 66 raw_spin_unlock_irqrestore(&x->wait.lock, flags); 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/fnic/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | umh.c | 119 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() 193 * Wait queue head used by usermodehelper_disable() to wait for all running 199 * Used by usermodehelper_read_lock_wait() to wait for usermodehelper_disabled 205 * Time to wait for running_helpers to become zero before the setting of 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() 249 prepare_to_wait(&usermodehelper_disabled_waitq, &wait, in usermodehelper_read_lock_wait() [all …]
|
| H A D | smp.c | 384 /* Do we wait until *after* callback? */ in flush_smp_call_function_queue() 464 * @wait: If true, wait until function has completed on other CPUs. 469 int wait) in smp_call_function_single() argument 494 * When @wait we can deadlock when we interrupt between llist_add() and in smp_call_function_single() 495 * arch_send_call_function_ipi*(); when !@wait we can deadlock due to in smp_call_function_single() 502 if (!wait) { in smp_call_function_single() 516 if (wait) in smp_call_function_single() 574 * @wait: If true, wait until function has completed. 584 smp_call_func_t func, void *info, int wait) in smp_call_function_any() argument 606 ret = smp_call_function_single(cpu, func, info, wait); in smp_call_function_any() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/inc/ |
| H A D | mpp_dec_impl.h | 115 // 2. mpp_dec wait on parser_reset sem 116 // 3. parser wait hal reset done 117 // 4. hal wait vproc reset done 154 /* external wait state */ 158 #define MPP_DEC_WAIT_INFO_CHG (0x00000020) /* wait info change ready */ 159 #define MPP_DEC_WAIT_BUF_RDY (0x00000040) /* wait valid frame buffer */ 160 #define MPP_DEC_WAIT_TSK_ALL_DONE (0x00000080) /* wait all task done */ 162 #define MPP_DEC_WAIT_TSK_HND_RDY (0x00000100) /* wait task handle ready */ 163 #define MPP_DEC_WAIT_TSK_PREV_DONE (0x00000200) /* wait previous task done */ 164 #define MPP_DEC_WAIT_BUF_GRP_RDY (0x00000200) /* wait buffer group change ready */ [all …]
|
| /OK3568_Linux_fs/kernel/fs/f2fs/ |
| H A D | gc.h | 16 #define DEF_GC_THREAD_NOGC_SLEEP_TIME 300000 /* wait 5 min */ 49 * will wait on this wait queue. 136 unsigned int *wait) in increase_sleep_time() argument 141 if (*wait == gc_th->no_gc_sleep_time) in increase_sleep_time() 144 if ((long long)*wait + (long long)min_time > (long long)max_time) in increase_sleep_time() 145 *wait = max_time; in increase_sleep_time() 147 *wait += min_time; in increase_sleep_time() 151 unsigned int *wait) in decrease_sleep_time() argument 155 if (*wait == gc_th->no_gc_sleep_time) in decrease_sleep_time() 156 *wait = gc_th->max_sleep_time; in decrease_sleep_time() [all …]
|
| /OK3568_Linux_fs/kernel/net/atm/ |
| H A D | svc.c | 13 #include <linux/wait.h> 48 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/snic/ |
| H A D | vnic_dev.c | 69 int wait); 262 int wait) in _svnic_dev_cmd2() argument 329 for (delay = 0; delay < wait; delay++) { in _svnic_dev_cmd2() 448 u64 *a0, u64 *a1, int wait) in svnic_dev_cmd() argument 456 err = (*vdev->devcmd_rtn)(vdev, cmd, wait); in svnic_dev_cmd() 468 int wait = VNIC_DVCMD_TMO; in svnic_dev_fw_info() local 481 err = svnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); in svnic_dev_fw_info() 493 int wait = VNIC_DVCMD_TMO; in svnic_dev_spec() local 499 err = svnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); in svnic_dev_spec() 525 int wait = VNIC_DVCMD_TMO; in svnic_dev_stats_clear() local [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/locking/ |
| H A D | ww-mutex-design.rst | 2 Wound/Wait Deadlock-Proof Mutex Design 5 Please read mutex-design.txt 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 …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-core/sysvinit/sysvinit-inittab/ |
| H A D | inittab | 12 ~~:S:wait:/sbin/sulogin 22 l0:0:wait:/etc/init.d/rc 0 23 l1:1:wait:/etc/init.d/rc 1 24 l2:2:wait:/etc/init.d/rc 2 25 l3:3:wait:/etc/init.d/rc 3 26 l4:4:wait:/etc/init.d/rc 4 27 l5:5:wait:/etc/init.d/rc 5 28 l6:6:wait:/etc/init.d/rc 6
|