| /kernel/linux/linux-6.6/kernel/sched/ |
| D | completion.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Generic wait-for-completion handler; 7 * wait_for_completion default blocks whereas semaphore default non-block. The 20 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_with_flags() 22 if (x->done != UINT_MAX) in complete_with_flags() 23 x->done++; in complete_with_flags() 24 swake_up_locked(&x->wait, wake_flags); in complete_with_flags() 25 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_with_flags() 34 * complete: - signals a single thread waiting on this completion 35 * @x: holds the state of this particular completion [all …]
|
| D | swait.c | 1 // 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 try_to_wake_up(curr->task, TASK_NORMAL, wake_flags); 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 …]
|
| D | wait.c | 1 // 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 …]
|
| /kernel/linux/linux-5.10/kernel/sched/ |
| D | completion.c | 1 // 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 …]
|
| D | swait.c | 1 // 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 …]
|
| D | wait.c | 1 // 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-6.6/drivers/gpu/drm/i915/display/ |
| D | intel_display_rps.c | 1 // SPDX-License-Identifier: MIT 15 struct wait_queue_entry wait; member 24 struct wait_rps_boost *wait = container_of(_wait, typeof(*wait), wait); in do_rps_boost() local 25 struct i915_request *rq = wait->request; in do_rps_boost() 36 drm_crtc_vblank_put(wait->crtc); in do_rps_boost() 38 list_del(&wait->wait.entry); in do_rps_boost() 39 kfree(wait); in do_rps_boost() 46 struct wait_rps_boost *wait; in intel_display_rps_boost_after_vblank() local 51 if (DISPLAY_VER(to_i915(crtc->dev)) < 6) in intel_display_rps_boost_after_vblank() 57 wait = kmalloc(sizeof(*wait), GFP_KERNEL); in intel_display_rps_boost_after_vblank() [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | wait.h | 1 /* 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 …]
|
| D | swait.h | 1 /* 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 …]
|
| D | wait_bit.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/include/soc/qcom/ |
| D | tcs.h | 1 /* 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 …]
|
| /kernel/linux/linux-6.6/drivers/mtd/chips/ |
| D | cfi_cmdset_0020.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - completely revamped method functions so they are aware and 11 * - scalability vs code size is completely set at compile-time 13 * - optimized write buffer method 14 * 06/21/2002 Joern Engel <joern@wh.fh-wedel.de> and others 15 * - modified Intel Command Set 0x0001 to support ST Advanced Architecture 17 * - added a writev function 18 * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de> 19 * - Plugged memory leak in cfi_staa_writev(). 69 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features() [all …]
|
| /kernel/linux/linux-5.10/drivers/mtd/chips/ |
| D | cfi_cmdset_0020.c | 8 * - 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/ |
| D | swait.h | 1 /* 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 …]
|
| D | wait_bit.h | 1 /* 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 …]
|
| D | wait.h | 1 /* 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/ |
| D | tcs.h | 1 /* 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-6.6/drivers/scsi/isci/ |
| D | phy.h | 7 * 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/scsi/isci/ |
| D | phy.h | 7 * 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/ |
| D | selftest.c | 1 // 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-5.10/drivers/net/ethernet/sfc/ |
| D | selftest.c | 1 // 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-6.6/drivers/net/ethernet/sfc/falcon/ |
| D | selftest.c | 1 // 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 42 char pad[2]; /* Ensures ip is 4-byte aligned */ 65 [EF4_INT_MODE_MSIX] = "MSI-X", 70 STRING_TABLE_LOOKUP(efx->interrupt_mode, ef4_interrupt_mode) 73 * struct ef4_loopback_state - persistent state during a loopback selftest [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/ |
| D | selftest.c | 1 // 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 45 char pad[2]; /* Ensures ip is 4-byte aligned */ 68 [EFX_INT_MODE_MSIX] = "MSI-X", 73 STRING_TABLE_LOOKUP(efx->interrupt_mode, efx_siena_interrupt_mode) 76 * struct efx_loopback_state - persistent state during a loopback selftest [all …]
|
| /kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
| D | vnic_sdma.c | 1 // 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 …]
|
| /kernel/linux/linux-6.6/drivers/soc/qcom/ |
| D | trace-rpmh.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. 13 #include "rpmh-internal.h" 22 __string(name, d->name) 29 __assign_str(name, d->name); 30 __entry->m = m; 31 __entry->addr = r->cmds[0].addr; 32 __entry->data = r->cmds[0].data; 35 TP_printk("%s: ack: tcs-m: %d addr: %#x data: %#x", 36 __get_str(name), __entry->m, __entry->addr, __entry->data) [all …]
|