Home
last modified time | relevance | path

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

12345678910>>...47

/Linux-v6.1/kernel/sched/
Dcompletion.c1 // SPDX-License-Identifier: GPL-2.0
4 * Generic wait-for-completion handler;
7 * 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:
9 raw_spin_lock_init(&q->lock); in __init_swait_queue_head()
10 lockdep_set_class_and_name(&q->lock, key, name); in __init_swait_queue_head()
11 INIT_LIST_HEAD(&q->task_list); in __init_swait_queue_head()
25 if (list_empty(&q->task_list)) in swake_up_locked()
28 curr = list_first_entry(&q->task_list, typeof(*curr), task_list); in swake_up_locked()
29 wake_up_process(curr->task); in swake_up_locked()
30 list_del_init(&curr->task_list); in swake_up_locked()
43 while (!list_empty(&q->task_list)) in swake_up_all_locked()
[all …]
Dwait.c1 // SPDX-License-Identifier: GPL-2.0-only
10 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()
[all …]
/Linux-v6.1/include/linux/
Dwait.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Linux wait queue related types and methods
12 #include <uapi/linux/wait.h>
28 * A single wait-queue entry structure:
84 wq_entry->flags = 0; in init_waitqueue_entry()
85 wq_entry->private = p; in init_waitqueue_entry()
86 wq_entry->func = default_wake_function; in init_waitqueue_entry()
92 wq_entry->flags = 0; in init_waitqueue_func_entry()
93 wq_entry->private = NULL; in init_waitqueue_func_entry()
94 wq_entry->func = func; in init_waitqueue_func_entry()
[all …]
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 …]
/Linux-v6.1/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: ensure that this command is complete before returning.
34 * Setting "wait" here only makes sense during rpmh_write_batch() for
35 * active-only transfers, this is because:
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/drivers/gpu/drm/i915/display/
Dintel_atomic_plane.c28 * implement legacy plane updates (i.e., drm_plane->update_plane() and
29 * drm_plane->disable_plane()). This allows plane updates to use the
30 * atomic state infrastructure and perform plane updates as separate
54 __drm_atomic_helper_plane_state_reset(&plane_state->uapi, &plane->base); in intel_plane_state_reset()
56 plane_state->scaler_id = -1; in intel_plane_state_reset()
66 return ERR_PTR(-ENOMEM); in intel_plane_alloc()
71 return ERR_PTR(-ENOMEM); in intel_plane_alloc()
76 plane->base.state = &plane_state->uapi; in intel_plane_alloc()
83 intel_plane_destroy_state(&plane->base, plane->base.state); in intel_plane_free()
88 * intel_plane_duplicate_state - duplicate plane state
[all …]
Dhsw_ips.c1 // SPDX-License-Identifier: MIT
15 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in hsw_ips_enable()
16 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in hsw_ips_enable()
18 if (!crtc_state->ips_enabled) in hsw_ips_enable()
22 * We can only enable IPS after we enable a plane and wait for a vblank in hsw_ips_enable()
24 * a vblank wait. in hsw_ips_enable()
26 drm_WARN_ON(&i915->drm, in hsw_ips_enable()
27 !(crtc_state->active_planes & ~BIT(PLANE_CURSOR))); in hsw_ips_enable()
30 drm_WARN_ON(&i915->drm, in hsw_ips_enable()
31 snb_pcode_write(&i915->uncore, DISPLAY_IPS_CONTROL, in hsw_ips_enable()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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 …]
/Linux-v6.1/drivers/net/ethernet/sfc/siena/
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_siena_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 …]
/Linux-v6.1/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 …]
/Linux-v6.1/drivers/infiniband/hw/hfi1/
Dvnic_sdma.c1 // SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause
3 * Copyright(c) 2017 - 2018 Intel Corporation.
20 * struct vnic_txreq - VNIC transmit descriptor
42 struct hfi1_vnic_sdma *vnic_sdma = tx->sdma; in vnic_sdma_complete()
44 sdma_txclean(vnic_sdma->dd, txreq); in vnic_sdma_complete()
45 dev_kfree_skb_any(tx->skb); in vnic_sdma_complete()
46 kmem_cache_free(vnic_sdma->dd->vnic.txreq_cache, tx); in vnic_sdma_complete()
55 sde->dd, in build_vnic_ulp_payload()
56 &tx->txreq, in build_vnic_ulp_payload()
57 tx->skb->data, in build_vnic_ulp_payload()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/kernel/locking/
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 …]
/Linux-v6.1/drivers/net/wwan/iosm/
Diosm_ipc_pm.h1 /* SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-21 Intel Corporation.
18 * union ipc_pm_cond - Conditions for D3 and the sleep message to CP.
22 * @link: Device link state.
35 * enum ipc_mem_host_pm_state - Possible states of the HOST SLEEP finite state
38 * @IPC_MEM_HOST_PM_ACTIVE_WAIT: Intermediate state before going to
40 * @IPC_MEM_HOST_PM_SLEEP_WAIT_IDLE: Intermediate state to wait for idle
42 * @IPC_MEM_HOST_PM_SLEEP_WAIT_D3: Intermediate state to wait for D3
44 * @IPC_MEM_HOST_PM_SLEEP: after this state the interface is not
46 * @IPC_MEM_HOST_PM_SLEEP_WAIT_EXIT_SLEEP: Intermediate state before exiting
[all …]
Diosm_ipc_imem_ops.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2020-21 Intel Corporation.
18 dev_dbg(ipc_imem->dev, "%s if id: %d", in ipc_imem_sys_wwan_open()
19 ipc_imem_phase_get_string(ipc_imem->phase), if_id); in ipc_imem_sys_wwan_open()
23 dev_err(ipc_imem->dev, "net:%d : refused phase %s", if_id, in ipc_imem_sys_wwan_open()
24 ipc_imem_phase_get_string(ipc_imem->phase)); in ipc_imem_sys_wwan_open()
25 return -EIO; in ipc_imem_sys_wwan_open()
28 return ipc_mux_open_session(ipc_imem->mux, if_id); in ipc_imem_sys_wwan_open()
35 if (ipc_imem->mux && if_id >= IP_MUX_SESSION_START && in ipc_imem_sys_wwan_close()
37 ipc_mux_close_session(ipc_imem->mux, if_id); in ipc_imem_sys_wwan_close()
[all …]
/Linux-v6.1/drivers/gpu/drm/rcar-du/
Drcar_du_crtc.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * R-Car Display Unit CRTCs
5 * Copyright (C) 2013-2015 Renesas Electronics Corporation
15 #include <linux/wait.h>
26 * struct rcar_du_crtc - the CRTC, representing a DU superposition processor
37 * @flip_wait: wait queue used to signal page flip completion
39 * @vblank_wait: wait queue used to signal vertical blanking
40 * @vblank_count: number of vertical blanking interrupts to wait for
82 * struct rcar_du_crtc_state - Driver-specific CRTC state
83 * @state: base DRM CRTC state
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/arm/msm/
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 …]
/Linux-v6.1/drivers/staging/media/omap4iss/
Diss_ipipe.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * TI OMAP4 ISS V4L2 Driver - ISP IPIPE module
28 * struct iss_ipipe_device - Structure for the IPIPE module to store its own
36 * @state: Streaming state
37 * @wait: Wait queue used to stop the module
38 * @stopping: Stopping state
49 enum iss_pipeline_stream_state state; member
50 wait_queue_head_t wait; member
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt7921/
Dsdio_mac.c1 // SPDX-License-Identifier: ISC
12 struct mt76_sdio *sdio = &dev->sdio; in mt7921s_enable_irq()
14 sdio_claim_host(sdio->func); in mt7921s_enable_irq()
15 sdio_writel(sdio->func, WHLPCR_INT_EN_SET, MCR_WHLPCR, NULL); in mt7921s_enable_irq()
16 sdio_release_host(sdio->func); in mt7921s_enable_irq()
21 struct mt76_sdio *sdio = &dev->sdio; in mt7921s_disable_irq()
23 sdio_claim_host(sdio->func); in mt7921s_disable_irq()
24 sdio_writel(sdio->func, WHLPCR_INT_EN_CLR, MCR_WHLPCR, NULL); in mt7921s_disable_irq()
25 sdio_release_host(sdio->func); in mt7921s_disable_irq()
30 return sdio_readl(dev->sdio.func, MCR_WHCR, NULL); in mt7921s_read_whcr()
[all …]
/Linux-v6.1/net/atm/
Dsvc.c1 // SPDX-License-Identifier: GPL-2.0
2 /* net/atm/svc.c - ATM SVC sockets */
4 /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
13 #include <linux/wait.h>
48 DEFINE_WAIT(wait); in svc_disconnect()
53 if (test_bit(ATM_VF_REGIS, &vcc->flags)) { in svc_disconnect()
56 prepare_to_wait(sk_sleep(sk), &wait, TASK_UNINTERRUPTIBLE); in svc_disconnect()
57 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) in svc_disconnect()
61 finish_wait(sk_sleep(sk), &wait); in svc_disconnect()
63 /* beware - socket is still in use by atmsigd until the last in svc_disconnect()
[all …]
/Linux-v6.1/drivers/char/ipmi/
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 …]

12345678910>>...47