Home
last modified time | relevance | path

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

12345678910>>...48

/OK3568_Linux_fs/kernel/kernel/sched/
H A 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 …]
H A Dwait.c1 // SPDX-License-Identifier: GPL-2.0-only
12 spin_lock_init(&wq_head->lock); in __init_waitqueue_head()
13 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head()
14 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head()
23 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue()
24 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue()
26 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue()
34 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive()
35 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive()
37 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive()
[all …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_instr_backend.c1 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
4 * (C) COPYRIGHT 2014-2022 ARM Limited. All rights reserved.
18 * http://www.gnu.org/licenses/gpl-2.0.html.
43 dev_err(kbdev->dev, "PRFCNT_ACTIVE bit stuck\n"); in wait_prfcnt_ready()
44 return -EBUSY; in wait_prfcnt_ready()
52 int err = -EINVAL; in kbase_instr_hwcnt_enable_internal()
56 lockdep_assert_held(&kbdev->hwaccess_lock); in kbase_instr_hwcnt_enable_internal()
59 if ((enable->dump_buffer == 0ULL) || (enable->dump_buffer & (2048 - 1))) in kbase_instr_hwcnt_enable_internal()
62 spin_lock_irqsave(&kbdev->hwcnt.lock, flags); in kbase_instr_hwcnt_enable_internal()
64 if (kbdev->hwcnt.backend.state != KBASE_INSTR_STATE_DISABLED) { in kbase_instr_hwcnt_enable_internal()
[all …]
H A Dmali_kbase_pm_defs.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 * (C) COPYRIGHT 2014-2022 ARM Limited. All rights reserved.
18 * http://www.gnu.org/licenses/gpl-2.0.html.
23 * Backend-specific Power Manager definitions
36 /* Forward definition - see mali_kbase.h */
41 * enum kbase_pm_core_type - The types of core in a GPU.
49 * - kbase_pm_get_present_cores()
50 * - kbase_pm_get_active_cores()
51 * - kbase_pm_get_trans_cores()
52 * - kbase_pm_get_ready_cores().
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/chips/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/backend/gpu/
H A Dmali_kbase_instr_backend.c3 * (C) COPYRIGHT 2014-2016 ARM Limited. All rights reserved.
12 * Boston, MA 02110-1301, USA.
32 * kbasep_instr_hwcnt_cacheclean - Issue Cache Clean & Invalidate command to
43 spin_lock_irqsave(&kbdev->hwcnt.lock, flags); in kbasep_instr_hwcnt_cacheclean()
44 KBASE_DEBUG_ASSERT(kbdev->hwcnt.backend.state == in kbasep_instr_hwcnt_cacheclean()
48 spin_lock_irqsave(&kbdev->hwaccess_lock, pm_flags); in kbasep_instr_hwcnt_cacheclean()
52 spin_unlock_irqrestore(&kbdev->hwaccess_lock, pm_flags); in kbasep_instr_hwcnt_cacheclean()
59 kbdev->hwcnt.backend.state = KBASE_INSTR_STATE_CLEANING; in kbasep_instr_hwcnt_cacheclean()
61 spin_unlock_irqrestore(&kbdev->hwcnt.lock, flags); in kbasep_instr_hwcnt_cacheclean()
69 int err = -EINVAL; in kbase_instr_hwcnt_enable_internal()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A 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 …]
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/scsi/isci/
H A 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 …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/mdadm/files/
H A D0001-Revert-tests-wait-for-complete-rebuild-in-integrity-.patch4 Subject: [PATCH] Revert "tests: wait for complete rebuild in integrity checks"
7 as the logic "check state 'U*'" will make the test enters
9 use the previous logic "check wait" which also used
10 commonly by other tests such as tests/02r5grow, tests/07revert-grow
13 Upstream-Status: Submitted [https://marc.info/?l=linux-raid&m=156317157314030&w=2]
15 Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
16 ---
17 tests/01r5integ | 2 +-
18 tests/01raid6integ | 4 ++--
19 2 files changed, 3 insertions(+), 3 deletions(-)
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/falcon/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/csf/
H A Dmali_kbase_csf_reset_gpu.c1 // SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
4 * (C) COPYRIGHT 2019-2022 ARM Limited. All rights reserved.
18 * http://www.gnu.org/licenses/gpl-2.0.html.
42 kbase_csf_reset_state_is_silent(enum kbase_csf_reset_gpu_state state) in kbase_csf_reset_state_is_silent() argument
44 return (state == KBASE_CSF_RESET_GPU_COMMITTED_SILENT); in kbase_csf_reset_state_is_silent()
48 kbase_csf_reset_state_is_committed(enum kbase_csf_reset_gpu_state state) in kbase_csf_reset_state_is_committed() argument
50 return (state == KBASE_CSF_RESET_GPU_COMMITTED || in kbase_csf_reset_state_is_committed()
51 state == KBASE_CSF_RESET_GPU_COMMITTED_SILENT); in kbase_csf_reset_state_is_committed()
55 kbase_csf_reset_state_is_active(enum kbase_csf_reset_gpu_state state) in kbase_csf_reset_state_is_active() argument
57 return (state == KBASE_CSF_RESET_GPU_HAPPENING); in kbase_csf_reset_state_is_active()
[all …]
/OK3568_Linux_fs/kernel/include/soc/qcom/
H A 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 …]
/OK3568_Linux_fs/kernel/kernel/locking/
H A Dqspinlock_paravirt.h1 /* SPDX-License-Identifier: GPL-2.0 */
16 * pv_wait(u8 *ptr, u8 val) -- suspends the vcpu if *ptr == val
17 * pv_kick(cpu) -- wakes a suspended vcpu
31 * mitigates the slight slowdown for non-overcommitted guest with this
32 * aggressive wait-early mechanism.
53 u8 state; member
63 * The pending bit is set by the queue head vCPU of the MCS wait queue in
67 * enter the MCS wait queue. So lock starvation shouldn't happen as long
72 * mode spinning on the lock unless the MCS wait queue is empty. In this
85 * present in the MCS wait queue but the pending bit isn't set. in pv_hybrid_queued_unfair_trylock()
[all …]
/OK3568_Linux_fs/kernel/fs/fscache/
H A Dobject.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* FS-Cache object state machine handler
8 * object state machine and the in-kernel representations.
32 #define STATE(n) (&__STATE_NAME(n)) macro
35 * Define a work state. Work states are execution states. No event processing
36 * is performed by them. The function attached to a work state returns a
37 * pointer indicating the next state to which the state machine should
38 * transition. Returning NO_TRANSIT repeats the current state, but goes back
51 #define transit_to(state) ({ prefetch(&STATE(state)->work); STATE(state); }) argument
56 * Define a wait state. Wait states are event processing states. No execution
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/powernv/
H A 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 …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-keystone/
H A Dpsc.c4 * (C) Copyright 2012-2014
7 * SPDX-License-Identifier: GPL-2.0+
17 * psc_delay() - delay for psc
28 * psc_wait() - Wait for end of transitional state
35 * Return: 0 when the domain is free. Returns -1 if a timeout occurred waiting
46 * It's still remotely possible that the hardware state machines in psc_wait()
60 return -1; in psc_wait()
66 * psc_get_domain_num() - Get the domain number
81 * psc_set_state() - powers up/down a module
83 * @state: 1 to enable, 0 to disable.
[all …]
/OK3568_Linux_fs/kernel/drivers/cpuidle/
H A Dcoupled.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * coupled.c - helper functions to enter the same idle state on multiple cpus
27 * will corrupt the gic state unless the other cpu runs a work
28 * around). Each cpu has a power state that it can enter without
29 * coordinating with the other cpu (usually Wait For Interrupt, or
32 * sometimes the whole SoC). Entering a coupled power state must
35 * This file implements a solution, where each cpu will wait in the
36 * WFI state until all cpus are ready to enter a coupled state, at
37 * which point the coupled state function will be called on all
44 * power state enter function at the same time. During this pass,
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/toaster/tests/browser/
H A Dtest_most_recent_builds_states.py5 # SPDX-License-Identifier: GPL-2.0-only
7 # Copyright (C) 2013-2016 Intel Corporation
13 from tests.browser.selenium_helpers_base import Wait
29 state=BuildRequest.REQ_QUEUED)
39 url = reverse('all-builds')
43 base_selector = '[data-latest-build-result="%s"] ' % build.id
46 selector = base_selector + '[data-build-state="Queued"]'
56 build_request.state = BuildRequest.REQ_INPROGRESS
61 selector = base_selector + '[data-build-state="Parsing"]'
64 bar_selector = '#recipes-parsed-percentage-bar-%s' % build.id
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/msm/
H A Dqcom,idle-state.txt3 ARM provides idle-state node to define the cpuidle states, as defined in [1].
4 cpuidle-qcom is the cpuidle driver for Qualcomm SoCs and uses these idle
6 The idle states supported by the QCOM SoC are defined as -
16 trigger to execute the SPM state machine. The SPM state machine waits for the
19 the SPM state machine out of its wait, the next step is to ensure that the
21 execution. This state is defined as a generic ARM WFI state by the ARM cpuidle
22 driver and is not defined in the DT. The SPM state machine should be
23 configured to execute this state by default and after executing every other
24 state below.
26 Retention: Retention is a low power state where the core is clock gated and
[all …]
/OK3568_Linux_fs/kernel/drivers/char/ipmi/
H A Dipmi_kcs_sm.c1 // SPDX-License-Identifier: GPL-2.0+
5 * State machine for handling IPMI KCS interfaces.
15 * This state machine is taken from the state machine in the IPMI spec,
30 /* kcs_debug is a bit-field
31 * KCS_DEBUG_ENABLE - turned on for now
32 * KCS_DEBUG_MSG - commands and their responses
33 * KCS_DEBUG_STATES - state machine
51 * was added to the state machine in the spec to wait for the
72 * State to transition to the error handler, this was added to
73 * the state machine in the spec to be sure IBF was there.
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hfi1/
H A Dvnic_sdma.c2 * Copyright(c) 2017 - 2018 Intel Corporation.
24 * - Redistributions of source code must retain the above copyright
26 * - Redistributions in binary form must reproduce the above copyright
30 * - Neither the name of Intel Corporation nor the names of its
62 * struct vnic_txreq - VNIC transmit descriptor
84 struct hfi1_vnic_sdma *vnic_sdma = tx->sdma; in vnic_sdma_complete()
86 sdma_txclean(vnic_sdma->dd, txreq); in vnic_sdma_complete()
87 dev_kfree_skb_any(tx->skb); in vnic_sdma_complete()
88 kmem_cache_free(vnic_sdma->dd->vnic.txreq_cache, tx); in vnic_sdma_complete()
97 sde->dd, in build_vnic_ulp_payload()
[all …]

12345678910>>...48