Home
last modified time | relevance | path

Searched +full:wait +full:- +full:state (Results 1 – 25 of 1082) sorted by relevance

12345678910>>...44

/kernel/linux/linux-5.10/kernel/sched/
Dcompletion.c1 // SPDX-License-Identifier: GPL-2.0
3 * Generic wait-for-completion handler;
6 * wait_for_completion default blocks whereas semaphore default non-block. The
17 * complete: - signals a single thread waiting on this completion
18 * @x: holds the state of this particular completion
26 * accessing the task state.
32 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete()
34 if (x->done != UINT_MAX) in complete()
35 x->done++; in complete()
36 swake_up_locked(&x->wait); in complete()
[all …]
Dswait.c1 // SPDX-License-Identifier: GPL-2.0
3 * <linux/swait.h> (simple wait queues ) implementation:
10 raw_spin_lock_init(&q->lock); in __init_swait_queue_head()
11 lockdep_set_class_and_name(&q->lock, key, name); in __init_swait_queue_head()
12 INIT_LIST_HEAD(&q->task_list); in __init_swait_queue_head()
26 if (list_empty(&q->task_list)) in swake_up_locked()
29 curr = list_first_entry(&q->task_list, typeof(*curr), task_list); in swake_up_locked()
30 wake_up_process(curr->task); in swake_up_locked()
31 list_del_init(&curr->task_list); in swake_up_locked()
44 while (!list_empty(&q->task_list)) in swake_up_all_locked()
[all …]
Dwait.c1 // SPDX-License-Identifier: GPL-2.0-only
11 spin_lock_init(&wq_head->lock); in __init_waitqueue_head()
12 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head()
13 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head()
22 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
23 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
25 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
33 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
34 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
36 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive()
[all …]
/kernel/linux/linux-4.19/kernel/sched/
Dcompletion.c1 // SPDX-License-Identifier: GPL-2.0
3 * Generic wait-for-completion handler;
6 * wait_for_completion default blocks whereas semaphore default non-block. The
17 * complete: - signals a single thread waiting on this completion
18 * @x: holds the state of this particular completion
26 * accessing the task state.
32 spin_lock_irqsave(&x->wait.lock, flags); in complete()
34 if (x->done != UINT_MAX) in complete()
35 x->done++; in complete()
36 __wake_up_locked(&x->wait, TASK_NORMAL, 1); in complete()
[all …]
Dswait.c1 // SPDX-License-Identifier: GPL-2.0
3 * <linux/swait.h> (simple wait queues ) implementation:
10 raw_spin_lock_init(&q->lock); in __init_swait_queue_head()
11 lockdep_set_class_and_name(&q->lock, key, name); in __init_swait_queue_head()
12 INIT_LIST_HEAD(&q->task_list); in __init_swait_queue_head()
26 if (list_empty(&q->task_list)) in swake_up_locked()
29 curr = list_first_entry(&q->task_list, typeof(*curr), task_list); in swake_up_locked()
30 wake_up_process(curr->task); in swake_up_locked()
31 list_del_init(&curr->task_list); in swake_up_locked()
39 raw_spin_lock_irqsave(&q->lock, flags); in swake_up_one()
[all …]
Dwait.c10 spin_lock_init(&wq_head->lock); in __init_waitqueue_head()
11 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head()
12 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head()
21 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
22 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
24 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
32 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
33 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
35 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive()
43 spin_lock_irqsave(&wq_head->lock, flags); in remove_wait_queue()
[all …]
/kernel/liteos_m/targets/riscv_nuclei_gd32vf103_soc_gcc/SoC/gd32vf103/Common/Source/Drivers/
Dgd32vf103_fmc.c5 \version 2019-6-5, V1.0.0, firmware for GD32VF103
38 \brief set the wait state counter value
39 \param[in] wscnt��wait state counter value
40 \arg WS_WSCNT_0: FMC 0 wait state
41 \arg WS_WSCNT_1: FMC 1 wait state
42 \arg WS_WSCNT_2: FMC 2 wait state
51 /* set the wait state counter value */ in fmc_wscnt_set()
88 \retval state of FMC, refer to fmc_state_enum
99 /* wait for the FMC ready */ in fmc_page_erase()
104 /* return the FMC state */ in fmc_page_erase()
[all …]
/kernel/linux/linux-4.19/include/soc/qcom/
Dtcs.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
12 * rpmh_state: state for the request
14 * RPMH_SLEEP_STATE: State of the resource when the processor subsystem
17 * RPMH_WAKE_ONLY_STATE: Resume resource state to the value previously
19 * RPMH_ACTIVE_ONLY_STATE: Active or AMC mode requests. Resource state
32 * @data: the resource state request
33 * @wait: wait for this request to be complete before sending the next
38 u32 wait; member
44 * @state: state for the request.
[all …]
/kernel/linux/linux-4.19/include/linux/
Dswait.h1 /* SPDX-License-Identifier: GPL-2.0 */
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
28 * behaviour -- IOW it has strictly bounded IRQ and lock hold times.
37 * - mixing INTERRUPTIBLE and UNINTERRUPTIBLE sleeps on the same waitqueue;
39 * sleeper state.
[all …]
Dwait_bit.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Linux wait-bit related types and methods:
8 #include <linux/wait.h>
55 * wait_on_bit - wait for a bit to be cleared
58 * @mode: the task state to sleep in
66 * Returned value will be zero if the bit was cleared, or non-zero
82 * wait_on_bit_io - wait for a bit to be cleared
85 * @mode: the task state to sleep in
87 * Use the standard hashed waitqueue table to wait for a bit
91 * Returned value will be zero if the bit was cleared, or non-zero
[all …]
Dwait.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Linux wait queue related types and methods
12 #include <uapi/linux/wait.h>
25 * A single wait-queue entry structure:
81 wq_entry->flags = 0; in init_waitqueue_entry()
82 wq_entry->private = p; in init_waitqueue_entry()
83 wq_entry->func = default_wake_function; in init_waitqueue_entry()
89 wq_entry->flags = 0; in init_waitqueue_func_entry()
90 wq_entry->private = NULL; in init_waitqueue_func_entry()
91 wq_entry->func = func; in init_waitqueue_func_entry()
[all …]
/kernel/linux/linux-4.19/drivers/mtd/chips/
Dcfi_cmdset_0020.c8 * - completely revamped method functions so they are aware and
10 * - scalability vs code size is completely set at compile-time
12 * - optimized write buffer method
13 * 06/21/2002 Joern Engel <joern@wh.fh-wedel.de> and others
14 * - modified Intel Command Set 0x0001 to support ST Advanced Architecture
16 * - added a writev function
17 * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de>
18 * - Plugged memory leak in cfi_staa_writev().
68 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features()
69 printk(" - Chip Erase: %s\n", extp->FeatureSupport&1?"supported":"unsupported"); in cfi_tell_features()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/chips/
Dcfi_cmdset_0020.c8 * - completely revamped method functions so they are aware and
10 * - scalability vs code size is completely set at compile-time
12 * - optimized write buffer method
13 * 06/21/2002 Joern Engel <joern@wh.fh-wedel.de> and others
14 * - modified Intel Command Set 0x0001 to support ST Advanced Architecture
16 * - added a writev function
17 * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de>
18 * - Plugged memory leak in cfi_staa_writev().
68 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features()
69 printk(" - Chip Erase: %s\n", extp->FeatureSupport&1?"supported":"unsupported"); in cfi_tell_features()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dswait.h1 /* SPDX-License-Identifier: GPL-2.0 */
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
14 * for deterministic behaviour -- IOW it has strictly bounded IRQ and lock hold
24 * - mixing INTERRUPTIBLE and UNINTERRUPTIBLE sleeps on the same waitqueue;
26 * sleeper state.
28 * - the !exclusive mode; because that leads to O(n) wakeups, everything is
31 * - custom wake callback functions; because you cannot give any guarantees
35 * As a side effect of these; the data structures are slimmer albeit more ad-hoc.
[all …]
Dwait_bit.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Linux wait-bit related types and methods:
8 #include <linux/wait.h>
55 * wait_on_bit - wait for a bit to be cleared
58 * @mode: the task state to sleep in
66 * Returned value will be zero if the bit was cleared, or non-zero
82 * wait_on_bit_io - wait for a bit to be cleared
85 * @mode: the task state to sleep in
87 * Use the standard hashed waitqueue table to wait for a bit
91 * Returned value will be zero if the bit was cleared, or non-zero
[all …]
Dwait.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Linux wait queue related types and methods
12 #include <uapi/linux/wait.h>
27 * A single wait-queue entry structure:
83 wq_entry->flags = 0; in init_waitqueue_entry()
84 wq_entry->private = p; in init_waitqueue_entry()
85 wq_entry->func = default_wake_function; in init_waitqueue_entry()
91 wq_entry->flags = 0; in init_waitqueue_func_entry()
92 wq_entry->private = NULL; in init_waitqueue_func_entry()
93 wq_entry->func = func; in init_waitqueue_func_entry()
[all …]
/kernel/linux/linux-5.10/include/soc/qcom/
Dtcs.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
12 * rpmh_state: state for the request
14 * RPMH_SLEEP_STATE: State of the resource when the processor subsystem
17 * RPMH_WAKE_ONLY_STATE: Resume resource state to the value previously
19 * RPMH_ACTIVE_ONLY_STATE: Active or AMC mode requests. Resource state
32 * @data: the resource state request
33 * @wait: wait for this request to be complete before sending the next
38 u32 wait; member
44 * @state: state for the request.
[all …]
/kernel/linux/linux-5.10/drivers/scsi/isci/
Dphy.h7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
63 /* This is the timeout value for the SATA phy to wait for a SIGNATURE FIS
64 * before restarting the starting state machine. Technically, the old parallel
74 * notification from the hardware that we restart the hardware OOB state
80 * isci_phy - hba local phy infrastructure
83 * @phy_index: physical index relative to the controller (0-3)
162 * struct sci_phy_properties - This structure defines the properties common to
189 * struct sci_sas_phy_properties - This structure defines the properties,
[all …]
/kernel/linux/linux-4.19/drivers/scsi/isci/
Dphy.h7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
63 /* This is the timeout value for the SATA phy to wait for a SIGNATURE FIS
64 * before restarting the starting state machine. Technically, the old parallel
74 * notification from the hardware that we restart the hardware OOB state
80 * isci_phy - hba local phy infrastructure
83 * @phy_index: physical index relative to the controller (0-3)
162 * struct sci_phy_properties - This structure defines the properties common to
189 * struct sci_sas_phy_properties - This structure defines the properties,
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dselftest.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2012 Solarflare Communications Inc.
26 * - All IRQs may be disabled on a CPU for a *long* time by e.g. a
28 * - The PREEMPT_RT patches mostly deal with this, but also allow a
38 * The self-test should stress every RSS vector, and unfortunately
60 [EF4_INT_MODE_MSIX] = "MSI-X",
65 STRING_TABLE_LOOKUP(efx->interrupt_mode, ef4_interrupt_mode)
68 * struct ef4_loopback_state - persistent state during a loopback selftest
87 /* How long to wait for all the packets to arrive (in ms) */
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/sfc/falcon/
Dselftest.c3 * Copyright 2005-2006 Fen Systems Ltd.
4 * Copyright 2006-2012 Solarflare Communications Inc.
29 * - All IRQs may be disabled on a CPU for a *long* time by e.g. a
31 * - The PREEMPT_RT patches mostly deal with this, but also allow a
41 * The self-test should stress every RSS vector, and unfortunately
63 [EF4_INT_MODE_MSIX] = "MSI-X",
68 STRING_TABLE_LOOKUP(efx->interrupt_mode, ef4_interrupt_mode)
71 * ef4_loopback_state - persistent state during a loopback selftest
90 /* How long to wait for all the packets to arrive (in ms) */
103 if (efx->phy_op->test_alive) { in ef4_test_phy_alive()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/sfc/
Dselftest.c3 * Copyright 2005-2006 Fen Systems Ltd.
4 * Copyright 2006-2012 Solarflare Communications Inc.
29 * - All IRQs may be disabled on a CPU for a *long* time by e.g. a
31 * - The PREEMPT_RT patches mostly deal with this, but also allow a
41 * The self-test should stress every RSS vector, and unfortunately
63 [EFX_INT_MODE_MSIX] = "MSI-X",
68 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_interrupt_mode)
71 * efx_loopback_state - persistent state during a loopback selftest
90 /* How long to wait for all the packets to arrive (in ms) */
103 if (efx->phy_op->test_alive) { in efx_test_phy_alive()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dselftest.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2005-2006 Fen Systems Ltd.
5 * Copyright 2006-2012 Solarflare Communications Inc.
29 * - All IRQs may be disabled on a CPU for a *long* time by e.g. a
31 * - The PREEMPT_RT patches mostly deal with this, but also allow a
41 * The self-test should stress every RSS vector, and unfortunately
63 [EFX_INT_MODE_MSIX] = "MSI-X",
68 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_interrupt_mode)
71 * struct efx_loopback_state - persistent state during a loopback selftest
90 /* How long to wait for all the packets to arrive (in ms) */
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-async.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2013-2017 IBM Corp.
16 #include <linux/wait.h>
31 enum opal_async_token_state state; member
44 int i, token = -EBUSY; in __opal_async_get_token()
49 if (opal_async_tokens[i].state == ASYNC_TOKEN_UNALLOCATED) { in __opal_async_get_token()
50 opal_async_tokens[i].state = ASYNC_TOKEN_ALLOCATED; in __opal_async_get_token()
70 /* Wait until a token is available */ in opal_async_get_token_interruptible()
72 return -ERESTARTSYS; in opal_async_get_token_interruptible()
90 return -EINVAL; in __opal_async_release_token()
[all …]
/kernel/linux/linux-4.19/arch/powerpc/platforms/powernv/
Dopal-async.c4 * Copyright 2013-2017 IBM Corp.
20 #include <linux/wait.h>
35 enum opal_async_token_state state; member
48 int i, token = -EBUSY; in __opal_async_get_token()
53 if (opal_async_tokens[i].state == ASYNC_TOKEN_UNALLOCATED) { in __opal_async_get_token()
54 opal_async_tokens[i].state = ASYNC_TOKEN_ALLOCATED; in __opal_async_get_token()
74 /* Wait until a token is available */ in opal_async_get_token_interruptible()
76 return -ERESTARTSYS; in opal_async_get_token_interruptible()
94 return -EINVAL; in __opal_async_release_token()
98 switch (opal_async_tokens[token].state) { in __opal_async_release_token()
[all …]

12345678910>>...44